gcc:
[official-gcc.git] / gcc / ada / ChangeLog
blobc96b7f64dfcf510c9ac97c177ffac346c8cb4e84
1 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
3         * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
4         * decl.c: Include gt-ada-decl.h.
5         (annotate_value_cache): New.
6         (annotate_value): Use it instead of TREE_COMPLEXITY.
8 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
10         * misc.c, utils2.c: Fix comment typos.
12 2007-01-24  Roger Sayle  <roger@eyesopen.com>
14         * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
15         TREE_CONSTANT_OVERFLOW.
16         (allocatable_size_p, annotate_value): Likewise.
17         * trans.c (gnat_to_gnu): Likewise.
18         * utils.c (unchecked_convert): Likewise.
19         * utils2.c (build_simple_component_ref): Likewise.
21 2007-01-23  Richard Guenther  <rguenther@suse.de>
23         PR bootstrap/30541
24         * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
25         (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
26         (gnatboot3): Likewise.
27         (GNATBIND): Do not define.
28         * Makefile.in (GNATBIND): Do not define.
30 2007-01-08  Richard Guenther  <rguenther@suse.de>
32         * cuintp.c (build_cst_from_int): Use built_int_cst_type.
33         * trans.c (gnat_to_gnu): Likewise.
35 2006-12-07  Geoffrey Keating  <geoffk@apple.com>
37         * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
38         * adaint.c: Likewise.
40 2006-12-05  Aldy Hernandez  <aldyh@redhat.com>
42         Merge from gimple-tuples-branch.
44         2006-11-02  Aldy Hernandez  <aldyh@redhat.com>
45         * ada-tree.h (lang_tree_node): Handle gimple tuples.
46         * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
47         GIMPLE_MODIFY_STMT.
49 2006-12-02  Kazu Hirata  <kazu@codesourcery.com>
51         * Makefile.in, mingw32.h, trans.c: Fix comment typos.
52         * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
53         Fix typos.
55 2006-11-17  Eric Botcazou  <ebotcazou@adacore.com>
57         PR ada/27936
58         * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
59         if the initializer takes into account the padding.
61 2006-11-11  Richard Guenther  <rguenther@suse.de>
63         * trans.c (maybe_stabilize_reference): Remove handling of
64         FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
66 2006-11-05  Arnaud Charlet  <charlet@adacore.com>
68         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
69         (To_Target_Priority): New function.
70         Fix PR ada/29707
72 2006-10-31  Robert Dewar  <dewar@adacore.com>
74         * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
75         a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
76         s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
77         a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
78         a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
79         a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
80         a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
81         a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
82         a-szbzha.adb: Minor reformatting. Fix header.
84         * a-numaux-x86.adb: Add parentheses for use of unary minus
85         * a-ngcefu.adb: Supply missing parentheses for unary minus
86         * a-ngcoty.adb: Add parens for use of unary minus
87         * a-ngelfu.adb: Add missing parens for unary minus
88         * a-tifiio.adb: Add parentheses for uses of unary minus
90 2006-10-31  Robert Dewar  <dewar@adacore.com>
91             Bob Duff  <duff@adacore.com>
92             Ed Schonberg  <schonberg@adacore.com>
94         * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
95         with multiplying operator.
96         (Expected_Type_Is_Any_Real): New function to determine from the Parent
97         pointer whether the context expects "any real type".
98         (Resolve_Arithmetic_Op): Do not give an error on calls to the
99         universal_fixed "*" and "/" operators when they are used in a context
100         that expects any real type. Also set the type of the node to
101         Universal_Real in this case, because downstream processing requires it
102         (mainly static expression evaluation).
103         Reword some continuation messages
104         Add some \\ sequences to continuation messages
105         (Resolve_Call): Refine infinite recursion case. The test has been
106         sharpened to eliminate some false positives.
107         Check for Current_Task usage now includes entry barrier, and is now a
108         warning, not an error.
109         (Resolve): If the call is ambiguous, indicate whether an interpretation
110         is an inherited operation.
111         (Check_Aggr): When resolving aggregates, skip associations with a box,
112         which are priori correct, and will be replaced by an actual default
113         expression in the course of expansion.
114         (Resolve_Type_Conversion): Add missing support for conversion from
115         a class-wide interface to a tagged type. Minor code cleanup.
116         (Valid_Tagged_Converion): Add support for abstact interface type
117         conversions.
118         (Resolve_Selected_Component): Call Generate_Reference here rather than
119         during analysis, and use May_Be_Lvalue to distinguish read/write.
120         (Valid_Array_Conversion): New procedure, abstracted from
121         Valid_Conversion, to incorporate accessibility checks for arrays of
122         anonymous access types.
123         (Valid_Conversion): For a conversion to a numeric type occurring in an
124         instance or inlined body, no need to check that the operand type is
125         numeric, since this has been checked during analysis of the template.
126         Remove legacy test for scope name Unchecked_Conversion.
128         * sem_res.ads: Minor reformatting
130         * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
131         (PE_Current_Task_In_Entry_Body): New exception code
132         (SE_Restriction_Violation): Removed, not used
134         * a-except.ads:  Update comments.
136         * types.h, types.ads: Add definition for Validity_Check
137         (PE_Current_Task_In_Entry_Body): New exception code
138         (SE_Restriction_Violation): Removed, not used
140 2006-10-31  Thomas Quinot  <quinot@adacore.com>
142         * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
143         error status.
145 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
146             Jose Ruiz  <ruiz@adacore.com>
148         * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
149         part of Ada.Calendar: all subprogram raise Unimplemented.
150         (Split_W_Offset): Temp function body, raising Unimplemented
152         * a-calend.ads, a-calend-vms.ads: 
153         Add imported variable Invalid_TZ_Offset used to designate targets unable
154         to support time zones.
155         (Unimplemented): Temporary function raised by the body of new
156         subprograms below.
157         (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
158         unit provides handling of leap seconds and is used by the new Ada 2005
159         packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
160         (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
161         version returns an extra value which is the offset to UTC.
163         * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
164         (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
165         (Split_W_Offset): New function body.
166         (Time_Of): When a date is close to UNIX epoch, compute the time for
167         that date plus one day (that amount is later substracted after
168         executing mktime) so there are no problems with time zone adjustments.
170         * a-calend-mingw.adb: Remove Windows specific version no longer needed.
172         * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
173         a-catizo.ads, a-catizo.adb: New files.
175         * impunit.adb: Add new Ada 2005 entries
177         * sysdep.c: Add external variable __gnat_invalid_tz_offset.
178         Rename all occurences of "__gnat_localtime_r" to
179         "__gnat_localtime_tzoff".
180         (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
181         zone data and calculate the GMT offset.
182         (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
183         Use the field "tm_gmtoff" to extract the GMT offset.
184         (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
185         the external variable "timezone" to calculate the GMT offset.
187 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
188             Jose Ruiz  <ruiz@adacore.com>
190         * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb, 
191         s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads, 
192         s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
193         s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
194         System.Any_Priority to a POSIX priority on the target.
196         * system-linux-ia64.ads: 
197         Extend range of Priority types on Linux to use the whole range made
198         available by the system.
200         * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
201         function maps from System.Any_Priority to a POSIX priority on the
202         target.
203         (PTHREAD_PRIO_PROTECT): Set real value.
204         (PTHREAD_PRIO_INHERIT): Now a function.
205         (SIGCPUFAIL): New signal.
206         (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
207         are documented as reserved by the OS.
209         * system-aix.ads: Use the full range of priorities provided by the
210         system on AIX.
212         * s-taprop-posix.adb: Call new function To_Target_Priority.
213         (Set_Priority): Take into account Task_Dispatching_Policy and
214         Priority_Specific_Dispatching pragmas when determining if Round Robin
215         must be used for scheduling the task.
217         * system-linux-x86_64.ads, system-linux-x86.ads, 
218         system-linux-ppc.ads: Extend range of Priority types on Linux to use
219         the whole range made available by the system.
221         * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb, 
222         s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb, 
223         s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
224         when deallocating the TCB in order to avoid potential references to
225         deallocated data.
226         (Set_Priority): Take into account Task_Dispatching_Policy and
227         Priority_Specific_Dispatching pragmas when determining if Round Robin
228         or FIFO within priorities must be used for scheduling the task.
230         * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
231         the Thread field (to be used internally by the run-time system) and the
232         kernel-level task id in the LWP field (to be used by the debugger).
233         (Create_Task): Reorganize to unify the calls to taskSpawn into a single
234         instance, and propagate the current task options to the spawned task.
235         (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
236         (Initialize): Set Round Robin dispatching when the corresponding pragma
237         is in effect.
239 2006-10-31  Robert Dewar  <dewar@adacore.com>
241         * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
242         system-linux-hppa.ads, system-hpux-ia64.ads, 
243         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads, 
244         system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
245         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
246         system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads, 
247         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
248         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
249         system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
250         Default_Bit_Order) to kill constant condition warnings for references
251         to this switch.
253 2006-10-31  Vincent Celier  <celier@adacore.com>
254             Eric Botcazou  <ebotcazou@adacore.com>
256         * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
257         mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
258         mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
259         Ext_To, when building the library file name
261         * mlib-tgt-vxworks.adb: ditto.
262         (Get_Target_Suffix): Add support for x86 targets.
264         * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
266         * mlib-tgt-darwin.adb: 
267         Use Append_To, instead of Ext_To, when building the library file name
268         (Flat_Namespace): New global variable.
269         (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
270         (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
271         (Link_Shared_Libgcc): Delete.
272         (Build_Dynamic_Library): Adjust for above changes.
273         Use Opt package.
274         (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
276 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
278         * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
279         (Initialize): Add type conversions required by above change.
281 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
283         * s-osinte-vxworks.ads, s-osinte-vxworks.adb: 
284         (getpid): New body for this function that uses the underlying taskIdSelf
285         function for VxWorks 5 and VxWorks 6 in kernel mode.
286         (unsigned_int): New type, modular to allow logical bit operations.
287         (taskOptionsGet): New imported function.
289         * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
290         field to be compliant with the type used by the corresponding operating
291         system primitive.
293 2006-10-31  Pascal Obry  <obry@adacore.com>
294             Eric Botcazou  <ebotcazou@adacore.com>
295             Vincent Celier  <celier@adacore.com>
297         * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
298         ASCII version of the registry API. This is needed as the GNAT runtime
299         is now UNICODE by default.
300         Include version.h.
301         (get_gcc_version): Do not hardcode the return value.
302         (__gnat_file_time_name): On Windows properly set the default returned
303         value to -1 which corresponds to Invalid_Time.
304         (__gnat_fopen): New routine. A simple wrapper on all plateforms
305          except on Windows where it does conversion for unicode support.
306         (__gnat_freopen): Idem.
307         (__gnat_locate_exec_on_path): If environment variable PATH does not
308         exist, return a NULL pointer
310         * adaint.h: (__gnat_fopen): Declare.
311         (__gnat_freopen): Likewise.
313         * mingw32.h (_tfreopen): Define this macro here for older MingW
314         version.
315         Activate the unicode support on platforms using a MingW runtime
316         version 3.9 or newer.
318         * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
319         This is needed for proper unicode support on Windows.
320         (freopen): Idem.
322 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
323             Nicolas Setton  <setton@adacore.com>
324             Olivier Hainque  <hainque@adacore.com>
325             Gary Dismukes  <dismukes@adacore.com>
327         * gigi.h: (tree_code_for_record_type): Declare.
328         (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
329         (get_global_renaming_pointers): Rename to
330         invalidate_global_renaming_pointers.
331         (static_ctors): Delete.
332         (static_dtors): Likewise.
333         (gnat_write_global_declarations): Declare.
334         (create_var_decl): Adjust descriptive comment to indicate that the
335         subprogram may return a CONST_DECL node.
336         (create_true_var_decl): Declare new function, similar to
337         create_var_decl but forcing the creation of a VAR_DECL node.
338         (get_global_renaming_pointers): Declare.
339         (add_global_renaming_pointer): Likewise.
341         * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
343         * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
344         tree before setting TREE_ADDRESSABLE for by-reference return mechanism
345         processing.
346         (gnat_to_gnu_entity): Remove From_With_Type from computation for
347         imported_p.
348         <E_Access_Type>: Use the Non_Limited_View as the full view of the
349         designated type if the pointer comes from a limited_with clause.  Make
350         incomplete designated type if it is in the main unit and has a freeze
351         node.
352         <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
353         Underlying_Full_View similarly.  Return earlier if the full view already
354         has an associated tree.
355         (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
356         (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
357         (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
358         reference type built for objects with an address clause.
359         Use create_true_var_decl with const_flag set for
360         DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
361         TREE_READONLY set.
362         (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
363         for Character and Wide_Character types. This info is read by the
364         dwarf-2 writer, and is needed to be able to use the command "ptype
365         character" in the debugger.
366         (gnat_to_gnu_entity): When generating a type representing
367         a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
368         so that debug writers can distinguish it from ordinary integers.
369         (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
370         addition to TREE_READONLY to assert the constantness of variables for
371         elaboration purposes.
372         (gnat_to_gnu_entity, subprogram cases): Change loops on formal
373         parameters to call new Einfo function First_Formal_With_Extras.
374         (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
375         protected type with its corresponding discriminant, to obtain a usable
376         declaration
377         (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
378         for a multiple elaboration of the "equivalent" type.
379         (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
380         into record_global_renaming_pointer.
381         (gnat_to_gnu_entity) <E_Array_Type>: Do not force
382         TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
383         <E_Array_Subtype>: Likewise.
384         (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
385         incomplete subtypes and incomplete subtypes of incomplete types visible
386         through a limited with clause.
387         (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
388         the base index type for the maximum size of the array only if they are
389         constant.
390         (gnat_to_gnu_entity, renaming object case): Do not wrap up the
391         expression into a SAVE_EXPR if stabilization failed.
393         * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
394         a result decl into DECL_BY_REFERENCE on this decl, now what is expected
395         by lower level compilation passes.
396         (gnat_genericize): New function, lowering a function body to GENERIC.
397         Turn the type of RESULT_DECL into a real reference type if the decl
398         has been marked DECL_BY_REFERENCE, and adjust references to the latter
399         accordingly.
400         (gnat_genericize_r): New function. Tree walking callback for
401         gnat_genericize.
402         (convert_from_reference, is_byref_result): New functions. Helpers for
403         gnat_genericize_r.
404         (create_type_decl): Call gnat_pushdecl before calling
405         rest_of_decl_compilation, to make sure that field TYPE_NAME of
406         type_decl is properly set before calling the debug information writers.
407         (write_record_type_debug_info): The heuristics which compute the
408         alignment of a field in a variant record might not be accurate. Add a
409         safety test to make sure no alignment is set to a smaller value than
410         the alignment of the field type.
411         (make_dummy_type): Use the Non_Limited_View as the underlying type if
412         the type comes from a limited_with clause. Do not loop on the full view.
413         (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
414         (dummy_node_table): New global variable, moved from decl.c.
415         (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
416         (save_gnu_tree): Use above macros.
417         (get_gnu_tree): Likewise.
418         (present_gnu_tree): Likewise.
419         (init_dummy_type): New function, moved from decl.c. Use above macros.
420         (make_dummy_type): Likewise.
421         (tree_code_for_record_type): New function extracted from make_dummy_type
422         (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
423         (static_ctors): Change it to a vector, make static.
424         (static_dtors): Likewise.
425         (end_subprog_body): Adjust for above change.
426         (build_global_cdtor): Moved from trans.c.
427         (gnat_write_global_declarations): Emit global constructor and
428         destructor, and call cgraph_optimize before emitting debug info for
429         global declarations.
430         (global_decls): New global variable.
431         (gnat_pushdecl): Store the global declarations in global_decls, for
432         later use.
433         (gnat_write_global_declarations): Emit debug information for global
434          declarations.
435         (create_var_decl_1): Former create_var_decl, with an extra argument to
436          state whether the creation of a CONST_DECL is allowed.
437         (create_var_decl): Behavior unchanged. Now a wrapper around
438         create_var_decl_1 allowing CONST_DECL creation.
439         (create_true_var_decl): New function, similar to create_var_decl but
440         forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
441         (create_field_decl): Do not always mark the field as addressable
442         if its type is an aggregate.
443         (global_renaming_pointers): New static variable.
444         (add_global_renaming_pointer): New function.
445         (get_global_renaming_pointers): Likewise.
447         * misc.c (gnat_dwarf_name): New function.
448         (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
449         (gnat_post_options): Add comment about structural alias analysis.
450         (gnat_parse_file): Do not call cgraph_optimize here.
451         (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
453         * trans.c (process_freeze_entity): Don't abort if we already have a
454         non dummy GCC tree for a Concurrent_Record_Type, as it might
455         legitimately have been elaborated while processing the associated
456         Concurrent_Type prior to this explicit freeze node.
457         (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
458         exception handler volatile if it is of variable size.
459         (process_type): Remove bypass for types coming from a limited_with
460         clause.
461         (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
462         actual, convert the corresponding gnu_actual to the real destination
463         type when necessary.
464         (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
465         originally TREE_READONLY but whose elaboration cannot be performed
466         statically.
467         Part of fix for F504-021.
468         (tree_transform, subprogram cases): Change loops on formal parameters to
469         call new Einfo function First_Formal_With_Extras.
470         (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
471         stemming from type conversion for the lhs.
472         (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
473         number of bits per unit for components of records.
474         (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
475         (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
476         with At_End_Proc after the SJLJ EH cleanup.
477         (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
478         compilation unit.
479         (elaborate_all_entities): Do not retest type_annotate_only.
480         (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
481         result type of an abstract subprogram, which may be an itype associated
482         with an anonymous access result (related to AI-318-02).
483         (build_global_cdtor): Move to utils.c.
484         (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
485         this choice is not a null tree nor an integer constant.
486         (gigi): Run unshare_save_expr via walk_tree_without_duplicates
487         on the body of elaboration routines instead of mark_unvisited.
488         (add_stmt): Do not mark the tree.
489         (add_decl_expr): Tweak comment.
490         (mark_unvisited): Delete.
491         (unshare_save_expr): New static function.
492         (call_to_gnu): Issue an error when making a temporary around a
493         procedure call because of non-addressable actual parameter if the
494         type of the formal is by_reference.
495         (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
496         after building the elaboration routine.
498 2006-10-31  Bob Duff  <duff@adacore.com>
500         * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
501         as finalization-started, so we can raise Program_Error on 'new'.
503         * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
504         collection has already started.
506         * s-finimp.ads (Collection_Finalization_Started): Added new special
507         flag value for indicating that a collection's finalization has started.
509         * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
510         create a task whose master has already waited for dependent tasks.
512 2006-10-31  Robert Dewar  <dewar@adacore.com>
514         * lib.adb, lib.ads: (In_Predefined_Unit): New functions
516         * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads, 
517         a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads, 
518         a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads, 
519         a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads, 
520         a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads, 
521         a-except-2005.ads: Add pragma Preelaborable_Warning
523 2006-10-31  Robert Dewar  <dewar@adacore.com>
524             Jose Ruiz  <ruiz@adacore.com>
526         * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
528         * ali.adb (Get_Name): Properly handle scanning of wide character names
529         encoded with brackets notation.
530         (Known_ALI_Lines): Add S lines to this list.
531         (Scan_ALI): Acquire S (priority specific dispatching) lines.
532         New flag Elaborate_All_Desirable in unit table
534         * ali.ads (Priority_Specific_Dispatching): Add this range of
535         identifiers to be used for Priority_Specific_Dispatching table entries.
536         (ALIs_Record): Add First_Specific_Dispatching and
537         Last_Specific_Dispatching that point to the first and last entries
538         respectively in the priority specific dispatching table for this unit.
539         (Specific_Dispatching): Add this table for storing each S (priority
540         specific dispatching) line encountered in the input ALI file.
541         New flag Elaborate_All_Desirable in unit table
543         * bcheck.adb: (Check_Configuration_Consistency): Add call to
544         Check_Consistent_Dispatching_Policy.
545         (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
546         verifying that the use of Priority_Specific_Dispatching,
547         Task_Dispatching_Policy, and Locking_Policy is consistent across the
548         partition.
550         * bindgen.adb: (Public_Version_Warning): function removed.
551         (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
552         required information from ALI files in order to initialize the table
553         containing the specific dispatching policy.
554         (Gen_Adainit_Ada): Generate the variables required for priority specific
555         dispatching entries (__gl_priority_specific_dispatching and
556         __gl_num_specific_dispatching).
557         (Gen_Adainit_C): Generate the variables required for priority specific
558         dispatching entries (__gl_priority_specific_dispatching and
559         __gl_num_specific_dispatching).
560         (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
561         pragma entries.
562         (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
563         (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
564         (Tab_To): Removed.
565         (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
566         a call to gnat_set_globals.
567         Generate a string containing settings from
568         Priority_Specific_Dispatching pragma entries.
569         (Gen_Object_Files_Options): Do not include the runtime libraries when
570         pragma No_Run_Time is specified.
572         * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
573         consistency with s-intman-posix.adb.
574         (__gnat_error_handler, case FreeBSD): Account for the fact that the
575         handler is installed with SA_SIGINFO.
576         (__gnat_adjust_context_for_raise, FreeBSD case): New function for
577         FreeBSD ZCX support, copied from Linux version.
578         Add MaRTE-specific definitions for the linux target. Redefine sigaction,
579         sigfillset, and sigemptyset so the routines defined by MaRTE.
580         (__gl_priority_specific_dispatching): Add this variable that stores the
581         string containing priority specific dispatching policies in the
582         partition.
583         (__gl_num_specific_dispatching): Add this variable that indicates the
584         highest priority for which a priority specific dispatching pragma
585         applies.
586         (__gnat_get_specific_dispatching): Add this routine that returns the
587         priority specific dispatching policy, as set by a
588         Priority_Specific_Dispatching pragma appearing anywhere in the current
589         partition. The input argument is the priority number, and the result
590         is the upper case first character of the policy name.
591         (__gnat_set_globals): Now a dummy function.
592         (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
593         mechargs instead of sigargs, as the latter can be retrieved from the
594         former and sigargs is not what we want on ia64.
595         (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
596         mechargs argument.
597         (__gnat_adjust_context_for_raise, ia64-vms): New function.
598         (tasking_error): Remove unused symbol.
599         (_abort_signal): Move this symbol to the IRIX specific part since this
600         is the only target that uses this definition.
601         (Check_Abort_Status): Move this symbol to the IRIX specific part since
602         this is the only target that uses this definition.
603         (Lock_Task): Remove unused symbol.
604         (Unlock_Task): Remove unused symbol.
606         * lib-writ.adb (Write_ALI): Output new S lines for
607         Priority_Specific_Dispatching pragmas.
608         Implement new flag BD for elaborate body desirable
610         * lib-writ.ads: Document S lines for Priority Specific Dispatching.
611         (Specific_Dispatching): Add this table for storing the entries
612         corresponding to Priority_Specific_Dispatching pragmas.
613         Document new BD flag for elaborate body desirable
615         * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
616         of known pragmas.
618 2006-10-31  Javier Miranda  <miranda@adacore.com>
620         * a-tags.ads, a-tags.adb: 
621         (Predefined_DT): New function that improves readability of the code.
622         (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
623         Inherit_DT): Use the new function Predefined_DT to improve code
624         readability.
625         (Register_Interface_Tag): Update assertion.
626         (Set_Interface_Table): Update assertion.
627         (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
628         determining progenitor interfaces in Tags.
629         (Inherit_CPP_DT): New subprogram.
631         * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
632         analysis of the thunk code.
633         (Expand_Interface_Conversion): Handle run-time conversion of
634         access to class wide types.
635         (Expand_Dispatching_Call): When generating the profile for the
636         subprogram itype for a dispatching operation, properly terminate the
637         formal parameters chaind list (set the Next_Entity of the last formal
638         to Empty).
639         (Collect_All_Interfaces): Removed. This routine has been moved to
640         sem_util and renamed as Collect_All_Abstract_Interfaces.
641         (Set_All_DT_Position): Hidden entities associated with abstract
642         interface primitives are not taken into account in the check for
643         3.9.3(10); this check is done with the aliased entity.
644         (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
645         interfacing with CPP by default.
646         (Expand_Interface_Conversion): Add missing support for static conversion
647         from an interface to a tagged type.
648         (Collect_All_Interfaces): Add new out formal containing the list of
649         abstract interface types to cleanup the subprogram Make_DT.
650         (Make_DT): Update the code to generate the table of interfaces in case
651         of abstract interface types.
652         (Is_Predefined_Dispatching_Alias): New function that returns true if
653         a primitive is not a predefined dispatching primitive but it is an
654         alias of a predefined dispatching primitive.
655         (Make_DT): If the ancestor of the type is a CPP_Class and we are
656         compiling under full ABI compatibility mode we avoid the generation of
657         calls to run-time services that fill the dispatch tables because under
658         this mode we currently inherit the dispatch tables in the IP subprogram.
659         (Write_DT): Emit an "is null" indication for a null procedure primitive.
660         (Expand_Interface_Conversion): Use an address as the type of the formal
661         of the internally built function that handles the case in which the
662         target type is an access type.
664 2006-10-31  Robert Dewar  <dewar@adacore.com>
666         * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
668 2006-10-31  Robert Dewar  <dewar@adacore.com>
670         * bindusg.ads, bindusg.adb:
671         Change to package and rename procedure as Display, which
672         now ensures that it only outputs usage information once.
674 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
676         * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
677         using RTPs.
679         * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
680         when using RTPs.
682 2006-10-31  Robert Dewar  <dewar@adacore.com>
683             Ed Schonberg  <schonberg@adacore.com>
685         * treepr.adb: Use new subtype N_Membership_Test
687         * checks.ads, checks.adb: Add definition for Validity_Check
688         (Range_Or_Validity_Checks_Suppressed): New function
689         (Ensure_Valid): Test Validity_Check suppressed
690         (Insert_Valid_Check): Test Validity_Check suppressed
691         (Insert_Valid_Check): Preserve Do_Range_Check flag
692         (Validity_Check_Range): New procedure
693         (Expr_Known_Valid): Result of membership test is always valid
694         (Selected_Range_Checks): Range checks cannot be applied to discriminants
695         by themselves. Disabling those checks must also be done for task types,
696         where discriminants may be used for the bounds of entry families.
697         (Apply_Address_Clause_Check): Remove side-effects if address expression
698         is non-static and is not the name of a declared constant.
699         (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
700         Code cleanup and new error messages.
701         (Enable_Range_Check): Test for some cases of suppressed checks
702         (Generate_Index_Checks): Suppress index checks if index checks are
703         suppressed for array object or array type.
704         (Apply_Selected_Length_Checks): Give warning for compile-time detected
705         length check failure, even if checks are off.
706         (Ensure_Valid): Do not generate a check on an indexed component whose
707         prefix is a packed boolean array.
708         * checks.adb: (Alignment_Checks_Suppressed): New function
709         (Apply_Address_Clause_Check): New procedure, this is a completely
710         rewritten replacement for Apply_Alignment_Check
711         (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
712         we request a discriminal value only in case of discriminants.
713         (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
714         assignments where the target subtype is unconstrained and the target
715         object is a parameter or dereference (other aliased cases are known
716         to be unconstrained).
718 2006-10-31  Robert Dewar  <dewar@adacore.com>
720         * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
721         prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
722         vms_conv.adb: Fix bad table increment values (much too small)
724         * table.adb (Realloc): Make sure we get at least some new elements
725         Defends against silly small values for table increment
727 2006-10-31  Robert Dewar  <dewar@adacore.com>
728             Ed Schonberg  <schonberg@adacore.com>
729             Bob Duff  <duff@adacore.com>
731         * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
732         entities. Move other fields around to make this possible
733         (Is_Derived_Type): Add missing call to Is_Type.
734         (Extra_Formals): New function for subprograms, entries, subprogram
735         types.
736         (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
737         (First_Formal_With_Extras): New function for subprogs, entries, subp
738         types.
739         (Write_Field28_Name): New procedure for node display of "Extra_Formals".
740         Add node information for E_Return_Statement.
741         (Elaborate_Body_Desirable): New flag
742         (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
743         to be Is_Inherently_Limited_Type, because return-by-reference has
744         no meaning in Ada 2005.
745         (E_Return_Statement): New entity kind.
746         (Return_Applies_To): Field of E_Return_Statement.
747         (Is_Return_Object): New flag in object entities.
748         (Is_Dynamic_Scope): Make it True for E_Return_Statement.
749         (Must_Have_Preelab_Init): New flag
750         (Known_To_Have_Preelab_Init): New flag
751         (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
752         (Is_Visible_Formal): New flag on entities in formal packages.
753         (Low_Bound_Known): New flag
754         (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
755         Incomplete_Kind.
756         (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
757         output when Id is an incomplete subtype.
759 2006-10-31  Robert Dewar  <dewar@adacore.com>
761         * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
762         Avoid abbreviation Creat
763         (Finalize): List all sources in extended mail source if -gnatl
764         switch is active.
765         Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
766         (Finalize): Implement new -gnatl=xxx switch to output listing to file
767         (Set_Specific_Warning_On): New procedure
768         (Set_Specific_Warning_Off): New procedure
769         Add implementation of new insertion \\
770         (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
771         (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
772         types.
773         (Error_Msg_Internal): Make sure that we set Last_Killed to
774         True when a message from another package is suppressed.
775         Implement insertion character ~ (insert string)
776         (First_Node): Minor adjustments to get better placement.
778         * frontend.adb: 
779         Implement new -gnatl=xxx switch to output listing to file
781         * gnat1drv.adb: 
782         Implement new -gnatl=xxx switch to output listing to file
784         * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
785         (Commands_To_Stdout): New flag
786         Implement new -gnatl=xxx switch to output listing to file
787         New switch Dump_Source_Text
788         (Warn_On_Deleted_Code): New warning flag for -gnatwt
789         Define Error_Msg_Line_Length
790         (Warn_On_Assumed_Low_Bound): New switch
792         * osint.ads, osint.adb
793         (Normalize_Directory_Name): Fix bug.
794         Implement new -gnatl=xxx switch to output listing to file
795         (Concat): Removed, replaced by real concatenation
796         Make use of concatenation now allowed in compiler
797         (Executable_Prefix.Get_Install_Dir): First get the full path, so that
798         we find the 'lib' or 'bin' directory even when the tool has been
799         invoked with a relative path.
800         (Executable_Name): New function taking string parameters.
802         * osint-c.ads, osint-c.adb: 
803         Implement new -gnatl=xxx switch to output listing to file
805         * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
807         * switch-c.adb: 
808         Implement new -gnatl=xxx switch to output listing to file
809         Recognize new -gnatL switch
810         (no longer keep in old warning about old style usage)
811         Use concatenation to simplify code
812         Recognize -gnatjnn switch
813         (Scan_Front_End_Switches): Clean up handling of -gnatW
814         (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
816 2006-10-31  Robert Dewar  <dewar@adacore.com>
818         * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
819         (Set_Specific_Warning_Off): New procedure
820         (Warning_Specifically_Suppressed): New function
821         (Validate_Specific_Warnings): New procedure
822         (Output_Msg_Text): Complete rewrite to support -gnatjnn
824         * err_vars.ads: Implement insertion character ~ (insert string)
826 2006-10-31  Bob Duff  <duff@adacore.com>
827             Ed Schonberg  <schonberg@adacore.com>
829         * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
830         the parent part is a build-in-place function call, generate assignments.
831         (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
832         are build-in-place function calls.
833         (Replace_Self_Reference): New subsidiary of
834         Make_OK_Assignment_Statement, to replace an access attribute that is a
835         self-reference into an access to the appropriate component of the
836         target object. Generalizes previous mechanism to handle self-references
837         nested at any level.
838         (Is_Self_Referential_Init): Remove, not needed.
839         (Is_Self_Referential_Init): New predicate to simplify handling of self
840         referential components in record aggregates.
841         (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
842         check for presence of entity before checking for self-reference.
843         (Has_Default_Init_Comps): Return True if a component association is a
844         self-reference to the enclosing type, which can only come from a
845         default initialization.
846         (Make_OK_Assignment_Statement): If the expression is of the form
847         Typ'Acc, where Acc is an access attribute, the expression comes from a
848         default initialized self-referential component.
849         (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
850         that has been derived from several abstract interfaces we must also
851         initialize the tags of the secondary dispatch tables.
853 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
854             Thomas Quinot  <quinot@adacore.com>
855             Javier Miranda  <miranda@adacore.com>
856             Robert Dewar  <dewar@adacore.com>
857         
858         * exp_attr.adb: 
859         (Expand_Access_To_Protected_Op): If the context indicates that an access
860         to a local operation may be transfered outside of the object, create an
861         access to the wrapper operation that must be used in an external call.
862         (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
863         target, pass the Valid attribute applied to a floating-point prefix on
864         to the back end without expansion.
865         (Storage_Size): Use the new run-time function Storage_Size to retrieve
866         the allocated storage when it is specified by a per-object expression.
867         (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
868         Nothing to do here, the attribute has been rewritten during semantic
869         analysis.
870         (Expand_Attribute_Reference): Handle expansion of the new Priority
871         attribute
872         (Find_Fat_Info): Handle case of universal real
873         (Expand_Access_To_Protected_Op): Fix use of access to protected
874         subprogram from inside the body of a protected entry.
875         (Expand_Access_To_Protected_Op): Common procedure for the expansion of
876         'Access and 'Unrestricted_Access, to transform the attribute reference
877         into a fat pointer.
878         (Is_Constrained_Aliased_View): New predicate to help determine whether a
879         subcomponent's enclosing variable is aliased with a constrained subtype.
880         (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
881         test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
882         an aliased prefix must be known to be constrained in order to use True
883         for the attribute value, and now it's possible for some aliased views
884         to be unconstrained.
886 2006-10-31  Robert Dewar  <dewar@adacore.com>
888         * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
889         (Expand_Entity_Reference): Correct error of not handling subprogram
890         formals in current_value processing.
892 2006-10-31  Javier Miranda  <miranda@adacore.com>
893             Robert Dewar  <dewar@adacore.com>
894             Ed Schonberg  <schonberg@adacore.com>
895             Gary Dismukes  <dismukes@adacore.com>
897         * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
898         register in the final list objects containing class-wide interfaces;
899         otherwise we incorrectly register the tag of the interface in the final
900         list.
901         (Make_Controlling_Function_Wrappers): Add missing barrier to do not
902         generate the wrapper if the parent primitive is abstract. This is
903         required to report the correct error message.
904         (Expand_N_Subtype_Indication): Do validity checks on range
905         (Clean_Task_Names): If an initialization procedure includes a call to
906         initialize a task (sub)component, indicate that the procedure will use
907         the secondary stack.
908         (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
909         compatibility for interfacing with CPP by default.
910         (Expand_N_Object_Declaration): Only build an Adjust call when the
911         object's type is a nonlimited controlled type.
912         * exp_ch3.adb: Add with and use of Exp_Ch6.
913         (Expand_N_Object_Declaration): Check for object initialization that is a
914         call to build-in-place function and apply Make_Build_In_Place_Call_In_
915         Object_Declaration to the call.
916         (Freeze_Type): When the designated type of an RACW was not frozen at the
917         point where the RACW was declared, validate the primitive operations
918         with respect to E.2.2(14) when it finally is frozen.
919         (Build_Initialization_Call,Expand_Record_Controller): Rename
920         Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
921         return-by-reference has no meaning in Ada 2005.
922         (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
923         to register tag of the immediate ancestor interfaces in the
924         run-time structure.
925         (Init_Secondary_Tags): Moved to the specification to allow the
926         initialization of extension aggregates with abstract interfaces.
927         (Build_Master_Renaming): Make public, for use by function declarations
928         whose return type is an anonymous access type.
929         (Freeze_Record_Type): Replace call to Insert_List_Before by call to
930         Insert_List_Before_And_Analyze after the generation of the specs
931         associated with null procedures.
932         (Expand_Tagged_Root): Update documentation in its specification.
933         (Init_Secondary_Tags): Update documentation.
934         (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
935         tibility mode and the immediate ancestor is a CPP_Pragma tagged type
936         then generate code to inherit the contents of the dispatch table
937         directly from the ancestor.
938         (Expand_Record_Controller): Insert controller component after tags of
939         implemented interfaces.
940         (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
941         create null procedure overridings when null procedures are inherited
942         from interfaces.
943         (Make_Null_Procedure_Specs): New procedure to generate null procedure
944         declarations for overriding null primitives inherited from interfaces.
945         (Is_Null_Interface_Procedure): New function in
946         Make_Null_Procedure_Specs.
947         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
948         immediate ancestor of a tagged type is an abstract interface type we
949         must generate the specification of the predefined primitives associated
950         with controlled types (because the dispatch table of the ancestor is
951         null and hence these entries cannot be inherited). This is required to
952         elaborate well the dispatch table.
954 2006-10-31  Javier Miranda  <miranda@adacore.com>
955             Ed Schonberg  <schonberg@adacore.com>
956             Bob Duff  <duff@adacore.com>
957             Gary Dismukes  <dismukes@adacore.com>
958             Robert Dewar  <dewar@adacore.com>
959         
960         * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
961         conversion.
962         (Expand_N_In): Do validity checks on range
963         (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
964         (Expand_N_Allocator): For "new T", if the object is constrained by
965         discriminant defaults, allocate the right amount of memory, rather than
966         the maximum for type T.
967         (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
968         when the allocator is initialized by a build-in-place call, since the
969         allocator is already rewritten as a reference to the function result,
970         and this prevents an unwanted duplication of the function call.
971         Add with and use of Exp_Ch6.
972         (Expand_Allocator_Expresssion): Check for an allocator whose expression
973         is a call to build-in-place function and apply
974         Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
975         untagged designated types).
976         (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
977         optimization if source or target is biased.
978         (Expand_N_Allocator): Add comments for case of an allocator within a
979         function that returns an anonymous access type designating tasks.
980         (Expand_N_Allocator): apply discriminant checks for access
981         discriminants of anonymous access types (AI-402, AI-416)
983 2006-10-31  Bob Duff  <duff@adacore.com>
984             Robert Dewar  <dewar@adacore.com>
985             Gary Dismukes  <dismukes@adacore.com>
986             Ed Schonberg  <schonberg@adacore.com>
988         * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
990         * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
991         (Expand_N_Assignment_Statement): Call
992         Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
993         build-in-place function call. Currently, this can happen only for
994         assignments that come from aggregates.
995         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
996         in order to alleviate the upward compatibility introduced by AI-318.
997         (Expand_N_Extended_Return_Statement): Add support for handling the
998         return object as a build-in-place result.
999         (Expand_Non_Function_Return): Implement simple return statements nested
1000         within an extended return.
1001         (Enable_New_Return_Processing): Turn on the new processing of return
1002         statements.
1003         (Expand_Non_Function_Return): For a return within an extended return,
1004         don't raise Program_Error, because Sem_Ch6 now gives a warning.
1005         (Expand_N_Extended_Return_Statement): Implement AI-318
1006         (Expand_Simple_Function_Return): Ditto.
1007         (Expand_N_If_Statement): Handle new -gnatwt warning
1008         (Expand_N_Case_Statement): Handle new -gnatwt warning
1009         (Expand_N_Assignment): Handle assignment to the Priority attribute of
1010         a protected object.
1011         (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
1012         validity checking of assignments to elementary record components.
1013         (Expand_N_Return_Statement): return Class Wide types on the secondary
1014         stack independantly of their controlled status since with HIE runtimes,
1015         class wide types are not potentially controlled anymore.
1017         * expander.adb (Expand): Add case for new N_Extended_Return_Statement
1018         node kind.
1020         * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
1021         Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
1022         it expects a block, procedure, or task. The return statement will get
1023         turned into a block, and Expand_Cleanup_Actions will happen then.
1025 2006-10-31  Robert Dewar  <dewar@adacore.com>
1026             Ed Schonberg  <schonberg@adacore.com>
1027             Bob Duff  <duff@adacore.com>
1028             Gary Dismukes  <dismukes@adacore.com>
1030         * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
1031         capability.
1032         (Expand_Inlined_Call): Tagged types are by-reference types, and
1033         therefore should be replaced by a renaming declaration in the expanded
1034         body, as is done for limited types.
1035         (Expand_Call): If this is a call to a function with dispatching access
1036         result, propagate tag from context.
1037         (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
1038         CPP by default.
1039         (Make_Build_In_Place_Call_In_Assignment): New procedure to do
1040         build-in-place when the right-hand side of an assignment is a
1041         build-in-place function call.
1042         (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
1043         of the explicit dereference of the allocator to the result subtype of
1044         the build-in-place function. This is needed to satisfy type checking
1045         in cases where the caller's return object is created by an allocator for
1046         a class-wide access type and the type named in the allocator is a
1047         specific type.
1048         (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
1049         conversion of the reference to the declared object to the result subtype
1050         of the build-in-place function. This is needed to satisfy type checking
1051         in cases where the declared object has a class-wide type. Also, in the
1052         class-wide case, change the type of the object entity to the specific
1053         result subtype of the function, to avoid passing a class-wide object
1054         without explicit initialization to the back end.
1055         (Register_Interface_DT_Entry): Moved outside the body of
1056         Freeze_Subprogram because this routine is now public; it is called from
1057         Check_Dispatching_Overriding to handle late overriding of abstract
1058         interface primitives.
1059         (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
1060         adding an implicit access actual on a call to a build-in-place function.
1061         (Expand_Actuals): Test for an actual parameter that is a call to a
1062         build-in-place function and apply
1063         Make_Build_In_Place_Call_In_Anonymous_Context to the call.
1064         (Is_Build_In_Place_Function): New function to determine whether an
1065         entity is a function whose calls should be handled as build-in-place.
1066         (Is_Build_In_Place_Function_Call): New function to determine whether an
1067         expression is a function call that should handled as build-in-place.
1068         (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
1069         calls to build-in-place functions as the initialization of an allocator.
1070         (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
1071         handling calls to build-in-place functions in contexts that do not
1072         involve init of a separate object (for example, actuals of subprogram
1073         calls).
1074         (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
1075         handling calls to build-in-place functions as the initialization of an
1076         object declaration.
1077         (Detect_Infinite_Recursion): Add explicit parameter Process to
1078         instantiation of Traverse_Body to avoid unreferenced warning.
1079         (Check_Overriding_Inherited_Interfaces): Removed.
1080         (Register_Interface_DT_Entry): Code cleanup.
1081         (Register_Predefined_DT_Entry): Code cleanup.
1082         (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
1083         inlined statements if within a transient scope.
1084         (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
1085         formal parameters with occurrences of actuals in inlined body, establish
1086         visibility on the proper view of the actual's subtype for the body's
1087         context.
1088         (Freeze_Subprogram): Do nothing if we are compiling under full ABI
1089         compatibility mode and we have an imported CPP subprogram because
1090         for now we assume that imported CPP primitives correspond with
1091         objects whose constructor is in the CPP side (and therefore we
1092         don't need to generate code to register them in the dispatch table).
1093         (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
1094         aligned selected component.
1095         (Add_Call_By_Copy_Node): Add missing code to handle the case in which
1096         the actual of an in-mode parameter is a type conversion.
1097         (Expand_Actuals): If the call does not come from source and the actual
1098         is potentially misaligned, let gigi handle it rather than rejecting the
1099         (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
1100         Class Wide types as returning by reference independantly of their
1101         controlled status since with HIE runtimes class wide types are not
1102         potentially controlled anymore.
1104 2006-10-31  Ed Schonberg  <schonberg@adacore.com>             
1106         * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
1107         references that are private components of the protected object.
1108         (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
1109         (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
1110         instantiation to deal with warnings.
1111         (Initialize_Protection): If expression for priority is non-static, use
1112         System_Priority as its expected type, in case the expression has not
1113         been analyzed yet.
1115 2006-10-31  Robert Dewar  <dewar@adacore.com>
1117         * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
1118         initialization of Homonym_Len.
1119         (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
1120         names from fully qualified name. Fixes problem of duplicate
1121         external names differing only in the presence of such a block name.
1123 2006-10-31  Thomas Quinot  <quinot@adacore.com>
1124             Pablo Oliveira  <oliveira@adacore.com>
1125         
1126         * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
1127         subprogram Ids, even if they are not yet assigned.
1128         (Build_Subprogram_Id): It is now this function that will take care of
1129         calling Assign_Subprogram_Ids if necessary.
1130         (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
1131         should be done only once they are assigned.
1132         (Build_From_Any_Function, case of tagged types): Add missing call to
1133         Allocate_Buffer.
1134         (Corresponding_Stub_Type): New subprogram. Returns the associated stub
1135         type for an RACW type.
1136         (Add_RACW_Features): When processing an RACW declaration for which the
1137         designated type is already frozen, enforce E.2.2(14) rules immediately.
1138         (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
1139         special reordering of controlling formals.
1141         * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
1142         associated stub type for an RACW type.
1144 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
1146         * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
1147         fixed-point operations in an integer context, i.e. as operands of a
1148         conversion to an integer type, indicate that result must be rounded.
1150 2006-10-31  Robert Dewar  <dewar@adacore.com>
1152         * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
1153         cases, pass the encoding method, since it is now required by the run
1154         time.
1156         * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
1157         assumption that Str'First = 1.
1158         (Value_Wide_Character): Takes EM (encoding method) parameter and passes
1159         it on to the Value_Wide_Wide_Character call.
1160         (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
1161         properly handles a string of the form quote-encoded_wide_char-quote.
1163         * s-wchcnv.adb: Minor reformatting
1165 2006-10-31  Javier Miranda  <miranda@adacore.com>
1166         
1167         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
1168         run-time membership test to ensure that the constructed object
1169         implements the target abstract interface.
1171 2006-10-31  Robert Dewar  <dewar@adacore.com>
1173         * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
1174         Machine_Attribute pragma internally to implement the user pragma.
1175         Add processing for pragma Interface so that it is now completely
1176         equivalent to pragma Import.
1178         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
1179         so that it can be applied to all entities, including record components
1180         and enumeration literals.
1181         (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
1182         priority ranges are correct, verify compatibility against task
1183         dispatching and locking policies, and if everything is correct an entry
1184         is added to the table containing priority specific dispatching entries
1185         for this compilation unit.
1186         (Delay_Config_Pragma_Analyze): Delay processing
1187         Priority_Specific_Dispatching pragmas because when processing the
1188         pragma we need to access run-time data, such as the range of
1189         System.Any_Priority.
1190         (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
1191         Allow pragma Unreferenced as a context item
1192         Add pragma Preelaborable_Initialization
1193         (Analyze_Pragma, case Interface): Interface is extended so that it is
1194         now syntactically and semantically equivalent to Import.
1195         (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
1196         insertion characters.
1197         Add handling for Pragma_Wide_Character_Encoding
1198         (Process_Restrictions_Restriction_Warnings): Ensure that a warning
1199         never supercedes a real restriction, and that a real restriction
1200         always supercedes a warning.
1201         (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
1202         appropriate form.
1204 2006-10-31  Bob Duff  <duff@adacore.com>
1205             Ed Schonberg  <schonberg@adacore.com>
1206             Robert Dewar  <dewar@adacore.com>
1208         * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
1209         Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
1210         Is_Inherently_Limited_Type, because return-by-reference has no meaning
1211         in Ada 2005.
1212         (Find_Node_To_Be_Wrapped): Use new method of determining the result
1213         type of the function containing a return statement, because the
1214         Return_Type field was removed. We now use the Return_Applies_To field.
1216         * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
1217         (Build_Task_Image_Decl): If procedure is not called from an
1218         initialization procedure, indicate that function that builds task name
1219         uses the sec. stack. Otherwise the enclosing initialization procedure
1220         will carry the indication.
1221         (Insert_Actions): Remove N_Return_Object_Declaration. We now use
1222         N_Object_Declaration instead.
1223         (Kill_Dead_Code): New interface to implement -gnatwt warning for
1224         conditional dead code killed, and change implementation accordingly.
1225         (Insert_Actions): Add N_Return_Object_Declaration case.
1226         Correct comment to mention N_Extension_Aggregate node.
1227         (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
1228         attempts to save information for global variables which cannot be
1229         safely tracked.
1230         (Get_Current_Value_Condition): Handle conditions the other way round
1231         (constant on left). Also handle right operand of AND and AND THEN
1232         (Set_Current_Value_Condition): Corresponding changes
1233         (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
1234         (Get_Current_Value_Condition): Handle simple boolean operands
1235         (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
1236         (Get_Current_Value_Condition): If the variable reference is within an
1237         if-statement, does not appear in the list of then_statments, and does
1238         not come from source, treat it as being at unknown location.
1239         (Get_Current_Value_Condition): Enhance to allow while statements to be
1240         processed as well as if statements.
1241         (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
1242         come from source.
1243         (OK_To_Do_Constant_Replacement): Allow constant replacement within body
1244         of loop. This is safe now that we fixed Kill_Current_Values.
1245         (OK_To_Do_Constant_Replacement): Check whether current scope is
1246         Standard, before examining outer scopes.
1248 2006-10-31  Vincent Celier  <celier@adacore.com>
1250         * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
1251         When True, apply VMS treatment to children of packages A, G, I and S.
1252         For F320-016
1254         * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
1256 2006-10-31  Robert Dewar  <dewar@adacore.com>
1257             Ed Schonberg  <schonberg@adacore.com>
1259         * freeze.adb: Add handling of Last_Assignment field
1260         (Warn_Overlay): Supply missing continuation marks in error msgs
1261         (Freeze_Entity): Add check for Preelaborable_Initialization
1263         * g-comlin.adb: Add Warnings (Off) to prevent new warning
1265         * g-expect.adb: Add Warnings (Off) to prevent new warning
1267         * lib-xref.adb: Add handling of Last_Assignment field
1268         (Generate_Reference): Centralize handling of pragma Obsolescent here
1269         (Generate_Reference): Accept an implicit reference generated for a
1270         default in an instance.
1271         (Generate_Reference): Accept a reference for a node that is not in the
1272         main unit, if it is the generic body corresponding to an subprogram
1273         instantiation.
1275         * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
1277         * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
1278         -gnatwq/Q.
1279         (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
1280         exception handler.
1281         (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
1282         use clauses, to avoid messages on packages used to qualify, and also
1283         to avoid messages from obsolescent units.
1284         (Warn_On_Useless_Assignments): Don't generate messages for imported
1285         and exported variables.
1286         (Warn_On_Useless_Assignments): New procedure
1287         (Output_Obsolescent_Entity_Warnings): New procedure
1288         (Check_Code_Statement): New procedure
1290         * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
1291         Change name Is_Ada_2005 to Is_Ada_2005_Only
1292         (Last_Assignment): New field for useless assignment warning
1294 2006-10-31  Olivier Hainque  <hainque@adacore.com>
1296         * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
1297         closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
1299 2006-10-31  Bob Duff  <duff@adacore.com>
1300             Robert Dewar  <dewar@adacore.com>
1301             Ed Schonberg  <schonberg@adacore.com>
1303         * g-awk.adb (Default_Session, Current_Session): Compile this file in
1304         Ada 95 mode, because it violates the new rules for AI-318.
1306         * g-awk.ads: Use overloaded subprograms in every case where we used to
1307         have a default of Current_Session. This makes the code closer to be
1308         correct for both Ada 95 and 2005.
1310         * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
1311         code, relying on the fact that the compiler generates a warning
1312         instead of an error in -gnatg mode.
1314         * lib-xref.ads (Xref_Entity_Letters): Add entry for new
1315         E_Return_Statement entity kind.
1316         Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
1318         * par.adb (P_Interface_Type_Definition): Addition of one formal to
1319         report an error if the reserved word abstract has been previously found.
1320         (SS_End_Type): Add E_Return for new extended_return_statement syntax.
1321         
1322         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
1323         parenthesized range attribute usage
1324         (P_Expression_No_Right_Paren): Add missing comment about error recovery.
1326         * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
1327         in the syntax for extended_return_statement. This is not in the latest
1328         RM, but the ARG is expected to issue an AI allowing this.
1329         (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
1330         N_Return_Object_Declaration. We now use N_Object_Declaration instead.
1331         (P_Return_Object_Declaration, P_Return_Subtype_Indication,
1332         P_Return_Statement): Parse the new syntax for extended_return_statement.
1334         * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
1335         Output_End_Missing): Add error-recovery code for the new
1336         extended_return_statement syntax; that is, the new E_Return entry on
1337         the scope stack.
1339         * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
1340         limited to nonlimited, because otherwise we violate the new Ada 2005
1341         rules about returning limited types in function Create_AST_Handler in
1342         s-asthan.adb.
1344         * sem.adb (Analyze): Add cases for new node kinds
1345         N_Extended_Return_Statement and N_Return_Object_Declaration.
1347         * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
1348         type is in the same category as type of context before applying check,
1349         to prevent anomalies in instantiations.
1350         (Resolve_Aggregate): Remove test for limited components in aggregates.
1351         It's unnecessary in Ada 95, because if it has limited components, then
1352         it must be limited. It's wrong in Ada 2005, because limited aggregates
1353         are now allowed.
1354         (Resolve_Record_Aggregate): Move check for limited types later, because
1355         OK_For_Limited_Init requires its argument to have been resolved.
1356         (Get_Value): When copying the component default expression for a
1357         defaulted association in an aggregate, use the sloc of the aggregate
1358         and not that of the original expression, to prevent spurious
1359         elaboration errors, when the expression includes function calls.
1360         (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
1361         were missing. We also didn't handle qualified expressions. Now also
1362         allow function calls. Use new common routine OK_For_Limited_Init.
1363         (Resolve_Extension_Aggregate): Minor fix to bad error message (started
1364         with space can upper case letter).
1366         * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
1367         Has_Static_Discriminants flag
1368         (Record_Type_Declaration): Diagnose an attempt to declare an interface
1369         type with discriminants.
1370         (Process_Range_Expr_In_Decl): Do validity checks on range
1371         (Build_Discriminant_Constraints): Use updated form of
1372         Denotes_Discriminant.
1373         (Process_Subtype): If the subtype is a private subtype whose full view
1374         is a concurrent subtype, introduce an itype reference to prevent scope
1375         anomalies in gigi.
1376         (Build_Derived_Record_Type, Collect_Interface_Primitives,
1377         Record_Type_Declaration):  The functionality of the subprograms
1378         Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
1379         is now performed by a single routine.
1380         (Build_Derived_Record_Type): If the type definition includes an explicit
1381         indication of limitedness, then the type must be marked as limited here
1382         to ensure that any access discriminants will not be treated as having
1383         a local anonymous access type.
1384         (Check_Abstract_Overriding): Issue a detailed error message when an
1385         abstract subprogram was not overridden due to incorrect mode of its
1386         first parameter.
1387         (Analyze_Private_Extension_Declaration): Add support for the analysis of
1388         synchronized private extension declarations. Verify that the ancestor is
1389         a limited or synchronized interface or in the generic case, the ancestor
1390         is a tagged limited type or synchronized interface and all progenitors
1391         are either limited or synchronized interfaces.
1392         Derived_Type_Declaration): Check for presence of private extension when
1393         dealing with synchronized formal derived types.
1394         Process_Full_View): Enchance the check done on the usage of "limited" by
1395         testing whether the private view is synchronized.
1396         Verify that a synchronized private view is completed by a protected or
1397         task type.
1398         (OK_For_Limited_Init_In_05): New function.
1399         (Analyze_Object_Declaration): Move check for limited types later,
1400         because OK_For_Limited_Init requires its argument to have been resolved.
1401         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
1402         in order to alleviate the upward compatibility introduced by AI-318.
1403         (Constrain_Corresponding_Record): If the constraint is for a component
1404         subtype, mark the itype as frozen, to avoid out-of-scope references to
1405         discriminants in the back-end.
1406         (Collect_Implemented_Interfaces): Protect the recursive algorithm of
1407         this subprogram against wrong sources.
1408         (Get_Discr_Value, Is_Discriminant): Handle properly references to a
1409         discriminant of limited type completed with a protected type, when the
1410         discriminant is used to constrain a private component of the type, and
1411         expansion is disabled.
1412         (Find_Type_Of_Object): Do not treat a return subtype that is an
1413         anonymous subtype as a local_anonymous_type, because its accessibility
1414         level is the return type of the enclosing function.
1415         (Check_Initialization): In -gnatg mode, turn the error "cannot
1416         initialize entities of limited type" into a warning.
1417         (OK_For_Limited_Init): Return true for generated nodes, since it
1418         sometimes violates the legality rules.
1419         (Make_Incomplete_Declaration): If the type for which an incomplete
1420         declaration is created happens to be the currently visible entity,
1421         preserve the homonym chain when removing it from visibility.
1422         (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
1423         inherited subprograms.
1424         (Access_Definition): If this is an access to function that is the return
1425         type of an access_to_function definition, context is a type declaration
1426         and the scope of the anonymous type is the current one.
1427         (Analyze_Subtype_Declaration): Add the defining identifier of a regular
1428         incomplete subtype to the set of private dependents of the original
1429         incomplete type.
1430         (Constrain_Discriminated_Type): Emit an error message whenever an
1431         incomplete subtype is being constrained.
1432         (Process_Incomplete_Dependents): Transform an incomplete subtype into a
1433         corresponding subtype of the full view of the original incomplete type.
1434         (Check_Incomplete): Properly detect invalid usage of incomplete types
1435         and subtypes.
1437 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
1439         * g-catiio.ads, g-catiio.adb (Value): New function.
1440         Given an input String, try and parse a valid Time value.
1442 2006-10-31  Vincent Celier  <celier@adacore.com>
1444         * g-debpoo.adb (Is_Valid): Correctly compute Offset using
1445         Integer_Address arithmetic, as in Set_Valid.
1447 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
1448             Robert Dewar  <dewar@adacore.com>
1450         * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
1451         handling executable extension manually and duplicating code.
1453         * make.adb: Implement new -S switch
1454         (Gnatmake): Use new function Osint.Executable_Name instead
1455         of handling executable extension manually.
1457         * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
1458         is specified, the executable name ends with this suffix.
1459         Take advantage of Osint.Executable_Name instead of duplicating code.
1461         * switch-m.adb: Recognize new gnatmake -S switch
1463         * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
1464         variable.
1465         (Get_Target_Parameters): Set Executable_Extension_On_Target if
1466         available.
1468         * makeusg.adb: Add line for gnatmake -S switch
1470 2006-10-31  Vincent Celier  <celier@adacore.com>
1472         * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
1473         call it with -static-libgcc, as there are some platforms, such as
1474         Darwin, where one of these two switches is compulsory to link.
1476 2006-10-31  Vincent Celier  <celier@adacore.com>
1477         
1478         * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
1479         instead of ADA_PROJECT_PATH, for the project path.
1480         (Gnatls): When displaying the project path directories, use host dir
1481         specs.
1483         * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
1484         names in the project path, as absolute paths may correspond to
1485         multi-valued VMS logical names.
1487 2006-10-31  Vincent Celier  <celier@adacore.com>
1489         * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
1490         absolute path name.
1491         (Locate_Regular_File): Ditto
1492         (Change_Dir): Remove, no longer used
1493         (Normalize_Pathname): Do not use Change_Dir to get the drive letter
1494         on Windows. Get it calling Get_Current_Dir.
1495         (OpenVMS): Remove imported boolean, no longer needed.
1496         (Normalize_Pathname)[VMS]: Do not resolve directory names.
1497         (Pid_To_Integer): New function to convert a Process_Id to  Integer
1499 2006-10-31  Thomas Quinot  <quinot@adacore.com>
1501         * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
1502         sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
1503         to No_Socket.
1504         (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
1505         W_Sig_Socket.
1507 2006-10-31  Robert Dewar  <dewar@adacore.com>
1509         * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
1510         initial letter o as a zero.
1512 2006-10-31  Robert Dewar  <dewar@adacore.com>
1514         * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
1516 2006-10-31  Robert Dewar  <dewar@adacore.com>
1518         * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
1519         variant records
1520         (Layout_Variant_Record): Retrieve the discriminants from the entity
1521         rather than from the type definition, because in the case of a full
1522         type for a private type we need to take the discriminants from the
1523         partial view.
1524         (Layout_Component_List): When applying the Max operator to variants with
1525         a nonstatic size, check whether either operand is static and scale that
1526         operand from bits to storage units before applying Max.
1527         (Layout_Type): In VMS, if a C-convention access type has no explicit
1528         size clause (and does not inherit one in the case of a derived type),
1529         then the size is reset to 32 from 64.
1531 2006-10-31  Vincent Celier  <celier@adacore.com>
1533         * lib-load.adb (Load_Unit): Skip the test for a unit not found when
1534         its file has already been loaded, according to the unit being loaded,
1535         not to the current value of Multiple_Unit_Index.
1537 2006-10-31  Thomas Quinot  <quinot@adacore.com>
1538             Eric Botcazou  <ebotcazou@adacore.com>
1539             Arnaud Charlet  <charlet@adacore.com>
1541         * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
1542         (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
1543         possible.
1544         (a-except.o): Pass it to the compiler.
1545         (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
1546         (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
1547         a-calend-mingw.adb version.
1549         * Makefile.rtl: Added s-dsaser.
1550         Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
1551         (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
1552         Ada.Dispatching.Round_Robin.
1553         Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
1555         * Make-lang.in: Remove all references to gt-ada-decl.h.
1556         Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
1557         sources.
1558         Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
1559         Update dependencies.
1561         * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
1563 2006-10-31  Vincent Celier  <celier@adacore.com>
1565         * mlib-utl.adb (Initialized): Remove, no longer used
1566         (Initialize): Remove, no longer used
1567         (Ar): If Ar_Exec is null, get the location of the archive builder and,
1568         if there is one, the archive indexer. Fail if the archive builder cannot
1569         be found.
1570         (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
1571         be found.
1573 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
1575         * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
1576         Process_Body_Clauses): If the context of a body includes a use clause
1577         for P.Q then a with_clause for P in the same body is not redundant,
1578         even if the spec also has a with_clause on P.
1579         Add missing continuation mark to error msg
1580         (Build_Limited_Views): A limited view of a type is tagged if its
1581         declaration includes a record extension.
1582         (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
1583         node, even if the subunit has errors. This avoids malfunction by
1584         Lib.Check_Same_Extended_Unit in the presence of syntax errors.
1585         (Analyze_Compilation_Unit): Add circuit to make sure we get proper
1586         generation of obsolescent messages for with statements (cannot do
1587         this too early, or we cannot implement avoiding the messages in the
1588         case of obsolescent units withing obsolescent units).
1589         (Install_Siblings): If the with_clause is on a remote descendant of
1590         an ancestor of the current compilation unit, find whether there is
1591         a sibling child unit that is immediately visible.
1592         (Remove_Private_With_Clauses): New procedure, invoked after completing
1593         the analysis of the private part of a nested package, to remove from
1594         visibility the private with_clauses of the enclosing package
1595         declaration.
1596         (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
1597         now centralized in Generate_Reference.
1598         (Install_Limited_Context_Clauses): Remove superfluous error
1599         message associated with unlimited view visible through use
1600         and renamings. In addition, at the point in which the error
1601         is reported, we add the backslash to the text of the error
1602         to ensure that it is reported as a single error message.
1603         Use new // insertion for some continuation messages
1604         (Expand_Limited_With_Clause): Use copy of name rather than name itself,
1605         to create implicit with_clause for parent unit mentioned in original
1606         limited_with_clause.
1607         (Install_Limited_With_Unit): Set entity of parent identifiers if the
1608         unit is a child unit. For ASIS queries.
1609         (Analyze_Subunit): If the subunit appears within a child unit, make all
1610         ancestor child units directly visible again.
1612 2006-10-31  Robert Dewar  <dewar@adacore.com>
1614         * par-ch10.adb (P_Context_Clause): Minor error message fix
1616 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
1617             Javier Miranda  <miranda@adacore.com>
1619         * par-ch12.adb: Grammar update and cleanup.
1620         (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
1621         support for synchronized derived type definitions.
1622         Add the new actual Abstract_Present to every call to
1623         P_Interface_Type_Definition.
1624         (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
1625         a formal object declaration with an access definition or a subtype mark
1626         with a null exclusion.
1627         (P_Generic_Association): Handle association with box, and others_choice
1628         with box, to support Ada 2005 partially parametrized formal packages.
1630 2006-10-31  Robert Dewar  <dewar@adacore.com>
1631             Javier Miranda  <miranda@adacore.com>
1632         
1633         * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
1634         (P_Type_Declaration): Remove barrier against the reserved word "limited"
1635         after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
1636         (P_Type_Declaration): Minor code cleanup. Add support for synchronized
1637         private extensions.
1638         (P_Type_Declaration): Add the new actual Abstract_Present to every call
1639         to P_Interface_Type_Definition.
1640         (P_Interface_Type_Definition): Addition of one formal to report an error
1641         if the reserved word abstract has been previously found.
1642         (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
1643         object renaming declaration with an access definition or subtype mark
1644         with a possible null exclusion.
1646         * par-ch9.adb: Minor error msg fix
1648         * par-load.adb: Add missing continuation mark to error msg
1650         * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
1652 2006-10-31  Vincent Celier  <celier@adacore.com>
1654         * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
1655         unknown attribute in unknown package or in package that does not need
1656         to be checked.
1657         (Parse_Package_Declaration): Do not issue warning for unknown package in
1658         quiet output.
1660 2006-10-31  Vincent Celier  <celier@adacore.com>
1662         * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
1663         (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
1664         Packages_To_Check.
1666 2006-10-31  Vincent Celier  <celier@adacore.com>
1668         * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
1669         on VMS, change "__" to '.' before checking the name.
1670         (Record_Ada_Source): Always add the source file name in the list of
1671         of sources, even if it is not the first time, as it is for another
1672         source index.
1673         (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
1674         dot, instead of replacing only the first '_'.
1676         * prj-part.adb (Parse): Convert project file path to canonical form
1678         * prj-proc.adb (Recursive_Process): Make sure that, when a project is
1679         extended, the project id of the project extending it is recorded in its
1680         data, even when it has already been processed as an imported project.
1682 2006-10-31  Robert Dewar  <dewar@adacore.com>
1684         * repinfo.adb (List_Entities): Don't list entities from renaming
1685         declarations.
1687 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
1688             Robert Dewar  <dewar@adacore.com>
1690         * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
1691         only a restriction warning is active for the given restriction. This is
1692         desirable because we do not want to modify code in the case where only
1693         a warning is set.
1694         (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
1695         causes overriding of real restrictions.
1696         Take advantage of new No_Restrictions constant.
1698         * raise.h: (__gnat_set_globals): Change profile.
1700 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
1701         
1702         * rtsfind.adb: Remove s-polint from comment as it exists no more.
1704         * rtsfind.ads: 
1705         Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
1706         Move all the entities in obsolete package System.PolyORB_Interface to
1707         System.Partition_Interface.
1708         (RE_Storage_Size): New function in System.Tasking.
1709         (RE_Get_Ceiling): New entity.
1710         (RE_Set_Ceiling): New entity.
1711         (RO_PE_Get_Ceiling): New entity.
1712         (RO_RE_Set_Ceiling): New entity.
1713         (Inherit_CPP_DT): New entity
1715 2006-10-31  Robert Dewar  <dewar@adacore.com>
1717         * scng.adb (Scan, case of numeric literal): Better msg for identifier
1718         starting with a digit.
1720 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
1721             Thomas Quinot  <quinot@adacore.com>
1722             Javier Miranda  <miranda@adacore.com>
1723             Gary Dismukes  <dismukes@adacore.com>
1725         * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
1726         properly an attempt to apply Unchecked_Access to a protected operation.
1727         (OK_Self_Reference): New subprogram to check the legality of an access
1728         attribute whose prefix is the type of an enclosing aggregate.
1729         Generalizes previous mechanism to handle attribute references nested
1730         arbitrarily deep within the aggregate.
1731         (Analyze_Access_Attribute): An access attribute whose prefix is a type
1732         can appear in an aggregate if this is a default-initialized aggregate
1733         for a self-referential type.
1734         (Resolve_Attribute, case Access): Ditto.
1735         Add support for new implementation defined attribute Stub_Type.
1736         (Eval_Attribute, case Attribute_Stub_Type): New case.
1737         (Analyze_Attribute, case Attribute_Stub_Type): New case.
1738         (Stream_Attribute_Available): Implement using new subprogram from
1739         sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
1740         Has_Specified_Stream_Attribute flag.
1741         Disallow Storage_Size and Storage_Pool for access to subprogram
1742         (Resolve_Attribute, case 'Access et al): Take into account anonymous
1743         access types of return subtypes in extended return statements. Remove
1744         accessibility checks on anonymous access types when Unchecked_Access is
1745         used.
1746         (Analyze_Attribute): Add support for the use of 'Class to convert
1747         a class-wide interface to a tagged type.
1748         Add support for the attribute Priority.
1749         (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
1750         whether the designated type is discriminated with a constrained partial
1751         view and require static matching in that case.
1752         Add local variable Des_Btyp. The Designated_Type
1753         of an access to incomplete subtype is either its non-limited view if
1754         coming from a limited with or its etype if regular incomplete subtype.
1756         * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
1757         Fix predicate to identify and allow cases of (expander-generated)
1758         references to tag of designated object of a RACW.
1759         (Validate_Static_Object_Name): In Ada 2005, a formal object is
1760         non-static, and therefore cannot appear as a primary in a preelaborable
1761         package.
1762         (Has_Stream_Attribute_Definition): New subprogram, abstracted from
1763         Has_Read_Write_Attributes.
1764         (Has_Read_Write_Attributes): Reimplement in termes of
1765         Has_Stream_Attribute_Definition.
1766         (Missing_Read_Write_Attributes): When checking component types in a
1767         record, unconditionally call Missing_Read_Write_Attributes recursively
1768         (remove guard checking for Is_Record_Type / Is_Access_Type).
1770 2006-10-31  Robert Dewar  <dewar@adacore.com>
1772         * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
1773         useless assignments here and conditionalize it on absence of exception
1774         handlers.
1775         (Analyze_Exception_Handlers): Small code reorganization of error
1776         detection code, for new handling of formal packages.
1778 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
1779             Hristian Kirtchev  <kirtchev@adacore.com>
1780         
1781         * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
1782         that has been constant-folded, preserve information of original tree,
1783         for ASIS uses.
1784         (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
1785         generated private extension declaration if the formal derived type is
1786         synchronized. Carry synchronized present over to the generated private
1787         extension.
1788         (Validate_Derived_Type_Instance): Ensure that the actual of a
1789         synchronized formal derived type is a synchronized tagged type.
1790         (Instantiate_Formal_Package): When creating the instantiation used to
1791         validate the actual package of a formal declared without a box, check
1792         whether the formal itself depends on a prior actual.
1793         (Instantiate_Formal_Subprogram): Create new entities for the defining
1794         identifiers of the formals in the renaming declaration, for ASIS use.
1795         (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
1796         a renaming declaration or a subtype declaration for an actual in an
1797         instance, capture location information of declaration in generic, for
1798         ASIS use.
1799         (Instantiate_Formal_Package): Add comments on needed additional tests.
1800         AI-317 (partial parametrization) is fully implemented.
1801         (Validate_Private_Type_Instance): Add check for actual which
1802         must have preelaborable initialization
1803         Use new // insertion for some continuation messages
1804         (Analyze_Formal_Object_Declaration): Change usage of Expression to
1805         Default_Expression. Add type retrieval when the declaration has an
1806         access definition. Update premature usage of incomplete type check.
1807         (Check_Access_Definition): New subsidiary routine. Check whether the
1808         current compilation version is Ada 05 and the supplied node has an
1809         access definition.
1810         (Instantiate object): Alphabetize local variables. Handle the creation
1811         of new renaming declarations with respect to the kind of definition
1812         used - either an access definition or a subtype mark. Guard against
1813         unnecessary error message in the context of anonymous access types after
1814         they have been resolved. Add check for required null exclusion in a
1815         formal object declaration.
1816         (Switch_View): A private subtype of a non-private type needs to be
1817         switched (the base type can have been switched without its private
1818         dependents because of the last branch of Check_Private_View.
1819         (Check_Private_View): Do not recompute Base_Type (T), instead use cached
1820         value from BT.
1821         (Instantiate_Type): Emit an error message whenever a class-wide type of
1822         a tagged incomplete type is used as a generic actual.
1823         (Find_Actual_Type): Extend routine to handle a component type in a child
1824         unit that is imported from a formal package in a parent.
1825         (Validate_Derived_Type_Instance): Check that analyzed formal and actual
1826         agree on constrainedness, rather than checking against ultimate ancestor
1827         (Instantiate_Subprogram_Body): Create a cross-reference link to the
1828         generic body, for navigation purposes.
1830 2006-10-31  Robert Dewar  <dewar@adacore.com>
1831             Thomas Quinot  <quinot@adacore.com>
1833         * sem_ch13.adb: Storage pool cannot be given for access to subprogram
1834         type.
1835         (New_Stream_Subprogram): When processing an attribute definition clause
1836         for a stream-oriented subprogram, record an entity node occurring at
1837         the point of clause to use for checking the visibility of the clause,
1838         as defined by 8.3(23) as amended by AI-195.
1839         (New_Stream_Subprogram): New procedure, factoring behaviour from both
1840          New_Stream_Function and New_Stream_Procedure.
1841         (New_Stream_Function, New_Stream_Procedure): Removed.
1842         (Analyze_Attribute_Definition_Clause, case Address): Check new
1843         Alignment_Check check
1845 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
1846             Javier Miranda  <miranda@adacore.com>
1847             Robert Dewar  <dewar@adacore.com>
1849         * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
1850         generate the same errors compiling under -gnatc.
1851         (Try_Object_Operation): If no candidate interpretation succeeds, but
1852         there is at least one primitive operation with the right name, report
1853         error in call rather than on a malformed selected component.
1854         (Analyze_Selected_Component): If the prefix is an incomplete type from
1855         a limited view, and the full view is available, use the full view to
1856         determine whether this is a prefixed call to a primitive operation.
1857         (Operator_Check): Verify that a candidate interpretation is a binary
1858         operation before checking the type of its second formal.
1859         (Analyze_Call): Add additional warnings for function call contexts not
1860         yet supported.
1861         (Analyze_Allocator): Move the check for "initialization not allowed for
1862         limited types" after analyzing the expression. This is necessary,
1863         because OK_For_Limited_Init looks at the structure of the expression.
1864         Before analysis, we don't necessarily know what sort of expression it
1865         is. For example, we don't know whether F(X) is a function call or an
1866         indexed component; the former is legal in Ada 2005; the latter is not.
1867         (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
1868         were missing. We also didn't handle qualified expressions. Now also
1869         allow function calls. Use new common routine OK_For_Limited_Init.
1870         (Analyze_Type_Conversion): Do not perform some legality checks in an
1871         instance, because the error message will be redundant or spurious.
1872         (Analyze_Overloaded_Selected_Component): Do not do style check when
1873         setting an entity, since we do not know it is the right entity yet.
1874         (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
1875         (Analyze_Overloaded_Selected_Component): Same change
1876         (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
1877         since regular incomplete subtypes are transformed into corresponding
1878         subtypes of their full views.
1879         (Complete_Object_Operation): Treat name of transformed subprogram call
1880         as coming from source, for browsing purposes.
1881         (Try_Primitive_Operation): If formal is an access parameter, compare
1882         with base type of object to determine whether it is a primitive
1883         operation.
1884         (Operator_Check): If no interpretation of the operator matches, check
1885         whether a use clause on any candidate might make the operation legal.
1886         (Try_Class_Wide_Operation): Check whether the first parameter is an
1887         access type whose designated type is class-wide.
1889 2006-10-31  Robert Dewar  <dewar@adacore.com>
1890             Ed Schonberg  <schonberg@adacore.com>
1891             Gary Dismukes  <dismukes@adacore.com>
1893         * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
1894         warn on infinite loops.
1895         Add \\ to some continuation messages
1896         (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
1897         (Process_Bounds): If the bounds are integer literals that result from
1898         constant-folding, and they carry a user-defined type, preserve that type
1899         rather than treating this as an integer range.
1900         (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
1901         (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
1902         (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
1903         left hand side of assignment.
1904         (Analyze_Assignment): Add suport to manage assigments to the attribute
1905         priority of a protected object.
1906         (Check_Possible_Current_Value_Condition): Allow fully qualified names
1907         not just identifiers.
1908         (Check_Possible_Current_Value_Condition): Acquire left operand of AND
1909         or AND THEN for possible tracking.
1910         (Analyze_Iteration_Scheme): Check for setting Current_Value for the
1911         case of while loops so we can track values in the loop body.
1913 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
1914             Hristian Kirtchev  <kirtchev@adacore.com>
1915             Bob Duff  <duff@adacore.com>
1916         
1917         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
1918         procedure cannot be a protected operation (it is a basic_declaration,
1919         not a subprogram_declaration).
1920         (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
1921         Subp. Add logic for entry processing.
1922         (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
1923         Determine whether an entry or subprogram of a protected or task type
1924         override an inherited primitive of an implemented interface.
1925         (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
1926         Update the actual used in calls to Check_Overriding_Indicator.
1927         (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
1928         generate the proper reference to the parent unit, for cross-reference.
1929         (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
1930         Is_Formal.
1931         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
1932         (Add_Extra_Formal): Revise procedure to allow passing in associated
1933         entity, scope, and name suffix, and handle setting of the new
1934         Extra_Formals field.
1935         (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
1936         pass new parameters. Add support for adding the new extra access formal
1937         for functions whose calls are treated as build-in-place.
1938         (Analyze_A_Return_Statement): Correct casing in error message.
1939         Move Pop_Scope to after Analyze_Function_Return, because an extended
1940         return statement really is a full-fledged scope. Otherwise, visibility
1941         doesn't work right. Correct use of "\" for continuation messages.
1942         (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
1943         evilly trying to call Analyze_Object_Declaration directly. Otherwise,
1944         the node doesn't get properly marked as analyzed.
1945         (Analyze_Subprogram_Body): If subprogram is a function that returns
1946         an anonymous access type that denotes a task, build a Master Entity
1947         for it.
1948         (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
1949         proper usage of null exclusion in a result definition.
1950         (Process_Formals): Code cleanup and new error message.
1951         (Process_Formals): Detect incorrect application of null exclusion to
1952         non-access types.
1953         (Conforming_Types): Handle conformance between [sub]types and itypes
1954          generated for entities that have null exclusions applied to them.
1955         (Maybe_Primitive_Operation): Add an additional type retrieval when the
1956          base type is an access subtype. This case arrises with null exclusions.
1957         (New_Overloaded_Entity): Do not remove the overriden entity from the
1958         homonym chain if it corresponds with an abstract interface primitive.
1959         (Process_Formals): Replace membership test agains Incomplete_Kind with a
1960         call to the synthesized predicate Is_Incomplete_Type.
1961         (Analyze_Subprogram_Body): Check wrong placement of abstract interface
1962         primitives.
1963         (Analyze_Subprogram_Declaration): Check that abstract interface
1964         primitives are abstract or null.
1965         (Analyze_Subprogram_Specification): Remove previous check for abstract
1966         interfaces because it was not complete.
1967         (Has_Interface_Formals): Removed.
1969 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
1970             Javier Miranda  <miranda@adacore.com>
1972         * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
1973         of Analyze_Package_Body, to create Itype references for anonymous
1974         access types created in the package declaration, whose designated types
1975         may have only a limited view.
1976         (Analyze_Package_Specification): For the private part of a nested
1977         package, install private_with_clauses of enclosing compilation unit if
1978         we are in its visible part.
1979         (Declare_Inherited_Private_Subprograms): Complete barrier
1980         to ensure that the primitive operation has an alias to some parent
1981         primitive. This is now required because, after the changes done for the
1982         implementation of abstract interfaces, the contents of the list of
1983         primitives has entities whose alias attribute references entities of
1984         such list of primitives.
1985         (Analyze_Package_Specification): Simplify code that handles parent units
1986         of instances and formal packages.
1987         (Uninstall_Declarations): Check the convention consistency among
1988         primitive overriding operations of a tagged record type.
1990 2006-10-31  Robert Dewar  <dewar@adacore.com>
1991             Hristian Kirtchev  <kirtchev@adacore.com>
1992             Javier Miranda  <miranda@adacore.com>
1993             Ed Schonberg  <schonberg@adacore.com>
1994         
1995         * sem_ch8.adb: Minor error msg rewording
1996         (Undefined): When checking for misspellings, invert arguments (to get
1997         expected and found set right)
1998         (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
1999         (Analyze_Generic_Renaming): Same fix
2000         (Use_One_Package): Do not take into account the internal entities of
2001         abstract interfaces during the analysis of entities that are marked
2002         as potentially use-visible.
2003         (Find_Type): Handle the case of an attribute reference for
2004         implementation defined attribute Stub_Type (simply let the analysis of
2005         the attribute reference rewrite it).
2006         (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
2007         type that appears in a Use_Type clause.
2008         (Analyze_Object_Renaming): Add support for renaming of the Priority
2009         attribute.
2010         (Find_Type): In Ada 2005, a task type can be used within its own body,
2011         when it appears in an access definition.
2012         (Analyze_Object_Renaming): Remove warning on null_exclusion.
2013         (Analyze_Object_Renaming): Introduce checks for required null exclusion
2014          in a formal object declaration or in a subtype declaration.
2015         (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
2016         (Check_Null_Exclusion): New local routine to
2017         Analyze_Subprogram_Renaming. Check whether the formals and return
2018         profile of a renamed subprogram have required null exclusions when
2019         their counterparts of the renaming already impose them.
2020         (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
2021         Determine whether an entity is inside a generic scope.
2022         (In_Open_Scope): First pass of documentation update.
2023         (Find_Expanded_Name): Add support for shadow entities associated with
2024         limited withed packages. This is required to handle nested packages.
2025         (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
2026         that makes a renaming of a limited withed package illegal.
2028 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
2029             Ed Schonberg  <schonberg@adacore.com>
2031         * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
2032         Check_Overriding_Indicator.
2033         (Analyze_Task_Definition): Ditto.
2034         (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
2035         (Check_Overriding_Indicator): To find overridden interface operation,
2036         examine only homonyms that have an explicit subprogram declaration, not
2037         inherited operations created by an unrelated type derivation.
2038         (Check_Overriding_Indicator): When checking for the presence of "null"
2039         in a procedure, ensure that the queried node is a procedure
2040         specification.
2041         (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
2042         type when the formal is an access to variable.
2043         (Analyze_Protected_Type): Add check for Preelaborable_Initialization
2044         (Analyze_Task_Type): Same addition
2045         (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
2046         provide navigation capabilities for entries.
2048 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
2049             Ed Schonberg  <schonberg@adacore.com>
2050             Javier Miranda  <miranda@adacore.com>
2051             Gary Dismukes  <dismukes@adacore.com>
2053         * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
2054         inherited from an interface ancestor by another interface in the
2055         context of an instance as 'late'.
2056         (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
2057         of a call to a function that dispatches on access result.
2058         (Check_Dispatching_Operation): In case of late overriding of a primitive
2059         that covers abstract interface subprograms we register it in all the
2060         secondary dispatch tables associated with abstract interfaces.
2061         (Check_Dispatching_Call): Add check that a dispatching call is not made
2062         to a function with a controlling result of a limited type. This is a
2063         current implementation restriction.
2064         (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
2065         (Check_Dispatching_Operation): Do no emit a warning if the controlling
2066         argument is an interface type that is a generic formal.
2067         (Is_Interface_Subprogram): Removed.
2068         (Check_Dispatching_Operation): If the subprogram is not a dispatching
2069         operation, check the formals to handle the case in which it is
2070         associated with an abstract interface type.
2072 2006-10-31  Robert Dewar  <dewar@adacore.com>
2073             Ed Schonberg  <schonberg@adacore.com>
2075         * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
2076         Add new calls to this procedure during traversal
2077         (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
2078         another unit if expansion is disabled.
2080 2006-10-31  Robert Dewar  <dewar@adacore.com>
2082         * sem_eval.adb (Compile_Time_Compare): Make use of information from
2083         Current_Value in the conditional case, to evaluate additional
2084         comparisons at compile time.
2086 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
2087             Hristian Kirtchev  <kirtchev@adacore.com>
2088             Javier Miranda  <miranda@adacore.com>
2090         * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
2091         subprogram type to provide better diagnostics in case of ambiguity.
2092         (Covers): Handle coverage of formal and actual anonymous access types in
2093         the context of generic instantiation.
2094         (Covers/Interface_Present_In_Ancestors): Use the base type to manage
2095         abstract interface types; this is required to handle concurrent types
2096         with discriminants and abstract interface types.
2097         (Covers): Include type coverage of both regular incomplete subtypes and
2098         incomplete subtypes of incomplete type visibles through a limited with
2099         clause.
2101 2006-10-31  Robert Dewar  <dewar@adacore.com>
2102             Hristian Kirtchev  <kirtchev@adacore.com>
2103             Ed Schonberg  <schonberg@adacore.com>
2104         
2105         * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
2106         messages for entities in packages which are not used.
2107         (Collect_Synchronized_Interfaces): New procedure.
2108         (Overrides_Synchronized_Primitive): New function.
2109         (Denotes_Discriminant): Extend predicate to apply to task types.
2110         Add missing continuation marks in error msgs
2111         (Unqualify): New function for removing zero or more levels of
2112         qualification from an expression. There are numerous places where this
2113         ought to be used, but we currently only deal properly with zero or one
2114         level.
2115         (In_Instance); The analysis of the actuals in the instantiation of a
2116         child unit is not within an instantiation, even though the parent
2117         instance is on the scope stack.
2118         (Safe_To_Capture_Value): Exclude the case of variables that are
2119         renamings.
2120         (Check_Obsolescent): Removed
2121         (Is_Aliased_View): A reference to an enclosing instance in an aggregate
2122         is an aliased view, even when rewritten as a reference to the target
2123         object in an assignment.
2124         (Get_Subprogram_Entity): New function
2125         (Known_To_Be_Assigned): New function
2126         (Type_Access_Level): Compute properly the access level of a return
2127         subtype that is an anonymous access type.
2128         (Explain_Limited_Type): Correct use of "\" for continuation messages.
2129         (Is_Transfer): The new extended_return_statement causes a transfer of
2130         control.
2131         (Has_Preelaborable_Initialization): New function
2132         (Has_Null_Exclusion): New function. Given a node N, determine whether it
2133         has a null exclusion depending on its Nkind.
2134         Change Is_Lvalue to May_Be_Lvalue
2135         (May_Be_Lvalue): Extensive additional code to deal with subprogram
2136         arguments (IN parameters are not Lvalues, IN OUT parameters are).
2137         (Safe_To_Capture_Value): Extend functionality so it can be used for
2138         the current value condition case.
2139         (Has_Compatible_Alignment): New function
2140         (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
2141         objects to handle the Ada 2005 case, where aliasedness no longer implies
2142         that the object is constrained. In particular, for dereferenced names,
2143         the designated object must be assumed to be unconstrained.
2144         (Kill_Current_Values): Properly deal with the case where we encounter
2145         a loop in the scope chain.
2146         (Safe_To_Capture_Value): Do not let a loop stop us from capturing
2147         a value.
2148         (Compile_Time_Constraint_Error): Improve error message in error case
2150         * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
2151         associated with entities of abstract interface primitives.
2152         Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
2154 2006-10-31  Robert Dewar  <dewar@adacore.com>
2156         * s-osinte-tru64.adb: 
2157         Mark Asm statements Volatile to prevent warnings (seems a
2158         reasonable change anyway)
2159         Fixes new warnings
2161         * s-mastop-irix.adb: Add Volatile to Asm statements
2162         Suppresses warning, and seems appropriate in any case
2164         * s-osinte-vms.adb: Add Volatile to Asm statement
2166         * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
2168         * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
2169         returned.
2170         Add call to Check_Code_Statement
2172 2006-10-31  Robert Dewar  <dewar@adacore.com>
2173             Ed Schonberg  <schonberg@adacore.com>
2174             Bob Duff  <duff@adacore.com>
2176         * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
2177         Synchronized_Present): Add Formal_Derived_Type_Definition and
2178         Private_Extension_Declaration to the list of assertions.
2179         (Is_Entry_Barrier_Function): New flag
2180         (Has_Self_Reference): New flag on aggregates, to indicate that they
2181         contain a reference to the enclosing type, inserted through a default
2182         initialization.
2183         (Next_Rep_Item): Move from Node4 to Node5.
2184         (Entity): Add this field for N_Attribute_Definition_Clause.
2185         (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
2186         (N_Return_Object_Declaration): Remove this node kind. We now use
2187         N_Object_Declaration instead.
2188         (Actual_Designated_Subtype): Move to a different place to make room in
2189         N_Extended_Return_Statement.
2190         (Procedure_To_Call): Move to a different place to make room in
2191         N_Extended_Return_Statement.
2192         (Return_Type): Removed this field to make room in return statements
2193         (both kinds).
2194         (Return_Statement_Entity): New field in return statements, in part to
2195         replace Return_Type, and in part to support the fact that return
2196         statements are now pushed on the scope stack during semantic analysis.
2197         (Return_Object_Declarations): New field to support extended return
2198         statements.
2199         (N_Extended_Return_Statement): New node for extended_return_statement
2200         nonterminal.
2201         (N_Return_Object_Declaration): New node for part of
2202         extended_return_statement nonterminal. Needed because all the necessary
2203         fields won't fit in N_Extended_Return_Statement.
2204         Generic_associations now carry the Box_Present flag, to indicate a
2205         default for an actual in a partially parametrized formal package.
2207         * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
2208         (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
2209         and for the new predefined dispatching policies: EDF_Across_Priorities,
2210         Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
2211         Introduce new name Stub_Type for implementation defined attribute.
2212         Add pragma Preelaborable_Initialization
2213         Add entry for Priority attribute.
2214         Add Pragma_Wide_Character_Encoding
2215         (Get_Convention_Name): Given a convention id, this function returns the
2216         corresponding name id from the names table.
2218 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
2219             Robert Dewar  <dewar@adacore.com>
2220             Bob Duff  <duff@adacore.com>
2222         * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
2223         print null exclusion twice in the case of an access definition,
2224         Implement new -gnatL switch
2225         Remove N_Return_Object_Declaration. We now use
2226         N_Object_Declaration instead. Implement the case for
2227         N_Extended_Return_Statement. Alphabetize the cases.
2228         Add cases for new nodes N_Extended_Return_Statement and
2229         N_Return_Object_Declaration. The code is not yet written.
2230         Update the output for N_Formal_Object_Declaration
2231         and N_Object_Renaming_Declaration.
2232         (Write_Itype): Account for the case of a modular integer subtype whose
2233         base type is private.
2235 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
2237         * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
2238         Remove elaboration code, now done in the binder.
2240         * s-rident.ads: Make this unit Preelaborate.
2241         (No_Restrictions): New constant used to clean up code and follow
2242         preelaborate constraints.
2244         * s-stalib.adb: 
2245         Add System.Restrictions dependence, referenced directly from the
2246         binder generated file.
2248 2006-10-31  Gary Dismukes  <dismukes@adacore.com>
2250         * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
2251         True when AAMP extended floating-point is in use (48-bit). Change type
2252         ByteLF to ByteLLF, add new array type ByteLF and condition the size of
2253         the two byte array types on AFloat. Change type of IV_Ilf overlay
2254         variable from Byte8 to ByteLF. Add appropriate initializations of
2255         floating-point overlays for AAMP cases.
2257 2006-10-31  Javier Miranda  <miranda@adacore.com>
2259         * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
2260         (Get_Ceiling): New subprogram that returns
2261         the ceiling priority of the protected object.
2262         (Set_Ceiling): New subprogram that sets the new ceiling priority of
2263         the protected object.
2265         * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
2267         * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
2269 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
2271         * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
2272         requeuing to the same protected object to give higher priority tasks
2273         the opportunity to execute.
2275 2006-10-31  Robert Dewar  <dewar@adacore.com>
2277         * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
2278         add more precise check for the character sequence that follows '[' to
2279         avoid possible confusion in case if '[' is the last character of a
2280         string literals.
2281         (Scan_Wide): Always allow brackets encoding
2283 2006-10-31  Olivier Hainque  <hainque@adacore.com>
2285         * s-stchop.ads: make this unit preelaborate. This is desirable in
2286         general and made mandatory by the use of this unit by s-taprop which
2287         is itself preelaborate.
2289         * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
2290         Td_Events component.
2292 2006-10-31  Vincent Celier  <celier@adacore.com>
2294         * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
2295         in file names.
2297 2006-10-31  Vincent Celier  <celier@adacore.com>
2299         * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
2301 2006-10-31  Vincent Celier  <celier@adacore.com>
2303         * makegpr.adb (Check_Compilation_Needed): Take into account path names
2304         with spaces.
2305         (Check_Compilation_Needed): When checking a C or C++ source, do not
2306         resolve symbolic links.
2307         (Display_Command): New Boolean parameter Ellipse, defaulted to False.
2308         When not in verbose mode and Ellipse is True, display "..." for the
2309         first argument with Display set to False.
2310         (Build_Global_Archive): Always set Display True for the first object
2311         file. Call Display_Command with Ellipse set to True.
2313 2006-10-31  Matt Heaney  <heaney@adacore.com>
2315         * a-crbtgo.ads: Commented each subprogram
2317         * a-crbtgo.adb: Added reference to book from which algorithms were
2318         adapted.
2320         * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
2321         indicate which child.
2322         (Generic_Conditional_Insert): changed parameter name from "Success" to
2323         "Inserted".
2324         (Generic_Unconditional_Insert_With_Hint): improved algorithm
2326         * a-coorse.adb (Replace_Element): changed parameter name in call to
2327         conditional insert operation.
2329         * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
2331         * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
2332         Generic_Iteration
2334         * a-ciorse.adb (Replace_Element): changed parameter name in call to
2335         conditional insert operation.
2337         * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
2338         Generic_Iteration.
2340         * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
2341         instead of mode inout.
2343         * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
2344         draft
2345         (Generic_Read): preserve existing buckets array if possible
2346         (Generic_Write): don't send buckets array length anymore
2348         * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
2349         instead of mode inout.
2351         * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
2352         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
2354         * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
2355         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
2356         (Replace_Element): local operation is now an instantiation
2358         * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
2359         check current length.
2360         (Generic_Replace_Element): new operation
2362 2006-10-31  Doug Rupp  <rupp@adacore.com>
2364         * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
2365         Call TBK$SYMBOLIZE without omitting parameters.
2367 2006-10-31  Vincent Celier  <celier@adacore.com>
2369         * symbols-processing-vms-ia64.adb,
2370         symbols-processing-vms-alpha.adb (Process): Do not include symbols
2371         that come from generic instantiations in bodies.
2373 2006-10-31  Pat Rogers  <rogers@adacore.com>
2375         * a-rttiev.ads, a-rttiev.adb: 
2376         This is a significant redesign primarily for the sake of automatic
2377         timer task termination but also to fix a design flaw.
2378         Therefore we are now using an RTS lock, instead of a protected
2379         object, to provide mutual exclusion to the queue of pending events
2380         and the type Timing_Event is no longer a protected type.
2382 2006-10-31  Robert Dewar  <dewar@adacore.com>
2383             Cyrille Comar  <comar@adacore.com>
2384             Ben Brosgol  <brosgol@adacore.com>
2386         * debug.adb:  Update flags documentation
2388         * gnat_ugn.texi: Add documentation for new -gnatwq switch
2389         Clean up documentation for several other warning switches
2390         Clarify how task stack size can be specified with various
2391         versions of Windows.
2392         Add note that -gnatVo includes ranges including loops
2393         Add documentation for -gnatL switch
2394         Add note on elaboration warning for initializing variables
2395         Add documentation for new -gnatwt warning switch
2396         Document new form of pragma Warnings (On|Off, string)
2397         Add comment on use of pragma Warnings to control warnings
2398         Add documentation for -gnatjnn switch
2399         Modify section on interfacing with C for VMS 64-bit.
2400         Add doc for -gnatVe/E
2401         Add documentation of new warning flags -gnatww/-gnatwW
2402         Add warnings about address clause overlays to list of warnings
2403         (Exception Handling Control): Document that the option --RTS must be
2404         used consistently for gcc and gnatbind.
2405         Clarify that inlining is not always possible
2406         Update documentation on pragma Unchecked_Union.
2408         * gnat_rm.texi: 
2409         Add documentation for new extended version of pragma Obsolescent
2410         Add documentation for implementation defined attribute 'Stub_Type.
2411         Add note on use of Volatile in asm statements
2412         Add documentation on use of pragma Unreferenced in context clause
2413         Document new form of pragma Warnings (On|Off, pattern)
2414         Document pragma Wide_Character_Encoding
2415         Add note that pragma Restrictions (No_Elaboration_Code) is only fully
2416         enforced if code generation is active.
2417         Add section on pragma Suppress to document GNAT specific check
2418         Alignment_Check
2419         Clarify difference between No_Dispatching_Calls & No_Dispatch.
2420         Add documentation for pragma Restrictions (No_Elaboration_Code)
2422         * gnat-style.texi: 
2423         Add comments on layout of subprogram local variables in the
2424         presence of nested subprograms.
2426         * ug_words: Resync.
2428         * elists.ads: Minor reformatting
2429         Node returns Node_Or_Entity_Id (doc change only)
2431         * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
2433         * g-arrspl.ads (Create): Update comments.
2435         * sem.ads: Add details on the handling of the scope stack.
2437         * usage.adb: Update documentation.
2439         * validsw.ads, validsw.adb: 
2440         Add definition of Validity_Check_Components and implement -gnatVe/E
2442         * vms_data.ads: Add missing VMS qualifiers.
2444         * s-addope.ads: Add documentation on overflow and divide by zero
2446 2006-10-31  Robert Dewar  <dewar@adacore.com>
2447             Thomas Quinot  <quinot@adacore.com>
2448             Arnaud Charlet  <charlet@adacore.com>
2450         * fmap.adb: Put routines in alpha order
2452         * g-boumai.ads: Remove redundant 'in' keywords
2454         * g-cgi.adb: Minor reformatting
2456         * g-cgi.ads: Remove redundant 'in' keywords
2458         * get_targ.adb: Put routines in alpha order
2460         * prj-attr.ads: Minor reformatting
2462         * s-atacco.ads: Minor reformatting
2464         * scn.adb: Put routines in alpha order
2466         * sinput-l.adb: Minor comment fix
2468         * sinput-p.adb: Minor comment fix
2470         * s-maccod.ads: Minor reformatting
2472         * s-memory.adb: Minor reformatting
2474         * s-htable.adb: Fix typo in comment.
2476         * s-secsta.adb: Minor comment update.
2478         * s-soflin.adb: Minor reformatting
2480         * s-stoele.ads: 
2481         Add comment about odd qualification in Storage_Offset declaration
2483         * s-strxdr.adb: 
2484         Remove unnecessary 'in' keywords for formal parameters.
2486         * treeprs.adt: Minor reformatting
2488         * urealp.adb: Put routines in alpha order
2490         * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
2491         taking string.
2493         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
2495         * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
2497         * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
2498         workaround as on other platforms.
2500         * g-eacodu-vms.adb: Remove redundant 'in' keywords
2501         * g-expect-vms.adb: Remove redundant 'in' keywords
2503         * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
2504         clear error message if the list-of-files file cannot be opened.
2506         * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
2507         equality operator is always visible.
2509         * lang.opt: Woverlength-strings: New option.
2511         * nmake.adt: 
2512         Update copyright, since nmake.ads and nmake.adb have changed.
2514         * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
2515         (Binder_Output_Time_Stamps_Set): removed.
2516         (Old_Binder_Output_Time_Stamp): idem.
2517         (New_Binder_Output_Time_Stamp): idem.
2518         (Recording_Time_From_Last_Bind): idem.
2519         (Recording_Time_From_Last_Bind): Make constant.
2521         * output.ads, output.adb (Write_Str): Allow LF characters
2522         (Write_Spaces): New procedure
2524         * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
2526         * inline.adb: Minor reformatting
2528         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
2530         * s-mastop-vms.adb: Remove redundant 'in' keywords
2532         * s-osprim-vms.adb: Remove redundant 'in' keywords
2534         * s-trafor-default.adb: Remove redundant 'in' keywords
2536         * 9drpc.adb: Remove redundant 'in' keywords
2538         * s-osinte-mingw.ads: Minor reformatting
2540         * s-inmaop-posix.adb: Minor reformatting
2542         * a-direio.ads: Remove quotes from Compile_Time_Warning message
2544         * a-exexda.adb: Minor code reorganization
2546         * a-filico.adb: Minor reformatting
2548         * a-finali.adb: Minor reformatting
2550         * a-nudira.ads: Remove quote from Compile_Time_Warning message
2552         * a-numeri.ads: Minor reformatting
2554         * a-sequio.ads: Remove quotes from Compile_Time_Warning message
2556         * exp_pakd.ads: Fix obsolete comment
2558         * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
2559         a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
2560         Probably not a bug, but certainly neater and more efficient.
2562         * a-tienio.adb: Minor reformatting
2564         * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
2565         Avoid assuming low bound of string is 1.
2567         * gnatbind.adb: Change Bindusg to package and rename procedure as
2568         Display, which now ensures that it only outputs usage information once.
2569         (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
2571         * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
2572         Table'First.
2574         * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
2575         warning.
2576         (Match): Add pragma Assert to ensure that Matches'First is zero
2578         * g-regpat.ads (Match): Document that Matches lower bound must be zero
2580         * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
2581         documented preconditions (also kills warnings about bad indexes).
2583         * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
2584         is 1.
2585         (Build_Import_Library): Ditto;
2587         * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
2589         * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
2591         * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
2592         lower bound of choice table is 1.
2594         * sem_case.ads (Analyze_Choices): Document that lower bound of
2595         Choice_Table is 1.
2597         * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
2598         string is 1.
2600         * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
2601         and add appropriate Assert pragma to suppress warnings.
2603         * atree.h, atree.ads, atree.adb
2604         Change Elist24 to Elist25
2605         Add definitions of Field28 and Node28
2606         (Traverse_Field): Use new syntactic parent table in sinfo.
2608         * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
2610         * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
2612         * exp_tss.adb: Put routines in alpha order
2614         * fe.h: Remove redundant declarations.
2616 2006-10-23 Rafael Avila de Espindola  <rafael.espindola@gmail.com>
2617         * utils.c (builtin_function): Rename to gnat_builtin_function.
2618         Move common code to add_builtin_function.
2619         * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
2620         gnat_builtin_function.
2621         * gigi.h (builtin_function): Rename to gnat_builtin_function.
2622         Change the signature.
2624 2006-10-16  Brooks Moses  <bmoses@stanford.edu>
2626         * Makefile.in: Add TEXI2PDF definition.
2627         * Make-lang.in: Add "ada.pdf" target.
2629 2006-10-03  Kazu Hirata  <kazu@codesourcery.com>
2631         * decl.c, utils.c: Fix comment typos.
2632         * utils.c: Fix a typo.
2634 2006-09-28  Eric Botcazou  <ebotcazou@adacore.com>
2636         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
2637         on "pure" Ada subprograms if SJLJ exceptions are used.
2638         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
2639         on the declaration node of JMPBUF_SAVE.
2640         * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
2641         of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
2642         * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
2644 2006-08-20  Laurent GUERBY  <laurent@guerby.net>
2646         PR ada/28716
2647         g-socket.adb (Bind_Socket): Call Set_Address.
2649 2006-09-15  Eric Botcazou  <ebotcazou@adacore.com>
2651         PR ada/15802
2652         * decl.c (same_discriminant_p): New static function.
2653         (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
2654         subtype and we have discriminants, fix up the COMPONENT_REFs
2655         for the discriminants to make them reference the corresponding
2656         fields of the parent subtype after it has been built.
2658 2006-09-15  Roger Sayle  <roger@eyesopen.com>
2660         PR ada/18817
2661         * utils.c (max_size): Perform constant folding of (A ? B : C) - D
2662         into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
2664 2006-09-13  Olivier Hainque  <hainque@adacore.com>
2666         PR ada/29025
2667         * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
2668         of a SAVE_EXPR, just make the operand addressable/not-readonly and
2669         let the common gimplifier code make and propagate a temporary copy.
2670         (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
2671         out/in-out actuals and defer setting the addressable/readonly bits
2672         to the gimplifier.
2674 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
2676         PR ada/28591
2677         * decl.c (components_to_record): Defer emitting debug info for the
2678         record type associated with the variant until after we are sure to
2679         actually use it.
2681 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
2683         PR ada/21952
2684         * gigi.h (gnat_internal_attribute_table): Declare.
2685         * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
2686         * utils.c (gnat_internal_attribute_table): New global variable.
2687         (builtin_function): Always call decl_attributes on the builtin.
2688         (handle_const_attribute): New static function.
2689         (handle_nothrow_attribute): Likewise.
2691 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2693         * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
2695 2006-06-23  Olivier Hainque  <hainque@adacore.com>
2697         * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
2698         not been able to get a constant upper bound from TYPE_SIZE_UNIT.
2700 2006-06-20  James A. Morrison  <phython@gcc.gnu.org>
2701             Eric Botcazou  <ebotcazou@adacore.com>
2703         PR ada/18692
2704         * Make-lang.in: Add check-gnat to lang_checks.  Rename existing
2705         check-gnat into check-acats.
2707 2006-06-17  Karl Berry  <karl@gnu.org>
2709         * gnat-style.texi (@dircategory): Use "Software development"
2710         instead of "Programming", following the Free Software Directory.
2712 2006-06-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2714         PR ada/27944
2715         * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
2717 2006-06-06  Laurent GUERBY  <laurent@guerby.net>
2719         PR ada/27769
2720         mlib-utl.adb: Use Program_Name.
2721         
2722 2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
2724         * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
2725         sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
2726         trans.c, utils.c: Fix comment typos.  Follow spelling
2727         conventions.
2728         * gnat_rm.texi, gnat_ugn.texi, : Fix typos.  Follow spelling
2729         conventions.
2731 2006-05-19  Nicolas Setton  <setton@adacore.com>
2733         * misc.c (gnat_dwarf_name): New function.
2734         (LANG_HOOKS_DWARF_NAME): Define to it.
2736 2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2738         * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
2739         (ada/misc.o): Likewise.
2740         (ada/utils.o): Likewise.
2742 2006-04-08  Aurelien Jarno  <aurel32@debian.org>
2744         * Makefile.in: Add Ada support for GNU/kFreeBSD.
2745         * s-osinte-kfreebsd-gnu.ads: New file.
2747 2006-03-29  Carlos O'Donell  <carlos@codesourcery.com>
2749         * Make-lang.in: Rename docdir to gcc_docdir.
2751 2006-03-04  Eric Botcazou  <ebotcazou@adacore.com>
2753         * gigi.h (get_ada_base_type): Delete.
2754         * utils2.c (get_ada_base_type): Likewise.
2755         * trans.c (convert_with_check): Operate in the real base type.
2757 2006-03-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2759         * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
2761 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
2763         * utils.c (create_var_decl): Use have_global_bss_p when deciding
2764         whether to make the decl common.
2766 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
2768         * Make-lang.in (Ada): Remove
2769         (.PHONY): Remove Ada
2771 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
2773         * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
2774         aggregate, check the interpretations of the other operand to find one
2775         that may be a boolean array.
2777         (Analyze_Selected_Component): Fix flow-of-control typo in case where
2778         the prefix is a private extension.
2780 2006-02-17  Eric Botcazou  <botcazou@adacore.com>
2782         PR ada/26315
2784         * utils2.c (find_common_type): If both input types are BLKmode and
2785         have the same constant size, keep using the first one.
2787         * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
2789         * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
2791         * misc.c (gnat_handle_option): New case for -Woverlength-strings.
2793 2006-02-17  Jose Ruiz  <ruiz@adacore.com>
2795         * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb, 
2796         s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
2797         s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb, 
2798         s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
2799         Abort_Defer/Undefer pairs to avoid the possibility of a task being
2800         aborted while owning a lock.
2802 2006-02-17  Javier Miranda  <miranda@adacore.com>
2803             Robert Dewar  <dewar@adacore.com>
2805         * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
2806         through an access to class-wide interface we force the displacement of
2807         the pointer to the allocated object to reference the corresponding
2808         secondary dispatch table.
2809         (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
2810         if Long_Shifts are supported on the target, even if 64 bit divides
2811         are not supported (configurable run time mode).
2812         (Expand_N_Type_Conversion): Do validity check if validity checks on
2813         operands are enabled.
2814         (Expand_N_Qualified_Expression): Do validity check if validity checks
2815         on operands are enabled.
2817 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
2819         * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
2820         must be materialized when the renamed expression is an explicit
2821         dereference.
2823 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
2825         * freeze.adb (Statically_Discriminated_Components): Return false if
2826         the bounds of the type of the discriminant are not static expressions.
2828         * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
2829         the bounds of the discriminant type are not static.
2831 2006-02-17  Robert Dewar  <dewar@adacore.com>
2833         * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
2834         then we close To if it is valid.
2836 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
2838         * init.c (facility_resignal_table): new array
2839         (__gnat_default_resignal_p): enhance default predicate to resignal if
2840         VMS condition has one of the predefined facility codes.
2842 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
2844         * Makefile.in: Use VMS64 specialized versions of several units in
2845         Interfaces.C hierarchy to be compatible with HP C default size choices.
2846         Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
2848 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
2850         * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
2851         instantiation, the corresponding entity is the related_instance of the
2852         wrapper package created for the instance.
2854 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
2856         * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
2857         the current instance is nested within another instance in a child unit.
2859 2006-02-17  Javier Miranda  <miranda@adacore.com>
2860             Ed Schonberg  <schonberg@adacore.com>
2862         * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
2863         type we cannot inherit the primitive operations; we inherit the
2864         Corresponding_Record_Type (which has the list of primitive operations).
2865         (Check_Anonymous_Access_Types): When creating anonymous access types for
2866         access components, use Rewrite in order to preserve the tree structure,
2867         for ASIS use.
2868         (Analyze_Object_Declaration): For limited types with access
2869         discriminants with defaults initialized by an aggregate, obtain
2870         subtype from aggregate as for other mutable types.
2871         (Derived_Type_Declaration): If the derived type is a limited interface,
2872         set the corresponding flag (Is_Limited_Record is not sufficient).
2874 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
2876         * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
2877         to inline a function that returns an unconstrained type, the return
2878         expression must be the first variable declared in the body of the
2879         function.
2881 2006-02-17  Javier Miranda  <miranda@adacore.com>
2883         * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
2884         abstract interface type, the static analysis is not enough to know if
2885         the interface is implemented or not by the source tagged type. Hence
2886         we must pass the work to the expander to generate the required code to
2887         evaluate the conversion at run-time.
2888         (Resolve_Equality_Op): Do not apply previous
2889         transformation if expansion is disasbled, to prevent anomalies when
2890         locating global references in a generic unit.
2892 2006-02-17  Vincent Celier  <celier@adacore.com>
2894         * snames.ads, snames.adb: New standard names for new project attributes:
2895         archive_builder, archive_indexer, compiler_pic_option,
2896         config_body_file_name, config_body_file_name_pattern,
2897         config_file_switches, config_file_unique, config_spec_file_name,
2898         config_spec_file_name_pattern, default_builder_switches,
2899         default_global_compiler_switches, default_language,
2900         dependency_file_kind, global_compiler_switches, include_path,
2901         include_path_file, language_kind, linker_executable_option,
2902         linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
2903         roots, runtime_project.
2905 2006-02-17  Matthew Heaney  <heaney@adacore.com>
2907         * a-convec.ads, a-convec.adb: 
2908         (operator "&"): handle potential overflow for large index types
2909         (Insert): removed Contraint_Error when using large index types
2910         (Insert_Space): removed Constraint_Error for large index types
2911         (Length): moved constraint check from Length to Insert
2913         * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
2914         as not null access.
2915         Explicit raise statements now include an exception message.
2916         (operator "&"): handle potential overflow for large index types
2917         (Insert): removed Contraint_Error when using large index types
2918         (Insert_Space): removed Constraint_Error for large index types
2919         (Length): moved constraint check from Length to Insert
2921 2006-02-17  Robert Dewar  <dewar@adacore.com>
2923         * s-wchcnv.adb: Document handling of [ on output (we do not change
2924         this to ["5B"] and the new comments say why not.
2926         * gnat_ugn.texi: 
2927         Add note for -gnatVo that this now includes the cases of type
2928         conversions and qualified expressions.
2929         Add comments on handling of brackets encoding for Text_IO
2931 2006-02-17  Ramon Fernandez  <fernandez@adacore.com>
2932             Thomas Quinot  <quinot@adacore.com>
2933             Robert Dewar  <dewar@adacore.com>
2934             Javier Miranda  <miranda@adacore.com>
2936         * expander.adb: Fix typo in comment
2938         * exp_pakd.adb: Fix typo
2939         Minor comment reformatting.
2941         * g-dyntab.adb: Minor reformatting
2943         * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
2944         aliased subprograms to look for the abstract interface subprogram.
2946 2006-02-16  Eric Botcazou  <ebotcazou@adacore.com>
2948         * env.c (__gnat_setenv): Use size_t.
2949         (__gnat_unsetenv): Likewise.
2950         (__gnat_clearenv): Likewise.
2952 2006-02-16  Arnaud Charlet  <charlet@adacore.com>
2954         * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
2956 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
2958         * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
2959         g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
2960         i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
2961         s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
2962         s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
2963         s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
2964         s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
2965         s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
2966         s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
2967         no longer used.
2969 2006-02-13  Jose Ruiz  <ruiz@adacore.com>
2971         * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
2972         protection against race conditions is not needed.
2973         (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
2974         fallback handler.
2975         (Set_Specific_Handler): Add mutual exclusive access to the specific
2976         handler.
2977         (Specific_Handler): Add mutual exclusive access for retrieving the
2978         specific handler.
2980         * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
2981         back handler.
2983         * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
2984         Fall_Back_Handler and Specific_Handler.
2986         * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
2987         termination handlers.
2988         Set two different owerflow depending on the maximal stack size.
2990         * s-solita.adb (Task_Termination_Handler_T): Document why explicit
2991         protection against race conditions is not needed when executing the
2992         task termination handler.
2994 2006-02-13  Robert Dewar  <dewar@adacore.com>
2996         * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
2997         a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
2998         a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
2999         a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
3000         a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
3001         a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
3002         a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
3003         a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
3004         a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
3005         a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
3006         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
3007         a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
3008         a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
3009         a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
3010         a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
3011         a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
3012         a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
3013         a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
3014         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
3015         a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
3016         g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
3017         g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
3018         mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
3019         prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
3020         s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
3021         s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
3022         s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
3023         s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
3024         s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
3025         s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
3026         a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
3027         fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
3028         par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
3029         system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
3030         reformatting.
3032 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
3034         * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
3035         s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
3036         s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
3037         s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
3038         a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
3039         s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
3040         a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
3041         s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
3042         s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
3044 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
3046         * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads, 
3047         s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads, 
3048         s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads, 
3049         s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads, 
3050         s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads, 
3051         s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
3052         replaced by anonymous access type.
3053         (pthread_sigmask): Now take an access sigset_t
3055         * s-osinte-hpux.ads:  Ditto.
3056         (pthread_mutex_t, pthread_cond_t): Update definitions to support
3057         properly 32 and 64 bit ABIs.
3059 2006-02-13  Pascal Obry  <obry@adacore.com>
3061         * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb, 
3062         s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb, 
3063         s-taprop-linux.adb, s-taprop-solaris.adb,
3064         s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
3065         adjustement is already done when calling this routine.
3067 2006-02-13  Pascal Obry  <obry@adacore.com>
3069         * system-mingw.ads (Underlying_Priorities): Update the priority mapping
3070         table to take advantage of the 16 priority levels available on Windows
3071         2000 and XP. On NT4 there are only 7 priority levels, this is properly
3072         supported by this new mapping.
3074 2006-02-13  Nicolas Setton  <setton@adacore.com>
3076         * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
3077         (get_encoding): New subprogram. Extracts the encodings from an encoded
3078         Ada name.
3080 2006-02-13  Pascal Obry  <obry@adacore.com>
3081             Nicolas Roche  <roche@adacore.com>
3082             Arnaud Charlet  <charlet@adacore.com>
3084         * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
3085         support.
3086         (__gnat_try_lock): Add unicode support by using a specific section on
3087         Windows.
3088         (__gnat_get_current_dir): Idem.
3089         (__gnat_open_read): Idem.
3090         (__gnat_open_rw): Idem.
3091         (__gnat_open_create): Idem.
3092         (__gnat_create_output_file): Idem.
3093         (__gnat_open_append): Idem.
3094         (__gnat_open_new): Idem.
3095         (__gnat_file_time_name): Idem.
3096         (__gnat_set_file_time_name): Idem.
3097         (__gnat_stat): Idem.
3098         (win32_no_block_spawn): Idem.
3099         (__gnat_locate_exec_on_path): Idem.
3100         (__gnat_opendir): New routine.
3101         (__gnat_closedir): Idem.
3102         (__gnat_readdir): Add new parameter length (pointer to int). Update
3103         implementation to use it and add specific Win32 code for Unicode
3104         support.
3105         (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
3106         (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
3107         (convert_addresses): Do not define this dummy routine on VMS.
3109         * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
3110         runtime Unicode support will be activated.
3111         (S2WS): String to Wide-String conversion. This version just copy a
3112         string in non Unicode version.
3113         (WS2S): Wide-String to String conversion. This version just copy a
3114         string in non Unicode version.
3116         * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
3117         (Open): Now import __gnat_opendir from adaint.c.
3118         (Read): Change the implementation to support unicode characters. It is
3119         not possible to use strlen() on Windows as this version supports only
3120         standard ASCII characters. So the length of the directory entry is now
3121         returned from the imported __gnat_readdir routine.
3122         Update copyright notice.
3124         * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
3125         (opendir): Moved to adaint.c.
3127         * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
3128         (Get_Directory): Fix wrong indexing.
3129         (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
3130         __gnat_getenv from env.c
3131         (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
3132         from env.c
3134         * env.h, env.c: New file.
3136         * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
3137         adaint.c by __gnat_getenv from env.c
3139         * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
3140         adaint.c by __gnat_getenv from env.c
3142         * Make-lang.in: Add env.o in the list of C object needed by gnat1
3143         and gnatbind.
3144         Update dependencies.
3146 2006-02-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3147             Olivier Hainque  <hainque@adacore.com>
3148             Eric Botcazou  <ebotcazou@adacore.com>
3150         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
3151         
3152         * gigi.h (value_factor_p): Add prototype and description, now public.
3154         * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
3155         promotion for field with rep clause if the associated size was proven
3156         to be in error.
3157         Expand comments describing attempts to use a packable type.
3158         (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
3159         E_Floating_Point_Subtype>: Inherit alias set of what we are making a
3160         subtype of to ensure conflicts amongst all subtypes in a hierarchy,
3161         necessary since these are not different types and pointers may
3162         actually designate any subtype in this hierarchy.
3163         (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
3164         discriminants but put them into record only if not Unchecked_Union;
3165         pass flag to components_to_record showing Unchecked_Union.
3166         (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
3167         components before variants; don't set TYPE_UNCHECKED_UNION_P.
3168         (components_to_record): New argument UNCHECKED_UNION.
3169         Remove special case code for Unchecked_Union and instead use main code
3170         with small changes.
3172         PR ada/26096
3173         (gnat_to_gnu_entity) <E_Variable>: Do not initialize the
3174         aligning variable with the expression being built, only its inner
3175         field.
3177         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
3178         emit_sequence_entry_statements.
3179         (emit_sequence_entry_statements, body_with_handlers_p): Delete.
3180         (establish_gnat_vms_condition_handler): Move before
3181         Subprogram_Body_to_gnu.
3182         (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
3183         for a subprogram if it has a foreign convention or is exported.
3184         (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
3185         substituted for a CONST_DECL.
3186         (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
3187         Etype to assoc_to_constructor.
3188         (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
3189         discriminants of Unchecked_Union.
3190         (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
3191         don't need cluttering preprocessor directives.
3192         (establish_gnat_vms_condition_handler): New function. Establish the GNAT
3193         condition handler as current in the compiled function.
3194         (body_with_handlers_p): New function. Tell whether a given sequence of
3195         statements node is attached to a package or subprogram body and involves
3196         exception handlers possibly nested within inner block statements.
3197         (emit_sequence_entry_statements): New function, to emit special
3198         statements on entry of sequences when necessary. Establish GNAT
3199         condition handler in the proper cases for VMS.
3200         (Handled_Sequence_Of_Statements_to_gnu): Start block code with
3201         emit_sequence_entry_statements.
3203         * utils2.c (find_common_type): If both input types are BLKmode and
3204         have a constant size, use the smaller one.
3205         (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
3206         the same.
3208         * utils.c (value_factor_p): Make public, to allow uses from other gigi
3209         units.
3210         (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
3211         (convert, case UNION_TYPE): Remove special treatment for unchecked
3212         unions.
3214         PR ada/18659
3215         (update_pointer_to): Update variants of pointer types to
3216         unconstrained arrays by attaching the list of fields of the main
3217         variant.
3219 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
3220             Robert Dewar  <dewar@adacore.com>
3222         * a-exexpr.adb, a-exexpr-gcc.adb
3223         (Process_Raise_Exception): Removed, merged with Propagate_Exception.
3224         (Propagate_Exception): Now take extra From_Signal_Handler parameter.
3225         Remove code unused for exception propagation for the compiler itself
3226         from a-except.adb and update to still share separate packages.
3228         * a-except.ads, a-except.adb: Ditto.
3229         Add comments that this version is now used only by the compiler and
3230         other basic tools. The full version that includes the Ada 2005 stuff
3231         is in separate files a-except-2005.ads/adb. The reason is that we do
3232         not want to cause bootstrap problems with compilers not recognizing
3233         Wide_Wide_String.
3234         Add exception reason code PE_Implicit_Return
3235         Add new exception reason code (Null Exception_Id)
3237         * a-except-2005.adb, a-except-2005.ads: New files.
3239         * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
3241         * s-wchcon.adb: New file.
3243         * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
3244         (traceback.o deps): Likewise.
3245         (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
3246         Activate build of GMEM instrumentation library on VMS targets.
3247         (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
3248         Use a-except-2005.ads/adb for all run-time library builds unless
3249         specified otherwise.
3250         [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
3251         s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
3252         Use s-parame.adb on all native platforms.
3253         Use s-parame-vxworks.adb on all vxworks platforms.
3254         Add env.c env.h in LIBGNAT_SRCS
3255         Add env.o in LIBGNAT_OBJS
3256         (GNATMAKE_OBJS): Remove ctrl_c.o object.
3257         (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
3258         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
3259         supports VxWorks 6 RTPs.
3260         (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
3261         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
3263         * types.h, types.ads (Terminate_Program): New exception
3264         Add comment on modifying multiple versions of a-except.adb when the
3265         table of exception reasons is modified.
3266         Add exception reason code PE_Implicit_Return
3267         Add new exception reason code (Null Exception_Id)
3269         * clean.adb (Initialize): Get the target parameters before checking
3270         if target is OpenVMS. Move the OpenVMS specific code here from package
3271         body elaboration code.
3273 2006-02-13  Thomas Quinot  <quinot@adacore.com>
3274             Vincent Celier  <celier@adacore.com>
3275             Robert Dewar  <dewar@adacore.com>
3277         * ali-util.adb (Get_File_Checksum): Update to account for change in
3278         profile of Initialize_Scanner.
3280         * gprep.adb (Gnatprep): Update to account for change in profile of
3281         Initialize_Scanner.
3282         (Process_One_File): Same.
3284         * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
3285         common code between Get_Code_Unit and Get_Source_Unit. Reimplement
3286         that behaviour using the new Unit information recorded in the source
3287         files table, rather than going through all units every time.
3288         (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
3289         (Get_Source_Unit): Same.
3291         * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
3292         change in profile of Initialize_Scanner.
3293         (Prepare_To_Preprocess): Same.
3295         * lib.ads: Fix typo in comment (templace -> template).
3297         * prj-part.adb (Parse_Single_Project): Update to account for change in
3298         profile of Initialize_Scanner.
3300         * scn.adb (Initialize_Scanner): Account for change in profile of
3301         Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
3302         Also record the association of the given Source_File_Index to the
3303         corresponding Unit_Number_Type.
3305         * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
3306         procedure.
3307         (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
3308         Remove Unit formal for generic scanner: this formal
3309         is only relevant to Scn (the scanner instance used to parse Ada source
3310         files), not to other instances. Update comment accordingly.
3311         (Scan): Use new function Snames.Is_Keyword_Name.
3313         * sinfo-cn.adb: Fix typo in comment.
3315         * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
3316         Unit.
3318         * sinput.ads (Source_File_Record): New component Unit, used to capture
3319         the unit identifier (if any) associated to a source file.
3321         * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
3322         Unit in Source_File_Record.
3324         * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
3325         in profile of Initialize_Scanner.
3327         * scans.adb (Initialize_Ada_Keywords): New procedure
3329         * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
3330         Ada keywords in the Namet table, without the need to call
3331         Initialize_Scanner.
3333         * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
3334         (Is_Keyword_Name): New function
3336         * snames.ads: Add subtype Configuration_Pragma_Names
3337         Add pragma Ada_2005 (synonym for Ada_05)
3338         (Is_Keyword_Name): New function
3340         * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
3342 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
3344         * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
3345         index.
3347         * a-stwima.adb (To_Set): Add extra check when N = 0.
3349         * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
3351 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
3353         * s-parame-mingw.adb, s-parame-linux.adb,
3354         s-parame-solaris.adb: Removed, replaced by s-parame.adb
3356         * s-parame-vxworks.ads: Fix typo.
3358         * s-parame-vxworks.adb: New file.
3360         * s-parame.adb: Version now used by all native platforms.
3361         (Default_Stack_Size): Use 2 megs for default stack size and use
3362         __gl_default_stack_size when available.
3363         (Minimum_Stack_Size): Use 12K.
3365         * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
3366         (Create_Task): Refine implementation taking advantage of the XP stack
3367         size support. On XP, we now create the thread using the flag
3368         STACK_SIZE_PARAM_IS_A_RESERVATION.
3370         * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
3372         * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
3373         XP and 0 on older Windows versions.
3375         * interfac-vms.ads: Removed, no longer used.
3377 2006-02-13  Matthew Heaney  <heaney@adacore.com>
3379         * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb, 
3380         a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb, 
3381         a-cohase.adb: All explicit raise statements now include an exception
3382         message.
3384         * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
3385         (Update_Element_Preserving_Key): renamed op to just Update_Element.
3386         Explicit raise statements now include an exception message
3388         * a-cihase.ads, a-cohase.ads: Removed comment.
3390         * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
3391         a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
3392         a-szbzha.adb, a-szfzha.ads: New files.
3394 2006-02-13  Matthew Heaney  <heaney@adacore.com>
3396         * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
3397         quicksort.
3399 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
3401         * lang.opt: Wvariadic-macros: New option.
3402         Wold-style-definition: Likewise.
3403         Wmissing-format-attribute: Likewise.
3405         * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
3406         -Wold-style-definition and -Wmissing-format-attribute.
3408 2006-02-13  Robert Dewar  <dewar@adacore.com>
3410         * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
3412         * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
3414 2006-02-13  Nicolas Roche  <roche@adacore.com>
3416         * a-envvar.adb, a-envvar.ads: New files.
3418 2006-02-13  Douglas Rupp  <rupp@adacore.com>
3420         * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
3422         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
3424 2006-02-13  Pat Rogers  <rogers@adacore.com>
3426         * a-rttiev.adb, a-rttiev.ads: New files.
3428 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
3430         * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
3431         a-wwboio.ads, a-zzboio.adb, a-zzboio.ads:  New files.
3433         * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
3435 2006-02-13  Robert Dewar  <dewar@adacore.com>
3437         * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb, 
3438         sem_case.adb: Minor code reorganization (not Present should be No)
3440 2006-02-13  Geert Bosch  <bosch@adacore.com>
3441             Gary Dismukes  <dismukes@adacore.com>
3443         * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
3444         0, since the lower bound of the actual string may be greater than one.
3446         PR ada/20753
3448         (Put): Fix condition to raise Layout_Error when invalid
3449         layout is requested.
3451 2006-02-13  Vincent Celier  <celier@adacore.com>
3453         * back_end.adb (Scan_Compiler_Arguments): Check if
3454         Search_Directory_Present is True and, if it is, add the argument in
3455         the source search directory path.
3457         * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
3458         Search_Directory_Present to True.
3460 2006-02-13  Joel Brobecker  <brobecke@adacore.com>
3462         * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
3463         volatile, to tell the compiler to preserve this variable at any level
3464         of optimization.
3465         (Gen_Versions_Ada): Temporarily work around codegen bug.
3467 2006-02-13  Vincent Celier  <celier@adacore.com>
3469         * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
3470         gcc to link with option -shared-libgcc.
3471         (Gnatlink): Remove duplicate switches -shared-libgcc
3473 2006-02-13  Robert Dewar  <dewar@adacore.com>
3475         * gnatvsn.ads (Current_Year): New constant, used to easily update
3476         copyright on all GNAT tools.
3478         * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
3479         copyright notice.
3481 2006-02-13  Robert Dewar  <dewar@adacore.com>
3483         * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
3484         after hyphen (small aesthetic change useful for a range of numbers
3485         using ^-^.
3486         Suppress range checks for a couple of assignments which otherwise
3487         cause validity checks with validity checking turned on.
3489         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
3490         Improvement in error message for object.
3491         (Rep_Item_Too_Late): Remove '!' in warning message.
3493 2006-02-13  Robert Dewar  <dewar@adacore.com>
3494             Eric Botcazou  <ebotcazou@adacore.com>
3496         * err_vars.ads: Suppress range checks for a couple of assignments
3497         which otherwise cause validity checks with validity checking turned on.
3498         Update comments.
3500         * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
3501         Make message unconditional if it is a warning.
3502         (Error_Msg_NEL): Always output warning messages.
3503         Suppress range checks for a couple of assignments which otherwise
3504         cause validity checks with validity checking turned on.
3506         * errout.ads (Message Insertion Characters): Document that '!' is
3507         implied by '?' in error messages.
3509         * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
3510         (Gnat1drv): Use a goto to end of main subprogram instead of
3511         Exit_Program (E_Success) so that finalization can occur normally.
3513 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
3515         * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
3516         wrapped around.
3518 2006-02-13  Vincent Celier  <celier@adacore.com>
3520         * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
3521         Unchecked_Conversion functions.
3522         (Modification_Time): Use direct conversion of OS_Time to Calendar time
3523         when OpenVMS returns False.
3525         * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
3526         a-dirval.adb (OpenVMS): New Boolean function
3528 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
3529             Thomas Quinot  <quinot@adacore.com>
3531         * checks.adb (Build_Discriminant_Checks): If the expression being
3532         checks is an aggregate retrieve the values of its discriminants to
3533         generate the check, rather than creating a temporary and a reference
3534         to it.
3535         (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
3536         (Install_Null_Excluding_Check): Ditto
3537         (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
3538         not for the renamed object, so that the actual itype is attached in the
3539         proper context.
3541 2006-02-13  Robert Dewar  <dewar@adacore.com>
3542             Vincent Celier  <celier@adacore.com>
3544         * debug.adb: Eliminate numeric switches for binder/gnatmake
3546         * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
3547         switches for the compiler.
3548         (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
3549         (Scan_Make_Switches): When failing with an illegal switch, output an
3550         error message with the full switch.
3551         Eliminate numeric switches for binder/gnatmake
3553         * switch.ads, switch.adb (Bad_Switch): New procedure
3555         * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
3556         Remove 0-9 as debug flag character possibilities
3557         -d is now controlling the primary stack size when its value is a
3558         positive. Also add checks against invalid values, and support for kb,
3559         mb. Ditto for -D switch.
3561 2006-02-13  Robert Dewar  <dewar@adacore.com>
3562             Serguei Rybin  <rybin@adacore.com>
3564         * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
3565         save/restore routines.
3566         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
3567         were not always properly handled previously.
3568         Since we are changing the tree format anyway, also get rid of the
3569         junk obsolete Immediate_Errors flag.
3570         (Tree_Read): Change the way of reading Tree_Version_String - now we
3571         read the version string from the tree even if its length is not the
3572         same as the length of the version string computed from Gnatvsn.
3573         (Search_Directory_Present): New Boolean flag for the compiler.
3574         Define Tree_Version_String as a dynamic string.
3575         (Default_Stack_Size): new variable, used to handle switch -d.
3577         * par-prag.adb: 
3578         For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
3579         only for main unit.
3580         Add pragma Ada_2005 (synonym for Ada_05)
3581         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
3582         were not always properly handled previously.
3584         * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
3585         explicit Ada_95 to Ada_2005.
3587 2006-02-13  Javier Miranda  <miranda@adacore.com>
3588             Robert Dewar  <dewar@adacore.com>
3589             Ed Schonberg  <schonberg@adacore.com>
3591         * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
3592         against errors in the source program: a private types for which the
3593         corresponding full type declaration is missing and pragma CPP_Virtual
3594         is used.
3595         (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
3596         (Is_Known_Null): New flag
3597         (Has_Pragma_Pure): New flag
3598         (No_Return): Present in all entities, set only for procedures
3599         (Is_Limited_Type): A type whose ancestor is an interface is limited if
3600         explicitly declared limited.
3601         (DT_Offset_To_Top_Func): New attribute that is present in E_Component
3602         entities. Only used for component marked Is_Tag. If present it stores
3603         the Offset_To_Top function used to provide this value in tagged types
3604         whose ancestor has discriminants.
3606         * exp_ch2.adb: Update status of new Is_Known_Null flag
3608         * sem_ch7.adb: Maintain status of new Is_Known_Null flag
3610         * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
3611         the categorization sense if Is_Pure was set by pragma Pure_Function.
3613 2006-02-13  Quentin Ochem  <ochem@adacore.com>
3614             Olivier Hainque  <hainque@adacore.com>
3616         * bindusg.adb: Updated documentation for -d and -D switches.
3618         * raise.h (__gnat_set_globals): added new parameter for
3619         Default_Stack_Size.
3621         * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
3622         (__gnat_handle_vms_condition): Adjust context before raise.
3623         (__gnat_install_handler): Restore the global vector setup for GCC
3624         versions before 3.4, as the frame based circtuitry is not available
3625         in this case.
3626         (__gnat_set_globals): added a parameter default_stack_size
3627         (__gl_default_stack_size): new variable.
3629 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
3631         * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
3632         "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
3633         does not exist in the Ada RM.
3634         (Compatible_Int_Bounds): Determine whether two integer range bounds
3635         are of equal length and have the same start and end values.
3636         (Is_Int_Range_Bounds): Determine whether a node is an integer range.
3637         (Build_Record_Aggr_Code): Perform proper sliding of a nested array
3638         aggregate when it is part of an object declaration.
3639         (Build_Record_Aggr_Code)  If the aggregate ttype is a derived type that
3640         constrains discriminants of its parent, add explicitly the discriminant
3641         constraints of the ancestor by retrieving them from the
3642         stored_constraint of the parent.
3644 2006-02-13  Robert Dewar  <dewar@adacore.com>
3646         * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
3647         attribute Mechanism_Code is applied to renamed subprogram, modify
3648         prefix to point to base subprogram.
3649         Max/Min attributes now violate Restriction No_Implicit_Conditionals
3651         * sinfo.ads: Document that Mechanism_Code cannot be applied to
3652         renamed subprograms so that the front-end must replace the prefix
3653         appropriately.
3655 2006-02-13  Javier Miranda  <miranda@adacore.com>
3656             Gary Dismukes  <dismukes@adacore.com>
3658         * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
3659         availability of RE_Interface_Tag.
3660         (Build_Initialization_Call): Fix wrong access to the discriminant value.
3661         (Freeze_Record_Type): Do not generate the tables associated with
3662         timed and conditional dispatching calls through synchronized
3663         interfaces if compiling under No_Dispatching_Calls restriction.
3664         When compiling for Ada 2005, for a nonabstract
3665         type with a null extension, call Make_Controlling_Function_Wrappers
3666         and insert the wrapper function declarations and bodies (the latter
3667         being appended as freeze actions).
3668         (Predefined_Primitive_Bodies): Do not generate the bodies of the
3669         predefined primitives associated with timed and conditional
3670         dispatching calls through synchronized interfaces if we are
3671         compiling under No_Dispatching_Calls.
3672         (Build_Init_Procedure):  Use RTE_Available to check if a run-time
3673         service is available before generating a call.
3674         (Make_Controlling_Function_Wrappers): New procedure.
3675         (Expand_N_Full_Type_Declaration): Create a class-wide master for
3676         access-to-limited-interfaces because they can be used to reference
3677         tasks that implement such limited interface.
3678         (Build_Offset_To_Top_Functions): Build the tree corresponding to the
3679         procedure spec and body of the Offset_To_Top function that is generated
3680         when the parent of a type with discriminants has secondary dispatch
3681         tables.
3682         (Init_Secondary_Tags): Handle the case in which the parent of the type
3683         containing secondary dispatch tables has discriminants to generate the
3684         correct arguments to call Set_Offset_To_Top.
3685         (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
3687         * a-tags.ads, a-tags.adb: (Check_Index): Removed.
3688         Add Wide_[Wide_]Expanded_Name.
3689         (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
3690         the same functionality of Get_Prim_Op_Address but applied to predefined
3691         primitive operations because the pointers to the predefined primitives
3692         are now saved in a separate table.
3693         (Parent_Size): Modified to get access to the separate table of primitive
3694         operations or the parent type.
3695         (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
3696         functionality of Set_Prim_Op_Address but applied to predefined primitive
3697         operations.
3698         (Set_Signature): New subprogram used to store the signature of a DT.
3699         (Displace): If the Offset_To_Top value is not static then call the
3700         function generated by the expander to get such value; otherwise use
3701         the value stored in the table of interfaces.
3702         (Offset_To_Top): The type of the actual has been changed to Address to
3703         give the correct support to tagged types with discriminants. In this
3704         case this value is stored just immediately after the tag field.
3705         (Set_Offset_To_Top): Two new formals have been added to indicate if the
3706         offset_to_top value is static and hence pass this value to the run-time
3707         to store it in the table of interfaces, or else if this value is dynamic
3708         and then pass to the run-time the address of a function that is
3709         generated by the expander to provide this value for each object of the
3710         type.
3712         * rtsfind.ads (Default_Prin_Op_Count): Removed.
3713         (Default_Prim_Op_Count): New entity
3714         (Get_Predefined_Prim_Op_Address): New entity
3715         (Set_Predefined_Prim_Op_Address): New entity
3716         (RE_Set_Signature): New entity
3718 2006-02-13  Thomas Quinot  <quinot@adacore.com>
3719             Ed Schonberg  <schonberg@adacore.com>
3721         * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
3722         Make_Adjust_Call done for a newly-allocated object.
3724         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
3725         in a subprogram are wrapped in a cleanup block, indicate that the
3726         subprogram contains an inner block with an exception handler.
3727         (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
3728         Adjust call is for a newly-allocated object. In that case we must not
3729         assume that the finalization list chain pointers are correct (since they
3730         come from a bit-for-bit copy of the original object's pointers) so if
3731         the attach level would otherwise be zero (no change), we set it to 4
3732         instead to cause the pointers to be reset to null.
3734         * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
3735         reset chain pointers to null.
3737 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
3739         * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
3740         string, and the context requires a loop for the assignment (e.g.
3741         because the left-hand side is packed), generate a unique name for the
3742         temporary that holds the string, to prevent spurious name clashes.
3744 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
3745             Javier Miranda  <miranda@adacore.com>
3746             Robert Dewar  <dewar@adacore.com>
3747             Gary Dismukes  <dismukes@adacore.com>
3749         * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
3750         return unconstrained arrays.
3751         Update comments.
3752         (Expand_Call):  An indirect call through an access parameter of a
3753         protected operation is not a protected call.
3754         Add circuit to raise CE in Ada 2005 mode following call
3755         to Raise_Exception.
3756         (Register_DT_Entry): Do nothing if
3757         the run-time does not give support to abstract interfaces.
3758         (Freeze_Subprogram): In case of dispatching operations, do not generate
3759         code to register the operation in the dispatch table if the source
3760         is compiled with No_Dispatching_Calls.
3761         (Register_Predefined_DT_Entry): Generate code that calls the new
3762         run-time subprogram Set_Predefined_Prim_Op_Address instead of
3763         Set_Prim_Op_Address.
3765         * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
3766         on array assignments if the right-hand side is a function call that has
3767         been inlined. Check is performed on the assignment in the block.
3768         (Process_Bounds): If bounds and range are overloaded, apply preference
3769         rule for root operations to disambiguate, and diagnose true ambiguity.
3770         (Analyze_Assignment): Propagate the tag for a class-wide assignment with
3771         a tag-indeterminate right-hand side even when Expander_Active is True.
3772         Needed to ensure that dispatching calls to T'Input are allowed and
3773         get the tag of the target class-wide object.
3775         * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
3776         an inherited primitive operation that already overrides several
3777         abstract interface primitives. For transitivity, the new entity must
3778         also override all the abstract interface primitives covered by the
3779         inherited overriden primitive.
3780         Emit warning if new entity differs from homograph in same scope only in
3781         that one has an access parameter and the other one has a parameter of
3782         a general access type with the same designated type, at the same
3783         position in the signature.
3784         (Make_Inequality_Operator): Use source locations of parameters and
3785         subtype marks from corresponding equality operator when creating the
3786         tree structure for the implicit declaration of "/=". This does not
3787         change anything in behaviour except that the decoration of the
3788         components of the subtree created for "/=" allows ASIS to get the
3789         string images of the corresponding identifiers.
3790         (Analyze_Return_Statement): Remove '!' in warning message.
3791         (Check_Statement_Sequence): Likewise.
3792         (Analyze_Subprogram_Body): For an access parameter whose designated type
3793         is an incomplete type imported through a limited_with clause, use the
3794         type of the corresponding formal in the body.
3795         (Check_Returns): Implicit return in No_Return procedure now raises
3796         Program_Error with a compile time warning, instead of beging illegal.
3797         (Has_Single_Return):  Function returning unconstrained type cannot be
3798         inlined if expression in unique return statement is not an identifier.
3799         (Build_Body_To_Inline): It is possible to inline a function call that
3800         returns an unconstrained type if all return statements in the function
3801         return the same local variable. Subsidiary procedure Has_Single_Return
3802         verifies that the body conforms to this restriction.
3804         * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
3805         same type, and  one of them is of an anonymous access type, convert
3806         the other operand to it, so that this is a valid binary operation for
3807         gigi.
3808         (Resolve_Type_Conversion): Handle subtypes of protected types and
3809         task types when accessing to the corresponding record type.
3810         (Resolve_Allocator): Add '\' in 2-line warning message.
3811         Remove '!' in warning message.
3812         (Resolve_Call): Add '\' in 2-line warning message.
3813         (Valid_Conversion): Likewise.
3814         (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
3815         resulting type may be an access type with an implicit dereference.
3816         Obtain the proper component from the designated type.
3817         (Make_Call_Into_Operator): Handle properly a call to predefined equality
3818         given by an expanded name with prefix Standard, when the operands are
3819         of an anonymous access type.
3820         (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
3821         Explicit_Dereference and Resolve_Selected_Component, to verify that the
3822         prefix of the expression is not of an incomplete type. Allows full
3823         diagnoses of all semantic errors.
3824         (Resolve_Actuals): If the actual is an allocator whose directly
3825         designated type is a class-wide interface we build an anonymous
3826         access type to use it as the type of the allocator. Later, when
3827         the subprogram call is expanded, if the interface has a secondary
3828         dispatch table the expander will add a type conversion to force
3829         the displacement of the pointer.
3830         (Resolve_Call): If a function that returns an unconstrained type is
3831         marked Inlined_Always and inlined, the call will be inlined and does
3832         not require the creation of a transient scope.
3833         (Check_Direct_Boolean_Op): Removed
3834         (Resolve_Comparison_Op): Remove call to above
3835         (Resolve_Equality_Op): Remove call to above
3836         (Resolve_Logical_Op): Inline above, since this is only call.
3837         (Valid_Conversion): Handle properly conversions between arrays of
3838         convertible anonymous access types.
3840         PR ada/25885
3842         (Set_Literal_String_Subtype): If the lower bound is not static, wrap
3843         the literal in an unchecked conversion, because GCC 4.x needs a static
3844         value for a string bound.
3846 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
3847             Hristian Kirtchev  <kirtchev@adacore.com>
3849         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
3850         components of the corresponding record, take into account component
3851         definitions that are access definitions.
3852         (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
3853         procedure is not considered a dispatching call and will be expanded
3854         properly.
3856 2006-02-13  Javier Miranda  <miranda@adacore.com>
3858         * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
3859         controlling argument of the dispatching call is an abstract interface
3860         class-wide type then we use it directly.
3861         Check No_Dispatching_Calls restriction.
3862         (Default_Prim_Op_Position): Remove the code that looks for the last
3863         entity in the list of aliased subprograms. This code was wrong in
3864         case of renamings.
3865         (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
3866         when the source is compiled with the No_Dispatching_Calls restriction.
3867         (Init_Predefined_Interface_Primitives): No need to inherit primitives
3868         if we are compiling with restriction No_Dispatching_Calls.
3869         (Make_Disp_XXX): Addition of assertion to avoid the use of all these
3870         subprograms if we are compiling under No_Dispatching_Calls restriction.
3871         (Make_DT): Generate a dispatch table with a single dummy entry if
3872         we are compiling with the No_Dispatching_Calls restriction. In
3873         addition, in this case we don't generate code that calls to the
3874         following run-time subprograms: Set_Type_Kind, Inherit_DT.
3875         (Make_Select_Specific_Data_Table): Add assertion to avoid the use
3876         of this subprogram if compiling with the No_Dispatching_Calls
3877         restriction.
3878         (Expand_Type_Conversion): Instead of using the actual parameter,
3879         the argument passed as parameter to the conversion function was
3880         erroneously referenced by the expander.
3881         (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
3882         Set_Predefined_Primitive_Op_Address and Set_Signature.
3883         (Expand_Dispatching_Call): Generate call to
3884         Get_Predefined_Prim_Op_Address for predefined primitives.
3885         (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
3886         predefined primitives.
3887         (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
3888         primitives we reserve one dummy entry to ensure that the tag does not
3889         point to some memory that is associated with some other object. In
3890         addition, remove all the old code that generated the assignments
3891         associated with the signature of the dispatch table and replace them
3892         by a call to the new subprogram Set_Signature.
3893         (Set_All_DT_Position): Change the algorithm because now we have a
3894         separate dispatch table associated with predefined primitive operations.
3895         (Expand_Interface_Conversion): In case of non-static offset_to_top
3896         add explicit dereference to get access to the object after the call
3897         to displace the pointer to the object.
3898         (Expand_Interface_Thunk): Modify the generation of the actual used
3899         in the calls to the run-time function Offset_To_Top to fulfil its
3900         new interface.
3901         (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
3903 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
3905         * exp_dist.adb (Copy_Specification): For access parameters, copy
3906         Null_Exclusion flag, which will have been set for stream subprograms
3907         in Ada2005 mode.
3909 2006-02-13  Pascal Obry  <obry@adacore.com>
3911         * expect.c (__gnat_expect_portable_execvp): New implementation. The
3912         previous implementation was using the C runtime spawnve routine but
3913         the corresponding wait was using directly the Win32 API. This was
3914         causing some times a lock when waiting for an event using
3915         WaitForSingleObject in __gnat_waitpid. This new implementation uses
3916         the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
3917         API fixes this problem.
3919 2006-02-13  Robert Dewar  <dewar@adacore.com>
3921         * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
3922         call.
3924 2006-02-13  Thomas Quinot  <quinot@adacore.com>
3926         * exp_pakd.ads: Fix typos in comments.
3928         * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
3929         array reference that is an explicit dereference, mark the converted
3930         (packed) array reference as analyzed to prevent a forthcoming
3931         reanalysis from resetting its type to the original (non-packed) array
3932         type.
3934 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
3935             Javier Miranda  <miranda@adacore.com>
3936             Eric Botcazou  <ebotcazou@adacore.com>
3938         * exp_util.ads, exp_util.adb (Find_Prim_Op,
3939         Is_Predefined_Primitive_Operation): When
3940         searching for the predefined equality operator, verify that operands
3941         have the same type.
3942         (Is_Predefined_Dispatching_Operation): Remove the code that looks
3943         for the last entity in the list of aliased subprograms. This code
3944         was wrong in case of renamings.
3945         (Set_Renamed_Subprogram): New procedure
3946         (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
3947         Exp_Type constant computed when entering this subprogram.
3948         (Known_Null): New function
3949         (OK_To_Do_Constant_Replacement): New function
3950         (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
3951         (Side_Effect_Free): An attribute reference 'Input is not free of
3952         side effect, unlike other attributes that are functions. (from code
3953         reading).
3954         (Remove_Side_Effects): Expressions that involve packed arrays or records
3955         are copied at the point of reference, and therefore must be marked as
3956         renamings of objects.
3957         (Is_Predefined_Dispatching_Operation): Return false if the operation is
3958         not a dispatching operation.
3960         PR ada/18819
3961         (Remove_Side_Effects): Lift enclosing type conversion nodes for
3962         elementary types in all cases.
3964 2006-02-13  Javier Miranda  <miranda@adacore.com>
3966         * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
3967         task types when accessing to the corresponding record type.
3968         Remove '!' in warning message.
3970 2006-02-13  Olivier Hainque  <hainque@adacore.com>
3972         * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
3973         to avoid useless and space inefficient overalignments on targets where
3974         Max_Alignment is larger than 16.
3976 2006-02-13  Pascal Obry  <obry@adacore.com>
3978         * g-catiio.adb (Sec_Number): New type used to compute the number of
3979         seconds since 1-1-1970.
3980         (Image) [Natural]: The parameter was an Integer, as we can't deal with
3981         negative numbers (years, months...) it is better to have a Natural here.
3982         Code clean-up.
3983         (Image) [Number]: Change parameter from Long_Integer to Number.
3984         (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
3985         overflow for dates past year 2038.
3987 2006-02-13  Matthew Heaney  <heaney@adacore.com>
3989         *  g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
3990         Constraint_Error.
3992 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
3994         * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
3995         native platforms.
3996         (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
3997         finalization can occur normally.
3999 2006-02-13  Vincent Celier  <celier@adacore.com>
4001         * gnatcmd.adb (Rules_Switches): New table
4002         (Add_To_Rules_Switches): New procedure
4003         (GNATCmd): For command CHECK, put all options following "-rules" in the
4004         Rules_Switches table. Append these -rules switches after the -cargs
4005         switches.
4007 2006-02-13  Robert Dewar  <dewar@adacore.com>
4009         * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
4010         These two cases were generating incorrect output, and if this unit
4011         was built with checks on, generated a discriminant mismatch constraint
4012         error.
4014 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
4015             Robert Dewar  <dewar@adacore.com>
4017         * lib-xref.adb (Get_Type_Reference): For a private type whose full
4018         view is an array type, indicate the component type as well, for
4019         navigation purposes.
4020         (Generate_Reference): Don't consider array ref on LHS to be a case
4021         of violating pragma Unreferenced.
4022         Do not give Ada 2005 warning except on real reference.
4024 2006-02-13  Vincent Celier  <celier@adacore.com>
4026         * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
4027         main source, add switch -mdebug-main=_ada_ so that the executable can
4028         be debugged by the standard VMS debugger.
4029         (Gnatmake): Set No_Main_Subprogram to True when there is no main
4030         subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
4031         Exit the Multi_Main_Loop when Unique_Compile is True after compilation
4032         of the last source, as the binding and linking phases are never
4033         performed.
4034         Set all executable obsolete when rebuilding a library.
4036         * makeutl.adb (Linker_Options_Switches): Do not process empty linker
4037         options.
4039 2006-02-13  Javier Miranda  <miranda@adacore.com>
4041         PR ada/23973
4043         * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
4044         code to improve the error message reported when the program has
4045         declarations of abstract interface types and it is not compiled with
4046         the -gnat05 switch.
4047         (P_Access_Definition): Reorganize the code to improve the error
4048         message reported when the new Ada 2005 syntax for anonymous
4049         access types is used and the program is not compiled with the
4050         -gnat05 switch.
4052 2006-02-13  Robert Dewar  <dewar@adacore.com>
4054         * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
4055         stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
4056         (MODE_IN)
4058 2006-02-13  Javier Miranda  <miranda@adacore.com>
4060         * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
4061         against source containing syntax errors.
4063 2006-02-13  Vincent Celier  <celier@adacore.com>
4065         * prj.adb (Reset): Initialize the first element of table Namings with
4066         the standard naming data.
4068 2006-02-13  Vincent Celier  <celier@adacore.com>
4070         * prj.ads (Error_Warning): New enumeration type
4072         * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
4073         unknown, use the location of the project to report the error.
4074         (When_No_Sources): New global variable
4075         (Report_No_Ada_Sources): New procedure
4076         (Check): New parameter When_No_Sources. Set value of global variable
4077         When_No_Sources,
4078         (Find_Sources): Call Report_No_Ada_Sources when appropriate
4079         (Get_Sources_From_File): Ditto
4080         (Warn_If_Not_Sources): Better warning messages indicating the unit name
4081         and the file name.
4083         * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
4084         Call Prj.Proc.Process with parameter When_No_Sources.
4086         * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
4087         Call Recursive_Check with parameter When_No_Sources.
4088         (Recursive_Check): New parameter When_No_Sources. Call itself and
4089         Prj.Nmsc.Check with parameter When_No_Sources.
4090         (Process): New parameter When_No_Sources. Call Check with parameter
4091         When_No_Sources.
4092         (Copy_Package_Declarations): New procedure to copy renamed parameters
4093         and setting the location of the declared attributes to the location
4094         of the renamed package.
4095         (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
4096         packages.
4098 2006-02-13  Vincent Celier  <celier@adacore.com>
4100         * prj-makr.adb (Make): Preserve the comments from the original project
4101         file.
4102         When removing nodes (attributes Source_Dirs, Source_Files,
4103         Source_List_File and package Naming), save the comments and attach the
4104         saved comments to the newly created nodes.
4105         Do not add a with clause for the naming package if one already exists.
4107 2006-02-13  Javier Miranda  <miranda@adacore.com>
4108             Gary Dismukes  <dismukes@adacore.com>
4109             Robert Dewar  <dewar@adacore.com>
4111         * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
4113         * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
4114         aliased entities to look for the overriden abstract interface
4115         subprogram.
4116         (Is_Interface_Subprogram): Complete documentation.
4117         (Check_Dispatching_Operation): Do not generate code to register the
4118         operation in the dispatch table if the source is compiled with
4119         restriction No_Dispatching_Calls.
4120         (Override_Dispatching_Operation): Check for illegal attempt to override
4121         No_Return procedure with procedure that is not No_Return
4122         (Check_Dispatching_Call): Suppress the check for an abstract operation
4123         when the original node of an actual is a tag-indeterminate attribute
4124         call, since the attribute, which must be 'Input, can never be abstract.
4125         (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
4126         call to the Input attribute (even when rewritten).
4127         (Propagate_Tag): Augment comment to indicate the possibility of a call
4128         to an Input attribute.
4130         * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
4131         calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
4133         * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
4134         No_Wide_Characters is no longer partition-wide
4135         No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
4136         rather than GNAT
4138 2006-02-13  Douglas Rupp  <rupp@adacore.com>
4140         * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
4142 2006-02-13  Javier Miranda  <miranda@adacore.com>
4144         * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
4145         handles default-initialized components to keep separate the management
4146         of this feature but also avoid the unrequired resolution and
4147         expansion of components that do not have partially initialized
4148         values.
4149         (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
4150         (Check_Bounds): Likewise.
4151         (Check_Length): Likewise.
4153 2006-02-13  Javier Miranda  <miranda@adacore.com>
4154             Ed Schonberg  <schonberg@adacore.com>
4156         * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
4157         abstract interface type call analyze_and_resolve to expand the type
4158         conversion into the corresponding displacement of the
4159         reference to the base of the object.
4160         (Eval_Attribute, case Width): For systems where IEEE extended precision
4161         is supported, the maximum exponent occupies 4 decimal digits.
4162         (Accessibility_Message): Add '\' in 2-line warning message.
4163         (Resolve_Attribute): Likewise.
4164         (case Attribute_Access): Significantly revise checks
4165         for illegal access-to-subprogram Access attributes to properly enforce
4166         the rules of 3.10.2(32/2).
4167         Diagnose use of current instance with an illegal attribute.
4169         * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
4170         to a Node_Id.
4171         (Enclosing_Generic_Unit): New function to return a node's innermost
4172         enclosing generic declaration node.
4173         (Compile_Time_Constraint_Error): Remove '!' in warning messages.
4174         (Type_Access_Level): The accessibility level of anonymous acccess types
4175         associated with discriminants is that of the current instance of the
4176         type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
4177         (Compile_Time_Constraint_Error): Handle case of conditional expression.
4178         (Kill_Current_Values_For_Entity): New function
4179         (Enter_Name): Change formal type to Entity_Id
4181 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
4182             Ed Schonberg  <schonberg@adacore.com>
4183             Gary Dismukes  <dismukes@adacore.com>
4185         * sem_ch10.adb (Check_Redundant_Withs): New procedure in
4186         Analyze_Compilation_Unit.
4187         Detect and warn on redundant with clauses detected in a package spec
4188         and/or body when -gnatwr is used.
4189         (Analyze_Context): Analyze config pragmas before other items
4190         (Install_Context_Items): Don't analyze config pragmas here
4191         (Install_Limited_Withed_Unit): Set limited entity of package in
4192         with_clause so that cross-reference information or warning messages on
4193         unused packages can be properly generated
4194         (Is_Visible_Through_Renamings): Return false if the limited_with_clause
4195         has Error_Posted set. Prevent infinite loops in illegal programs.
4196         (Check_Private_Child_Unit): Move test for a nonprivate with clause down
4197         to the point of the error test requiring the current unit to be private.
4198         This ensures that private with clauses are not exempted from the basic
4199         checking for being a descendant of the same library unit parent as a
4200         withed private descendant unit.
4201         (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
4202         handle private with clauses properly, as well as to account for cases
4203         where the withed unit is a public descendant of a private ancestor
4204         (in which case the current unit must be a descendant of the private
4205         ancestor's parent). The spec comments were updated accordingly. Also,
4206         the old error message in this subprogram was replaced with error
4207         messages that mirror the errors tested and reported by
4208         Check_Private_Child_Unit.
4209         Parameter and variable names improved for readability.
4210         (Install_Limited_Context_Clauses): Remove test for a withed unit being
4211         private as the precondition for calling
4212         Check_Private_Limited_Withed_Unit since that subprogram has been
4213         revised to test public units as well as private units.
4215 2006-02-13  Thomas Quinot  <quinot@adacore.com>
4216             Robert Dewar  <dewar@adacore.com>
4217             Ed Schonberg  <schonberg@adacore.com>
4218             Javier Miranda  <miranda@adacore.com>
4220         * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
4221         that Scope_Stack.First = 1.
4222         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
4223         were not always properly handled previously.
4224         (Formal_Entity): Complete rewrite, to handle properly some complex case
4225         with multiple levels of parametrization by formal packages.
4226         (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
4227         to the corresponding derived type declaration for proper semantics.
4229         * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
4230         (Check_Component): Enforce restriction on components of
4231         unchecked_unions: a component in a variant cannot contain tasks or
4232         controlled types.
4233         (Unchecked_Union): Allow nested variants and multiple discriminants, to
4234         conform to AI-216.
4235         Add pragma Ada_2005 (synonym for Ada_05)
4236         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
4237         were not always properly handled previously.
4238         Document that pragma Propagate_Exceptions has no effect
4239         (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
4240         (Set_Convention_From_Pragma): Check that if a convention is
4241         specified for a dispatching operation, then it must be
4242         consistent with the existing convention for the operation.
4243         (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
4244         longer required to specify an vtable-ptr component in the record. For
4245         compatibility reasons we leave the support for the previous definition.
4246         (Analyze_Pragma, case No_Return): Allow multiple arguments
4248         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
4249         non-overrideen inherited operation with a controlling result as
4250         illegal only its implicit declaration comes from the derived type
4251         declaration of its result's type.
4252         (Check_Possible_Deferred_Completion): Relocate the object definition
4253         node of the subtype indication of a deferred constant completion rather
4254         than directly analyzing it. The analysis of the generated subtype will
4255         correctly decorate the GNAT tree.
4256         (Record_Type_Declaration): Check whether this is a declaration for a
4257         limited derived record before analyzing components.
4258         (Analyze_Component_Declaration): Diagnose record types  not explicitly
4259         declared limited when a component has a limited type.
4260         (Build_Derived_Record_Type): Code reorganization to check if some of
4261         the inherited subprograms of a tagged type cover interface primitives.
4262         This check was missing in case of a full-type associated with a private
4263         type declaration.
4264         (Constant_Redeclaration): Check that the subtypes of the partial and the
4265         full view of a constrained deferred constant statically match.
4266         (Mentions_T): A reference to the current type in an anonymous access
4267         component declaration  must be an entity name.
4268         (Make_Incomplete_Type_Declaration): If type is tagged, set type of
4269         class_wide type to refer to full type, not to the incomplete one.
4270         (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
4271         available. Required to give support to the certified run-time.
4272         (Analyze_Component_Declaration): In case of anonymous access components
4273         perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
4274         (Process_Discriminants): For an access discriminant, use the
4275         discriminant specification as the associated_node_for_itype, to
4276         simplify accessibility checks.
4278 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
4279             Javier Miranda  <miranda@adacore.com>
4281         * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
4282         abstract interpretations on an operator, remove interpretations that
4283         yield Address or a type derived from it, if one of the operands is an
4284         integer literal.
4285         (Try_Object_Operation.Try_Primitive_Operation,
4286         Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
4287         location when creating the new reference to a primitive or class-wide
4288         operation as a part of rewriting a subprogram call.
4289         (Try_Primitive_Operations): If context requires a function, collect all
4290         interpretations after the first match, because there may be primitive
4291         operations of the same type with the same profile and different return
4292         types. From code reading.
4293         (Try_Primitive_Operation): Use the node kind to choose the proper
4294         operation when a function and a procedure have the same parameter
4295         profile.
4296         (Complete_Object_Operation): If formal is an access parameter and prefix
4297         is an object, rewrite as an Access reference, to match signature of
4298         primitive operation.
4299         (Find_Equality_Type, Find_One_Interp): Handle properly equality given
4300         by an expanded name with prefix Standard, when the operands are of an
4301         anonymous access type.
4302         (Remove_Abstract_Operations): If the operation is abstract because it is
4303         inherited by a user-defined type derived from Address, remove it as
4304         well from the set of candidate interpretations of an overloaded node.
4305         (Analyze_Membership_Op): Membership test not applicable to cpp-class
4306         types.
4308 2006-02-13  Bob Duff  <duff@adacore.com>
4310         * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
4311         redundant use clauses.
4312         In particular, if the scope of two use clauses overlaps, but one is not
4313         entirely included in the other, we should not warn.  This can happen
4314         with nested packages.
4315         (Analyze_Subprogram_Renaming): Protect the compiler against previously
4316         reported errors. The bug was reported when the compiler was built
4317         with assertions enabled.
4318         (Find_Type): If the node is a 'Class reference and the prefix is a
4319         synchronized type without a corresponding record, return the type
4320         itself.
4322 2006-02-13  Javier Miranda  <miranda@adacore.com>
4324         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
4325         if this is the full-declaration associated with a private declaration
4326         that implement interfaces, then the private type declaration must be
4327         limited.
4328         (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
4329         as aliased. The use of the 'access attribute is not available for such
4330         object (for this purpose the object should be explicitly marked as
4331         aliased, but being an anonymous type this is not possible).
4333 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
4334             Robert Dewar  <dewar@adacore.com>
4336         * sem_elab.adb (Same_Elaboration_Scope): A package that is a
4337         compilation unit is an elaboration scope.
4338         (Add_Task_Proc): Add '\' in 2-line warning message.
4339         (Activate_All_Desirable): Deal with case of unit with'ed by parent
4341 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
4342             Javier Miranda  <miranda@adacore.com>
4344         * sem_type.adb (Write_Overloads): Improve display of candidate
4345         interpretations.
4346         (Add_One_Interp): Do not add to the list of interpretations aliased
4347         entities corresponding with an abstract interface type that is an
4348         immediate ancestor of a tagged type; otherwise we have a dummy
4349         conflict between this entity and the aliased entity.
4350         (Disambiguate): The predefined equality on universal_access is not
4351         usable if there is a user-defined equality with the proper signature,
4352         declared in the same declarative part as the designated type.
4353         (Find_Unique_Type): The universal_access equality operator defined under
4354         AI-230 does not cover pool specific access types.
4355         (Covers): If one of the types is a generic actual subtype, check whether
4356         it matches the partial view of the other type.
4358 2006-02-13  Thomas Quinot  <quinot@adacore.com>
4360         * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
4361         line. This is necessary to allow In_Extended_Main_Unit to provide
4362         correct results for itypes while writing out expanded source.
4363         (Close_File): No need to update the source_index_table here since it's
4364         now done for each line.
4366 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
4367             Robert Dewar  <dewar@adacore.com>
4369         * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
4370         preserve the source unit where the itype is declared, and prevent a
4371         backend abort.
4372         (Note_Implicit_Run_Time_Call): New procedure
4373         (Write_Itype): Handle missing cases (E_Class_Wide_Type and
4374         E_Subprogram_Type)
4376         * sprint.ads: Document use of $ for implicit run time routine call
4378 2006-02-13  Quentin Ochem  <ochem@adacore.com>
4380         * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
4381         task name.
4383 2006-02-13  Bob Duff  <duff@adacore.com>
4385         * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
4386         Scan_Unsigned, so we do not scan leading blanks and sign twice.
4387         Integer'Value("- 5") and Integer'Value("-+5") now correctly
4388         raise Constraint_Error.
4390         * s-vallli.adb (Scan_Long_Long_Integer): Call
4391         Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
4392         do not scan leading blanks and sign twice.
4393         Integer'Value("- 5") and Integer'Value("-+5") now correctly
4394         raise Constraint_Error.
4396         * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
4397         Scan_Long_Long_Unsigned): Split out most of the processing from
4398         Scan_Long_Long_Unsigned out into
4399         Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
4400         This prevents scanning leading blanks and sign twice.
4401         Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
4402         See RM-3.5(44).
4404         * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
4405         out most of the processing from Scan_Unsigned out into
4406         Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
4407         This prevents scanning leading blanks and sign twice.
4409         * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
4410         use with Modular'Value attribute.
4411         (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
4412         attribute.
4414 2006-02-13  Robert Dewar  <dewar@adacore.com>
4416         * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
4418 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
4420         * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
4421         (PPC VxWorks): Likewise.
4422         (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
4423         (forced_callee): Make non-inlinable and non-pure.
4424         (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
4426 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
4427             Ben Brosgol  <brosgol@adacore.com>
4428             Robert Dewar  <dewar@adacore.com>
4430         * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
4431         support.
4432         Document that gnatbind -M option is for cross environments only.
4433         Added description of using gnatmem to trace gnat rtl allocs and deallocs
4434         Add note on use of $ to label implicit run time calls
4435         Add documentation for -gnatyI (check mode IN)
4436         Updated chapter on compatibility with HP Ada
4437         VMS-oriented edits.
4438         Ran spell and corrected errors
4439         Add documentation for gnatbind -d and rework documentation of -D
4440         at the same time.
4441         Add subprogram/data elimination section.
4442         Minor editing of annex A.
4443         Add section for gnatcheck.
4444         Add documentation for restriction No_Dispatching_Calls
4445         Add documentation for pragma Ada_2005
4446         Remove mention of obsolete pragma Propagate_Exceptions
4447         Document that pragma Unreferenced can appear after DO in ACCEPT
4448         Clarify Pure_Function for library level units
4449         Mention Max/Min in connection with No_Implicit_Conditionals
4450         No_Wide_Characters restriction is no longer partition-wide
4451         Add a nice example for Universal_Literal_String attribute
4452         Document that pragma No_Return can take multiple arguments
4454         * ug_words: Added entry for gnatcheck
4456         * g-ctrl_c.ads (Install_Handler): Enhance comments
4458         * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
4460         * g-trasym.ads: Add documentation on how to do off line symbolic
4461         traceback computation.
4463         * s-fatgen.adb: Add comments for Unaligned_Valid
4465         * stand.ads: Fix typo in comment
4467 2006-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4469         * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
4471 2006-02-06  Roger Sayle  <roger@eyesopen.com>
4473         * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
4475 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4477         PR target/25926
4478         * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
4479         implementation that calls __main.
4481 2006-01-25  Peter O'Gorman  <peter@pogma.com>
4483         PR bootstrap/25859
4484         * Makefile.in (GCC_LINK): Remove quotes.
4485         (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
4486         or $(GCC_LINK).
4488         (powerpc-darwin): Pass -shared-libgcc when building shared library.
4490 2006-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4492         PR ada/24533
4493         * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
4495 2005-12-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4497         * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
4499 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
4501         * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
4502         needed.
4504 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
4506         * Make-lang.in: Update dependencies
4508 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
4510         * Make-lang.in: Add rule for ada/exp_sel.o
4512 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
4514         * Makefile.in (mingw section): Remove EH_MECHANISM setting.
4516 2005-12-09  Arnaud Charlet  <charlet@adacore.com>
4518         * gnatvsn.ads (Library_Version): Bump to version 4.2
4519         (ASIS_Version_Number): Bumped.
4521 2005-12-09  Doug Rupp  <rupp@adacore.com>
4523         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
4524         Ada bind file prefix on VMS from b$ to b__.
4525         (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
4526         __init.
4528         * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
4529         Targparm.OpenVMS_On_Target.
4530         (Object_Suffix): Initialize with target object suffix.
4531         (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
4533         * butil.adb: Change some Hostparm.OpenVMS checks to
4534         Targparm.OpenVMS_On_Target.
4536         * clean.adb: Change some Hostparm.OpenVMS checks to
4537         Targparm.OpenVMS_On_Target.
4538         (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
4539         ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
4540         Ada bind file prefix on VMS from b$ to b__.
4542         * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
4543         --GCC so that Get_Target_Parameters can find system.ads.
4544         (Gnatlink): Call Get_Target_Parameters in mainline.
4545         Initialize standard packages for Targparm.
4546         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
4547         (Process_Args): Also Check for object files with target object
4548         extension.
4549         (Make_Binder_File_Names): Create with target object extension.
4550         (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
4551         to b__.
4553         * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
4554         Targparm.OpenVMS_On_Target.
4555         ({declaration},Build_Library,Check_Library): Change Ada bind file
4556         prefix on VMS from b$ to b__.
4558         * osint-b.adb: Change some Hostparm.OpenVMS checks to
4559         Targparm.OpenVMS_On_Target.
4560         (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
4561         b__.
4563         * targext.c: New file.
4565         * Makefile.in: add support for vxworks653 builds
4566         (../../vxaddr2line): gnatlink with targext.o.
4567         (TOOLS_LIBS): Move targext.o to precede libgnat.
4568         (init.o, initialize.o): Minor clean up in dependencies.
4569         (GNATLINK_OBJS): Add targparm.o, snames.o
4570         Add rules fo building targext.o and linking it explicitly with all
4571         tools.
4572         Also add targext.o to gnatlib.
4574         * Make-lang.in: Add rules for building targext.o and linking it in
4575         with gnat1 and gnatbind.
4576         Add entry for exp_sel.o.
4578         * osint.adb Change some Hostparm.OpenVMS checks to
4579         Targparm.OpenVMS_On_Target.
4580         (Object_File_Name): Use target object suffix.
4582         * osint.ads (Object_Suffix): Remove, no longer used.
4583         (Target_Object_Suffix): Initialize with target object suffix.
4585         * rident.ads: Add special exception to license.
4587         * targparm.adb (Get_Target_Parameters): Set the value of
4588         Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
4589         value.
4590         (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
4591         
4592         * targparm.ads: Add special exception to license.
4594         * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
4595         function.
4596         (Copy_File): Make sure from file is closed if error on to file
4597         (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
4599         * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
4600         (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
4602         * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
4603         target object suffix.
4605 2005-12-09  Jose Ruiz  <ruiz@adacore.com>
4606             Quentin Ochem  <ochem@adacore.com>
4607             Florian Villoing  <villoing@adacore.com>
4609         * a-taster.ads, a-taster.adb: New files.
4611         * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
4612         link to the version that does nothing. This way the task termination
4613         routine is not executed twice for the environment task when finishing
4614         because of an unhandled exception.
4616         * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
4617         handler because of an unhandled exception.
4619         * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
4620         System.Tasking.Utilities instead of that in System.Tasking.Stages.
4622         * s-finimp.adb (initialization code): Modify the soft link for the
4623         finalization of the global list instead of Adafinal.
4625         * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
4626         non-tasking version of the soft link for task termination. We do
4627         nothing since if we are using the non-tasking version it
4628         means that the task termination functionality is not used.
4629         (Null_Finalize_Global_List): Add this null version for the procedure
4630         in charge of finalizing the global list for controlled objects.
4631         (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
4632         instead for handling run-time termination in a more flexible way.
4633         (Adafinal_NT): This new procedure will take care of finalizing the
4634         global list for controlled objects if needed, but no tasking
4635         finalization.
4637         * s-tarest.adb (Task_Lock): Do not try to lock again the
4638         Global_Task_Lock if we already own it. Otherwise, we get blocked in
4639         some run-time operations.
4640         (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
4641         until all nested locks have been released.
4642         (Task_Wrapper): Call the fall-back task termination handler. It
4643         applies to all tasks but the environment task.
4644         (Finalize_Global_Tasks): Add the call for the task termination
4645         procedure for the environment task.
4646         (Task_Wrapper): suppress warnings around declaration of
4647         Secondary_Stack_Address.
4649         * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
4650         moved to the Common_ATCB record.
4651         (Task_Lock): Global_Task_Lock_Nesting has been moved to the
4652         Common_ATCB record.
4653         (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
4654         Common_ATCB record.
4656         * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
4657         Fall_Back_Handler, and Specific_Handler.
4659         * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
4660         defined in Ada.Task_Termination, to avoid circular dependencies.
4661         (Termination_Handler): Redefine this type here, alredy defined in
4662         Ada.Task_Termination, for avoiding circular dependencies.
4663         (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
4664         for storing task termination handlers. In addition,
4665         Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
4666         Common_ATCB because it is used by both the regular and the restricted
4667         run times.
4668         (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
4669         Common_ATCB because it is used by both the regular and the restricted
4670         run times.
4671         (Common_ATCB): Added a dynamic task analyzer field.
4673         * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
4674         potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
4675         (Task_Wrapper): Call the task termination handler. It applies to all
4676         tasks but the environment task.
4677         (Finalize_Global_Tasks): Call the task termination procedure for the
4678         environment task. The call to Finalize_Global_List is now performed
4679         using the soft links mechanism.
4680         (Task_Wrapper): added dynamic stack analysis.
4682         * s-tasuti.adb (Abort_Tasks): The code in charge of checking
4683         potentially blocking operations has been moved from
4684         System.Tasking.Stages.Abort_Tasks to this procedure. There can be
4685         direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
4686         through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
4687         this run-time check.
4689         * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
4690         of task termination procedure.
4691         (Init_Tasking_Soft_Links): Install the task-safe version of the soft
4692         link for the task termination procedure.
4694         * bindusg.adb: (Bindusg): Added documentation for -u option.
4696         * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
4697         (Get_Main_C): Add handling of dynamic stack analysis.
4698         (Gen_Output_File_C): Add external functions for dynamic stack analysis.
4700         * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
4701         (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
4702         (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
4704         * opt.ads: Added flags used by dynamic stack measurement.
4705         (Max_Line_Length): Remove (not used anymore)
4707         * s-io.ads, s-io.adb (Standard_Error): new subprogram
4708         (Standart_Output): new subprogram
4709         (Set_Output): new subprogram
4710         (Put): now uses the value of Current_Out to know if the output has to be
4711         send to stderr or stdout.
4712         
4713         * s-stausa.ads: Complete implementation.
4715         * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
4716         
4717         * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
4718         list of Ada 05 files.
4719         (GNAT Library Units): Add AltiVec files.
4721         * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
4722         g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
4723         g-alvety.ads, g-alvevi.ads: New files providing altivec API.
4725 2005-12-09  Nicolas Setton  <setton@adacore.com>
4727         * adaint.c (__gnat_locate_regular_file): Return immediately if
4728         file_name is empty.
4730 2005-12-09  Javier Miranda  <miranda@adacore.com>
4731             Hristian Kirtchev  <kirtchev@adacore.com>
4733         * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
4734         to the specification because the frontend generates code that uses this
4735         subprogram.
4736         (Set_Interface_Table): Add missing assertion.
4737         Update documentation describing the run-time structure.
4738         (Displace): New subprogram that displaces the pointer to the object
4739         to reference one of its secondary dispatch tables.
4740         (IW_Membership): Modified to use the new table of interfaces.
4741         (Inherit_TSD): Modified to use the new table of interfaces.
4742         (Register_Interface_Tag): Use the additional formal to fill the
4743         contents of the new table of interfaces.
4744         (Set_Interface_Table): New subprogram that stores in the TSD the
4745         pointer to the table of interfaces.
4746         (Set_Offset_To_Top): Use the additional formal to save copy of
4747         the offset value in the table of interfaces.
4748         Update structure of GNAT Primary and Secondary dispatch table diagram.
4749         Add comment section on GNAT dispatch table prologue.
4750         (Offset_To_Signature): Update the constant value of the Signature field.
4751         (Dispatch_Table): Update comment on hidden fields in the prologue.
4752         (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
4753         Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
4754         the type of formal parameter T to Tag, introduce additional assertions.
4755         (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
4756         conversion.
4757         (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
4759         * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
4760         in all the calls to Expand_Interface_Thunk. Instead of referencing the
4761         record component containing the tag of the secondary dispatch table we
4762         have to use the Offset_To_Top run-time function to get this information;
4763         otherwise if the pointer to the base of the object has been displace
4764         we get a wrong value if we use the 'position attribute.
4766         * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
4767         all the calls to Expand_Interface_Thunk.
4768         (Make_Secondary_DT): Secondary dispatch tables do not have a table of
4769         interfaces; hence the call to Set_Interface_Table was clearly wrong.
4770         (Collect_All_Interfaces): Modify the internal subprogram Collect to
4771         ensure that the interfaces implemented by the ancestors are placed
4772         at the header of the generated list.
4773         (Expand_Interface_Conversion): Handle the case in which the displacement
4774         associated with the interface conversion is not statically known. In
4775         this case we generate a call to the new run-time subprogram Displace.
4776         (Make_DT): Generate and fill the new table of interfaces.
4777         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
4778         Get_Tagged_Kind and Set_Tagged_Kind.
4779         (Tagged_Kind): New function that determines the tagged kind of a type
4780         with respect to limitedness and concurrency and returns a reference to
4781         RE_Tagged_Kind.
4782         (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
4783         Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
4784         primary dispatch table for a type.
4785         (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
4786         secondary dispatch table respectively of a tagged type.
4788         * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
4789         (Expand_Interface_Conversion): New subprogram to indicate if the
4790         displacement of the type conversion is statically known.
4791         (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
4793         * rtsfind.ads (RE_Offset_To_Top): New entity
4794         (RTU_Id): Add Ada_Task_Termination to the list so that it is made
4795         accessible to users.
4796         (Re_Displace): New entity
4797         (RE_Interface_Data): New entity
4798         (RE_Set_Interface_Data): New_Entity
4799         (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
4800         Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
4801         RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
4802         RE_TK_Tagged, RE_TK_Task.
4804         * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
4805         Init_Secondary_Tags_Internal to allow its use with interface types and
4806         also to generate the code for the new additional actual required
4807         by Set_Offset_To_Top.
4808         (Build_Init_Statements): In case of components associated with abstract
4809         interface types there is no need to generate a call to its IP.
4810         (Freeze_Record_Type): Generate Select Specific Data tables only for
4811         concurrent types.
4812         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
4813         the bodies and specifications of the predefined primitive operations
4814         dealing with dispatching selects and abort, 'Callable, 'Terminated only
4815         for concurrent types.
4817         * exp_sel.ads, exp_sel.adb: New files.
4819         * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
4820         Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
4821         properly protected objects and attach handler in the case of the
4822         restricted profile.
4823         Move embeded package Select_Expansion_Utilities into a separate external
4824         package.
4825         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
4826         Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
4827         (Build_K, Build_S_Assignment): New subprograms, part of the select
4828         expansion utilities.
4829         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
4830         Expand_N_Timed_Entry_Call): Optimize expansion of select statements
4831         where the trigger is a dispatching procedure of a limited tagged type.
4833 2005-12-09  Olivier Hainque  <hainque@adacore.com>
4835         * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
4836         pointer initialization values. Make a SAVE_EXPR instead. Add comments
4837         about the use and expansion of SAVE_EXPRs in the various possible
4838         renaming handling cases.
4839         (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
4840         abusing DECL_FCONTEXT.
4842 2005-12-09  Matthew Heaney  <heaney@adacore.com>
4844         * a-convec.adb (Merge): Added assertions to check whether vector params
4845         are sorted.
4847         * a-coinve.adb (Merge): Added assertions to check whether vector params
4848         are sorted.
4850         * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
4851         draft.
4852         (Cursor'Read): raises PE
4854         * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
4855         to its default value.
4857         * a-cihama.adb: Manually check whether cursor's key and elem are
4858         non-null
4860         * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
4861         (Merge): Assert that target and source lists are in order
4862         (Swap): Declare non-const temporaries, to pass to Splice
4864         * a-cdlili.ads: (Splice): Changed param name and param mode
4866         * a-cdlili.adb: (Splice): Changed param name and param mode
4867         (Merge): Assert that target and source lists are in order
4868         (Swap): Declare non-const temporaries, to pass to Splice
4870         * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
4871         (Write): declare Stream param as not null
4873         * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
4874         an exception message.
4876 2005-12-09  Thomas Quinot  <quinot@adacore.com>
4877             Robert Dewar  <dewar@adacore.com>
4879         * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
4880         which is the absolute maximum length we can support.
4882         * frontend.adb: For the processing of configuration pragma files,
4883         remove references to Opt.Max_Line_Length, which is not checked anymore.
4885         * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
4886         length.
4888         * scn.adb, scng.adb: 
4889         Always check line length against the absolute supported maximum,
4890         Hostparm.Max_Line_Length.
4892         * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
4893         value for the maximum line length is Max_Line_Length (not
4894         Column_Number'Last).
4895         Minor error msg update
4896         (Set_Style_Check_Options): New interface returning error msg
4897         Minor code reorganization (processing for 'M' was out of alpha order)
4899         * switch-c.adb: New interface for Set_Style_Check_Options
4901         * stylesw.ads (Set_Style_Check_Options): New interface returning error
4902         msg.
4904 2005-12-09  Javier Miranda  <miranda@adacore.com>
4906         * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
4907         with IP subprogram were only supported if there were limited types.
4909         * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
4910         records with IP subprogram were only supported if there were limited
4911         types.
4913 2005-12-09  Olivier Hainque  <hainque@adacore.com>
4914             Eric Botcazou  <ebotcazou@adacore.com>
4916         * trans.c (tree_transform, emit_check): Adjust calls to
4917         build_call_raise, passing the now expected GNAT_NODE argument.
4919         * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
4920         source line information than what the current global locus indicates
4921         when appropriate.
4923         * utils2.c (build_simple_component_ref): Return 0 if the offset of the
4924         field has overflowed.
4925         (build_call_raise): Add a GNAT_NODE argument to convey better source
4926         line information than what the current global locus indicates when
4927         appropriate.
4928         (build_component_ref): Adjust call to build_call_raise.
4930 2005-12-09  Pascal Obry  <obry@adacore.com>
4932         * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
4933         the iterator is quitting iteration on parent directory.
4935 2005-12-09  Javier Miranda  <miranda@adacore.com>
4937         * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
4938         and the assignment to a class-wide object, before the assignment we
4939         generate a run-time check to ensure that the tag of the Target is
4940         covered by the tag of the source.
4942 2005-12-09  Robert Dewar  <dewar@adacore.com>
4944         * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
4945         parameter in call to Image_Wide_Character.
4947         * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
4948         parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
4949         (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
4950         annoying FFFE/FFFF inconsistency.
4952 2005-12-09  Robert Dewar  <dewar@adacore.com>
4953             Javier Miranda  <miranda@adacore.com>
4954             Ed Schonberg  <schonberg@adacore.com>
4956         * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
4957         of type conversion.
4958         (Find_Interface): New subprogram that given a tagged type and one of its
4959         component associated with the secondary table of an abstract interface
4960         type, return the entity associated with such abstract interface type.
4961         (Make_Subtype_From_Expr): If type has unknown discriminants, always use
4962         base type to create anonymous subtype, because entity may be a locally
4963         declared subtype or generic actual.
4964         (Find_Interface): New subprogram that given a tagged type and one of its
4965         component associated with the secondary table of an abstract interface
4966         type, return the entity associated with such abstract interface type.
4968         * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
4969         conversion cannot be handled at compile time. In this case we pass this
4970         information to the expander to generate the appropriate code.
4972 2005-12-09  Robert Dewar  <dewar@adacore.com>
4973             Ed Schonberg  <schonberg@adacore.com>
4974             Gary Dismukes  <dismukes@adacore.com>
4975             Javier Miranda  <miranda@adacore.com>
4976             Hristian Kirtchev  <kirtchev@adacore.com>
4978         * einfo.adb (Itype_Printed): New flag
4979         (Is_Limited_Type): Derived types do not inherit limitedness from
4980         interface progenitors.
4981         (Is_Return_By_Reference_Type): Predicate does not apply to limited
4982         interfaces.
4984         * einfo.ads (Itype_Printed): New flag
4985         Move Is_Wrapper_Package to proper section
4986         Add missing Inline for Is_Volatile
4988         * output.ads, output.adb (Write_Erase_Char): New procedure
4989         (Save/Restore_Output_Buffer): New procedures
4990         (Save/Restore_Output_Buffer): New procedures
4992         * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
4993         Add missing support for anonymous access type
4994         (Write_Id): Insert calls to Write_Itype
4995         (Write_Itype): New procedure to output itypes
4997         * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
4998         use of "limited" in declaration.
5000         * sinfo.ads, sinfo.adb: 
5001         Formal derived types can carry an explicit "limited" indication.
5003         * sem_ch3.adb: Add with and use of Targparm.
5004         (Create_Component): If Frontend_Layout_On_Target is True and the
5005         copied component does not have a known static Esize, then reset
5006         the size and positional fields of the new component.
5007         (Analyze_Component_Declaration): A limited component is
5008         legal within a protected type that implements an interface.
5009         (Collect_Interfaces): Do not add to the list the interfaces that
5010         are implemented by the ancestors.
5011         (Derived_Type_Declaration): If the parent of the full-view is an
5012         interface perform a transformation of the tree to ensure that it has
5013         the same parent than the partial-view. This simplifies the job of the
5014         expander in order to generate the correct object layout, and it is
5015         needed because the list of interfaces of the full-view can be given in
5016         any order.
5017         (Process_Full_View): The parent of the full-view does not need to be
5018         a descendant of the parent of the partial view if both parents are
5019         interfaces.
5020         (Analyze_Private_Extension_Declaration): If declaration has an explicit
5021         "limited" the parent must be a limited type.
5022         (Build_Derived_Record_Type): A derived type that is explicitly limited
5023         must have limited ancestor and progenitors.
5024         (Build_Derived_Type): Ditto.
5025         (Process_Full_View): Verify that explicit uses of "limited" in partial
5026         and full declarations are consistent.
5027         (Find_Ancestor_Interface): Remove function.
5028         (Collect_Implemented_Interfaces): New procedure used to gather all
5029         implemented interfaces by a type.
5030         (Contain_Interface): New function used to check whether an interface is
5031         present in a list.
5032         (Find_Hidden_Interface): New function used to determine whether two
5033         lists of interfaces constitute a set equality. If not, the first
5034         differing interface is returned.
5035         (Process_Full_View): Improve the check for the "no hidden interface"
5036         rule as defined by AI-396.
5038 2005-12-09  Robert Dewar  <dewar@adacore.com>
5040         * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
5041         types, not on record subtypes.
5042         (Freeze_Entity): Code cleanup. Add barrier to the loop
5043         that generates the references for primitive operations. This allows to
5044         remove an unnecessary exception handler.
5045         Code reformatting and comment clean ups.
5047 2005-12-09  Vincent Celier  <celier@adacore.com>
5049         * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
5050         If GNAT CHECK is called with a project file, but with no
5051         source on the command line, call gnatcheck with all the compilable
5052         sources of the project.
5053         Take into account the new command Check, for gnatcheck. Treat as for
5054         other ASIS tools: take into account project, specific package Check and
5055         Compiler switches.
5056         For ASIS tools, add the switches in package Compiler for
5057         the invocation of the compiler.
5059         * prj-attr.adb: Add package Check and its attributes
5061         * vms_conv.ads (Command_Type): New command Check, for gnatcheck
5063         * vms_conv.adb (Initialize): Change Params of command Check to
5064         unlimited files.
5065         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
5066         Add data for new command Check
5068         * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
5069         ELIM.
5070         Add qualifiers for Check command options
5071         (Command_Type): New command Check
5073 2005-12-09  Thomas Quinot  <quinot@adacore.com>
5075         * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
5076         command line switch overruns the output buffer.
5078 2005-12-09  Robert Dewar  <dewar@adacore.com>
5080         * sem_prag.adb: Processing for new pragma Complete_Representation
5081         (Analyze_Pragma, case Debug): Implement two argument form.
5083         * par-prag.adb: Entry for new pragma Complete_Representation
5084         (Prag, case Debug): Recognize two argument form of pragma Debug
5085         New interface for Set_Style_Check_Options.
5087         * sem_ch13.adb: Implement new pragma Complete_Representation.
5089         * snames.adb, snames.ads, snames.h: Entry for new pragma
5090         Complete_Representation.
5092 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
5094         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
5095         available user-specified stream attributes on limited parameters to
5096         also test the type directly rather than only its underlying type (for
5097         Ada 95) and, in the case of Ada 2005, to check that the user-specified
5098         attributes are visible at the point of the subprogram declaration.
5099         For Ada 2005, the error message is modified to indicate that the
5100         type's stream attributes must be visible (again, only for -gnat05).
5102 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
5104         * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
5105         anonymous access types.
5107         * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
5108         matching of anonymous access types and anonymous access to subprogram
5109         types. 'R'M 4.9.1 (2/2).
5111 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
5113         * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
5114         rule prematurely when operands are universal, remaining ambiguities
5115         will be removed during resolution.
5116         Code cleanup.
5118         * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
5119         that are Ada 2005 functions.
5120         (Has_Abstract_Interpretation): Subsidiary to
5121         Remove_Conversions, to remove ambiguities caused by abstract operations
5122         on numeric types when operands are universal.
5124 2005-12-09  Robert Dewar  <dewar@adacore.com>
5126         * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
5127         for case where spec is categorized.
5129 2005-12-09  Javier Miranda  <miranda@adacore.com>
5131         * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
5132         types use the corresponding record type. This was not needed before
5133         the implementation of Ada 2005 synchronized types because
5134         concurrent types were never tagged types in Ada 95.
5136 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
5138         * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
5139         first subtype of the type of the expression to verify that it is a
5140         legal Time type.
5142 2005-12-09  Robert Dewar  <dewar@adacore.com>
5144         * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
5145         decoded names.
5147 2005-12-09  Quentin Ochem  <ochem@adacore.com>
5148             Robert Dewar  <dewar@adacore.com>
5149             Ed Falis  <falis@adacore.com>
5150             Florian Villoing  <villoing@adacore.com>
5151             Thomas Quinot  <quinot@adacore.com>
5152             Arnaud Charlet  <charlet@adacore.com>
5154         * gnat_ugn.texi: Created section "Stack Related Tools"
5155         Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
5156         "Stack Related Tools"
5157         Added subsection "Static Stack Usage Analysis"
5158         Added subsection "Dynamic Stack Usage Analysis"
5159         Include documentation of itypes in sprint listing (-gnatG)
5160         Documented gnatbind -D switch (default sec stack size for fixed sec
5161         stacks).
5162         Added Interrupt_State and Persistent_BSS to list of configuration
5163         pragmas.
5164         Add missing doc for maximum value of nnn in -gnatyMnnn
5166         * gnat_rm.texi: Document the AltiVec binding.
5167         Add documentation for pragma Complete_Representation
5168         Shortened an overly long line (> 79 chars)
5169         Clarify documentation of unchecked conversion in implementation
5170         defined cases.
5171         Document two argument form of pragma Debug
5173         * types.ads (Column_Number): Update documentation.
5175         * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
5176         library level Finalize_Storage_Only objects (these are not attached to
5177         any finalization list).
5179         * system-mingw.ads: (Underlying_Priorities): Update comment.
5181 2005-12-09  Robert Dewar  <dewar@adacore.com>
5183         * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
5184         i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
5185         inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
5186         i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
5187         krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
5188         lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
5189         interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
5190         s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
5191         reformatting.
5193 2005-12-09  Robert Dewar  <dewar@adacore.com>
5195         * s-vaflop-vms-alpha.adb: (Ne_F): New function
5196         (Ne_G): New function
5198         * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
5199         for tag assignment.
5200         (Rewrite_Comparison): Handle case where operation is not a comparison
5201         and ignore, and also handle type conversion case.
5203 2005-12-09  Thomas Quinot  <quinot@adacore.com>
5205         * exp_aggr.ads: Fix typo in comment.
5206         ???-mark Convert_Aggr_In_Assignment as needing documentation.
5208 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
5210         * layout.adb: Replace various uses of byte by storage unit throughout.
5211         (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
5212         static size, convert to storage units before returning, to conform to
5213         spec.
5215 2005-12-09  Matthew Gingell  <gingell@adacore.com>
5217         * g-exctra.ads: Fix typo in comment.
5219 2005-12-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5221         * utils.c: Minor reformatting.
5223 2005-12-09  Robert Dewar  <dewar@adacore.com>
5225         * g-soccon.ads: 
5226         Further comment fixes to make the status of the default file clear
5228         * s-bitops.adb: Clarify comment for Bits_Array
5230 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
5232         * Make-lang.in (ada.install-normal): Remove.
5234 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
5236         * Make-lang.in: Remove all dependencies on s-gtype.
5238 2005-12-05  Richard Guenther  <rguenther@suse.de>
5240         * utils.c (convert): Use fold_convert where appropriate.
5242 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
5244         * Makefile.in (gnatlib): Fix regex, using \. instead of . when
5245         a period is meant.
5247 2005-12-02  Richard Guenther  <rguenther@suse.de>
5249         * trans.c (gnat_gimplify_expr): Use buildN instead of build.
5251 2005-12-01  Roger Sayle  <roger@eyesopen.com>
5253         * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
5254         nodes.
5256 2005-11-23  Laurent GUERBY  <laurent@guerby.net>
5258         * mlib-prj.adb (Build_Library): Initialize Delete.
5260 2005-11-21  Joel Sherrill <joel.sherrill@oarcorp.com>
5262         * socket.c: Add extern int h_errno for rtems since networking header
5263         files are not available at this point in a tool bootstrap. Newlib
5264         only has basic C library header files.
5266 2005-11-19  Richard Guenther  <rguenther@suse.de>
5267         Roger Sayle  <roger@eyesopen.com>
5269         PR ada/23717
5270         * misc.c (internal_error_function): Don't use vsprintf to format
5271         the error message text, instead use pp_format_text and the new
5272         pretty printer APIs.  This allows handling of %qs, %w, etc.
5274 2005-11-18  Laurent GUERBY  <laurent@guerby.net>
5276         PR ada/24857
5277         * Makefile.in: Use s-auxdec-empty for RTEMS.
5279 2005-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5281         PR ada/22333
5282         * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
5283         a temporary if taking the address of something that is neither
5284         reference, declaration, or constant, since the gimplifier
5285         can't handle that case.
5287 2005-11-17  Laurent GUERBY  <laurent@guerby.net>
5289         PR ada/24857
5290         * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
5291         
5292 2005-11-16  Richard Guenther  <rguenther@suse.de>
5294         * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
5296 2005-11-16  Joel Sherrill <joel.sherrill@oarcorp.com>
5298         PR ada/24855
5299         * raise-gcc.c: Add missing stdarg.h include.
5301 2005-11-16  Richard Guenther  <rguenther@suse.de>
5303         * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
5304         (ada/misc.o): Likewise.
5306 2005-11-14  Thomas Quinot  <quinot@adacore.com>
5308         * g-soccon.ads: Minor reformatting. Update comments.
5310         * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
5311         gain visibility on the declaration of struct timeval.
5313         * g-soccon-freebsd.ads,
5314         g-soccon-darwin.ads,
5315         g-soccon-tru64.ads,
5316         g-soccon-aix.ads,
5317         g-soccon-irix.ads,
5318         g-soccon-hpux.ads,
5319         g-soccon-solaris.ads,
5320         g-soccon-vms.ads,
5321         g-soccon-mingw.ads,
5322         g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
5324         * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
5325         g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
5326         g-soccon-linux-x86.ads: New files.
5328         * g-socthi-mingw.adb: 
5329         (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
5331         * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
5332         (time_t, suseconds_t): New types constructed to match the tv_sec
5333         and tv_usec fields of C struct timeval.
5334         (Timeval): Construct structure in terms of the new types.
5335         (Host_Errno): New function (imported from socket.c), returns last hosts
5336         database error.
5338         * g-socthi-vxworks.adb:  Add error handling circuitry.
5340         * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
5341         components of struct timeval.
5342         (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
5343         (Check_Selector): In error conditions, clear internal socket sets to
5344         avoid a memory leak.
5345         (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
5346         Send_Timeout, Receive_Timeout.
5348         * g-socthi.ads (time_t, suseconds_t): New types constructed to match
5349         the tv_sec and tv_usec fields of C struct timeval.
5350         (Timeval): Construct structure in terms of the new types.
5351         (Host_Errno): New function (imported from socket.c), returns last hosts
5352         database error.
5354         * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
5355         hosts database last error code.
5357         * gen-soccon.c: Complete value expansion should not be performed on
5358         TARGET, as it has the form of a math expression, and some components
5359         may be platform-defined macros.
5360         For VxWorks, generate the OK and ERROR values.
5361         New constants giving the sizes of the components of C struct timeval.
5363 2005-11-14  Robert Dewar  <dewar@adacore.com>
5364             Ed Schonberg  <schonberg@adacore.com>
5366         PR ada/18434
5368         * types.ads: Include All_Checks in Suppress_Array
5370         * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
5371         not(a=b), since we no longer do this rewriting, and hence it is not
5372         needed.
5373         (Elaboration_Checks_Suppressed): Add special casing to
5374         deal with different cases of static and dynamic elaboration checks (all
5375         checks does not count in the first case, but does in the second).
5376         (Expr_Known_Valid): Do not assume that the result of any arbitrary
5377         function call is valid, since this is not the case.
5378         (Ensure_Valid): Do not apply validity check to a real literal
5379         in a universal or fixed context
5381         * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
5382         elementary types using the operator in standard. It is cleaner not to
5383         modify the programmers intent, especially in the case of floating-point.
5384         (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
5385         it did not matter because we always rewrote a/=b to not(a=b).
5386         (Expand_Allocator_Expression): For an allocator expression whose nominal
5387         subtype is an unconstrained packed type, convert the expression to its
5388         actual constrained subtype.
5389         Implement warning for <= or >= where < or > not possible
5390         Fix to Vax_Float tests (too early in many routines, causing premature
5391         Vax_Float expansions.
5393         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
5394         to be used with packages and generic packages as well as with
5395         subprograms.
5396         (Suppress): Set All_Checks, but not Elaboration_Check, for case
5397         of pragma Suppress (All_Checks)
5398         (Analyze_Pragma, case Warnings): Implement first argument allowed to be
5399         a string literal for precise control over warnings.
5400         Avoid raise of pragma in case of unrecognized pragma and just return
5401         instead.
5403         * sem_prag.ads: Minor reformatting
5405         * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
5406         with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
5407         Switch. Do not handle any exception.
5408         Include -gnatwx as part of -gnatg (warn on redundant parens)
5409         Allow optional = after -gnatm
5410         (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
5411         longer sets Elaboration_Checks.
5412         Code to set warning mode moved to Sem_Warn
5413         so that it can be shared by pragma processing.
5415         * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
5416         statement.
5418         * s-taprop-solaris.adb: 
5419         Change some <= to =, to avoid new warning
5421         * a-exexda.adb, prj-proc.adb: 
5422         Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
5423         Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
5425 2005-11-14  Robert Dewar  <dewar@adacore.com>
5427         * exp_vfpt.adb: Handle /= case
5428         (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
5429         so that we do not get duplicate scaling for fixed point conversions.
5431         * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
5433 2005-11-14  Matthew Gingell  <gingell@adacore.com>
5435         * system-lynxos-ppc.ads, system-lynxos-x86.ads: 
5436         Increase default priority on Lynx from 15 to 17, and meet the Ada
5437         requirement that Default_Priority be ((Priority'First +
5438         Priority'Last) / 2) by increasing the range of Interrupt_Priority.
5440 2005-11-14  Vincent Celier  <celier@adacore.com>
5442         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
5443         mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
5444         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
5445         mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
5446         mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
5447         mlib-tgt-lynxos.adb (DLL_Prefix): New function
5449 2005-11-14  Doug Rupp  <rupp@adacore.com>
5451         * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
5452         private part.
5454 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
5456         * s-traces-default.adb, s-trafor-default.ads,
5457         s-tratas-default.adb: Fix compilation errors.
5459 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
5461         * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
5462         raising the exception so the memory used is freed.
5464 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
5466         * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
5467         (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
5468         (convert_address): Update comments and list of platforms using this.
5470         * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
5471         no longer used.
5473 2005-11-14  Pascal Obry  <obry@adacore.com>
5474             Vincent Celier  <celier@adacore.com>
5476         * gnatdll.adb (Parse_Command_Line): Remove redundant use of
5477         GNAT.Command_Line.
5479         * memroot.adb: Remove redundant with/use clause on
5480         System.Storage_Elements.
5482 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
5484         * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
5485         (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
5486         related code to a-exexpr.adb
5487         (Save_Occurrence_And_Private): Move GCC EH related code to
5488         a-exexpr-gcc.adb
5489         (Raise_Current_Excep): Add new variable Id with pragma
5490         volatile, to ensure that the variable lives on stack.
5492         * a-exexpr-gcc.adb, raise-gcc.c: New file.
5494         * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
5495         from a-except.adb.
5496         Move GCC EH related code to a-exexpr-gcc.adb
5498         * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
5499         64-bit Solaris
5500         Split the Linux version of g-soccon into separate variants for 32 and 64
5501         bit platforms.
5502         (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
5503         vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
5504         install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
5505         of host variable $(RANLIB_FLAGS).
5506         (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
5507         Code clean up: remove unused/obsolete targets.
5508         (EH_MECHANISM): New variable introduced to differenciate between the
5509         two EH mechanisms statically.
5510         (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
5511         (LIBGNAT_OBJS): Add raise-gcc.o
5512         (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
5513         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
5514         supports VxWorks 6 RTPs.
5515         (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
5516         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
5518         * raise.c: Move all GCC EH-related routines to raise-gcc.c
5520 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
5522         * s-tassta.adb (Create_Task): Move the code in charge of resetting the
5523         deferral level, when abort is not allowed, to a later stage (the
5524         Task_Wrapper).
5525         (Task_Wrapper): If Abort is not allowed, reset the deferral level since
5526         it will not get changed by the generated code. It was previously done
5527         in Create_Task.
5529 2005-11-14  Thomas Quinot  <quinot@adacore.com>
5530             Olivier Hainque  <hainque@adacore.com>
5531             Eric Botcazou  <ebotcazou@adacore.com>
5533         * decl.c:
5534         Factor common code to build a storage type for an unconstrained object
5535         from a fat or thin pointer type and a constrained object type.
5536         (annotate_value): Handle BIT_AND_EXPR.
5537         (annotate_rep): Don't restrict the back annotation of inherited
5538         components to the type_annotate_only case.
5539         (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
5540         we are not defining the type.
5541         <E_Record_Type>: Likewise.
5542         (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
5543         to get advantage of the new maybe_stabilize_reference interface, to
5544         ensure that what we reference is indeed stabilized instead of relying
5545         on assumptions on what the stabilizer does.
5546         (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
5547         type imported through a limited_with clause, use its non-limited view.
5548         (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
5549         differentiation.
5550         (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
5551         of #if sections + explicit comparisons of convention identifiers.
5552         (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
5553         before early-returning for certain types when code generation is
5554         disabled.
5555         (gnat_to_gnu_entity) <object>: Adjust comment attached to the
5556         nullification of gnu_expr we do for objects with address clause and
5557         that we are not defining.
5558         (elaborate_expression_1): Do not create constants when creating
5559         variables needed by the debug info: the dwarf2 writer considers that
5560         CONST_DECLs is used only to represent enumeration constants, and emits
5561         nothing for them.
5562         (gnat_to_gnu_entity) <object>: When turning a non-definition of an
5563         object with an address clause into an indirect reference, drop the
5564         initializing expression.
5565         Include "expr.h".
5566         (STACK_CHECK_BUILTIN): Delete.
5567         (STACK_CHECK_PROBE_INTERVAL): Likewise.
5568         (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
5569         (STACK_CHECK_MAX_VAR_SIZE): Likewise.
5570         (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
5571         corresponding to the renamed object as ignored for debugging purposes.
5573         * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
5574         related): For a prefix that is a dereference of a fat or thin pointer,
5575         if there is an actual subtype provided by the front-end, use that
5576         subtype to build an actual type with bounds template.
5577         (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
5578         is provided by the front-end, use that subtype to compute the size of
5579         the deallocated object.
5580         (gnat_to_gnu): When adding a statement into an elaboration procedure,
5581         check for a potential violation of a No_Elaboration_Code restriction.
5582         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
5583         with extra arguments to control whether to recurse through non-values
5584         and to let the caller know if the stabilization has succeeded.
5585         (gnat_stabilize_reference): Now a simple wrapper around
5586         maybe_stabilize, for common uses without restriction on lvalues and
5587         without need to check for the success indication.
5588         (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
5589         pass false instead of 0 as the FORCE argument which is a bool.
5590         (Identifier_to_gnu): Remove checks ensuring that an renamed object
5591         attached to a renaming pointer has been properly stabilized, as no such
5592         object is attached otherwise.
5593         (call_to_gnu): Invoke create_var_decl to create the temporary when the
5594         function uses the "target pointer" return mechanism.
5595         Reinstate conversion of the actual to the type of the formal
5596         parameter before any other specific treatment based on the passing
5597         mechanism. This turns out to be necessary in order for PLACEHOLDER
5598         substitution to work properly when the latter type is unconstrained.
5600         * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
5601         common pattern.
5602         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
5603         with extra arguments to control whether to recurse through non-values
5604         and to let the caller know if the stabilization has succeeded.
5606         * utils2.c (gnat_build_constructor): Only sort the fields for possible
5607         static output of record constructor if all the components are constant.
5608         (gnat_build_constructor): For a record type, sort the list of field
5609         initializers in increasing bit position order.
5610         Factor common code to build a storage type for an unconstrained object
5611         from a fat or thin pointer type and a constrained object type.
5612         (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
5613         types variants, and process special cases of VIEW_CONVERT expressions
5614         as their NOP_EXPR counterpart to ensure we get to the
5615         CORRESPONDING_VARs associated with CONST_DECls.
5616         (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
5617         on the right-hand side.
5619         * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
5620         a common pattern.
5621         (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
5622         are converting back to its original type.
5623         (convert) <JM input>: Fallthrough regular conversion code instead of
5624         extracting the object if converting to a type variant.
5625         (create_var_decl): When a variable has an initializer requiring code
5626         generation and we are at the top level, check for a potential violation
5627         of a No_Elaboration_Code restriction.
5628         (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
5629         SIZE and SIZE_UNIT which we need for later back-annotations.
5630         * utils.c: (convert) <STRING_CST>: Remove obsolete code.
5631         <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
5632         is an unchecked union.
5633         (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
5634         (convert) <VIEW_CONVERT_EXPR>: When the types have the same
5635         main variant, just replace the VIEW_CONVERT_EXPR.
5636         <UNION_TYPE>: Revert 2005-03-02 change.
5638         * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
5640         * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
5642 2005-11-14  Matthew Heaney  <heaney@adacore.com>
5644         * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads, 
5645         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb, 
5646         a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads, 
5647         a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb, 
5648         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
5649         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb: 
5650         Compiles against the spec for ordered maps described in sections
5651         A.18.6 of the most recent (August 2005) AI-302 draft.
5653 2005-11-14  Olivier Hainque  <hainque@adacore.com>
5655         * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
5656         to ensure bias adjustments take place when need be and to prevent
5657         occurrences of intermediate overflows.
5659 2005-11-14  Matthew Gingell  <gingell@adacore.com>
5660             Olivier Hainque  <hainque@adacore.com>
5662         * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
5663         ia64 HP-UX.
5665         * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
5666         tracebacks on ia64 HP-UX and provide explanatory comment.
5667         Enable backtraces on ia64 GNU/Linux.
5668         (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
5669         base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
5671 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
5672             Javier Miranda  <miranda@adacore.com>
5674         * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
5675         exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
5676         exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
5677         einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
5679         * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
5680         properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
5681         assertions).
5683         * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
5684         subprogram that generates the external name associated with a
5685         secondary dispatch table.
5686         (Get_Secondary_DT_External_Name): New subprogram that generates the
5687         external name associated with a secondary dispatch table.
5689 2005-11-14  Emmanuel Briot  <briot@adacore.com>
5691         * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
5692         line in the ALI file to include both an instantiation reference, and a
5693         returned value.
5695 2005-11-14  Vincent Celier  <celier@adacore.com>
5697         * clean.adb (Check_Project): Look for Ada code in extending project,
5698         even if Ada is not specified as a language.
5699         Use new function DLL_Prefix for DLL_Name
5700         (Clean_Interface_Copy_Directory): New procedure
5701         (Clean_Library_Directory): New procedure
5702         (Clean_Directory): Remove procedure, no longer used
5703         (Clean_Project): Do not delete any file in an externally built project
5705         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
5706         directory of an extending project, even when there are no Ada source
5707         present.
5708         (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
5709         (Set_Ada_Paths.Add.Recursive_Add): Ditto
5711         * mlib-prj.adb (Check_Library): For all library projects, get the
5712         library file timestamp.
5713         (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
5714         (Build_Library): Use new function DLL_Prefix for the DLL_Name
5715         (Clean): Remove procedure, no longer used
5716         (Ultimate_Extension_Of): New function
5717         (Build_Library): When cleaning the library directory, only remove an
5718         existing library file and any ALI file of a source of the project.
5719         When cleaning the interface copy directory, remove any source that
5720         could be a source of the project.
5722         * prj.ads, prj.adb (Project_Empty): Add values of new components
5723         Library_TS and All_Imported_Projects.
5724         (Project_Empty): Add values for new components of Project_Data:
5725         Library_ALI_Dir and Display_Library_ALI_Dir
5727         * prj-attr.adb: New project level attribute name Library_ALI_Dir
5729         * prj-nmsc.adb (Check_Library_Attributes): Take into account new
5730         attribute Library_ALI_Dir.
5731         (Check_Library_Attributes): The library directory cannot be the same as
5732         any source directory of the project tree.
5733         (Check_Stand_Alone_Library): The interface copy directory cannot be
5734         the same as any source directory of the project tree.
5736         * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
5737         all temporary files.
5739 2005-11-14  Robert Dewar  <dewar@adacore.com>
5740             Ed Schonberg  <schonberg@adacore.com>
5742         * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
5743         (Check_Elab_Call): A call within a protected body is never an
5744         elaboration call, and does not require checking.
5745         (Same_Elaboration_Scope): Take into account protected types for both
5746         entities.
5747         (Activate_Elaborate_All_Desirable): New procedure
5749         * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
5750         desirable
5752         * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
5753         (Elab_Error_Msg): Use -da to include internal unit links, not -de.
5755         * lib-writ.ads, lib-writ.adb: 
5756         Implement new AD/ED for Elaborate_All/Elaborate desirable
5757         Use new Elaborate_All_Desirable flag in N_With_Clause node
5759         * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
5760         N_Free_Statement nodes.
5761         Define new class N_Subprogram_Instantiation
5762         Add Elaborate_Desirable flag to N_With_Clause node
5763         Add N_Delay_Statement (covering two kinds of delay)
5765         * debug.adb: Introduce d.f flag for compiler
5766         Add -da switch for binder
5768 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
5769             Cyrille Comar  <comar@adacore.com>
5771         * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
5772         for task component, in the case of a limited aggregate. The enclosed
5773         object declaration will create it earlier. Otherwise, in the case of a
5774         nested aggregate, the object may appear in the wrong scope.
5775         (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
5776         (Gen_Assign): If the component being assigned is an array type and the
5777         expression is itself an aggregate, wrap the assignment in a block to
5778         force finalization actions on the temporary created for each row of the
5779         enclosing object.
5780         (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
5781         structures are initialized after all discriminants are set so that
5782         they can be accessed even when their offset is dynamic.
5784 2005-11-14  Robert Dewar  <dewar@adacore.com>
5785             Hristian Kirtchev  <kirtchev@adacore.com>
5787         * sem_attr.adb: Implement Machine_Rounding attribute
5788         (Analyze_Access_Attribute): The access attribute may appear within an
5789         aggregate that has been expanded into a loop.
5790         (Check_Task_Prefix): Add semantic check for attribute 'Callable and
5791         'Terminated whenever the prefix is of a task interface class-wide type.
5792         (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
5793         the prefix is of a task interface class-wide type.
5795         * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
5796         to avoid warnings.
5798         * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
5799         Remove pragma Inline for [Unaligned_]Valid.
5800         Add comments that Valid routines do not work for Vax_Float
5802         * exp_attr.adb: Implement Machine_Rounding attribute
5804         * snames.h: Add entry for Machine_Rounding attribute
5806 2005-11-14  Javier Miranda  <miranda@adacore.com>
5807             Robert Dewar  <dewar@adacore.com>
5808             Hristian Kirtchev  <kirtchev@adacore.com>
5810         * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
5811         and related): For a prefix that is an explicit dereference of an
5812         access to unconstrained packed array type, annotate the dereference
5813         with an actual subtype so GIGI can make a correct size computation.
5814         (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
5815         'Unrestricted_Access, if the designated type is an interface we
5816         add a type conversion to force the displacement of the pointer
5817         to the secondary dispatch table.
5818         Use Universal_Real instead of Long_Long_Float when we need a high
5819         precision float type for the generated code (prevents gratuitous
5820         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
5821         (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
5822         'Terminated for task interface class-wide objects. Generate a call to
5823         the predefined dispatching routine used to retrieve the _task_id from
5824         a task corresponding record.
5825         (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
5827         * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
5828         (Check_Dispatching_Operation): Protect the frontend againts
5829         previously detected errors.
5831         * Makefile.rtl: Add new instantiations of system.fat_gen
5833         * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads: 
5834         Change name of instantiated package for better consistency
5835         with newly added system.fat_gen instantiations.
5837         * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
5838         s-fvagfl.ads: New files.
5840 2005-11-14  Cyrille Comar  <comar@adacore.com>
5841             Thomas Quinot  <quinot@adacore.com>
5843         * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
5844         assignment of a value of a tagged type that has been rewritten to a
5845         block statement, it is known by construction that no checks are
5846         necessary for the statements within the block: analyze it with checks
5847         suppressed.
5848         (Expand_N_If_Statement): When killing a dead then-branch in an
5849         if-statement that has elsif_parts, recompute the Current_Value node
5850         for any entity whose value is known from the condition of the first
5851         elsif_part.
5852         (Expand_N_Return_Statement): When returning a mutable record, convert
5853         the return value into its actual subtype in order to help the backend
5854         to return the actual size instead of the maximum. This is another
5855         aftermath of not returning mutable records on the sec-stack anymore.
5857         * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
5858         handling of error msg for suspicious reverse range iteration.
5859         (Check_Possible_Current_Value_Condition): Move declaration from body to
5860         spec, to allow this subprogram to be called from exp_ch5.
5862 2005-11-14  Thomas Quinot  <quinot@adacore.com>
5864         * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
5865         generate a set of nested array aggregates instead of a single flat
5866         aggregate for multi-dimensional arrays.
5868 2005-11-14  Pascal Obry  <obry@adacore.com>
5870         * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
5871         by spawnve is a process handle, no need to convert. Add a parameter
5872         close to control wether the process handle must be closed.
5873         (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
5874         a process handle, not need to convert.
5875         (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
5877         * g-expect.adb: (Kill): Document the new close parameter.
5878         (Close): Do not release the process handle in the kill there as
5879         waitpid() is using it.
5880         (Send_Signal): Release the process handle.
5882 2005-11-14  Robert Dewar  <dewar@adacore.com>
5884         * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
5885         need a high precision float type for the generated code (prevents
5886         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
5887         used).
5889         * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
5890         need a high precision float type for the generated code (prevents
5891         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
5892         used).
5893         (Expand_Width_Attribute): In configurable run-time, the attribute is not
5894         allowed on non-static enumeration subtypes. Force a load error to emit
5895         the correct diagnostic.
5897 2005-11-14  Thomas Quinot  <quinot@adacore.com>
5898             Robert Dewar  <dewar@adacore.com>
5899             Ed Schonberg  <schonberg@adacore.com>
5901         * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
5902         subtype to compute the size of the designated object at run-time,
5903         create such a subtype and store it in the Actual_Designated_Subtype
5904         attribute of the N_Free_Statement.
5905         Generate itype for classwide designated object in both cases of
5906         user-specified storage pool: specific and class-wide, not only in the
5907         specific case.
5908         Raise CE when trying to set a not null access type object to null.
5909         (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
5910         an explicit loop, because freeze nodes make its position variable.
5912         * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
5913         null object.
5915 2005-11-14  Javier Miranda  <miranda@adacore.com>
5917         * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
5918         Build_Stream_Procedure): Add the null-excluding attribute to the first
5919         formal.
5920         This has no semantic meaning under Ada95 mode but it is a
5921         requirement under Ada05 mode.
5923         * par-ch3.adb (P_Access_Definition): Addition of warning message if
5924         the null exclusion is used under Ada95 mode
5925         (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
5926         (P_Access_Definition): Remove assertion that forbids the use of
5927         the null-exclusion feature in Ada95.
5929 2005-11-14  Robert Dewar  <dewar@adacore.com>
5931         * impunit.adb: Exclude container helper units not intended for use by
5932         users.
5934 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
5936         * freeze.adb (Freeze_Entity): For an access formal that is an access
5937         to subprogram, freeze the anonymous subprogram type at the same time,
5938         to prevent later freezing in the wrong scope, such as the enclosing
5939         subprogram body.
5940         (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
5941         subprogram whenever available.
5943 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
5945         PR ada/23732
5946         * gnatvsn.ads (Library_Version): Bump to 4.1
5948 2005-11-14  Robert Dewar  <dewar@adacore.com>
5950         * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
5951         Storage_Offset to avoid wrap around causing invalid results.
5953 2005-11-14  Pascal Obry  <obry@adacore.com>
5955         * gnatbind.adb (Is_Cross_Compiler): New function returning True for
5956         cross-compiler.
5957         (Scan_Bind_Arg): Fail with an error message if -M option is used
5958         on a native compiler.
5960 2005-11-14  Robert Dewar  <dewar@adacore.com>
5961             Vincent Celier  <celier@adacore.com>
5963         * gprep.adb: Implement -C switch to scan comments
5965         * scng.adb: Scan comment symbol separately if Replace_In_Comments set
5967         * scans.ads: Comment updates (including new use of Tok_Comment in
5968         preprocessing)
5970         * opt.ads: Add documentation for flags that are used by gprmake,
5971         currently and in the next version of gprmake.
5972         (Verbosity_Level): New variable
5973         Add Replace_In_Comments switch
5975         * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
5976         and -vm.
5977         Add /REPLACE_IN_COMMENTS for gnatprep -C switch
5979 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
5981         * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
5982         message, friendlier.
5984 2005-11-14  Robert Dewar  <dewar@adacore.com>
5986         * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
5988 2005-11-14  Doug Rupp  <rupp@adacore.com>
5990         * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
5992 2005-11-14  Robert Dewar  <dewar@adacore.com>
5994         * interfac.ads: Change declarations of IEEE float types so that we no
5995         longer need a separate version of this package for VMS.
5997 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
5999         * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
6000         internal entity created for the declaration of a child subprogram body
6001         with no spec as coming from source, to generate proper cross-reference
6002         information.
6004 2005-11-14  Vincent Celier  <celier@adacore.com>
6006         * make.adb (Compile_Sources): Change verbose message to minimum
6007         verbosity level High for "is in an Ada library", "is a read-only
6008         library" and "is an internal library",
6009         (Create_Binder_Mapping_File): Path name of ALI file for library project
6010         must include the library directory, not the object directory.
6011         (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
6012         for new switches -vl, -vm and -vh.
6013         (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
6014         (Check): Use minimum verbosity Medium for some Verbose_Msg calls
6015         (Compile_Sources): Do not attempt to compile if an ALI file is missing
6016         in a project that is externally built.
6017         (Compute_All_Imported_Projects): New procedure
6018         (Gnatmake): Check if importing libraries should be regenerated because
6019         at least an imported library is more recent.
6020         (Initialize): For each project compute the list of the projects it
6021         imports directly or indirectly.
6022         (Add_Library_Search_Dir): New procedure, used in place of
6023         Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
6024         put in the search paths.
6025         (Add_Source_Search_Dir): New procedure, used in place of
6026         Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
6027         put in the search paths.
6028         (Mark_Directory): Resolve the absolute path the directory before marking
6029         it.
6031         * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
6032         call to new procedure Bad_Switch. Call Scan_Pos with new parameter
6033         Switch. Do not handle any exception.
6034         (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
6035         so that the switch is recognized as valid.
6036         (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
6038 2005-11-14  GNAT Script  <nobody@adacore.com>
6040         * Make-lang.in: Makefile automatically updated
6042 2005-11-14  Pascal Obry  <obry@adacore.com>
6044         * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
6045         used.
6046         (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
6047         In both cases the last argument was dropped.
6049 2005-11-14  Eric Botcazou  <ebotcazou@adacore.com>
6051         * namet.h: (Column_Numbe): New type.
6052         (Get_Column_Number): Define to sinput__get_column_number.
6053         (Instantiation): Define to sinput__instantiation.
6054         (Get_Column_Number): Declare.
6055         (Instantiation): Likewise.
6057 2005-11-14  Robert Dewar  <dewar@adacore.com>
6059         * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
6060         syntax, which could cause compiler hangs.
6062 2005-11-14  Vincent Celier  <celier@adacore.com>
6064         * prj-ext.adb: Take into account new environment variable
6065         GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
6066         are defined.
6067         (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
6068         normalize its path name, making it absolute and resolving symbolic
6069         links, and replace the original if resolved path is different.
6071 2005-11-14  Vincent Celier  <celier@adacore.com>
6073         * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
6074         into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
6076 2005-11-14  Emmanuel Briot  <briot@adacore.com>
6078         * prj-pp.adb (Print): Do not output the with statement if the
6079         associated name is empty, which happens for virtual extending projects.
6080         (Print): Preserve the "extends all" attribute when printing the project.
6082         * prj-tree.ads (String_Value_Of): Add comment about returned value for
6083         a virtual extending project.
6085 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
6087         * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
6088         rhs of an assignment even if the type is unconstrained, when the
6089         context is non-expanding.
6090         In an inlined body, if the context type is private,
6091         resolve with its full view, which must be a composite type.
6093 2005-11-14  Robert Dewar  <dewar@adacore.com>
6094             Ed Schonberg  <schonberg@adacore.com>
6096         * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
6097         Do not give obsolescent warning on with of subprogram (since we
6098         diagnose calls)
6099         (Analyze_With_Clause): Add test for obsolescent package
6100         (Install_Context_Clauses): If the unit is the body of a child unit, do
6101         not install twice the private declarations of the parents, to prevent
6102         circular lists of Use_Clauses in a parent.
6103         (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
6104         compiling body of child unit.
6105         Use new class N_Subprogram_Instantiation
6106         (Expand_With_Clause): If this is a private with_clause for a child unit,
6107         appearing in the context of a package declaration, then the implicit
6108         with_clauses generated for parent units are private as well.
6109         (License_Check): Do not generate message if with'ed unit is internal
6111 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
6112             Ed Schonberg  <schonberg@adacore.com>
6113             Thomas Quinot  <quinot@adacore.com>
6115         * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
6116         names are internal, because they will not have a corresponding partner
6117         in the actual package.
6118         (Analyze_Formal_Package): Move the setting of the formal package spec's
6119         Generic_Parent field so that it occurs prior to analyzing the package,
6120         to allow proper operation of Install_Parent_Private_Declarations.
6121         (Analyze_Package_Instantiation): Set the instantiated package entity's
6122         Package_Instantiation field.
6123         (Get_Package_Instantiation_Node): Move declaration to package spec.
6124         Retrieve the N_Package_Instantiation node when the Package_Instantiation
6125         field is present.
6126         (Check_Generic_Child_Unit): Within an inlined call, the only possible
6127         instantiation is Unchecked_Conversion, for which no parents are needed.
6128         (Inline_Instance_Body): Deinstall and record the use_clauses for all
6129         parent scopes of a scope being removed prior to inlining an instance
6130         body.
6131         (Analyze_Package_Instantiation): Do not perform front-end inlining when
6132         the current context is itself an instance within a non-instance child
6133         unit, to prevent scope stack errors.
6134         (Save_References): If the node is an aggregate that is an actual in a
6135         call, rewrite as a qualified expression to preserve some type
6136         information, to resolve possible ambiguities in the instance.
6137         (Instance_Parent_Unit): New global variable to record the ultimate
6138         parent unit associated with a generic child unit instance (associated
6139         with the existing Parent_Unit_Visible flag).
6140         (type Instance_Env): New component Instance_Parent_Unit for stacking
6141         parents recorded in the global Instance_Parent_Unit.
6142         (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
6143         stack.
6144         (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
6145         it's not a top-level unit, and only do this if Instance_Parent_Unit is
6146         not already set. Replace test of Is_Child_Unit with test of parent's
6147         scope against package Standard. Add comments and a ??? comment.
6148         (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
6149         on a child instance parent to test that the parent equals
6150         Instance_Parent rather than simply checking that the unit is not a
6151         child unit.
6152         (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
6153         (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
6154         a formal interface are ancestors of the corresponding actual.
6155         (Validate_Formal_Interface_Type): Additional legality checks.
6156         (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
6157         interface types with ancestors.
6158         (Analyze_Formal_Package): If formal is a renaming, use renamed entity
6159         to diagnose attempts to use generic within its own declaration.
6161 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
6162             Javier Miranda  <miranda@adacore.com>
6164         * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
6165         discriminant.
6166         (Build_Private_Derived_Type): The entity of the created full view of the
6167         derived type does not come from source. If after installing the private
6168         declarations of the parent scope the parent is still private, use its
6169         full view to construct the full declaration of the derived type.
6170         (Build_Derived_Record_Type): Relax the condition that controls the
6171         execution of the check that verifies that the partial view and
6172         the full view agree in the set of implemented interfaces. In
6173         addition, this test now only takes into account the progenitors.
6174         (Derive_Interface_Subprograms): No need to derive subprograms
6175         of ancestors that are interfaces.
6176         (Derive_Subprograms): Remove formal No_Predefined_Prims and the
6177         associated code.
6178         Change name Is_Package to Is_Package_Or_Generic_Package
6179         (Complete_Subprograms_Derivation): Handle the case in which the full
6180         view is a transitive derivation of the ancestor of the partial view.
6181         (Process_Full_View): Rename local subprogram Find_Interface_In_
6182         Descendant to Find_Ancestor_Interface to leave the code more clear.
6183         Remove wrong code that avoids the generation of an error message
6184         when the immediate ancestor of the partial view is an interface.
6185         In addition some minor reorganization of the code has been done to
6186         leave it more clear.
6187         (Analyze_Type_Declaration): If type has previous incomplete tagged
6188         partial view, inherit properly its primitive operations.
6189         (Collect_Interfaces): Make public, for analysis of formal
6190         interfaces.
6191         (Analyze_Interface_Declaration): New procedure for use for regular and
6192         formal interface declarations.
6193         (Build_Derived_Record_Type): Add support for private types to the code
6194         that checks if a tagged type implements abstract interfaces.
6195         (Check_Aliased_Component_Type): The test applies in the spec of an
6196         instance as well.
6197         (Access_Type_Declaration): Clean up declaration of malformed type
6198         declared as an access to its own classwide type, to prevent cascaded
6199         crash.
6200         (Collect_Interfaces): For private extensions and for derived task types
6201         and derived protected types, the parent may be an interface that must
6202         be included in the interface list.
6203         (Access_Definition): If the designated type is an interface that may
6204         contain tasks, create Master_Id for it before analyzing the expression
6205         of the declaration, which may be an allocator.
6206         (Record_Type_Declaration): Set properly the interface kind, for use
6207         in allocators, the creation of master id's for task interfaces, etc.
6209 2005-11-14  Javier Miranda  <miranda@adacore.com>
6210             Ed Schonberg  <schonberg@adacore.com>
6212         * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
6213         omitted in case of stream attribute subprograms.
6214         (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
6215         appear immediately after a subprogram body, when there is no previous
6216         subprogram declaration.
6217         Change name Is_Package to Is_Package_Or_Generic_Package
6218         (Process_Formals): A non null qualifier on a non null named access
6219         type is not an error, and is a warning only if Redundant_Constructs
6220         are flagged.
6222 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
6223             Ed Schonberg  <schonberg@adacore.com>
6225         * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
6226         nested within Analyze_Package_Specification to install the private
6227         declarations and use clauses within each of the parent units of a
6228         package instance of a generic child package.
6229         (Analyze_Package_Specification): When entering a private part of a
6230         package associated with a generic instance or formal package, the
6231         private declarations of the parent must be installed (by calling new
6232         procedure Install_Parent_Private_Declarations).
6233         Change name Is_Package to Is_Package_Or_Generic_Package
6234         (Preserve_Full_Attributes): For a synchronized type, the corresponding
6235         record is absent in a generic context, which does not indicate a
6236         compiler error.
6238 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
6240         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
6241         not try to rewrite a renamed stream attribute, because the operations
6242         on the type may not have been generated.
6243         Handle properly a renaming_as_body generated for a stream operation
6244         whose default is abstract because the object type itself is abstract.
6245         (Find_Type): If the type is incomplete and appears as the prefix of a
6246         'Class reference, it is tagged, and its list of primitive operations
6247         must be initialized properly.
6248         (Chain_Use_Clauses): When chaining the use clauses that appear in the
6249         private declaration of a parent unit, prior to compiling the private
6250         part of a child unit, find on the scope stack the proper parent entity
6251         on which to link the use clause.
6252         (Note_Redundant_Use): Emit a warning when a redundant use clause is
6253         detected.
6254         (Analyze_Object_Renaming): An attribute reference is not a legal object
6255         if it is not a function call.
6257 2005-11-14  Robert Dewar  <dewar@adacore.com>
6258             Ed Schonberg  <schonberg@adacore.com>
6260         * sem_eval.adb: Implement d.f flag
6261         (Subtype_Statically_Match): A generic actual type has unknown
6262         discriminants when the corresponding actual has a similar partial view.
6263         If the routine is called to validate the signature of an inherited
6264         operation in a child instance, the generic actual matches the full view,
6266 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
6267             Ed Schonberg  <schonberg@adacore.com>
6268             Robert Dewar  <dewar@adacore.com>
6269             Thomas Quinot  <quinot@adacore.com>
6271         * sem_res.adb (Resolve_Call): Provide a better error message whenever
6272         a procedure call is used as a select statement trigger and is not an
6273         entry renaming or a primitive of a limited interface.
6274         (Valid_Conversion): If the operand has a single interpretation do not
6275         remove address operations.
6276         (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
6277         statement to inhibit warning.
6278         (Resolve_Unary_Op): Do not produce a warning when
6279         processing an expression of the form -(A mod B)
6280         Use Universal_Real instead of Long_Long_Float when we need a high
6281         precision float type for the generated code (prevents gratuitous
6282         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
6283         (Resolve_Concatenation_Arg): Improve error message when argument is an
6284         ambiguous call to a function that returns an array.
6285         (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
6286         there is an implicit operator in the given scope if we are within an
6287         instance: legality check has been performed on the generic.
6288         (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
6289         after resolving operand, to avoid false warnings on overloaded calls.
6291 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
6292             Javier Miranda  <miranda@adacore.com>
6294         PR ada/15604
6296         * sem_type.adb (Covers): In an inlined body, a composite type matches
6297         a private type whose full view is a composite type.
6298         (Interface_Present_In_Ancestor): Protect the frontend against
6299         previously detected errors to ensure that its compilation
6300         with assertions enabled gives the same output that its
6301         compilation without assertions.
6302         (Interface_Present_In_Ancestor): Add support for private types.
6303         Change name In_Actual to In_Generic_Actual (clean up)
6304         (Disambiguate): New predicate In_Actual, to recognize expressions that
6305         appear in the renaming declaration generated for generic actuals, and
6306         which must be resolved in the outer context.
6308 2005-11-14  Robert Dewar  <dewar@adacore.com>
6309             Thomas Quinot  <quinot@adacore.com>
6310             Hristian Kirtchev  <kirtchev@adacore.com>
6311             Ed Schonberg  <schonberg@adacore.com>
6313         * sem_util.ads, sem_util.adb: Change name Is_Package to
6314         Is_Package_Or_Generic_Package.
6315         (Check_Obsolescent): New procedure.
6316         (Set_Is_Public): Remove obsolete junk test.
6317         (Set_Public_Status): Do not set Is_Public on an object whose declaration
6318         occurs within a handled_sequence_of_statemets.
6319         (Is_Controlling_Limited_Procedure): Factor some of the logic, account
6320         for a parameterless procedure.
6321         (Enter_Name): Recognize renaming declarations created for private
6322         component of a protected type within protected operations, so that
6323         the source name of the component can be used in the debugger.
6325 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
6326             Robert Dewar  <dewar@adacore.com>
6328         * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
6329         of a generic subprogram are not visible outside the body.
6330         (Set_Warning_Switch): New procedure (code to set warning mode moved
6331         here from Switch.C so that it can be shared by pragma processing.
6332         (Check_References): Special case warning for non-modified non-imported
6333         volatile objects.
6334         * par-prag.adb: Modify processing of pragma Warnings to accomodate new
6335         form with a string literal argument
6337 2005-11-14  Javier Miranda  <miranda@adacore.com>
6339         * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
6340         anonymous access.
6341         (Write): Addition of "not null" to the anonymous access.
6342         (Read): Addition of "not null" to the anonymous access.
6343         (Write): Addition of "not null" to the anonymous access.
6345         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
6346         I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
6347         I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
6348         (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
6349         W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
6350         "not null" to the anonymous access.
6352 2005-11-14  Robert Dewar  <dewar@adacore.com>
6354         * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
6355         offset values
6357 2005-11-14  Vincent Celier  <celier@adacore.com>
6359         * switch.adb (Bad_Switch): New procedure
6360         (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
6361         message when in error.
6363         * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
6364         Too_Many_Output_Files): Remove declarations, no longer used.
6365         (Scan_Nat): New parameter Switch
6366         (Scan_Pos): Ditto
6367         (Bad_Switch): New procedure
6369         * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
6370         with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
6371         new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
6372         to Osint.Fail. Do not handle any exception.
6374 2005-11-14  Vincent Celier  <celier@adacore.com>
6376         * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
6377         designates a non existent directory.
6379 2005-11-14  Robert Dewar  <dewar@adacore.com>
6381         * xgnatugn.adb: Replace invalid membership test by 'Valid
6383 2005-11-14  Vincent Celier  <celier@adacore.com>
6385         * makegpr.adb (Gprmake): Do not attempt to build the global archive if
6386         there is no object directory.
6388 2005-11-14  Robert Dewar  <dewar@adacore.com>
6390         * usage.adb: Minor adjustment to output format, use nn instead of nnn
6391         (so that -gnateInnn does not run into next column)
6393 2005-11-14  Ed Falis  <falis@adacore.com>
6395         * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
6396         "constrained"
6398 2005-11-14  Cyrille Comar  <comar@adacore.com>
6400         * s-chepoo.ads: Add comments on Dereference.
6401         Remove unnecessary inherited abstract primitives.
6402         Cosmetic cleanup.
6404 2005-11-14  Robert Dewar  <dewar@adacore.com>
6406         * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
6407         node parameter, not needed, since it is available as Declaration_Node.
6409 2005-11-14  Geert Bosch  <bosch@adacore.com>
6411         * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
6412         grammatically correct.
6414 2005-11-14  Vincent Celier  <celier@adacore.com>
6416         * s-fileio.ads: Correct spelling error in comment
6418 2005-11-14  Cyrille Comar  <comar@adacore.com>
6419             Robert Dewar  <dewar@adacore.com>
6420             Vincent Celier  <celier@adacore.com>
6421             Ben Brosgol  <brosgol@adacore.com>
6422             Jose Ruiz  <ruiz@adacore.com>
6423             Pascal Obry  <obry@adacore.com>
6425         * gnat_ugn.texi: 
6426         Document that -fstack-check is needed for strict compliance with the
6427         Ada 95 Reference Manual.
6428         Correct reference to VAX systems to meet HP guidelines
6429         Add documentation for new gnatmake switches -vl, -vm and -vh
6430         Replace DEC Ada by HP Ada
6431         Replace DIGITAL by HP
6432         Remove empty section on tools in compatibility section
6433         Clarify the Windows convention semantics.
6434         Document the Win32 calling convention.
6435         The Stdcall, Win32 and DLL convention are synonyms.
6436         Add a note in -gnatR description about zero size record components
6437         Note on new >= and <= warnings for -gnatwc
6438         Document that equal sign after -gnatm is optional.
6439         Note that strip is working fine on DLL built with a Library
6440         Project. The restriction apply only to DLL built with gnatdll.
6441         Update section about the way to debug a DLL.
6442         Update information about the DLL convention.
6443         Document -C switch for gnatprep
6444         Document new attribute Library_ALI_Dir
6445         Update elaboration doc to include implicit Elaborate pragmas now
6446         generated for subprogram instantiations.
6447         Document limitation on executable names that include spaces for --GCC,
6448         --GNATBIND, and --GNATLINK switches.
6449         Document that -w causes -gnatws to be added at start of gcc switches
6451         * gnat_rm.texi: Document that -mieee is needed for generating infinite
6452         and NaN values in case of overflow on machines that are not fully
6453         compliant with the IEEE floating-point standard.
6454         Create a section describing the set of compiler options needed for
6455         strict compliance with the Ada 95 Reference Manual.
6456         Add documentation for pragma Obsolescent applied to a package
6457         Clarify potential issues of mixed language programs related to the
6458         I/O buffering enabling in the elaboration of the GNAT runtime.
6459         Add extra documentation for pragma Restrictions (No_Elaboration_Code)
6460         This documentation only patch adds extra documentsion for pragma
6461         Restrictions (No_Elaboration_Code), explaining why it is not possible
6462         to document this restriction in terms of allowed source constructs.
6463         Document string literal form of pragma Warnings
6464         Document new attribute Library_ALI_Dir
6465         Add documentation on stable attributes in project files that was missing
6467         * gnat-style.texi: Indicate that paragraphs within a single comment
6468         should be separated by empty comment lines
6470         * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
6471         /05 respectively)
6473         * bindusg.adb: Minor cleanup, put -m before -M for consistency
6475 2005-11-14  Robert Dewar  <dewar@adacore.com>
6477         * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
6478         a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
6479         a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
6480         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
6481         a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
6482         a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
6483         a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
6484         a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
6485         a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
6486         a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
6487         a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
6488         a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
6489         g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
6490         a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
6491         a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
6492         system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
6493         g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
6494         g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
6495         a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
6496         a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
6497         a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
6498         a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
6499         a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
6500         a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
6501         system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
6502         system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
6503         a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
6504         a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
6505         a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
6506         system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
6507         system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
6508         s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
6509         system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
6510         system-interix.ads, system-solaris-sparc.ads,
6511         system-solaris-sparcv9.ads, s-inmaop-vms.adb,
6512         s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
6513         system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
6514         s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
6515         a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
6516         a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
6517         a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
6518         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
6519         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
6520         a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
6521         a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
6522         a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
6523         a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
6524         a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
6525         a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
6526         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
6527         a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
6528         a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
6529         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
6530         a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
6531         a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
6532         a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
6533         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
6534         a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
6535         a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
6536         a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
6537         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
6538         a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
6539         a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
6540         a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
6541         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
6542         a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
6543         a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
6544         a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
6545         bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
6546         csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
6547         errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
6548         errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
6549         exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
6550         exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
6551         freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
6552         g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
6553         g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
6554         g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
6555         g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
6556         g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
6557         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
6558         g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
6559         g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
6560         gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
6561         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
6562         g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
6563         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
6564         g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
6565         g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
6566         g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
6567         layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
6568         mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
6569         mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
6570         nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
6571         osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
6572         par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
6573         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
6574         par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
6575         prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
6576         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
6577         prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
6578         prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
6579         sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
6580         sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
6581         sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
6582         sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
6583         s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
6584         sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
6585         s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
6586         s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
6587         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
6588         s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
6589         s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
6590         s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
6591         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
6592         s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
6593         s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
6594         s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
6595         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
6596         s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
6597         s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
6598         s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
6599         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
6600         s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
6601         s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
6602         s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
6603         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
6604         s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
6605         s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
6606         s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
6607         s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
6608         s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
6609         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
6610         s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
6611         styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
6612         s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
6613         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
6614         s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
6615         s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
6616         s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
6617         s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
6618         s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
6619         s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
6620         s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
6621         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
6622         table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
6623         tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
6624         ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
6625         usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
6626         xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
6627         xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
6628         a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
6629         a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
6630         a-numaux-darwin.ads, a-numaux-darwin.adb,
6631         a-swuwha.ads, a-stunha.ads: Minor reformatting
6633 2005-11-14  Robert Dewar  <dewar@adacore.com>
6635         PR ada/18434
6636         * osint-m.adb: Add pragma Elaborate_All for Osint
6638 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
6640         PR ada/23995
6641         * trans.c (call_to_gnu): Restore statement lost in translation.
6643 2005-11-08  Eric Botcazou  <ebotcazou@adacore.com>
6645         * init.c: Use the Linux-specific section for the IA-64/Linux target.
6646         (__gnat_adjust_context_for_raise): Add conditional code so that the
6647         IA-64 is also supported.
6649 2005-11-03  James E Wilson  <wilson@specifix.com>
6651         PR ada/23427
6652         * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
6653         TREE_OVERFLOW check.
6655 2005-09-21  Olivier Hainque  <hainque@adacore.com>
6657         PR ada/22418
6658         * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
6659         as we create them to store a size in bits.
6661 2005-10-21  Eric Botcazou  <ebotcazou@adacore.com>
6663         PR ada/21937
6664         PR ada/22328
6665         PR ada/22381
6666         PR ada/22383
6667         PR ada/22419
6668         PR ada/22420
6669         * utils2.c (build_return_expr): New helper function.
6670         * gigi.h (build_return_expr): Declare it.
6671         * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
6672         of manually building the RETURN_EXPR tree.
6673         (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
6674         (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
6675         build_binary_op for the "target pointer" case.  Use build_return_expr
6676         instead of manually building the RETURN_EXPR tree.
6678 2005-09-16  Laurent GUERBY  <laurent@guerby.net>
6680         PR ada/23788
6681         * s-tpinop.ads: Make this unit Preelaborate.
6683 2005-09-16  Andreas Jaeger  <aj@suse.de>
6685         * socket.c: Add string.h for memcpy.
6687 2005-09-05  Arnaud Charlet  <charlet@adacore.com>
6689         * dec-io.ads, dec-io.adb: Removed, no longer used.
6691 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
6693         * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
6695         * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
6696         s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
6697         s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
6698         s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
6699         dependent units are Preelaborate.
6700         (Initialize): Call Interrupt_Managemeent.Initialize and
6701         OS_Primitives.Initialize to ensure proper initialization of this unit.
6702         Remove use of System.Soft_Links
6703         Make this unit Preelaborate.
6705         * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
6706         s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
6707         s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
6708         s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
6709         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
6710         s-tratas.ads, s-tasinf.ads: Minor reformatting.
6711         Add pragma Preelaborate, since these packages are suitable for this
6712         categorization.
6713         Update comments.
6715         * s-traent-vms.ads, s-intman-dummy.adb,
6716         s-taprop-dummy.adb: Make this unit Preelaborate.
6718         * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
6719         s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
6720         s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
6721         s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
6722         s-intman-solaris.adb, s-intman-irix-athread.adb,
6723         s-intman-irix.adb: Mark this unit Preelaborate.
6724         (Initialize): New procedure.
6725         Update comments.
6727         * s-taspri-linux.ads: Removed.
6729         * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
6730         as done by other implementations (e.g. posix).
6732         * s-taprop.ads (Timed_Delay): Update spec since the caller now is
6733         responsible for deferring abort.
6734         Mark this unit Preelaborate.
6736         * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
6737         proper initialization of the tasking run-time.
6739         * s-tasdeb.ads: Mark this unit Preelaborate.
6740         (Known_Tasks): Add explicit default value to avoid elaboration code.
6742         * s-inmaop-vms.adb (Elaboration code): Add call to
6743         Interrupt_Management.Initialize since the elaboration code depends on
6744         proper initialization of this package.
6746         * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
6747         s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
6748         s-osprim-posix.adb: Make this unit Preelaborate.
6750         * a-calend.adb: Add call to OS_Primitives.Initialize
6752         * a-elchha.adb: Update use of Except.Id.Full_Name.
6753         Minor reformatting.
6754         Remove use of Ada.Exceptions.Traceback when possible, cleaner.
6756         * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
6757         Move with clauses outside Warnings Off now that dependent units are
6758         Preelaborate.
6759         Use raise xxx with "..."; Ada 2005 form.
6761         * a-taside.ads, a-taside.adb:
6762         Remove some dependencies, to make it easier to make this unit truly
6763         Preelaborate.
6764         Rewrite some code to be conformant with Preelaborate rules.
6766         * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
6767         marked Preelaborate in the future.
6769         * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
6770         these units Preelaborate.
6772         * s-exctab.adb: Update use of Except.Id.Full_Name.
6774         * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
6775         (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
6776         Set_Exc_Stack_Addr): Removed, no longer used.
6777         Remove reference to *Machine_State_Addr*, no longer needed.
6779         * s-stalib.ads: Mark this unit as Preelaborate[_05].
6780         (Exception_Data): Full_Name is now a System.Address so that this unit
6781         can be made Preelaborate.
6782         Clean up/simplify code thanks to Full_Name being a System.Address.
6783         Remove obsolete pragma Suppress (All_Checks), no longer needed.
6785         * s-taskin.ads, s-taskin.adb:
6786         Move with clauses outside Warnings Off now that dependent units are
6787         Preelaborate.
6788         Make this unit Preelaborate.
6789         (Initialize): New proceduure, replace elaboration code and makes the
6790         set up of the tasking run-time cleaner.
6791         (Detect_Blocking): Now a function instead of a deferred boolean, to
6792         obey Preelaborate rules.
6794         * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
6795         soft links, no longer used.
6797         * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
6798         packages are suitable for this categorization.
6800         * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
6801         since we compile run-time sources in Ada 2005 mode.
6802         (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
6803         avoid having s-taprop*.adb depend on s-soflin and to avoid code
6804         duplication.
6805         Remove reference to *Machine_State_Addr*, no longer needed.
6807 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
6809         * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
6810         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
6811         Remove reference to System.Exceptions.
6813         * s-mastop-x86.adb: Removed, no longer used.
6815         * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
6817         * a-excach.adb: Minor reformatting.
6819         * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
6820         instead fix new warnings that were hidden by this change.
6821         (AAA, ZZZ): Removed, replaced by...
6822         (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
6823         are used instead of constants, to help make Ada.Exception truly
6824         preelaborate.
6825         (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
6826         Raise_Storage_Error): File is now a System.Address, to simplify code.
6827         (Elab code): Removed, no longer used.
6828         (Null_Occurrence): Remove Warnings Off and make this construct
6829         preelaborate.
6830         Remove code related to front-end zero cost exception handling, since
6831         it is no longer used.
6832         Remove -gnatL/-gnatZ switches.
6834         * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
6835         Update use of Except.Msg.
6837         * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
6838         freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
6839         to front-end zero cost exception handling, since it is no longer used.
6840         Remove -gnatL/-gnatZ switches.
6842         * lib-writ.ads: Minor reformatting
6843         Remove doc of UX
6845         * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
6847         * Make-lang.in: Remove references to s-except.ads
6849         * s-except.ads: Removed, no longer used.
6851         * s-mastop.ads, s-mastop.adb:
6852         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
6853         Remove reference to System.Exceptions.
6855         * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
6856         switch-b.adb: Remove code related to front-end zero cost exception
6857         handling, since it is no longer used.
6858         Remove -gnatL/-gnatZ switches.
6860 2005-09-01  Robert Dewar  <dewar@adacore.com>
6861             Gary Dismukes  <dismukes@adacore.com>
6862             Javier Miranda  <miranda@adacore.com>
6864         * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
6865         type by valid test and generate warning.
6866         (Tagged_Membership): Generate call to the run-time
6867         subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
6868         Change formal name Subtype_Mark to Result_Definition in several calls to
6869         Make_Function_Specification.
6870         (Expand_Allocator_Expression): Add tests for suppression of the AI-344
6871         check for proper accessibility of the operand of a class-wide allocator.
6872         The check can be left out if checks are suppressed or if the expression
6873         has a specific tagged type whose level is known to be safe.
6875         * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
6876         generates the run-time check associated with null-excluding entities.
6877         (Expand_N_Return_Statement): Add tests to determine if the accessibility
6878         check on the level of the return expression of a class-wide function
6879         can be elided. The check usually isn't needed if the expression has a
6880         specific type (unless it's a conversion or a formal parameter). Also
6881         add a test for whether accessibility checks are suppressed. Augment
6882         the comments to describe the conditions for performing the check.
6884 2005-09-01  Hristian Kirtchev  <kirtchev@adacore.com>
6885             Javier Miranda  <miranda@adacore.com>
6886             Gary Dismukes  <dismukes@adacore.com>
6887             Ed Schonberg  <schonberg@adacore.com>
6889         * a-tags.adb (IW_Membership): Give support to
6890         "Iface_CW_Typ in T'Class". For this purpose the functionality of this
6891         subprogram has been extended to look for the tag in the ancestors tag
6892         table.
6893         Update the structure of the GNAT Dispatch Table to reflect the
6894         additional two tables used in dispatching selects.
6895         Introduce appropriate array types and record components in
6896         Type_Specific_Data to reflect the two tables.
6897         (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
6898         the TSD of a tag, indexed by position.
6899         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
6900         operation kind in the TSD of a tag, indexed by position.
6902         * a-tags.ads: Introduce an enumeration type to capture different
6903         primitive operation kinds. Define a constant reflecting the number of
6904         predefined primitive operations.
6905         (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
6906         of an entry wrapper.
6907         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
6908         callable entity of a primitive operation.
6910         * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
6911         primitive operations used in dispatching selects for limited
6912         interfaces, limited tagged, task and protected types what implement a
6913         limited interface.
6914         (Freeze_Type): Generate the bodies of the primitive operations used in
6915         dispatching selects for limited tagged, task and protected types that
6916         implement a limited interface. Generate statements to populate the two
6917         auxiliary tables used for dispatching in select statements.
6918         (Freeze_Record_Type): Add call to initialize the dispatch table entries
6919         associated with predefined interface primitive operations.
6920         (Build_Dcheck_Function): Change Set_Subtype_Mark to
6921         Set_Result_Definition.
6922         (Build_Variant_Record_Equality): Change Subtype_Mark to
6923         Result_Definition.
6924         (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
6925         (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
6926         (Build_Assignment): Simplify the code that adds the run-time-check.
6927         (Expand_N_Object_Declaration): Code cleanup.
6929         * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
6930         entries when there is a protected type that implements a limited
6931         interface.
6933         * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
6934         common routines used in expansion of dispatching selects.
6935         (Add_Private_Declarations): Select the appropriate protection type when
6936         there is a protected type that implements a limited interface.
6937         (Build_Parameter_Block): Generate a wrapped parameter block.
6938         (Build_Protected_Subprogram_Body): Select the appropriate type for
6939         locking entries when there is a protected type that implements a
6940         limited interface.
6941         (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
6942         classified as entry wrappers.
6943         (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
6944         asynchronous selects.
6945         (Expand_N_Conditional_Entry_Call): Add support for expansion of
6946         dispatching conditional selects.
6947         (Expand_N_Protected_Type_Declaration): Select the appropriate type for
6948         protection when there is a protected type that implements limited
6949         interfaces.
6950         (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
6951         timed selects.
6952         (Extract_Dispatching_Call): Extract the entity of the name of a
6953         dispatching call, the object parameter, actual parameters and
6954         corresponding formals.
6955         (Make_Initialize_Protection): Correct logic of protection initialization
6956         when there is a protected type that implements a limited interface.
6957         (Parameter_Block_Pack): Populate a wrapped parameter block with the
6958         values of actual parameters.
6959         (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
6960         block and assign them to the original actual parameters.
6962         * exp_ch9.ads (Subprogram_Protection_Mode): New type.
6963         (Build_Protected_Sub_Specification): Change the type and name of the
6964         last formal to account for the increased variety of protection modes.
6966         * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
6967         entities. Used to save the value of the Is_Hidden attribute when the
6968         limited-view is installed.
6969         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
6970         the attribute of procedures classified as entry wrappers.
6971         (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
6972         entity of a primitive wrapper.
6973         (Write_Entity_Flags): Output the name and value of the
6974         Is_Primitive_Wrapper attribute.
6975         (Write_Field27_Name): Output the name and entity of the field Wrapped_
6976         Entity.
6977         (Underlying_Type): If we have an incomplete entity that comes from
6978         the limited view then we return the Underlying_Type of its non-limited
6979         view if it is already available.
6980         (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
6981         including operators.
6982         (Write_Field26_Name): Add entry for Overridden_Operation
6983         (Overridden_Operation): New attribute of functions and procedures.
6985         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
6986         predefined position in the dispatch table for the primitive operations
6987         used in dispatching selects.
6988         (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
6989         predefined primitive operations and replace it with
6990         Default_Prim_Op_Count.
6991         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
6992         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
6993         the names of the generated primitive operations used in dispatching
6994         selects.
6995         (Init_Predefined_Interface_Primitives): No need to inherit primitives in
6996         case of abstract interface types. They will be inherit by the objects
6997         implementing the interface.
6998         (Make_DT): There is no need to inherit the dispatch table of the
6999         ancestor interface for the elaboration of abstract interface types.
7000         The dispatch table will be inherited by the object implementing the
7001         interface.
7002         (Copy_Secondary_DTs): Add documentation.
7003         (Validate_Position): Improve this static check in case of
7004         aliased subprograms because aliased subprograms must have
7005         the same position.
7006         (Init_Predefined_Interface_Primitives): New subprogram that initializes
7007         the entries associated with predefined primitives of all the secondary
7008         dispatch tables.
7009         (Build_Anonymous_Access_Type): Removed.
7010         (Expand_Interface_Actuals): With the previous cleanup there is no need
7011         to build an anonymous access type. This allows further cleanup in the
7012         code generated by the expander.
7013         (Expand_Interface_Conversion): If the actual is an access type then
7014         build an internal function to handle the displacement. If the actual
7015         is null this function returns null because no displacement is
7016         required; otherwise performs a type conversion that will be
7017         expanded in the code that returns the value of the displaced actual.
7018         (Expand_Interface_Actuals): Avoid the generation of unnecessary type
7019         conversions that have no effect in the generated code because no
7020         displacement is required. Code cleanup; use local variables to
7021         avoid repeated calls to the subprogram directly_designated_type().
7023         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
7024         Classify the primitive operations used in dispatching selects as
7025         predefined.
7026         (Implements_Limited_Interface): Determine whether some type either
7027         directly implements a limited interface or extends a type that
7028         implements a limited interface.
7029         (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
7030         (Expand_Subtype_From_Expr): Do not build actual subtype if the
7031         expression is limited.
7032         (Find_Interface_Tag): Add code to handle class-wide types and
7033         entities from the limited-view.
7035         * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
7036         Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
7037         POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
7038         POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
7039         Set_Prim_Op_Kind.
7041         * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
7042         of procedure name or prefix that appears as a trigger in a triggering
7043         alternative.
7045         * uintp.ads: Introduce constants Uint_11 and Uint_13.
7047 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
7049         * s-tataat.adb, a-tasatt.adb:
7050         Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
7052         * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
7053         these procedures to body, and renamed Abort_Defer, Abort_Undefer.
7054         (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
7055         longer used.
7057 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
7058             Jose Ruiz  <ruiz@adacore.com>
7060         * s-taprop-vxworks.adb:
7061         Move with clauses outside Warnings Off now that dependent units are
7062         Preelaborate.
7063         (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
7064         initialization of this unit.
7065         (Specific): Add new procedures Initialize and Delete so that this
7066         package can be used for VxWorks 5.x and 6.x
7067         (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
7068         differences between VxWorks 5.x and 6.x
7069         Minor reformatting.
7070         (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
7071         caller.
7072         Use only Preelaborate-compatible constructs.
7074         * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
7075         Primitives.Operations.
7076         (Delete, Initialize): New procedures.
7078         * s-osinte-vxworks.adb: Body used to handle differences between
7079         VxWorks 5.x and 6.x
7080         (kill, Set_Time_Slice, VX_FP_TASK): New functions.
7082         * s-osinte-vxworks.ads: Minor reformatting.
7083         Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
7084         (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
7085         and 6.
7086         (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
7087         between Vxworks 5 and 6.
7088         (taskLock, taskUnlock): Removeed, no longer used.
7090         * adaint.c: The wait.h header is not located in the sys directory on
7091         VxWorks when using RTPs.
7092         (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
7093         using RTPs.
7094         (__gnat_dup): dup is available on Vxworks when using RTPs.
7095         (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
7097         * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
7099         * expect.c: The wait.h header is not located in the sys directory on
7100         VxWorks when using RTPs.
7102 2005-09-01  Thomas Quinot  <quinot@adacore.com>
7104         * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
7106         * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
7108         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
7109         g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
7110         g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
7111         g-soccon-freebsd.ads: Add new constants:
7112          IP_MULTICAST_IF
7113          SO_RCVTIMEO/SO_SNDTIMEO
7114          IOV_MAX
7116         * gen-soccon.c:
7117         Move all target-specific file inclusions and macro definitions to
7118         gsocket.h, in order to ensure that any C code in socket.c will see a
7119         set of constants that is consistent with the contents of g-soccon.ads.
7121         * gsocket.h: Code imported from gen-soccon.c:
7122         Move all target-specific file inclusions and macro definitions to
7123         gsocket.h, in order to ensure that any C code in socket.c will see a set
7124         of constants that is consistent with the contents of g-soccon.ads.
7125         This change also makes gen-soccon self-contained (removing dependencies
7126         upon GCC internal headers).
7128         * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
7129         iovecs at a time.
7130         (To_Inet_Addr): Now a procedure instead of a function, more efficient.
7132         * socket.c: Minor reformatting.
7134 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
7135             Thomas Quinot  <quinot@adacore.com>
7137         * fname-sf.adb, mlib-tgt.ads,
7138         back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
7139         g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
7140         osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
7141         prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
7142         prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
7143         prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
7144         sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
7145         makegpr.adb: Remove redundant use_clauses.
7147 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
7149         * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
7150         s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
7151         s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
7152         s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
7153         s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
7154         s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
7155         s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
7156         table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
7157         s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
7158         s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
7159         a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
7160         a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
7161         a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
7162         a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
7163         system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
7164         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7165         s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
7166         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
7167         s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
7168         s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7169         s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
7170         s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
7171         system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
7172         s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
7173         system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
7174         s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
7175         a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
7176         a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
7177         a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
7178         a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
7179         a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
7180         a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
7181         a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
7182         a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
7183         a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
7184         a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
7185         csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
7186         g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
7187         a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
7188         a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
7189         a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
7190         a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
7191         g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
7192         i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
7193         interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
7194         i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
7195         s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
7196         s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
7197         s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
7198         s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
7199         s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
7200         s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
7201         s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
7202         s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
7203         s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
7204         s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
7205         s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
7206         s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
7207         s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
7208         s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
7209         s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
7210         s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
7211         s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
7212         s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
7213         s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
7214         s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
7215         s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
7216         s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
7217         and always use the no parameter form for consistency.
7219         * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
7221 2005-09-01  Robert Dewar  <dewar@adacore.com>
7223         * binde.adb: Minor reformatting
7224         (Find_Elab_Order): Output warning if -p used with static elab order
7226 2005-09-01  Robert Dewar  <dewar@adacore.com>
7228         * checks.adb (Check_Needed): New procedure, deals with removing checks
7229         based on analysis of short-circuited forms. Also generates warnings for
7230         improper use of non-short-circuited forms.
7231         Code clean ups.
7233 2005-09-01  Robert Dewar  <dewar@adacore.com>
7235         * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
7236         with 'Valid tests.
7238 2005-09-01  Robert Dewar  <dewar@adacore.com>
7240         * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
7241         spec.
7242         Implement new insertion char < (conditional warning)
7243         * errutil.adb, erroutc.adb: Implement new insertion char <
7244         (conditional warning).
7245         * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
7246         (Error_Msg_Warn): New variable for < insertion char.
7247         * prj-nmsc.adb: Implement new errout insertion char < (conditional
7248         warning).
7249         (Check_For_Source): Change value of Source_Id only after the current
7250         source has been dealt with.
7252 2005-09-01  Robert Dewar  <dewar@adacore.com>
7253             Doug Rupp  <rupp@adacore.com>
7255         * exp_attr.adb: Handle vax fpt for 'Valid attribute
7256         * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
7257         * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
7258         (Valid_D, Valid_F, Valid_G): New functions
7260 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
7261             Hristian Kirtchev  <kirtchev@adacore.com>
7262             Javier Miranda  <miranda@adacore.com>
7264         * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
7265         from object notation, the original node is unanalyzed and carries no
7266         semantic information, so that accessiblity checks must be performed on
7267         the type of the actual itself.
7268         (Expand_N_Subprogram_Declaration): Change last actual parameter for
7269         compatibility with Build_Protected_Sub_Specification.
7270         (Check_Overriding_Inherited_Interfaces): Add suport to handle
7271         overloaded primitives.
7272         (Register_Interface_DT_Entry): Use the new name of the formal
7273         the the calls to Expand_Interface_Thunk
7275         * exp_dbug.ads: Augment comments on encoding of protected types to
7276         include the generation of dispatching subprograms when the type
7277         implements at least one interface.
7279         * lib.ads: Extend information in Load_Stack to include whether a given
7280         load comes from a Limited_With_Clause.
7282         * lib-load.adb (From_Limited_With_Chain): New predicate to determine
7283         whether a potential circularity is harmless, because it includes units
7284         loaded through a limited_with clause. Extends previous treatment which
7285         did not handle properly arbitrary combinations of limited and
7286         non-limited clauses.
7288 2005-09-01  Nicolas Setton  <setton@adacore.com>
7290         * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
7291         to be encoded as typ___XBLU_lowerbound__upperbound instead of
7292         typ___XB_lowerbound__upperbound.
7294 2005-09-01  Thomas Quinot  <quinot@adacore.com>
7296         * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
7297         dummy access formal for RACW/RAS TypeCode TSS.
7298         (Build_TypeCode_Call): Do not generate dummy null access actual for
7299         calls to the TypeCode TSS.
7301 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
7303         * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
7304         fully qualified name, to distinguish instances with the same local name.
7306         * g-souinf.ads (Enclosing_Entity): Document that entity name is now
7307         fully qualified.
7309 2005-09-01  Robert Dewar  <dewar@adacore.com>
7311         * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
7312         packed arrays.
7314 2005-09-01  Jerome Lambourg  <lambourg@adacore.com>
7316         * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
7317         (Free): New deallocation procedure for filter elements
7318         (Close): Deallocate any existing filter for the concerned connection
7320 2005-09-01  Laurent Pautet  <pautet@adacore.com>
7322         * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
7323         position set is provided, we compute one in order to reduce the maximum
7324         length of the keys.  This computation first selects a character
7325         position between 1 and the minimum length of the keys in order to
7326         avoid reducing one of the keys to an empty string.
7327         (Initialize, Compute): When the ratio V to K is too low, the algorithm
7328         does not converge. The initialization procedure now comes with a
7329         maximum number of iterations such that when exceeded, an exception is
7330         raised in Compute. The user can initialize this ratio to another value
7331         and try again
7332         Reformating and updated headers.
7334 2005-09-01  Javier Miranda  <miranda@adacore.com>
7336         * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
7337         that given an entity T creates and returns an Itype that duplicates the
7338         contents of T. The returned Itype has the null-exclusion
7339         attribute set to True, and its Etype attribute references T
7340         to keep the association between the two entities.
7341         Update copyright notice
7343         * sem_aggr.adb (Check_Can_Never_Be_Null,
7344         Aggregate_Constraint_Checks, Resolve_Aggregate,
7345         Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
7347         * sem_ch5.adb (Analyze_Assignment): Code cleanup.
7349 2005-09-01  Gary Dismukes  <dismukes@adacore.com>
7350             Robert Dewar  <dewar@adacore.com>
7351             Hristian Kirtchev  <kirtchev@adacore.com>
7353         * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
7354         Result_Definition.
7356         * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
7357         function specs.
7358         Call Set_Result_Definition instead of Set_Subtype_Mark.
7359         (P_Subprogram_Specification): Add parsing of anonymous access result
7360         plus null exclusions. Call Set_Result_Definition instead of
7361         Set_Subtype_Mark.
7363         * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
7364         (P_Access_Type_Definition): Add parsing for an anonymous access result
7365         subtype, plus parsing for null exclusions. Call Set_Result_Definition
7366         instead of Set_Subtype_Mark.
7368         * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
7369         (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
7370         (Result_Definition): New function for N_Function_Specifications.
7371         (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
7372         N_Function_Specification.
7373         (Set_Null_Exclusion_Present): Allow this flag for
7374         N_Function_Specification.
7375         (Set_Result_Definition): New procedure for N_Function_Specifications.
7376         (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
7377         and N_Function_Specification.
7379         * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
7380         Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
7381         Add support for LIMITED NEW for Ada 2005 AI-419
7382         Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
7383         syntax for anonymous access results.
7384         Replace Subtype_Mark field by Result_Definition in
7385         N_Function_Specification and N_Access_Definition specs.
7386         Add Null_Exclusion_Present to spec of N_Function_Specification.
7387         (Result_Definition): New function for N_Function_Specification and
7388         N_Access_Function_Definition.
7389         (Set_Result_Definition): New procedure for N_Function_Specification and
7390         N_Access_Function_Definition.
7392         * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
7393         Result_Definition for cases of N_Access_Function_Definition and
7394         N_Function_Specification.
7395         Print "not null" if Null_Exclusion_Present on N_Function_Specification.
7397 2005-09-01  Vincent Celier  <celier@adacore.com>
7399         * lib-writ.adb: Update Copyright notice
7400         (Write_With_Lines): On platforms where file names are case-insensitive,
7401         record the file names in lower case.
7402         (Write_ALI): For D lines, on platforms where file names are
7403         case-insensitive, record the file names in lower case.
7405 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
7406             Emmanuel Briot  <briot@adacore.com>
7408         * lib-xref.adb (Output_Overridden_Op): Display information on
7409         overridden operation.
7411         * lib-xref.ads: Add documentation on overridden operations.
7413         * ali.ads (Xref_Entity_Record): Add support for storing the overriding
7414         information.
7416         * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
7417         overriding entity information.
7419 2005-09-01  Vincent Celier  <celier@adacore.com>
7421         * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
7422         including those that are inherited.
7424 2005-09-01  Robert Dewar  <dewar@adacore.com>
7426         * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
7428         * par-prag.adb: Implement new pragma Debug_Policy
7430         * sem_prag.adb Implement new pragma Debug_Policy
7431         (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
7432         Component_Size attribute specification. Give warning for ignored pragma
7433         Pack.
7435         * snames.h, snames.ads, snames.adb: Introduce entries in
7436         Preset_Names for Name_Disp_Asynchronous_Select,
7437         Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
7438         Name_Disp_Timed_Select.
7439         New pragma Debug_Policy
7441         * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
7442         explicitly.
7443         Switch -gnata also sets Debug_Pragmas_Enabled
7445         * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
7446         handle an explicit -gnata when compiling predefined files.
7448 2005-09-01  Vincent Celier  <celier@adacore.com>
7450         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
7451         directories of projects that have no Ada sources.
7453 2005-09-01  Robert Dewar  <dewar@adacore.com>
7455         * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
7456         (makes a difference for wide characters)
7458         * widechar.adb, widechar.ads:
7459         Add Wide_Char_Byte_Count feature to count chars vs bytes
7461 2005-09-01  Thomas Quinot  <quinot@adacore.com>
7462             Ed Schonberg  <schonberg@adacore.com>
7463             Robert Dewar  <dewar@adacore.com>
7465         * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
7466         'Address attribute reference with an overloaded prefix, use the
7467         location of the prefix (not the location of the attribute reference) as
7468         the error location.
7469         (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
7470         a function renaming thereof, is a valid prefix for 'Size (where it is
7471         intepreted as a function call).
7472         (Statically_Denotes_Entity): New predicate to determine whether the
7473         prefix of an array attribute can be considered static.
7475         PR ada/9087
7476         (Eval_Attr): Fix failure to evaluate Component_Size for
7477         unconstrained arrays (resulted in wrong value in packed case, since
7478         back end cannot handle this case)
7480 2005-09-01  Robert Dewar  <dewar@adacore.com>
7482         * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
7483         error msgs for most common cases.
7484         Use new errout insertion char < (conditional warning)
7486 2005-09-01  Javier Miranda  <miranda@adacore.com>
7487             Ed Schonberg  <schonberg@adacore.com>
7489         * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
7490         become local to the whole package.
7491         (Install_Limited_Withed_Unit): Instead of unchaining real entities if
7492         the package was already analyzed the new algorithm "replaces" the
7493         real entities by the shadow ones. This is required to ensure that
7494         the order of these entities in the homonym chains does not change;
7495         otherwise we can have undefined references at linking time because
7496         in case of conflicts the external name of the entities will have
7497         a suffix that depends on the order of the entities in the chain.
7498         (Remove_Limited_With_Clause): Complementary code that completes the
7499         new algorithm and replaces the shadow entities by the real ones.
7500         (Install_Limited_Withed_Unit): When unchaining entities before the
7501         installation of the shadow entities, only regular entities of the
7502         public part must be taken into account. This is required to
7503         keep this routine in synch with the work done by Remove_Limited_
7504         With_Clause
7505         (Install_Limited_With_Clause): Introduce implicit limited_with_clause
7506         even if unit is analyzed, because the analysis of the unit is
7507         idempotent in any case, and the limited view of the unit may have to
7508         be installed for proper visibility.
7509         (Expand_Limited_With_Clause): Even if the unit in the implicit
7510         with_clause has been analyzed already, a limited view of the package
7511         must be built for the current context, if it does not exist yet.
7513 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
7514             Javier Miranda  <miranda@adacore.com>
7515             Gary Dismukes  <dismukes@adacore.com>
7517         * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
7518         defining entity for the instance body, make a new defining identifier
7519         rather than copying the entity of the spec, to prevent accidental
7520         sharing of the entity list.
7521         (Check_Private_View): When exchanging views of private types, build the
7522         list of exchanged views as a stack, to ensure that on exit the exchanges
7523         are undone in the proper order.
7524         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
7525         Restore the compilation environment in case of instantiation_error.
7526         (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
7527         for an anonymous access result.
7528         (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
7529         (Formal_Entity): Handle properly the case of a formal package that
7530         denotes a generic package renaming.
7532 2005-09-01  Thomas Quinot  <quinot@adacore.com>
7534         * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
7535         clause if the array aggregate is surrounded by parentheses.
7537 2005-09-01  Cyrille Comar  <comar@adacore.com>
7538             Gary Dismukes  <dismukes@adacore.com>
7539             Ed Schonberg  <schonberg@adacore.com>
7540             Javier Miranda  <miranda@adacore.com>
7542         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
7543         underlying type
7544         to check if a type is Constrained in cases related to code generation
7545         (rather than semantic checking) since otherwise we do not generate
7546         similar code for mutable private types depending if their
7547         discriminants are visible or not.
7548         (Check_Abstract_Overriding): Do not complain about failure to override
7549         the primitive operations used in dispatching selects since they will
7550         always be overriden at the freeze point of the type.
7551         (Access_Definition): Separate out handling for resetting the scope
7552         of an anonymous access function result type. Retrieve the scope
7553         of the associated function rather than using Current_Scope, which
7554         does not have a consistent value (depends on whether we're in the
7555         middle of analyzing formal parameters). Add ??? comment about
7556         finding a cleaner way to handle the special cases of scope setting.
7557         (Process_Incomplete_Dependents): A protected operation is never a
7558         dispatching operation (only its wrapper may be).
7559         (Build_Derived_Record_Type): In case of tagged private types that
7560         implement interfaces add derivation of predefined primitive
7561         operations.
7562         (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
7563         by two parameters that are used in case of derivation from abstract
7564         interface types: No_Predefined_Prims is used to avoid the derivation
7565         of predefined primitives from the interface, and Predefined
7566         Prims_Only is used to complete the derivation predefined primitives
7567         in case of private tagged types implementing interfaces.
7568         Fix typo in comments
7569         (Find_Interface_In_Descendant): Protect the frontend against
7570         wrong code with large circularity chains.
7571         (Is_Private_Overriding): Add support for entities overriding interface
7572         subprograms. The test failed because Entities associated with overriden
7573         interface subprograms are always marked as hidden (and used to build
7574         the secondary dispatch table); in this case the overriden entity is
7575         available through the field abstract_interface_alias (cf. override_
7576         dispatching_operation)
7577         (Access_Definition): Set the scope of the type to Current_Scope for the
7578         case of a function with an anonymous access result type.
7579         (Access_Subprogram_Declaration): Handle creation of the type entity for
7580         an access-to-function type with an anonymous access result.
7581         (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
7582         in handling for N_Access_Function_Definition.
7583         (Analyze_Subtype_Declaration): Modify the text of error message.
7584         (Derived_Type_Declaration): Modify the text of error message.
7585         (Process_Subtype): Modify the text of error message plus cleanup
7586         of one redundant error message.
7587         (Analyze_Component_Declaration): Code cleanup.
7588         (Analyze_Object_Declaration): Code cleanup.
7589         (Analyze_Subtype_Declaration): Propagate the null-exclusion
7590         attribute in case of access types. Code cleanup.
7591         (Array_Type_Declaration): Code cleanup.
7592         (Process_Discriminants): Create the new null-excluding itype
7593         if required. Code cleanup.
7594         (Process_Subtype): Create the new null-excluding itype if
7595         required. Code cleanup.
7596         (Build_Derived_Record_Type): Code cleanup to avoid calling
7597         twice the subprogram derive_subprograms in case of private
7598         types that implement interfaces. In this particular case the
7599         subprogram Complete_Subprograms_Derivation already does the
7600         job associated with the second call.
7602         * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
7603         conversion to the full view when generating an operation for a
7604         discriminant whose type may currently be private.
7606 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
7607             Javier Miranda  <miranda@adacore.com>
7609         * sem_ch4.adb (Transform_Object_Operation): In a context off the form
7610         V (Obj.F), the rewriting does not involve the indexed component, but
7611         only the selected component itself.
7612         Do not apply the transformation if the analyzed node is an actual of a
7613         call to another subprogram.
7614         (Complete_Object_Operation): Retain the entity of the
7615         dispatching operation in the selector of the rewritten node. The
7616         entity will be used in the expansion of dispatching selects.
7617         (Analyze_One_Call): Improve location of the error message associated
7618         with interface.
7619         (Analyze_Selected_Component): No need to resolve prefix when it is a
7620         function call, resolution is done when parent node is resolved, as
7621         usual.
7622         (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
7623         when attempting to resolve a call transformed from its object notation.
7624         (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
7625         of the argument list for each interpretation of the operation.
7626         (Try_Object_Operation): The designated type of an access parameter may
7627         be an incomplete type obtained through a limited_with clause, in which
7628         case the primitive operations of the type are retrieved from its full
7629         view.
7630         (Analyze_Call): If this is an indirect call, and the return type of the
7631         access_to_subprogram is incomplete, use its full view if available.
7633 2005-09-01  Javier Miranda  <miranda@adacore.com>
7634             Gary Dismukes  <dismukes@adacore.com>
7636         * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
7637         access types the null-exclusion and access-to-constant attributes must
7638         also match.
7639         (Analyze_Return_Statement): When the result type is an anonymous access
7640         type, apply a conversion of the return expression to the access type
7641         to ensure that appropriate accessibility checks are performed.
7642         (Analyze_Return_Type): For the case of an anonymous access result type,
7643         generate the Itype and set Is_Local_Anonymous_Access on the type.
7644         Add ??? placeholder for check to disallow returning a limited object
7645         in Ada 2005 unless it's an aggregate or a result of a function call.
7646         Change calls from Subtype_Mark to Result_Definition.
7647         (Analyze_Subprogram_Body): Change formal Subtype_Mark to
7648         Result_Definition in call to Make_Function_Specification.
7649         (Build_Body_To_Inline): Change Set_Subtype_Mark to
7650         Set_Result_Definition.
7651         (Make_Inequality_Operator): Change formal Subtype_Mark to
7652         Result_Definition in call to Make_Function_Specification.
7653         (Process_Formals): Create the new null-excluding itype if required.
7654         (New_Overloaded_Entity): For an entity overriding an interface primitive
7655         check if the entity also covers other abstract subprograms in the same
7656         scope. This is required to handle the general case, that is, overriding
7657         other interface primitives and overriding abstract subprograms inherited
7658         from some abstract ancestor type.
7659         (New_Overloaded_Entity): For an overriding entity that comes from
7660         source, note the operation that it overrides.
7661         (Check_Conformance, Type_Conformant): Addition of one new formal
7662         to skip controlling formals in the analysis. This is used to
7663         handle overloading of abstract interfaces.
7664         (Base_Types_Match): Add missing case for types imported from
7665         limited-with clauses
7666         (New_Overloaded_Entity): Add barrier to protect the use of
7667         the "alias" attribute.
7669 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
7671         * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
7672         verify that the procedure and the entry are mode conformant.
7673         (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
7674         as a different operator, which is often a cut-and-paste error.
7676 2005-09-01  Javier Miranda  <miranda@adacore.com>
7677             Ed Schonberg  <schonberg@adacore.com>
7679         * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
7680         used in controlling parameters exclude null because it is necessary to
7681         read the tag to dispatch, and null has no tag.
7682         (Override_Dispatching_Operation): If the previous operation is inherited
7683         from an interface, it becomes hidden  and does not participate in later
7684         name resolution.
7686 2005-09-01  Javier Miranda  <miranda@adacore.com>
7687             Ed Schonberg  <schonberg@adacore.com>
7688             Gary Dismukes  <dismukes@adacore.com>
7690         * sem_res.adb (Resolve_Membership_Op): In case of the membership test
7691         "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
7692         the expander will generate the corresponding run-time check to evaluate
7693         the expression.
7694         (Resolve_Call): Check for legal type of procedure name or prefix that
7695         appears as a trigger in a triggering alternative.
7696         (Valid_Conversion): If expression is ambiguous and the context involves
7697         an extension of System, remove System.Address interpretations.
7698         (Resolve_Qualified_Expression): Reject the case of a specific-type
7699         qualification applied to a class-wide argument. Enhance comment
7700         to explain checking of Original_Node.
7701         (Resolve_Type_Conversion): The location of the error message was not
7702         general enough to handle the general case and hence it has been removed.
7703         In addition, this patch improves the text of the message.
7704         (Resolve_Type_Conversion): Add missing support for access to interface
7705         types.
7706         (Resolve_Type_Conversion): If the target is a class-wide interface type,
7707         do not expand if the expression is the actual in a call, because proper
7708         expansion will take place when the call itself is expanded.
7709         (Resolve_Allocator): If the context is an unchecked conversion, the
7710         allocator inherits its storage pool, if any, from the target type of
7711         the conversion.
7713 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
7714             Javier Miranda  <miranda@adacore.com>
7716         * sem_type.adb (Add_One_Interp): If a candidate operation is an
7717         inherited interface operation that has an implementation, use the
7718         implementation to avoid spurious ambiguities.
7719         (Interface_Present_In_Ancestor): In case of concurrent types we can't
7720         use the Corresponding_Record_Typ attribute to look for the interface
7721         because it is set by the expander (and hence it is not always
7722         available). For this reason we traverse the list of interfaces
7723         (available in the parent of the concurrent type).
7724         (Interface_Present_In_Ancestor): Handle entities from the limited view
7726 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
7728         * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
7729         from the list of required components.
7730         (Is_Controlling_Limited_Procedure): Determine whether an entity is a
7731         primitive procedure of a limited interface with a controlling first
7732         parameter.
7733         (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
7734         of an entry.
7735         (Safe_To_Capture_Value): A value (such as non_null) is not safe to
7736         capture if it is generated in the second operand of a short-circuit
7737         operation.
7738         Do not capture values for variables with address clauses.
7739         (Is_Object_Reference): Treat a function call as an object reference only
7740         if its type is not Standard_Void_Type.
7742 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
7744         * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
7745         to a variable that is statically known to be constant.
7747 2005-09-01  Geert Bosch  <bosch@adacore.com>
7748             Robert Dewar  <dewar@adacore.com>
7750         * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
7751         (VAXGF_Safe_First): Idem.
7753 2005-09-01  Robert Dewar  <dewar@adacore.com>
7754             Arnaud Charlet  <charlet@adacore.com>
7756         * g-dirope.ads: Minor reformatting
7757         Document that bounds of result of Base_Name match the input index
7758         positions.
7759         Add documentation on environment variable syntax for Expand_Path
7761         * gnat_ugn.texi: Update documentation to include mention of -m switches
7762         Document new treatment of wide characters in max line length
7763         style check.
7764         Remove -gnatL/-gnatZ switches, no longer used.
7765         Add note on pragmas Assertion_Policy and Debug_Policy in discussion
7766         of -gnata switch.
7768         * gnat_rm.texi: Add doc for two argument form of pragma
7769         Float_Representation.
7770         Add documentation for pragma No_Strict_Aliasing
7771         Add note that explicit component clause overrides pragma Pack.
7772         Add documentation of pragma Debug_Policy
7774 2005-09-01  Matthew Heaney  <heaney@adacore.com>
7776         * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
7777         a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
7778         a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
7779         a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
7780         draft (Draft 13, August 2005) of Ada Amendment 1.
7782 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
7784         * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
7785         Note that the platform-specific version of g-soccon.ads for VMS is now
7786         named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
7787         really is a package spec).
7788         Replace s-taspri-linux.ads by s-taspri-posix.ads
7789         Remove references to s-mastop-x86.adb
7791         * system-vxworks-xscale.ads: Removed, no longer used.
7792         * s-vxwork-xscale.ads: Removed, no longer used.
7794 2005-09-01  Robert Dewar  <dewar@adacore.com>
7796         * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
7797         g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
7798         g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
7799         exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
7800         g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
7801         g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
7802         g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
7803         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
7804         g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
7805         g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
7806         sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
7807         a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
7808         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
7809         a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
7810         a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
7811         a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
7812         g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
7813         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
7814         g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
7815         i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
7816         a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
7818 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
7820         PR ada/23187
7821         * adaint.c
7822         (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
7824 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
7825             Doug Rupp  <rupp@adacore.com>
7827         * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
7828         when needed.
7829         (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
7830         this code in the GNAT run-time.
7832         * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
7834         PR ada/21053
7835         * init.c (__gnat_error_handler [many]): Mark "msg" as const
7836         (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
7838         (__gnat_inside_elab_final_code): Moved here from
7839         Standard_Library and only defined for the compiler.
7840         __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
7841         (__gnat_inum_to_ivec): Do not define this function on VxWorks when
7842         using RTPs because directly vectored Interrupt routines are not
7843         supported on this configuration.
7844         (getpid): Do not redefine this function on VxWorks when using RTPs
7845         because this primitive is well supported by the RTP libraries.
7846         (copy_msg): Correct the code that checks for buffer overflow.
7847         Discovered during code reading.
7849 2005-08-29  Olivier Hainque  <hainque@adacore.com>
7851         * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
7852         a library level mutable variable with an initializer, tell
7853         build_allocator to ignore the initializer's size. It may not be large
7854         enough for all the values that might be assigned to the variable later
7855         on.
7857 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
7858             Eric Botcazou  <ebotcazou@adacore.com>
7860         * trans.c: Protect < in error msg with quote
7861         Replace GCC_ZCX by Back_End_Exceptions.
7862         (addressable_p) <COMPONENT_REF>: Also return 1 if the field
7863         has been sufficiently aligned in the record.
7865 2005-08-15  James E. Wilson  <wilson@specifix.com>
7867         * system-linux-alpha.ads: Change ia64 to alpha.
7869 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
7871         * decl.c, utils.c: Fix comment typos.
7873 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
7875         * decl.c, init.c, initialize.c: Fix comment typos.
7877 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
7879         Make CONSTRUCTOR use VEC to store initializers.
7880         * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
7881         CONSTRUCTOR_ELTS.
7882         * trans.c (extract_values): Likewise.
7883         * utils.c (convert, remove_conversions): Likewise.
7884         * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
7885         gnat_build_constructor): Likewise.
7887 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
7889         * decl.c (components_to_record): Use DECL_FCONTEXT instead of
7890         DECL_SECTION_NAME.
7891         (compare_field_bitpos): Likewise.
7893 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
7895         * utils.c (create_var_decl): Only set DECL_COMMON on
7896         VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
7897         VAR_OR_FUNCTION_DECL_P.
7899 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
7901         * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
7902         removed.
7904 2005-07-07  Pascal Obry  <obry@adacore.com>
7906         * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
7907         returned type on Windows.
7909         * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
7910         routine.
7912         * g-socket.adb (Inet_Addr): Check for empty Image and raises an
7913         exception in this case.
7914         Simplify the code as "Image (Image'Range)" = "Image".
7916 2005-07-07  Vincent Celier  <celier@adacore.com>
7918         * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
7919         the destructor/constructor attributes for <lib>final/<lib>init.
7921         * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
7923 2005-07-07  Eric Botcazou  <ebotcazou@adacore.com>
7925         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
7926         type if the parameter is not passed by copy but reference by default.
7928 2005-07-07  Javier Miranda  <miranda@adacore.com>
7930         * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
7931         Reimplementation of the support for abstract interface types in order
7932         to leave the code more clear and easy to maintain.
7934         * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
7935         abstract interface types in order to leave the code clearer and easier
7936         to maintain.
7938         * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
7939         is now implemented by the new subprogram Fill_Secondary_DT_Entry.
7940         (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
7941         appropriate entry of the secondary dispatch table.
7942         (Make_DT): Add code to inherit the secondary dispatch tables of
7943         the ancestors.
7945         * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
7946         implementing both functionalities by means of a common routine, each
7947         routine has its own code.
7949 2005-07-07  Javier Miranda  <miranda@adacore.com>
7951         * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
7953         * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
7954         types:
7955         --
7956           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
7957         --
7959         * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
7960         use of tag incomplete types.
7962         * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
7963         give support to tagged incomplete types.
7965         * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
7966         expression is a discriminant reference and its type is private, as can
7967         happen within a stream operation for a mutable record, use the full
7968         view of the type to resolve the case alternatives.
7969         (Analyze_Assignment): Check wrong dereference of incomplete types.
7971         * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
7972         types.
7974         * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
7975         incomplete types.
7977         * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
7978         N_Incomplete_Type_Declaration nodes.
7980         * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
7981         Tag_Present to give support to tagged incomplete types:
7982         --
7983           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
7984         --
7986 2005-07-07  Olivier Hainque  <hainque@adacore.com>
7988         PR ada/22301
7990         * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
7991         definitions for the Unwind wrappers in the compiler case.
7993 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
7994             Javier Miranda  <miranda@adacore.com>
7996         * par-load.adb (Load): If a child unit is loaded through a limited_with
7997         clause, each parent must be loaded as a limited unit as well.
7999         * sem_ch10.adb (Previous_Withed_Unit): Better name for
8000         Check_Withed_Unit. Return true if there is a previous with_clause for
8001         this unit, whether limited or not.
8002         (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
8003         the current unit.
8004         (Is_Visible_Through_Renamings): New local subprogram of install_limited
8005         _withed_unit that checks if some package installed through normal with
8006         clauses has a renaming declaration of package whose limited-view is
8007         ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
8008         of the current Draft document for Ada 2005.
8009         (Analyze_Context): Complete the list of compilation units that
8010         are allowed to contain limited-with clauses. It also contains
8011         checks that were previously done by Install_Limited_Context_Clauses.
8012         This makes the code more clear and easy to maintain.
8013         (Expand_Limited_With_Clause) It is now a local subprogram of
8014         Install_Limited_Context_Clauses, and contains the code that adds
8015         the implicit limited-with clauses for parents of child units.
8016         This functionality was prevously done by Analyze_Context.
8018         * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
8019         incomplete type.
8021         * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
8022         been erroneously named in a limited-with clause of its own context.
8023         In this case the error has been previously notified by Analyze_Context.
8025 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
8027         * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
8028         generic package that contains local declarations with the same name.
8029         (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
8031 2005-07-07  Bernard Banner  <banner@adacore.com>
8033         * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
8034         ia64 platform only on platforms that you the GCC unwind library
8035         rather than the system unwind library.
8037 2005-07-07  Thomas Quinot  <quinot@adacore.com>
8039         * expect.c: Minor reformatting
8041 2005-07-07  Sergey Rybin  <rybin@adacore.com>
8043         * vms_data.ads: Add VMS qualifiers for new gnatpp switch
8044         --no-separate-is
8046         * gnat_ugn.texi: Add description for new gnatpp option
8047         (--no-separate-is)
8049 2005-07-04  Thomas Quinot  <quinot@adacore.com>
8051         * g-expect-vms.adb, g-expect.ads, g-expect.adb
8052         (Get_Command_Output): New subprogram to launch a process and get its
8053         standard output as a string.
8055 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
8056             Olivier Hainque  <hainque@adacore.com>
8058         * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
8059         fetch a code-range descriptor associated with the machine state. On
8060         failure set the machine state's PC to 0; on success, pass the
8061         descriptor to exc_virtual_unwind.
8063         * init.c (Tru64 section): New function __gnat_set_code_loc.
8065 2005-07-04  Vincent Celier  <celier@adacore.com>
8067         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
8068         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
8069         mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
8070         Remove all auto-initialization code, as this is now done through the
8071         constructor mechanism.
8073         * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
8074         __gnat_sals_init_using_constructors): New functions.
8076         * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
8077         Linker_Constructor and Linker_Destructor when switch -a is used.
8079         * bindusg.adb: Add line for new switch -a
8081         * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
8082         (Gnatbind): When switch -a is used, check if it is allowed
8084         * switch-b.adb (Scan_Binder_Switches): Process new switch -a
8086 2005-07-04  Joel Brobecker  <brobecker@adacore.com>
8088         * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
8089         This prevents us from hitting a limitation during the debug info
8090         generation when using stabs.
8091         (Prims_Ptr): Likewise.
8093 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
8094             Ed Schonberg  <schonberg@adacore.com>
8095             Javier Miranda  <miranda@adacore.com>
8097         * checks.adb (Null_Exclusion_Static_Checks): In the case of
8098         N_Object_Declaration, only perform the checks if the Object_Definition
8099         is not an Access_Definition.
8101         * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
8102         where the parent of an the access definition is an N_Object_Declaration
8103         when determining the Associated_Node_For_Itype and scope of an
8104         anonymous access-to-subprogram type.
8106         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
8107         Corresponding_Spec on the body created for a null procedure. Add ???
8108         comment. Remove New_Copy_Tree call on body argument to
8109         Set_Body_To_Inline.
8111         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
8112         discriminants, use the type of the actual as well, because the
8113         discriminants may be read by the called subprogram.
8115         * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
8116         access type we do not need to handle non-limited views.
8117         (Build_Derived_Record_Type): Additional check to check that in case of
8118         private types, interfaces are only allowed in private extensions.
8120 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
8122         * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
8123         <Pragma_Linker_Destructor>: Likewise.
8125         * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
8126         Pragma_Linker_Destructor.
8128         * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
8129         ATTR_LINK_DESTRUCTOR.
8130         (static_ctors, static_dtors): New variables.
8132         * misc.c (gnat_expand_body): Output current function as constructor
8133         and destructor if requested.
8135         * par-prag.adb: Add processing for pragma Linker_Constructor and
8136         Linker_Destructor.
8138         * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
8139         extracted from Check_Interrupt_Or_Attach_Handler.
8140         (Check_Interrupt_Or_Attach_Handler): Invoke it.
8141         Implement pragma Linker_Constructor and Linker_Destructor with the
8142         help of Find_Unique_Parameterless_Procedure.
8143         Replace Name_Alias with Name_Target for pragma Linker_Alias.
8145         * snames.h, snames.ads, snames.adb:
8146         Add Name_Linker_Constructor and Name_Linker_Destructor.
8147         Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
8148         * snames.adb: Remove Name_Alias.
8150         * trans.c: Include cgraph.h.
8151         (build_global_cdtor): New function.
8152         (Compilation_Unit_to_gnu): Build global constructor and destructor if
8153         needed.
8154         (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
8155         of objects too.
8156         (addressable_p) <COMPONENT_REF>: Unconditionally test
8157         DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
8159         * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
8160         variable if it is external.
8162         (static_ctors, static_dtors): New global variables.
8163         (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
8164         <ATTR_LINK_DESTRUCTOR>: Likewise.
8165         (end_subprog_body): Chain function as constructor and destructor
8166         if requested.
8168         * exp_util.adb (Force_Evaluation): Unconditionally invoke
8169         Remove_Side_Effects with Variable_Ref set to true.
8170         (Remove_Side_Effects): Handle scalar types first. Use a renaming
8171         for non-scalar types even if Variable_Ref is true and for class-wide
8172         expressions.
8174 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
8176         * exp_attr.adb (Mod): Evaluate condition expression with checks off,
8177         to prevent spurious warnings.
8179 2005-07-04  Thomas Quinot  <quinot@adacore.com>
8181         * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
8182         Itypes. Itypes are really unexpected there.
8183         (Build_TypeCode_Function): Generalise special processing for Itypes to
8184         handle the case of numeric implicit base types as well as enumerated
8185         ones.
8187 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
8189         * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
8190         controlled, indicate the expected type of the dereference that is
8191         created for the call to Deep_Finalize, to prevent spurious errors when
8192         the designated type is private and completed with a derivation from
8193         another private type.
8195 2005-07-04  Vincent Celier  <celier@adacore.com>
8197         * make.adb (Change_To_Object_Directory): When unable to change the
8198         current dir to the object directory, output the full path of the
8199         directory.
8201 2005-07-04  Matthew Gingell  <gingell@adacore.com>
8203         * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
8205         * indepsw-linux.adb: Replace by...
8207         * indepsw-gnu.adb: ...this new file
8209 2005-07-04  Vincent Celier  <celier@adacore.com>
8211         * mlib-prj.adb (Auto_Initialize): New constant String
8212         (SALs_Use_Constructors): New Boolean function
8213         (Build_Library): Call gnatbind with Auto_Initialize switch when
8214         SALs_Use_Constructors returns True.
8216         * mlib-tgt.ads: Minor reformatting
8218         * mlib-utl.ads: Minor reformatting
8220         * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
8222 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
8224         * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
8225         single protected declarations can have an interface list.
8226         (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
8227         with seriously malformed entry declarations, and lead to compilation
8228         abandoned messages.
8230 2005-07-04  Javier Miranda  <miranda@adacore.com>
8232         * par-load.adb: Load the context items in two rounds.
8234 2005-07-04  Robert Dewar  <dewar@adacore.com>
8236         * scng.adb: Do not consider Mod used as an attribute to be a keyword
8238 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
8239             Javier Miranda  <miranda@adacore.com>
8241         * sem_ch10.adb (Build_Limited_Views): A type declared with a private
8242         type extension needs a limited view.
8243         Remove previous restriction on private types available through the
8244         limited-view (only tagged private types were previously allowed).
8245         (Install_Withed_Unit): In the code that implements the
8246         legality rule given in AI-377, exclude a child unit with the name
8247         Standard, because it is a homonym of the Standard environment package.
8249 2005-07-04  Thomas Quinot  <quinot@adacore.com>
8251         * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
8252         overloaded function call, carry interpretations from the original tree
8253         to the copy.
8255 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
8257         * sem_ch6.adb (Conforming_Types): If the types are anonymous access
8258         types check whether some designated type is a limited view, and use
8259         the non-limited view if available.
8261 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
8263         * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
8264         constraint of full view of a private view T1 if present, when T2 is a
8265         discriminated full view.
8267 2005-07-04  Thomas Quinot  <quinot@adacore.com>
8269         * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
8270         actual that is a view conversion of a bit packed array reference.
8272 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
8274         * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
8275         present before checking whether an interface type covers a synchronized
8276         type.
8278 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
8280         * sem_util.adb (Is_Object_Reference): An indexed or selected component
8281         whose prefix is an implicit dereference is an object reference. Removes
8282         spurious errors when compiling with -gnatc.
8284 2005-07-04  Robert Dewar  <dewar@adacore.com>
8286         PR ada/22039
8288         * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
8290 2005-07-04  Matthew Gingell  <gingell@adacore.com>
8292         * tracebak.c: Enable tracebacks on ia64 platforms
8294 2005-07-04  Vincent Celier  <celier@adacore.com>
8296         * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
8297         the GNAT BIND command, as gnatbind accepts multiples ALI files with
8298         the -L or -n switches.
8300 2005-07-04  Vincent Celier  <celier@adacore.com>
8302         * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
8303         correctly computed and the main project data is not modified while
8304         doing so.
8305         (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
8306         (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
8307         c++linker as this does not work on some platforms.
8309 2005-07-04  Matthew Heaney  <heaney@adacore.com>
8311         * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
8312         was changed.
8313         * a-coinve.adb: Perform constraint checks explicitly.
8315 2005-07-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8316             Thomas Quinot  <quinot@adacore.com>
8318         * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
8319         new target gen-soccon.
8321 2005-07-04  Robert Dewar  <dewar@adacore.com>
8323         * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
8325 2005-07-04  Thomas Quinot  <quinot@adacore.com>
8327         * g-socket.ads (Check_Selector): Minor rewording of comment.
8329 2005-07-04  Vincent Celier  <celier@adacore.com>
8331         * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
8333 2005-07-04  Thomas Quinot  <quinot@adacore.com>
8335         * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
8337 2005-07-04  Sergey Rybin  <rybin@adacore.com>
8339         * gnat_ugn.texi: Add description of --eol gnatpp option
8341 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
8342             Thomas Quinot  <quinot@adacore.com>
8344         * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
8345         if the user wants all calls of a subprogram to be flagged,
8346         independently of whether they are made from within the same unit or
8347         another unit.
8348         Mention restriction for pragma Linker_Alias on some platforms.
8349         Document pragma Linker_Constructor and Linker_Destructor.
8350         Rewrite documentation of Weak_External, Linker_Section and
8351         Linker_Alias pragmas.
8353 2005-07-04  Arnaud Charlet  <charlet@adacore.com>
8355         * s-stausa.ads, s-stausa.adb: New files.
8357 2005-06-30  Kelley Cook
8359         * all files:  Update FSF address in copyright headers.
8360         * gen-soccon.co (main): Output new FSF address in generated files.
8362 2005-06-28  Paul Brook  <paul@codesourcery.com>
8364         * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
8366 2005-06-14  Olivier Hainque  <hainque@adacore.com>
8367             Eric Botcazou  <ebotcazou@adacore.com>
8369         * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
8370         exc_unwind, now that we are generating proper .debug_frame output for
8371         that target.
8373         * tracebak.c: Remove the mips-irix section, as we are now using the
8374         s-mastop based unwinder again.
8375         Under SPARC/Solaris, take into account the stack bias to compute the
8376         frame offset.  The stack bias is 0 for the V8 ABI and 2047 for the V9
8377         ABI.
8379 2005-06-14  Doug Rupp  <rupp@adacore.com>
8381         * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
8383         * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
8385 2005-06-14  Pascal Obry  <obry@adacore.com>
8387         * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
8388         a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
8389         a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
8390         package name).
8392         * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
8393         a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
8394         a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
8395         a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
8396         a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
8397         a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
8398         a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
8399         s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
8400         s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
8401         s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
8402         s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
8403         s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
8404         s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
8405         s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
8406         s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
8407         s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
8408         s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
8409         s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
8410         s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
8411         s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
8412         s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
8413         s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
8414         s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
8415         s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
8416         s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
8417         s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
8418         s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
8419         s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
8420         s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
8421         s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
8422         a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
8423         a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
8424         a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
8425         a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
8426         a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
8427         a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
8428         a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
8429         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
8430         a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
8431         a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
8432         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
8433         a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
8434         a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
8435         a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
8436         a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
8437         a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
8438         a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
8439         a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
8440         a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
8441         a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
8442         a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
8443         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
8444         a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
8445         a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
8446         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
8447         a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
8448         a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
8449         dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
8450         g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
8451         g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
8452         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
8453         g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
8454         g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
8455         gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
8456         g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
8457         i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
8458         s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
8459         s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
8460         s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
8461         s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
8462         s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
8463         s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
8464         s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
8465         s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
8466         s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
8467         s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
8468         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
8469         s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
8470         s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
8471         s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
8472         s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
8473         s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
8474         s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
8475         s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
8476         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
8477         s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
8478         s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
8479         s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
8480         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
8481         s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
8482         s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
8483         s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
8484         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
8485         s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
8486         s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
8487         s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
8488         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
8489         s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
8490         s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
8491         s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
8492         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
8493         s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
8494         s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
8495         s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
8496         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
8497         s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
8498         s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
8499         s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
8500         s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
8501         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
8502         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
8503         s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
8504         s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
8505         s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
8506         s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
8507         s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
8508         s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
8509         s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
8510         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
8511         s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
8512         s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
8513         s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
8514         s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
8515         a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
8516         a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
8517         a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
8518         a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
8519         a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
8520         a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
8521         a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
8522         a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
8523         a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
8524         "GNU Ada" to GNAT, use proper casing for RUN-TIME.
8526 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
8527             Arnaud Charlet  <charlet@adacore.com>
8529         * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
8530         longer protected objects. They have been replaced by lower-level
8531         suspension objects made up by a mutex and a condition variable (or
8532         their equivalent given a particular OS) plus some internal data to
8533         reflect the state of the suspension object.
8534         (Initialize, Finalize): Add this initialization procedure for
8535         Suspension_Object, which is a controlled type.
8536         (Finalize): Add the finalization procedure for Suspension_Object,
8537         which is a controlled type.
8539         * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
8540         Ada.Synchronous_Task_Control because there is no longer a need for a
8541         VxWorks specific version of this package. Target dependencies
8542         has been moved to System.Task_Primitives.Operations.
8544         * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
8545         longer needed.
8546         (InitializeCriticalSection, EnterCriticalSection,
8547         LeaveCriticalSection, DeleteCriticalSection): Replace the type
8548         pCriticalSection by an anonymous access type so that we avoid problems
8549         of accessibility to local objects.
8551         * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
8552         s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
8553         s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
8554         s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
8555         s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
8556         set the environment task mask here.
8557         (Current_State): Add this function that returns the state of the
8558         suspension object.
8559         (Set_False): Add this procedure that sets the state of the suspension
8560         object to False.
8561         (Set_True): Add this procedure that sets the state of the suspension
8562         object to True, releasing the task that was suspended, if any.
8563         (Suspend_Until_True): Add this procedure that blocks the calling task
8564         until the state of the object is True. Program_Error is raised if
8565         another task is already waiting on that suspension object.
8566         (Initialize): Add this procedure for initializing the suspension
8567         object. It initializes the mutex and the condition variable which are
8568         used for synchronization and queuing, and it sets the internal state
8569         to False.
8570         (Finalize): Add this procedure for finalizing the suspension object,
8571         destroying the mutex and the condition variable.
8573         * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
8574         s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
8575         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
8576         s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
8577         which provides a low-level abstraction (using operating system
8578         primitives) for Ada.Synchronous_Task_Control.
8579         This object is made up by a mutex (for ensuring mutual exclusion), a
8580         condition variable (for queuing threads until the condition is
8581         signaled), a Boolean (State) indicating whether the object is open,
8582         and a Boolean (Waiting) reflecting whether there is a task already
8583         suspended on this object.
8585         * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
8586         s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
8587         s-intman-vms.ads, s-intman-mingw.adb,
8588         (Initialize_Interrupts): Removed, no longer used.
8590         * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
8591         (Setup_Interrupt_Mask): New procedure.
8593         * s-intman-vxworks.ads, s-intman-vxworks.adb:  Update comments.
8595         * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
8597         * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
8598         this is no longer done in the body of s-taprop
8599         (Server_Task): Explicitely test for Pending_Action in case
8600         System.Parameters.No_Abort is True.
8602         * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
8603         is no longer done in the body of s-taprop
8605 2005-06-14  Robert Dewar  <dewar@adacore.com>
8607         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
8608         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
8609         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
8610         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
8611         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
8612         system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
8613         system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
8614         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
8615         system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
8616         system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
8617         system-linux-hppa.ads, system-vms_64.ads,
8618         system-vxworks-alpha.ads: Minor comment update for
8619         AI-362 (unit is Pure).
8621         * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
8622         Add pragma Pure_05 for AI-362
8623         Make remaining conversion functions obsolescent in Ada 95
8625         * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
8626         Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
8627         Add entries for a-wichun and a-zchuni
8628         Add a-widcha a-zchara for AI-395
8629         Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
8631         * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
8632         Add entries for a-wichun.o and a-zchuni.o
8633         Entries for a-widcha.o and a-zchara.o
8634         Add entry for a-chacon.o
8636         * a-ztenau.adb: Add with of Ada.Characters.Conversions
8638         * a-chacon.ads, a-chacon.adb: New files.
8640         * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
8641         categorization violations.
8643         * a-strmap.ads: Add pragma Pure_05 for AI-362
8644         * a-strmap.ads: Add note on implicit categorization for AI-362
8646         * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
8648         * par-prag.adb: Dummy entry for pragma Persistent_BSS
8649         Set Ada_Version_Explicit, for implementation of AI-362
8650         Add processing for pragma Pure_05 and Preelaborate_05
8651         Add entry for Assertion_Policy pragma
8653         * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
8654         when needed for proper processing of categorization stuff
8656         * sem_cat.adb:
8657         For several cases, make errors in preealborate units warnings,
8658         instead of errors, if GNAT_Mode is set. For AI-362.
8660         * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
8661         preelaborate unit is now warning if in GNAT mode
8663         * s-stoele.ads: Document AI-362 for pragma preelaborate
8665 2005-06-14  Doug Rupp  <rupp@adacore.com>
8667         * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
8668         s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
8669         Default_Exception_Msg_Max_Length: new parameter.
8671         * a-except.ads: (Exception_Msg_Max_Length): Set to
8672         System.Parameters.Default_Exception_Msg_Max_Length
8673         Add pragma Preelaborate_05 for AI-362
8674         Add warnings off to allow categorization violations for AI-362
8676 2005-06-14  Vincent Celier  <celier@adacore.com>
8678         * gnatsym.adb: Adapt to modification of package Symbols: procedure
8679         Process is now in package Processing.
8681         * symbols.ads, symbols.adb:
8682         (Processing): New package, containing procedure Process
8684         * symbols-vms-alpha.adb:
8685         Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
8687         * symbols-vms.adb, symbols-processing-vms-alpha.adb,
8688         symbols-processing-vms-ia64.adb: New files.
8690 2005-06-14  Pascal Obry  <obry@adacore.com>
8692         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
8693         implementation. This new version generates the proper DllMain routine
8694         to initialize the SAL. The DllMain is generated in Ada and compiled
8695         before being added as option to the library build command.
8697 2005-06-14  Doug Rupp  <rupp@adacore.com>
8698             Pascal Obry  <obry@adacore.com>
8700         * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
8701         call to decc$translate_vms.
8702         (__gnat_locate_regular_file): Check if the path_val contains quotes. We
8703         need to remove those quotes before catenating the filename.
8704         (__gnat_locate_exec_on_path): improvements to the Win32 section:
8705         * avoid allocating the memory twice for better efficiency;
8706         * allocate 32K buffer for environment expansion as suggested by MSDN;
8707         * prepend ".;" to the path so that current directory is searched too.
8709 2005-06-14  Robert Dewar  <dewar@adacore.com>
8711         * a-except.adb (Exception_Identity): return Null_Id for null occurrence
8712         instead of raising CE (AI-241)
8713         Add warnings off to allow categorization violations for AI-362
8715 2005-06-14  Robert Dewar  <dewar@adacore.com>
8717         * ali-util.adb, gnatbind.adb: Remove references to
8718         Force_RM_Elaboration_Order.
8720         * switch-b.adb: Remove recognition of -f switch
8722 2005-06-14  Pascal Obry  <obry@adacore.com>
8724         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
8725         implementation which is slightly more efficient.
8727 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
8728             Javier Miranda  <miranda@adacore.com>
8729             Ed Schonberg  <schonberg@adacore.com>
8730             Hristian Kirtchev  <kirtchev@adacore.com>
8732         * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
8733         allocator's designated type is a class-wide type, and compiling for
8734         Ada 2005, emit a run-time check that the accessibility level of the
8735         type given in the allocator's expression is not deeper than the level
8736         of the allocator's access type.
8738         (Tagged_Membership): Modified to gives support to abstract interface
8739         types.
8741         * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
8742         Access_Level.
8743         (Descendant_Tag): New predefined function
8744         (Is_Descendant_At_Same_Level): New predefined function
8745         (Get_Access_Level): New private function
8746         (Set_Access_Level): New private procedure
8747         (IW_Membership): New function. Given the tag of an object and the tag
8748         associated with an interface, evaluate if the object implements the
8749         interface.
8750         (Register_Interface_Tag): New procedure used to initialize the table of
8751         interfaces used by the IW_Membership function.
8752         (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
8753         of the dispatch table.
8754         (Inherit_TSD): Modified to copy the table of ancestor tags plus the
8755         table of interfaces of the parent.
8756         (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
8757         (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
8758         (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
8759         and raise Tag_Error if the passed tag equalis No_Tag, to conform with
8760         Ada 2005 semantics for the new predefined function.
8762         * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
8763         call to Descendant_Tag rather than Internal_Tag.
8764         (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
8765         the accessibility level of the attribute's Item parameter is not deeper
8766         than the level of the attribute's prefix type. Tag_Error is raised if
8767         the check fails. The check is only emitted for Ada_05.
8768         (Find_Stream_Subprogram): If a TSS exists on the type itself for the
8769         requested stream attribute, use it.
8770         (Expand_N_Attribute_Reference): If the designated type is an interface
8771         then rewrite the referenced object as a conversion to force the
8772         displacement of the pointer to the secondary dispatch table.
8773         (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
8774         is a dereference of an object with a constrained partial view.
8776         * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
8777         type is a class-wide type, emit a run-time check that the accessibility
8778         level of the returned object is not deeper than the level of the
8779         function's master (only when compiling for Ada 2005).
8781         * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
8782         Action_Nb_Arg): Add entries for new Get_Access_Level and
8783         Set_Access_Level routines in these tables.
8784         (Make_DT): Generate a call to set the accessibility level of the
8785         tagged type in its TSD.
8786         (Make_DT): Code cleanup. The functionality of generating all the
8787         secondary dispatch tables has been moved to freeze_record_type.
8788         (Make_Abstract_Interface_DT): Minor code cleanup.
8789         (Set_All_DT_Position): Code cleanup. As part of the code cleanup
8790         this subprogram implements a new algorithm that provides the
8791         same functionality and it is more clear in case of primitives
8792         associated with abstract interfaces.
8793         (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
8794         clean up, the functionality of this subprogram is now provided
8795         by Set_All_DT_Position.
8796         (Write_DT): New subprogram: a debugging procedure designed to be called
8797         within gdb to display the dispatch tables associated with a tagged
8798         type.
8799         (Collect_All_Interfaces): New subprogram that collects the whole list
8800         of interfaces that are directly or indirectly implemented by a tagged
8801         type.
8802         (Default_Prim_Op_Position): New subprogram that returns the fixed
8803         position in the dispatch table of the default primitive operations.
8804         (Expand_Interface_Actuals): New subprogram to generate code that
8805         displaces all the actuals corresponding to class-wide interfaces to
8806         reference the interface tag of the actual object.
8807         (Expand_Interface_Conversion): New subprogram. Reference the base of
8808         the object to give access to the interface tag associated with the
8809         secondary dispatch table.
8810         (Expand_Interface_Thunk): New subprogram that generates the code of the
8811         thunk. This is required for compatibility with the C+ ABI.
8812         (Make_Abstract_Interface_DT): New subprogram that generate the
8813         declarations for the secondary dispatch tables associated with an
8814         abstract interface.
8815         (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
8816         attribute for each primitive operation covering interface subprograms
8817         (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
8818         These subprograms were upgraded to give support to abstract interfaces
8820         * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
8821         RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
8822         RE_Set_Access_Level.
8823         (RE_Unit_Table): Add entries for new Ada.Tags operations.
8824         Add support to call the followig new run-time subprograms:
8825         IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
8827         * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
8828         match its full declaration when both have an access definition with
8829         statically matching designated subtypes.
8830         (Analyze_Component_Declaration): Delete commented out code that was
8831         incorrectly setting the scope of an anonymous access component's type.
8832         (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
8833         an access discriminant when the containing type is nonlimited.
8834         (Make_Incomplete_Type_Declaration): Create an incomplete type
8835         declaration for a record type that includes self-referential access
8836         components.
8837         (Check_Anonymous_Access_Types): Before full analysis of a record type
8838         declaration, create anonymous access types for each self-referential
8839         access component.
8840         (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
8841         an access component in this context is a Local_Anonymous_Access, for
8842         proper accessibility checks.
8843         (Access_Definition): Set properly the scope of the anonymous access type
8844         created for a stand-alone access object.
8845         (Find_Type_Of_Object): An object declaration may be given with an access
8846         definition.
8847         (Complete_Subprograms_Derivation): New subprogram used to complete
8848         type derivation of private tagged types implementing interfaces.
8849         In this case some interface primitives may have been overriden
8850         with the partial-view and, instead of re-calculating them, they
8851         are included in the list of primitive operations of the full-view.
8852         (Build_Derived_Record_Type): Modified to give support to private
8853         types implemening interfaces.
8854         (Access_Definition): Reject ALL on anonymous access types.
8855         (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
8856         type derivation to occur at a deeper accessibility level than the
8857         parent type.
8858         For the case of derivation within a generic body however, disallow the
8859         derivation if the derived type has an ancestor that is a formal type
8860         declared in the formal part of an enclosing generic.
8861         (Analyze_Object_Declaration): For protected objects, remove the check
8862         that they cannot contain interrupt handlers if not declared at library
8863         level.
8864         (Add_Interface_Tag_Components): New subprogram to add the tag components
8865         corresponding to all the abstract interface types implemented by a
8866         record type or a derived record type.
8867         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
8868         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
8869         Process_Full_View, Record_Type_Declaration): Modified to give
8870         support to abstract interface types
8871         (Collect_Interfaces): New subprogram that collects the list of
8872         interfaces that are not already implemented by the ancestors
8873         (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
8874         when partial view has no discriminants and full view has defaults.
8875         (Constrain_Access): Reject a constraint on a general access type
8876         if the discriminants of the designated type have defaults.
8877         (Access_Subprogram_Declaration): Associate the Itype node with the inner
8878         full-type declaration or subprogram spec. This is required to handle
8879         nested anonymous declarations.
8880         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
8881         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
8882         Process_Full_View, Record_Type_Declaration): Modified to give
8883         support to abstract interface types
8884         (Derive_Subprograms): Addition of a new formal to indicate if
8885         we are in the case of an abstact-interface derivation
8886         (Find_Type_Of_Subtype_Indic): Moved from the body of the package
8887         to the specification because it is requied to analyze all the
8888         identifiers found in a list of interfaces
8890         * debug.adb: Complete documentation of flag "-gnatdZ"
8892         * exp_ch3.adb: Implement config version of persistent_bss pragma
8893         (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
8894         testing for TSS presence to properly enforce visibility rules.
8895         (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
8896         Make_Abstract_Interfaces_DT to generate the secondary tables
8897         associated with abstract interfaces.
8898         (Build_Init_Procedure): Modified to initialize all the tags
8899         corresponding.
8900         (Component_Needs_Simple_Initialization): Similar to other tags,
8901         interface tags do not need initialization.
8902         (Freeze_Record_Type): Modified to give support to abstract interface
8903         types.
8904         (Expand_N_Object_Declaration): Do not generate an initialization for
8905         a scalar temporary marked as internal.
8907         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
8908         in-out parameter that is a component in an initialization procedure,
8909         whose constraint might depend on discriminants, and that may be
8910         misaligned because of packing or representation clauses.
8911         (Is_Legal_Copy): New predicate to determine whether a possibly
8912         misaligned in-out actual can actually be passed by copy/return. This
8913         is an error in case the type is by_reference, and a warning if this is
8914         the consequence of a DEC import pragma on the subprogram.
8915         (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
8916         interface types
8917         (Expand_Inlined_Call): Mark temporary generated for the return value as
8918         internal, so that no useless scalar normalization is generated for it.
8919         (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
8920         null procedure can always be inlined.
8921         (Expand_N_Subprogram_Declaration): If this is the declaration of a null
8922         procedure, generate an explicit empty body for it.
8924         * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
8925         Given a type implementing an interface, returns the corresponding
8926         access_disp_table value.
8927         (Find_Interface_Tag): New subprogram. Given a type implementing an
8928         interface, returns the record component containing the tag of the
8929         interface.
8930         (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
8931         previous ones that return the corresponding tag and access_disp_table
8932         entities.
8933         (Is_Predefined_Dispatching_Operation): Determines if a subprogram
8934         is a predefined primitive operation.
8935         (Expand_Subtype_From_Expr): If the expression is a selected component
8936         within an initialization procedure, compute its actual subtype, because
8937         the component may depend on the discriminants of the enclosing record.
8939         * i-cpp.ads, i-cpp.adb:
8940         This package has been left available for compatibility with previous
8941         versions of the frontend. As part of the new layout this is now a
8942         dummy package that uses declarations available at a-tags.ads
8944         * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
8945         "constant access" and "aliased [constant] access" when not compiling
8946         with -gnat05.
8947         Suppress Ada 2005 keyword warning if -gnatwY used
8948         (P_Identifier_Declarations): Add support for object declarations with
8949         access definitions.
8950         (Private_Extension_Declaration): Complete the documentation
8951         (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
8952         attribute in case of private extension declaration
8953         (P_Type_Declaration): Mark as "abstract" the type declarations
8954         corresponding with protected, synchronized and task interfaces
8955         (P_Declarative_Items): "not" and "overriding" are overriding indicators
8956         for a subprogram or instance declaration.
8958         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
8959         instantiation that is a dispatching operation has controlling access
8960         parameters that are null excluding.
8961         Save and restore Ada_Version_Explicit, for implementation of AI-362
8962         (Validate_Derived_Type_Instance): Add check for abstract interface
8963         types.
8964         (Analyze_Formal_Package): Establish Instantiation source for the copy of
8965         the generic that is created to represent the formal package.
8966         (Analyze_Package_Instantiation): Instantiate body immediately if the
8967         package is a predefined unit that contains inlined subprograms, and
8968         we are compiling for a Configurable_Run_Time.
8969         (Instantiate_Formal_Subprogram): Indicate that null default subprogram
8970         If the program has a null default, generate an empty body for it.
8972         * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
8973         error message condition, null procedures are correctly detected now.
8974         (New_Overloaded_Entity): Bypass trivial overriding indicator check
8975         for subprograms in the context of protected types. Instead, the
8976         indicator is examined in Sem_Ch9 while analysing the subprogram
8977         declaration.
8978         (Check_Overriding_Indicator): Check consistency of overriding indicator
8979         on subprogram stubs as well.
8980         (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
8981         the library level.
8982         (Analize_Subprogram_Specification): When analyzing a subprogram in which
8983         the type of the first formal is a concurrent type, replace this type
8984         by the corresponding record type.
8985         (Analyze_Subprogram_Body): Undo the previous work.
8986         (Analyze_Procedure_Call): If the call has the form Object.Op, the
8987         analysis of the prefix ends up analyzing the call itself, after which
8988         we are done.
8989         (Has_Interface_Formals): New subprogram subsidiary to analyze
8990         subprogram_specification that returns true if some non
8991         class-wide interface subprogram is found
8992         (New_Overloaded_Entity): Modified to give support to abstract
8993         interface types
8994         (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
8995         access to subprograms must be recursive.
8996         (Is_Unchecked_Conversion): Improve the test that recognizes
8997         instantiations of Unchecked_Conversion, and allows them in bodies that
8998         are to be inlined by the front-end. When the body comes from an
8999         instantiation, a reference to Unchecked_Conversion will be an
9000         Expanded_Name, even though the body has not been analyzed yet.
9001         Replace Is_Overriding and Not_Overriding in subprogram_indication with
9002         Must_Override and Must_Not_Override, to better express intent of AI.
9003         (Analyze_Subprogram_Body): If an overriding indicator is given, check
9004         that it is consistent with the overrinding status of the subprogram
9005         at this point.
9006         (Analyze_Subprogram_Declaration): Indicate that a null procedure is
9007         always inlined.
9008         If the subprogram is a null procedure, indicate that it does not need
9009         a completion.
9011         * sem_disp.adb (Check_Controlling_Type): Give support to entities
9012         available through limited-with clauses.
9013         (Check_Dispatching_Operation): A stub acts like a body, and therefore is
9014         allowed as the last primitive of a tagged type if it has no previous
9015         spec.
9016         (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
9017         to give support to abstract interface types
9019         * sem_res.adb (Valid_Conversion): Perform an accessibility level check
9020         in the case where the target type is an anonymous access type of an
9021         object or component (that is, when Is_Local_Anonymous_Access is true).
9022         Prevent the special checks for conversions of access discriminants in
9023         the case where the discriminant belongs to a nonlimited type, since
9024         such discriminants have their accessibility level defined in the same
9025         way as a normal component of an anonymous access type.
9026         (Resolve_Allocator): When an allocator's designated type is a class-wide
9027         type, check that the accessibility level of type given in the
9028         allocator's expression or subtype indication is not statically deeper
9029         than the level of the allocator's access type.
9030         (Check_Discriminant_Use): Diagnose discriminant given by an expanded
9031         name in a discriminant constraint of a record component.
9032         (Resolve_Explicit_Dereference): Do not check whether the type is
9033         incomplete when the dereference is a use of an access discriminant in
9034         an initialization procedure.
9035         (Resolve_Type_Conversion): Handle conversions to abstract interface
9036         types.
9037         (Valid_Tagged_Conversion): The conversion of a tagged type to an
9038         abstract interface type is always valid.
9039         (Valid_Conversion): Modified to give support to abstract interface types
9040         (Resolve_Actuals): Enable full error reporting on view conversions
9041         between unrelated by_reference array types.
9042         The rule for view conversions of arrays with aliased components is
9043         weakened in Ada 2005.
9044         Call to obsolescent subprogram is now considered to be a violation of
9045         pragma Restrictions (No_Obsolescent_Features).
9046         (Check_Direct_Boolean_Operator): If the boolean operation has been
9047         constant-folded, there is nothing to check.
9048         (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
9049         check on possible violation of restriction No_Direct_Boolean_Operators
9050         until after expansion of operands, to prevent spurious errors when
9051         operation is constant-folded.
9053         * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
9054         Has_Compatible_Type): Modified to give support to abstract interface
9055         types.
9056         (Interface_Present_In_Ancestor): New function to theck if some ancestor
9057         of a given type implements a given interface
9059         * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
9060         prefix is a parameterless function that returns an access_to_procedure.
9061         (Transform_Object_Operation): Handle properly function calls of the
9062         form Obj.Op (X), which prior to analysis appear as indexed components.
9063         (Analyze_One_Call): Complete the error notification to help new Ada
9064         2005 users.
9065         (Analyze_Allocator): For an allocator without an initial value, where
9066         the designated type has a constrained partial view, a discriminant
9067         constraint is illegal.
9069 2005-06-14  Robert Dewar  <dewar@adacore.com>
9071         * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
9072         do with treatment of Set_Col when positioned at end of line character.
9074 2005-06-14  Robert Dewar  <dewar@adacore.com>
9076         * atree.adb: (Elist*): Protect against uninitialized field
9078 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
9080         * checks.adb (Install_Null_Excluding_Check): Do not generate checks
9081         for an attribute reference that returns an access type.
9082         (Apply_Discriminant_Check): No need for check if (designated) type has
9083         constrained partial view.
9085         (Apply_Float_Conversion_Check): Generate a short-circuit expression for
9086         both bound checks, rather than a conjunction.
9087         (Insert_Valid_Check): If the expression is an actual that is an indexed
9088         component of a bit-packed array, force expansion of the packed element
9089         reference, because it is specifically inhibited elsewhere.
9091 2005-06-14  Vincent Celier  <celier@adacore.com>
9093         * clean.adb (Clean_Project): Correctly delete executable specified as
9094         absolute path names.
9096         * make.adb (Gnatmake): Allow relative executable path names with
9097         directory information even when project files are used.
9098         (Change_To_Object_Directory): Fail gracefully when unable to change
9099         current working directory to object directory of a project.
9100         (Gnatmake): Remove exception handler that could no longer be exercized
9101         (Compile_Sources.Compile): Use deep copies of arguments, as some of them
9102         may be deallocated by Normalize_Arguments.
9103         (Collect_Arguments): Eliminate empty arguments
9105         * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
9106         and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
9107         (Check_Project): Return False when Project is No_Project. Return True
9108         when All_Projects is True.
9109         (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
9110         All_Projects to True.
9111         Minor reformatting
9113 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
9114             Javier Miranda  <miranda@adacore.com>
9115             Thomas Quinot  <quinot@adacore.com>
9116             Robert Dewar  <dewar@adacore.com>
9117             Hristian Kirtchev  <kirtchev@adacore.com>
9118             Gary Dismukes  <dismukes@adacore.com>
9120         * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
9121         anonymous access types, to indicate that the accessibility level of
9122         the type is determined by that of the enclosing declaration.
9123         (Has_Persistent_BSS): New flag
9124         (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
9125         of this attribute with functions.
9126         (Is_Primitive_Wrapper): Remove the barrier.
9127         (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
9128         Has_Specified_Stream_Read, Has_Specified_Stream_Write):
9129         New subprograms.
9130         (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
9131         Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
9132         New subprograms.
9133         (Is_Pure_Unit_Access_Type): New flag
9134         (Abstract_Interfaces): Complete the assertion to cover all usages.
9135         (Set_Is_Interface): Complete the assertion to cover all usages.
9136         (Is_Primitive_Wrapper): New attribute.
9137         (Is_Obsolescent): Now applies to all entities (though it is only set
9138         for subprograms currently)
9139         New flag:  Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
9140         which solves various problems concerning access subtypes.
9141         (Has_Persistent_BSS): New flag
9142         (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
9143         Remove these subprograms because this attribute is currently
9144         not used.
9145         New entity flags:
9146         Has_Specified_Stream_Input (Flag190)
9147         Has_Specified_Stream_Output (Flag191)
9148         Has_Specified_Stream_Read (Flag192)
9149         Has_Specified_Stream_Write (Flag193)
9150         Present in all type and subtype entities. Set for a given view if the
9151         corresponding stream-oriented attribute has been defined by an
9152         attribute definition clause. When such a clause occurs, a TSS is set
9153         on the underlying full view; the flags are used to track visibility of
9154         the attribute definition clause for partial or incomplete views.
9155         (Is_Pure_Unit_Access_Type): New flag
9156         Clarify use of Is_Internal.
9157         (Is_Primitive_Wrapper): New attribute present in primitive subprograms
9158         internally generated to wrap the invocation of tasks and protected
9159         types that implement interfaces.
9160         (Implementation_Base_Type): Documentation correction
9161         (Is_Obsolescent): Now applies to all entities (though it is only set
9162         for subprograms currently)
9163         New flag:  Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
9164         which solves various problems concerning access subtypes.
9166         * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
9167         for examined parameters. Identify unequal parameter list lengths as
9168         non-conformant parameters.
9169         (Overriding_Possible): Do not check for "All" qualifier in declaration
9170         of controlling access parameter, following prescription of AI-404.
9171         (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
9172         that build the procedure body that wraps an entry invocation
9173         (Build_Corresponding_Record, Build_Protected_Sub_Specification,
9174         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
9175         Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
9176         give support to abstract interface types
9178         * freeze.adb (Freeze_Entity): Issue error message if
9179         Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
9180         type has no storage pool (Ada 2005) AI-366.
9181         Also modified to give support to abstract interface types
9182         (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
9183         Inline_Always pragma.
9185         * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
9186         now begin an entry declaration.
9187         (P_Entry_Or_Subprogram_With_Indicator): New procedure in
9188         P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
9189         a subprogram declaration preceded by an overriding indicator.
9190         (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
9191         declarations or subprogram declarations preceded by reserved words
9192         "not" or "overriding".
9193         (P_Entry_Declaration): Update comment. Parse and check overriding
9194         indicator, set semantic flags of entry declarations.
9195         (P_Task): New error message in case of private applied
9196         to a task type declaration.
9197         (P_Protected): New error message in case of private applied
9198         to a task type declaration.
9200         * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
9201         in which the full view of a type implementing an interface is a
9202         concurrent type.
9203         (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
9204         Declare_Inherited_Private_Subprograms): If an explicit operation
9205         overrides an operation that is inherited in the private part, mark the
9206         explicit one as overriding, to enable overriding indicator checks.
9207         (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
9208         full view to partial view, to simplify handling in back-end.
9210         * sprint.adb: Print interface lists where needed: derived types,
9211         protected types, task types.
9212         output "is null" for null procedures. Part of implementation of
9214         * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
9215         relaxation of rules for access types in pure, shared passive partitions.
9217         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
9218         first read discriminants into temporary objects, performing checks on
9219         the read values, then possibly performing discriminant checks on the
9220         actual (if it is constrained), and only finally reading the components
9221         into a constrained temporary object.
9222         (Build_Elementary_Input_Call): Adjust the specific circuitry for the
9223         case of reading discriminants of a mutable record type to recognize
9224         the new form of the code generated by
9225         Build_Mutable_Record_Read_Procedure.
9227         * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
9228         of a simple call to Make_TSS_Name.
9229         (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
9230         buffer, in order for Is_TSS to work correctly on local TSS names.
9232         * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
9233         Is_Local_Anonymous_Access to check legaliy of attributes in the
9234         context of  access components and stand-alone access objects.
9235         (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
9236         treated as available for a limited private type if there is an
9237         attribute_definition_clause that applies to its full view, but not in
9238         other cases where the attribute is available for the full view
9239         (specifically, the sole fact that the full view is non-limited does not
9240         make the attribute available for the partial view).
9241         (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
9242         non-overloaded intrinsic subprogram.
9243         (Check_Stream_Attribute): Reject an attribute reference for an
9244         unavailable stream attribute even if the prefix is not a limited type
9245         (case of a 'Input attribute reference for an abstract, non-classwide
9246         type)
9247         (Stream_Attribute_Available): New function to determine whether a stream
9248         attribute is available at a place.
9249         (Check_Attribute): Use Stream_Attribute_Available instead of just
9250         testing for TSS presence on the implementation base type.
9251         (Analyze_Attribute): Modified to give support to task interfaces.
9252         (Analyze_Access_Attribute): Add error check for use of an Access (or
9253         Unrestricted_Access) attribute with a subprogram marked as
9254         Inline_Always.
9255         (Analyze_Attribute, case Attribute_Address): Add error check for use of
9256         an Address attribute with a subprogram marked as Inline_Always.
9257         Update Eval_Attribute to handle new value of Width from AI-395
9259         * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
9260         (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
9261         Factor common code across the stream-oriented attribute circcuits into
9262         a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
9263         processing is functionally identical to the previous duplicated one,
9264         except that an expression that denotes an abstract subprogram will now
9265         be rejected, as mandated by AI-195 item 5.
9267         * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
9268         Is_Local_Anonymous_Access to apply accessibility checks to access
9269         components and stand-alone access objects.
9270         (Has_Discriminant_Dependent_Constraint): Moved to spec for use
9271         elsewhere.
9272         (Is_Potentially_Persistent_Type): New function
9273         (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
9274         a heap-object whose type has a constrained partial view, the object is
9275         unconstrained and the component may depend on a discriminant, making its
9276         renaming illegal.
9278         * sinfo.ads, sinfo.adb
9279         (Must_Not_Override): Flag applicable to N_Entry_Declaration.
9280         (Must_Override): Flag applicable to N_Entry_Declaration.
9281         Indicate that interface_list can appear in single task and single
9282         protected declarations.
9283         Replace Is_Overriding and Not_Overriding with Must_Override and
9284         Must_Not_Override, to better express intent of AI.
9285         Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
9286         of an overriding indicator in a subprogram or instance.
9287         Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
9288         Add the overriding indicator [[not] overriding] construct to the
9289         following grammar productions:
9290          ENTRY_DECLARATION
9291          GENERIC_INSTANTIATION
9292          SUBPROGRAM_SPECIFICATION
9294         * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
9295         can start with an overriding indicator.
9297         * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
9298         flags accordingly on subrogram specifications or instances.
9300         * sem_ch8.adb:
9301         (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
9302         overriding_indicator, if present, is consistent with status of spec.
9303         Improve error message for null-excluding checks on controlling access
9304         parameters.
9305         (Check_In_Previous_With_Clause): Protect the frontend against
9306         previously reported critical errors in the context clauses.
9307         Save and restore Ada_Version_Explicit, for implementation of AI-362
9308         (Analyze_Subprogram_Renaming): If the new entity is a dispatching
9309         operation verify that controlling formals of the renamed entity that
9310         are access parameters are explicitly non-null.
9311         (Find_Expanded_Name): Improve error message when prefix is an illegal
9312         reference to a private child unit.
9314         * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
9315         s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
9316         Rewrite to correspond to new wide character names in AI-395
9318         * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
9319         default procedures.
9321 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
9322             Robert Dewar  <dewar@adacore.com>
9324         * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
9325         code, not on the bodies of predefined operations, to cut down on
9326         spurious noise.
9328 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
9330         * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
9331         be expanded in place. The size computation does not require a
9332         subtraction, which would raise an exception on a compiler built with
9333         assertions when the upper bound is Integer'first.
9334         (Flatten): For an array of composite components, take into account the
9335         size of the components to determine whether it is safe to expand the
9336         array into a purely positional representation.
9338 2005-06-14  Thomas Quinot  <quinot@adacore.com>
9340         * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
9341         denoting a formal parameter into account.
9343 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
9345         * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
9346         the entry_call alternative of a conditional entry call, wrap the
9347         conditional entry call itself.
9349 2005-06-14  Nicolas Setton  <setton@adacore.com>
9350             Ed Schonberg  <schonberg@adacore.com>
9352         * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
9353         the "simple_choice" member in a variant record, in accordance with the
9354         description in the package spec: the information output for a constant
9355         should be "S number", not "SS number".
9356         (Get_Encoded_Name): Return at once if not generating code. Avoids name
9357         overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
9359 2005-06-14  Thomas Quinot  <quinot@adacore.com>
9361         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
9362         RACW without any primitives, do not generate the if statement for
9363         dispatching by name in the PolyORB/DSA case, as it would be malformed
9364         (it would have an Elsif_Parts list that is not No_List, but with a
9365         length of 0).
9367 2005-06-14  Robert Dewar  <dewar@adacore.com>
9369         * exp_intr.adb, par-ch5.adb: Minor fix to error message text
9371 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
9373         * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
9374         can determine whether pragma Suppress_Exception_Locations is in effect.
9376         * utils2.c (build_call_raise): Do not pass the file name to the
9377         exception handler if pragma Suppress_Exception_Locations is in effect.
9378         (build_allocator): Add and process arg IGNORE_INIT_TYPE.
9380 2005-06-14  Emmanuel Briot  <briot@adacore.com>
9382         * g-debpoo.adb (Deallocate, Dereference): Improve output.
9384 2005-06-14  Nicolas Roche  <roche@adacore.com>
9386         * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
9387         to ""
9388         (Next_Level): Fix minor bug in handling of ../dir case
9389         (Read): Add dir separator to Directory name so that "" is understood as
9390          "/"
9392 2005-06-14  Pascal Obry  <obry@adacore.com>
9394         * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
9395         releasing the items.
9397 2005-06-14  Vincent Celier  <celier@adacore.com>
9398             Cyrille Comar  <comar@adacore.com>
9400         * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
9401         with output file descriptor and with output file name.
9402         (Dup, Dup2): Now global procedures as they are used by two subprograms
9403         (Copy): Allocate the 200K buffer on the heap rather than on the stack.
9405 2005-06-14  Thomas Quinot  <quinot@adacore.com>
9407         PR ada/6717
9409         * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
9410         broadcast address.
9411         (Create_Selector): Bind listening socket used to create the signalling
9412         socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
9413         Set listen backlog to 1 to ensure that we detect socket theft by a
9414         failure of our own connect(2) call.
9415         (Check_Selector): Improve documentation of the selector mechanism.
9416         (Broadcast_Inet_Addr): New constant.
9418 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
9420         * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
9421         type which turns out to be an incomplete and incorrect fix.
9422         (Layout_Array_Type): Use Underlying_Type when checking whether the scope
9423         of the type is declared in a record (for determination of insertion
9424         type).
9425         (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
9426         a private type and ensure that the primary entity is used for the type
9427         of the newly created function's V formal by taking the Etype of the
9428         view.
9430 2005-06-14  Javier Miranda  <miranda@adacore.com>
9431             Jose Ruiz  <ruiz@adacore.com>
9432             Robert Dewar  <dewar@adacore.com>
9433             Ed Schonberg  <schonberg@adacore.com>
9435         * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
9436         that indicates if we are parsing a compilation unit found in a
9437         limited-with clause.
9438         It is use to avoid the circularity check.
9440         * par.ads, par.adb (Par): Addition of a new parameter to indicate if
9441         we are parsing a compilation unit found in a limited-with clause. This
9442         is use to avoid the circularity check.
9444         * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
9445         unit as a consequence of parsing a limited-with clause. This is used
9446         to avoid the circularity check.
9448         * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
9449         (Analyze_Context): Limited-with clauses are now allowed
9450         in more compilation units.
9451         (Analyze_Subunit_Context, Check_Parent): Protect the frontend
9452         againts previously reported critical errors in context clauses
9453         (Install_Limited_Withed_Unit): Code cleanup plus static detection
9454         of two further errors: renamed subprograms and renamed packages
9455         are not allowed in limited with clauses.
9456         (Install_Siblings): Do not install private_with_clauses on the package
9457         declaration for a non-private child unit.
9458         (Re_Install_Parents): When a parent of the subunit is reinstalled,
9459         reset visibility of child units properly.
9460         (Install_Withed_Unit): When a child unit appears in a with_clause of its
9461         parent, it is immediately visible.
9463 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
9464             Emmanuel Briot  <briot@adacore.com>
9466         * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
9467         declared within an inlined body as referenced, to prevent spurious
9468         warnings.
9469         (Output_One_Ref): If an entity renames an array component, indicate in
9470         the ALI file that this aliases (renames) the array. Capture as well
9471         function renamings that rename predefined operations.
9472         Add information about generic parent for package and subprogram
9473         instances.
9474         (Get_Type_Reference): For a subtype that is the renaming of an actual in
9475         an instantiation, use the first_subtype to ensure that we don't generate
9476         cross-reference information for internal types.
9477         For objects and parameters of a generic private type, retain the '*'
9478         indicator to distinguish such an entity from its type.
9480         * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
9481         to store information about instantiated entities.
9483         * ali.adb (Scan_ALI): Add support for parsing the reference to the
9484         generic parent
9486         * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
9487         (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
9488         information.
9490 2005-06-10  Doug Rupp  <rupp@adacore.com>
9491             Arnaud Charlet  <charlet@adacore.com>
9492             Olivier Hainque  <hainque@adacore.com>
9493             Jose Ruiz  <ruiz@adacore.com>
9495         * Make-lang.in: Add initialize.o when needed.
9496         Remove obsolete references to RT_FLAGS.
9497         Add missing dependencies for sdefault.o
9499         * initialize.c: New file.
9501         * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
9502         [VMS] cond_signal_table: Fix problem in declaration.
9503         [VMS] __gnat_error_handler: rewrite.
9504         Move all __gnat_initialize() routines to initialize.c
9505         Specialize the former "hpux" section to "hppa hpux", as this is what the
9506         section really is here for and we now have other hpux ports that need
9507         different contents.
9508         (__gnat_adjust_context_for_raise) i386-linux: First version of this
9509         function for this target. Adjust PC by one in the machine context. This
9510         adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
9511         it is more reliable to do that in the signal handler itself.
9512         (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
9513         flags, so that the handler is passed the context structure to adjust
9514         prior to the raise.
9515         (__gnat_error_handler) i386-linux: Adjust the signature to match what a
9516         SA_SIGINFO sigaction should look like. Call
9517         __gnat_adjust_context_for_raise before actually raising. Cleanup unused
9518         Machine_State_Operations stuff.
9519         Add conditional code so that the x86_64 is also supported.
9521 2005-06-14  Pascal Obry  <obry@adacore.com>
9523         * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
9524         the library name.
9526 2005-06-14  Robert Dewar  <dewar@adacore.com>
9528         * opt.ads, opt.adb: New flags for persistent_bss mode
9529         Add Ada_Version_Explicit, for implementation of AI-362
9530         Add Assertions_Enabled_Config and associated handling
9531         Needed since setting can be changed with Assertion_Policy pragma
9532         Add new flag Warn_On_Ada_2005_Compatibility
9534         * switch-c.adb: Recognize -gnatwy/Y
9535         Set Ada_Version_Explicit, for implementation of AI-362
9536         The -gnatg switch now includes -gnatyu
9538         * usage.adb: Add -gnatwy/Y
9539         Remove wrong asterisk on -gnatwX line
9540         Add line for -gnatyu switch
9542 2005-06-14  Vincent Celier  <celier@adacore.com>
9544         * osint.adb (Add_Default_Search_Dirs): Put source and object
9545         directories of project files before directories coming from
9546         ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
9548 2005-06-14  Robert Dewar  <dewar@adacore.com>
9550         PR ada/15613
9552         * par-ch2.adb (Scan_Pragma_Argument): New procedure
9553         (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
9555 2005-06-14  Vincent Celier  <celier@adacore.com>
9557         * prep.adb (Preprocess): Ignore error when scanning the first token of
9558         a line.
9560 2005-06-14  Vincent Celier  <celier@adacore.com>
9562         * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
9563         (Check_Stand_Alone_Library): If the specified reference symbol file does
9564         not exist, only issue a warning when the symbol policy is not
9565         Controlled. And, when symbol policy is Compliant, set the symbol
9566         policy to Autonomous.
9568 2005-06-14  Vincent Celier  <celier@adacore.com>
9570         * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
9571         when the project file in a with clause is not the last one, that is the
9572         project file name is followed by a comma.
9573         * prj-pp.adb: (First_With_In_List): New Boolean global variable
9574         (Print): Issue list of project files separated by commas in with clauses
9575         according to the values returned by Is_Not_Last_In_List.
9576         * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
9577         (Set_Is_Not_Last_In_List): New procedure
9579 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
9581         * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
9583 2005-06-14  Robert Dewar  <dewar@adacore.com>
9585         * scng.adb: Add call to new Check_EOF routine
9586         (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
9587         Add some comments regarding wide character handling
9589         * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
9591         * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
9593         * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
9594         characters are now considered graphic characters and hence yield false
9595         in this call.
9597         * nmake.adt: Modify header so that xnmake does not generate output
9598         files with multiple blank lines.
9600         * treeprs.adt: Remove a blank line so that output from xtreeprs does
9601         not have an extra blank line
9603 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
9605         * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
9606         expression when the component type is an anonymous access type to
9607         ensure that appropriate accessibility checks are done.
9609         * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
9610         expression of an assignment when the target object is of an anonymous
9611         access type. This ensures that required accessibility checks are done.
9612         (One_Bound): Move the check for type Universal_Integer to
9613         Process_Bounds.
9614         (Process_Bounds): Check whether the type of the preanalyzed range is
9615         Universal_Integer, and in that case set Typ to Integer_Type prior
9616         to setting the type of the original range and the calls to One_Bound.
9618 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
9620         * sem_case.adb (Expand_Others_Choice): Improve warning.
9622 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
9624         * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
9625         constraint of full view if present, when other type is discriminated.
9626         (Eval_Relational_Op): Recognize tests of pointer values against Null,
9627         when the pointer is known to be non-null, and emit appropriate warning.
9629 2005-06-14  Robert Dewar  <dewar@adacore.com>
9630             Ed Schonberg  <schonberg@adacore.com>
9632         PR ada/10671
9634         * sem_prag.adb: Implement pragma Persistent_BSS
9635         Remove obsolete pragma Persistent_Data, Persistent_Object
9636         Set Ada_Version_Explicit, for implementation of AI-362
9637         Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
9638         Add processing for pragma Pure_05 and Preelaborate_05
9639         Add processing for Assertion_Policy pragma
9640         Add pragma identifiers for Assert
9641         (Analyze_Pragma, case Assert): Check number of arguments
9642         (Process_Inline): Additional guard against an illegal program, where the
9643         argument of the pragma is undefined, and warnings on redundant
9644         constructs are enabled.
9645         (Analyze_Pragma, case Obsolescent): Allow an optional second argument
9646         Ada_05 to this pragma, specifying that the pragma is only active in
9647         Ada_05 mode.
9648         (Check_Arg_Order): New procedure
9649         Add appropriate calls to this procedure throughout
9650         Also throughout, check entity name before doing any other checks
9652         * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
9653         Remove obsolete pragma Persistent_Data, Persistent_Object
9654         Add entries for pragma Pure_05 and Preelaborate_05
9655         Add entries for Assertion_Policy pragma and associated names
9656         Add some names for pragma argument processing
9658         * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
9660 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
9662         * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
9663         appears within a negation (either from source or as a rewriting of
9664         inequality) adjust text of warning accordingly.
9666 2005-06-14  Thomas Quinot  <quinot@adacore.com>
9668         * s-strxdr.adb: Follow AI95-00132
9670 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
9672         * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
9674 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
9675             Jose Ruiz  <ruiz@adacore.com>
9677         * s-tposen.adb, s-tpobop.adb
9678         (Exceptional_Complete_Rendezvous): Save the occurrence and not only
9679         the exception id.
9680         (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
9681         there is no violation of the Max_Entry_Queue_Length restriction (if it
9682         has been set); Program_Error is raised otherwise.
9683         (Requeue_Call): Before requeuing the task on the target entry queue we
9684         check that there is no violation of the Max_Entry_Queue_Length
9685         restriction (if it has been set); Program_Error is raised otherwise.
9687 2005-06-14  Robert Dewar  <dewar@adacore.com>
9689         * styleg.adb: Fix several remaining problems in -gnatyu switch
9690         Blank line count not reset at start
9691         Scanning outside source buffer in some cases
9692         Confusing message for blanks at end of file
9693         Non-empty blank lines not recognized
9695         * nmake.adt: Modify header so that xnmake does not generate output
9696         files with multiple blank lines.
9698         * treeprs.adt: Remove a blank line so that output from xtreeprs does
9699         not have an extra blank line
9701 2005-06-14  Sergey Rybin  <rybin@adacore.com>
9703         * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
9705 2005-06-14  Doug Rupp  <rupp@adacore.com>
9706             Vincent Celier  <celier@adacore.com>
9708         * vms_conv.ads, vms_conv.adb: Remove "Library" command.
9709         Update copyright.
9711         * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
9712         Remove "Library" command.
9713         Change keyword for style check -gnatyd from NOCRLF to
9714         DOS_LINE_ENDINGS.
9715         Remove useless second style check keyword NONE
9716         Remove help documentation for inexistent style check keyword
9717         RM_COLUMN_LAYOUT.
9718         Add help documentation for style check keywords DOS_LINE_ENDINGS,
9719         UNNECESSARY_BLANK_LINES and XTRA_PARENS
9720         Add UNNECESSARY_BLANK_LINES for -gnatyu
9721         Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
9723         * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
9725 2005-06-14  Vincent Celier  <celier@adacore.com>
9727         * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
9728         gprmake was invoked with -d.
9729         (Compile_Sources): If -d was used, output the "completed ..." message
9730         for each compilation.
9731         (Scan_Arg): Recognize new switch -d
9732         When -c and at least one main is specified, set
9733         Unique_Compile to True to guarantee that no other sources will be
9734         compiled.
9736 2005-06-14  Matthew Heaney  <heaney@adacore.com>
9738         * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
9739         * a-swuwha.ads, a-swuwha.adb: New files
9741         * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
9742         * a-szuzha.ads, a-szuzha.adb: New files.
9744         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
9745         a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
9746         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
9747         a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
9748         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
9749         a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
9750         a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
9751         a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
9752         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
9753         a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
9754         Ada 2005 RM.
9756 2005-06-10  Eric Botcazou  <ebotcazou@adacore.com>
9757             Olivier Hainque  <hainque@adacore.com>
9758             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9759             Pascal Obry  <obry@adacore.com>
9761         * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
9763         * trans.c (call_to_gnu): Issue a warning for users of Starlet when
9764         making a temporary around a procedure call because of non-addressable
9765         actual parameter.
9766         (process_freeze_entity): If entity is a private type, capture size
9767         information that may have been computed for the full view.
9768         (tree_transform, case N_Allocator): If have initializing expression,
9769         check type for Has_Constrained_Partial_View and pass that to
9770         build_allocator.
9771         (tree_transform, case N_Return_Statement): Pass extra arg to
9772         build_allocator.
9774         * decl.c (annotate_value): Remove early return if -gnatR is not
9775         specified.
9776         (gnat_to_gnu_field): Don't make a packable type for a component clause
9777         if the position is byte aligned, the field is aliased, and the clause
9778         size isn't a multiple of the packable alignment. It serves no useful
9779         purpose packing-wise and would be rejected later on.
9780         (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
9782         PR ada/20515
9783         (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
9784         context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
9785         instead.
9786         (create_concat_name): Idem.
9788 2005-06-10  Robert Dewar  <dewar@adacore.com>
9789             Eric Botcazou  <ebotcazou@adacore.com>
9790             Ben Brosgol  <brosgol@adacore.com>
9791             Cyrille Comar  <comar@adacore.com>
9792             Sergey Rybin  <rybin@adacore.com>
9793             Pascal Obry  <obry@adacore.com>
9795         * gnat_rm.texi: Add documentation for pragma Persistent_BSS
9796         Document second argument (Ada_05) of pragma Obsolescent
9797         Add note that call to subprogram marked with pragma Obsolescent
9798         is now considered to be a violation of program Restrictions
9799         (No_Obsolescent_Features).
9800         (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
9801         that only machine-dependent attributes are supported.
9803         * gnat_ugn.texi:
9804         Commented out menu lines and empty section for gnatclean examples
9805         Document -gnatwy/Y
9806         Fix some over long lines
9807         Clarify and enhance documentation of ADA_PROJECT_PATH.
9808         Rework section 2.11.2(3) about linking with a non-GNU compiler.
9809         Mention new switch -fcallgraph-info.
9810         Mention new switch -fstack-usage.
9811         For gnatpp, replace '-notab' with '-N' and add this option to Index
9812         Corrected VMS example.
9813         VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
9814         Minor reformatting
9815         Add documentation for -gnatyu switch (unnecessary blank lines)
9816         Document new switch -U for GNAT PRETTY and GNAT METRIC
9817         Add note about Stdcall being handled as C convention on non Windows OS.
9818         Remove some junk typo in description of gnatbind -S switch
9819         Remove reference to Extensions_Allowed pragma
9820         Document the new order of the directories to be searched (source and
9821         object directories of project files before directories in ADA_*_PATH
9822         environment variables.
9824         * g-trasym.ads: Document that IRIX is supported
9826 2005-06-10  Arnaud Charlet  <charlet@adacore.com>
9828         * Makefile.in: Add initialize.o when needed.
9829         Adapt to new VMS package body Symbols and subunits
9830         No specialized version of a-sytaco is needed for VxWorks.
9832         * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
9833         * a-zchara.ads, a-widcha.ads: New files.
9835         * system-hpux-ia64.ads: New file.
9837         * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
9838         is imported from the VxWorks kernel.
9840 2005-06-14  Robert Dewar  <dewar@adacore.com>
9842         * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
9843         fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
9844         a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
9845         s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
9846         a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
9847         g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
9848         i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
9849         namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
9850         sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
9851         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
9852         s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
9853         xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
9855 2005-06-14  Thomas Quinot  <quinot@adacore.com>
9857         * xeinfo.adb: Fix typo in comment
9859 2005-06-14  Javier Miranda  <miranda@adacore.com>
9861         * repinfo.ads: Fix typo in comment
9863 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
9865         * s-finimp.adb (Parent_Tag): Delete this imported function (function
9866         Parent_Tag is now in the visible part of Ada.Tags).
9867         (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
9868         using imported function.
9870 2005-06-14  Bernard Banner  <banner@adacore.com>
9872         * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
9873         also apply for handling support for VxSim 653.
9875 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
9877         * xsnames.adb: Add automatic generation of snames.h.
9879 2005-06-14  Thomas Quinot  <quinot@adacore.com>
9881         * gen-soccon.c: Add IP_MULTICAST_IF constant
9882         Minor reformatting and adjustments to prevent warnings.
9884 2005-06-14  Pascal Obry  <obry@adacore.com>
9886         * seh_init.c: Do not include <sys/stat.h>. This is not needed.
9888 2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
9890         * trans.c (gnat_gimplify_expr): Call
9891         recompute_tree_invarant_for_addr_expr when we change
9892         the operand of the ADDR_EXPR.
9894 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9896         * misc.c: Don't include errors.h.
9898 2005-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9900         * raise.c (db): Add ATTRIBUTE_PRINTF_2.
9902 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
9904         * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
9905         comment typos.
9906         * gnat_rm.texi, gnat_ugn.texi: Fix typos.
9908 2005-05-16  Nathanael Nerode <neroden@gcc.gnu.org>
9910         PR ada/20270
9911         * Makefile.in: Make TGT_LIB behave correctly.
9913 2005-04-23  DJ Delorie  <dj@redhat.com>
9915         * misc.c: Adjust warning() callers.
9917 2005-04-16  Laurent GUERBY  <laurent@guerby.net>
9919         PR ada/18847
9920         * a-nudira.adb (Value): Check for valid string.
9921         * a-nuflra.adb (Value): Likewise.
9923 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
9925         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
9927 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
9929         * adaint.c, init.c, tracebak.c: Fix comment typos.
9930         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
9932 2005-04-07  Laurent GUERBY  <laurent@guerby.net>
9933             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9935         * Makefile.in: Add make ifeq define for hppa linux tasking support.
9936         * system-hpux.ads: Define Signed_Zeros to be True.
9937         * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
9939 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
9941         * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
9942         raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
9943         typos.
9945 2005-03-30  Tom Tromey  <tromey@redhat.com>
9947         * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
9949 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
9951         * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
9953 2005-03-29  Robert Dewar  <dewar@adacore.com>
9955         * sem_res.adb (Resolve_Real_Literal): Generate warning if static
9956         fixed-point expression has value that is not a multiple of the Small
9957         value.
9959         * opt.ads (Warn_On_Bad_Fixed_Value): New flag
9961         * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
9962         nanoseconds.
9964         * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
9966 2005-03-29  Vincent Celier  <celier@adacore.com>
9968         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
9969         (Build_Dynamic_Library.Version_String): Return the empty string when
9970         Lib_Version is empty or when the symbol policy is not Autonomous.
9972         * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
9973         a symbol is not in the reference symbol file, increase the Major ID
9974         and set the Minor ID to 0.
9975         Use gsmatch=lequal instead of gsmatch=equal
9977 2005-03-29  Doug Rupp  <rupp@adacore.com>
9979         * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
9980         name and translate.
9982 2005-03-29  Javier Miranda  <miranda@adacore.com>
9984         * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
9985         (Inherit_DT): The first formal has been redefined as a Tag.
9986         This allows us the removal of the subprogram Get_TSD.
9987         (TSD): Replace the call to Get_TSD by the actual code.
9989         * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
9990         (Make_DT): Upgrade the call to Inherit_TSD according to the
9991         new interface: the first formal is now a Tag.
9993         * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
9994         redefined as a Tag.
9995         This change allows us to remove the subprogram Get_TSD.
9996         (CPP_Get_TSD): Subprogram removed.
9997         (TSD): Replace the call to CPP_Get_TSD by the actual code.
9999         * rtsfind.ads: Remove support to call the run-time
10000         subprogram Get_TSD
10002 2005-03-29  Robert Dewar  <dewar@adacore.com>
10004         * errutil.adb, errout.adb:
10005         Minor comment updates on Line_Terminator references
10007         * par-ch10.adb: Add ??? comment about line terminator
10009         * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
10010         (check dos line terminator).
10011         (Check_Line_Max_Length): New procedure, split off from the existing
10012         Check_Line_Terminator routine. Separating this out allows -gnatyf to
10013         be properly recognized.
10015         * styleg.adb: Add ??? comment for line terminator reference
10017         * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
10018         (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
10020         * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
10021         (check dos line terminator).
10022         (Check_Line_Max_Length): New procedure, split off from the existing
10023         Check_Line_Terminator routine. Separating this out allows -gnatyf to
10024         be properly recognized.
10026         * stylesw.ads, stylesw.adb:
10027         Add handling for new -gnatyd switch (check dos line terminator)
10029         * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
10030         Recognize -gnatwb/-gnatwB switches
10031         Include Warn_On_Bad_Fixed_Value for -gnatg
10033         * usage.adb:
10034         Add line for new -gnatyd switch (check dos line terminator)
10036         * usage.adb: Add lines for -gnatwb/-gnatwB
10038         * vms_data.ads: Add entry for NOCRLF (-gnatyd)
10040         * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
10042         * gnat_ugn.texi: Fix overlong lines
10043         Document new -gnatyd switch
10044         Document new -gnatwb/-gnatwB switches
10046 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
10048         * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
10049         order to retrieve the component list of the type, before examining
10050         individual components.
10052         * sem_type.adb (Covers): Types are compatible if one is the base type
10053         of the other, even though their base types might differ when private
10054         views are involved.
10056 2005-03-29  Thomas Quinot  <quinot@adacore.com>
10058         * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
10059         To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
10060         of using Set_Renaming_TSS. This ensures that the TSS bodies are not
10061         analyzed if expansion is disabled (which could otherwise cause spurious
10062         error messages if expansion has been disabled due to previous
10063         (unrelated) errors).
10065         * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
10066         is disabled, the entity denoted by the argument is the access type
10067         itself, not an underlying record type, so there is no need to go back
10068         to the Corresponding_Remote_Type.
10070 2005-03-29  Gary Dismukes  <dismukes@adacore.com>
10071             Robert Dewar  <dewar@adacore.com>
10073         * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
10074         expand a call to an instance of
10075         Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
10076         Constructor actual of the instance. A class-wide membership
10077         check is also generated, to ensure that the tag passed to the instance
10078         denotes a type in the class.
10079         (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
10080         of Name_Generic_Dispatching_Constructor.
10082         * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
10083         05 unit for AI-260-02).
10085         * a-tgdico.ads: New file.
10087         * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
10088         predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
10090         * snames.ads, snames.adb (Preset_Names): Add entry for
10091         Generic_Dispatching_Constructor.
10093         PR ada/20300
10095         * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
10096         character type cases.
10097         (Analyze_Subprogram_Renaming): Add special handling for
10098         the case of renaming of stream attributes when the renaming denotes a
10099         generic formal subprogram association for an abstract formal subprogram.
10100         Check that the attribute is a primitive stream attribute (and not
10101         a class-wide stream attribute) and then rewrite the attribute name
10102         as the name of the appropriate compiler-generated stream primitive.
10104 2005-03-29  Robert Dewar  <dewar@adacore.com>
10106         * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
10107         recursive calls.
10108         (Is_Possibly_Unaligned_Object): Correct typo that
10109         resulted in inaccurate result for unaligned scalars within records.
10111 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
10113         * freeze.adb (Freeze_Record_Type): If the type of the component is an
10114         itype whose parent is controlled and not yet frozen, do not create a
10115         freeze node for the itype if expansion is disabled.
10117 2005-03-29  Vincent Celier  <celier@adacore.com>
10119         * make.adb (Gnatmake): Don't fail if the main project file is declared
10120         as having no Ada sources. Do not display message "no sources to
10121         compile" in quiet output.
10123 2005-03-29  Doug Rupp  <rupp@adacore.com>
10125         * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
10126         extra tools.
10128 2005-03-29  Robert Dewar  <dewar@adacore.com>
10130         * par-ch12.adb (P_Generic): Give better msg for illegal private generic
10131         child.
10133 2005-03-29  Robert Dewar  <dewar@adacore.com>
10135         * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
10136         missing TYPE Improve the error message generated when compiling a
10137         limited interface in Ada83 or Ada95 mode.
10139 2005-03-29  Robert Dewar  <dewar@adacore.com>
10141         * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
10142         rather than proceed ahead using a junk attribute name.
10144 2005-03-29  Vincent Celier  <celier@adacore.com>
10146         * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
10148         * prj-part.adb (Parse_Single_Project): Set the location of a project
10149         on its defining identifier, rather than on the reserved word "project".
10151         * prj-proc.adb (Expression): Adapt to the fact that default of external
10152         references may be string expressions, not always literal strings.
10153         (Recursive_Process): Set Display_Name equal to Name
10154         when Location is No_Location, that is when there is no actual file.
10155         Get the Display_Name of the project from the source, when it is not a
10156         virtual project.
10157         (Process): Use the Display_Name in error messages
10159         * prj-strt.adb (External_Reference): Allow default to be string
10160         expressions, not only literal strings.
10162 2005-03-29  Vincent Celier  <celier@adacore.com>
10164         * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
10165         file and the reference symbol file to be the same file.
10167 2005-03-29  Thomas Quinot  <quinot@adacore.com>
10169         * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
10170         forbid conversion of a local access-to-subprogram type to a remote one.
10172         * sem_util.adb (Wrong_Type): For a record type that is the expanded
10173         equivalent type for a remote access-to-subprogram type, go back to the
10174         original RAS entity when displaying an error message, so the casing is
10175         the original source casing.
10177 2005-03-29  Robert Dewar  <dewar@adacore.com>
10179         * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
10180         on param update.
10182 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
10184         * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
10185         subtype if code is being pre-analyzed, to prevent un-expanded
10186         references to protected formals, among others.
10187         (Analyze_Explicit_Dereference): If the overloaded prefix includes some
10188         interpretation that can be a call, include the result of the call as a
10189         possible interpretation of the dereference.
10191         * sem_ch5.adb (Process_Bounds): Determine type of range by
10192         pre-analyzing a copy of the original range, and then analyze the range
10193         with the expected type.
10195         * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
10196         with an overloaded prefix where not all interpretations yield an
10197         access to subprogram, do not rewrite node as a call.
10198         (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
10199         the node as a call once the context identifies the interpretation of
10200         the prefix whose call yields the context type.
10201         (Valid_Conversion): For the case of a conversion between
10202         local access-to-subprogram types, check subtype conformance using
10203         Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
10204         detailed error message.
10206 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
10208         * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
10209         indicator, indicate that the formal can never be null.
10210         (Process_Formals): If a formal has a non_null indicator, insert the
10211         resulting subtype immediately before the enclosing subprogram decl,
10212         and not at the beginning of the corresponding declarative part, to
10213         prevent access before elaboration (Ada2005).
10215 2005-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10217         PR ada/19956
10218         * utils.c (finish_record_type): Use variable_size when setting sizes.
10220 2005-03-29  Robert Dewar  <dewar@adacore.com>
10222         * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
10223         guarantee Unix style line terminators for the output files, even when
10224         running on windows.
10226 2005-03-29  Robert Dewar  <dewar@adacore.com>
10228         * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
10229         buffer if an exception is raised.
10231 2005-03-29  Ed Falis  <falis@adacore.com>
10233         * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
10234         VxWorks 653 1.4
10236 2005-03-29  Robert Dewar  <dewar@adacore.com>
10238         * sem_util.ads: Minor reformatting
10239         * gnat_rm.texi: Minor editing.
10241 2005-03-29  Eric Botcazou  <ebotcazou@adacore.com>
10243         * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
10244         * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
10246 2005-03-24  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
10248         * adaint.c (__gnat_portable_spawn): Adjust cast.
10250 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
10252         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
10254 2005-03-17  Pascal Obry  <obry@adacore.com>
10256         * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
10257         used.
10259         * expect.c (__gnat_waitpid): Moved here from adaint.c.
10260         Reimplement under Win32 using Win32 API.
10262         (__gnat_kill) [Win32]: Properly close the process handle before leaving
10263         this routine.
10265 2005-03-17  Eric Botcazou  <ebotcazou@adacore.com>
10267         * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
10268         (DECL_RENAMED_OBJECT): New accessor macro.
10269         (SET_DECL_RENAMED_OBJECT): New setter macro.
10271         * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
10272         object in all cases.  Attach the renamed object to the VAR_DECL.
10273         (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
10274         field is not prescribed.
10276         * misc.c (gnat_handle_option): Handle -gnatO separately.
10277         (gnat_print_decl) <VAR_DECL>: New case.
10278         Print the DECL_RENAMED_OBJECT node.
10280         * lang.opt:  Declare separate -gnatO option.
10282         * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
10283         pointer, replace it with the renamed object.
10284         <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
10285         pointer type if the source is not a fat pointer type whose underlying
10286         array has the same non-zero alias set as that of the destination array.
10288 2005-03-17  Javier Miranda  <miranda@adacore.com>
10290         * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
10291         (Get_Inheritance_Depth): Removed.
10292         (Set_Inheritance_Depth): Removed.
10294         * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
10295         subprogram Get_Expanded_Name because it is not referenced by the
10296         frontend.
10298         * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
10299         (CPP_Get_Inheritance_Depth): Removed.
10300         (CPP_Set_Inheritance_Depth): Removed.
10302         * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
10304 2005-03-17  Robert Dewar  <dewar@adacore.com>
10306         * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
10307         3, since we now expect GCC 3 to do all the work.
10309 2005-03-17  Javier Miranda  <miranda@adacore.com>
10311         * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
10312         of one barrier to avoid wrong usage of this attribute.
10314         * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
10315         First_Private_Entity.
10317         * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
10318         the subprogram against wrong usage.
10319         Adapt the code to traverse the entities in the
10320         scope of a record_type because in addition to its usage regarding
10321         packages, this subprogram is also called by Expand_N_Freeze_Entity
10322         to install the visible declarations of the enclosing scope of a
10323         record_type_with_private to establish the proper visibility before
10324         freezing the entity and related subprograms.
10326 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
10328         * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
10329         entry formals.
10331 2005-03-17  Thomas Quinot  <quinot@adacore.com>
10333         * exp_ch3.adb (Check_Attr): New subprogram.
10334         (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
10335         into a new Check_Attr subprogram, in order to provide a more
10336         explanatory error message (including the name of the missing attribute).
10337         (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
10338         subprogram determines whether a default implementation exists for a
10339         given stream attribute.
10340         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
10341         Determine whether to generate a default implementation for each stream
10342         attribute separately, as this depends on the specific attribute.
10344         * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
10345         limited extension where a stream attribute is missing for a limited
10346         component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
10347         generate a bogus reference to the missing attribute to prevent
10348         cascaded errors. Instead, generate a null statement.
10350         * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
10351         available for a limited type if it has been specified for an ancestor
10352         of the type.
10354 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
10356         * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
10357         entity is an operator.
10359 2005-03-17  Thomas Quinot  <quinot@adacore.com>
10361         * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
10362         spec, to make this predicate available to other units.
10364         * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
10365         reimplementing it.
10367         * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
10368         when no distribution runtime library is available.
10370         * sem_res.adb, sem_dist.adb: Disable expansion of remote
10371         access-to-subprogram types when no distribution runtime library is
10372         available.
10373         (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
10374         predicate available to other units.
10376         * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
10377         spec, to make this predicate available to other units.
10379 2005-03-17  Vincent Celier  <celier@adacore.com>
10381         * make.adb (Insert_Project_Sources): Make sure the Q is always
10382         initialized.
10384         * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
10385         the default for the tree, not the global default naming.
10387         * prj-proc.adb (Recursive_Process): No need to put the default naming
10388         in the project data, it's already there.
10390 2005-03-17  Doug Rupp  <rupp@adacore.com>
10392         * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
10394         * 5xcrtl.ads: Renamed to...
10395         * s-crtl-vms64.ads: ...this new file
10397 2005-03-17  Robert Dewar  <dewar@adacore.com>
10399         PR ada/19519
10401         * namet.adb (Copy_One_Character): Set proper wide character encoding
10402         for upper half character if we have upper half encoding.
10404 2005-03-17  Robert Dewar  <dewar@adacore.com>
10406         * par.adb (Par): Improved msg for attempt to recompile predefined unit
10408 2005-03-17  Thomas Quinot  <quinot@adacore.com>
10410         * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
10411         tagged limited type, the TSS is a newly built renaming declaration:
10412         insert it using Set_TSS, not Copy_TSS.
10414 2005-03-17  Javier Miranda  <miranda@adacore.com>
10416         * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
10417         Try_Object_Operation): Analyze the object that is accessible
10418         through the prefix of the subprogram call before we apply
10419         the transformation of the object-operation notation.
10421 2005-03-17  Jose Ruiz  <ruiz@adacore.com>
10423         * s-taprob.adb (Initialize_Protection): Initialize the protected
10424         object's owner to Null_Task.
10425         (Lock): If pragma Detect_Blocking is in effect and the caller of this
10426         procedure is already the protected object's owner then Program_Error
10427         is raised. In addition the protected object's owner is updated.
10428         (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
10429         of this procedure is already the protected object's owner then
10430         Program_Error is raised.
10431         In addition the protected object's owner is updated.
10432         (Unlock): Remove the ownership of the protected object.
10434         * s-taprob.ads (Protection): Add the field Owner, used to store the
10435         protected object's owner.
10436         This component is needed for detecting one type of potentially blocking
10437         operations (external calls on a protected subprogram with the same
10438         target object as that of the protected action). Document the rest of
10439         the components.
10441         * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
10442         Initialize the protected object's owner to Null_Task.
10443         (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
10444         caller of this procedure is already the protected object's owner then
10445         Program_Error is raised.
10446         Do not raise Program_Error when this procedure is called from a
10447         protected action.
10448         (Unlock_Entries): Remove the ownership of the protected object.
10449         (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
10450         of this procedure is already the protected object's owner then
10451         Program_Error is raised.
10452         Do not raise Program_Error when this procedure is called from
10453         a protected action.
10455         * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
10456         used to store the protected object's owner.
10458         * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
10459         effect and this procedure (a potentially blocking operation) is called
10460         from whithin a protected action, Program_Error is raised.
10461         (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
10462         and this procedure (a potentially blocking operation) is called from
10463         whithin a protected action, Program_Error is raised.
10465 2005-03-17  Vincent Celier  <celier@adacore.com>
10466             Nicolas Setton  <setton@adacore.com>
10468         * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
10469         switch, not supported by the linker on Darwin. Add '_' before
10470         <library>init, as this character is added unconditionally by the
10471         compiler.
10472         (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
10473         correct one ".dylib". This fixes detection of the archive files when
10474         building library projects.
10476 2005-03-17  Vincent Celier  <celier@adacore.com>
10478         * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
10479         -gnat83, -gnat95 and -gnat05.
10481 2005-03-17  Vasiliy Fofanov  <fofanov@adacore.com>
10483         * gnat_ugn.texi: Document gnatmem restriction
10485 2005-03-17  Thomas Quinot  <quinot@adacore.com>
10487         * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
10488         cleanup
10490 2005-03-17  Robert Dewar  <dewar@adacore.com>
10492         * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
10493         a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
10494         s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
10496         * casing.adb: Comment improvements
10498 2005-03-17  Pascal Obry  <obry@adacore.com>
10500         * g-expect.adb: Minor reformatting.
10502 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
10504         * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
10505         (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
10506         to dependencies.
10508 2005-03-15  Vincent Celier  <celier@adacore.com>
10510         * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
10511         Add new parameter In_Tree to specify the project tree: needed
10512         by the project manager. Adapt to changes in project manager
10513         using new parameter In_Tree.
10515 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
10517         * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
10518         ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
10519         ada/bldtools to avoid make -jN failures.
10521 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
10523         * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
10524         to NULL_TREE on entry.
10526 2005-03-15  Robert Dewar  <dewar@adacore.com>
10528         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
10529         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
10530         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
10531         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
10532         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
10533         system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
10534         system-interix.ads, system-solaris-sparc.ads,
10535         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
10536         system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
10537         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
10538         system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
10539         system-linux-s390.ads, system-linux-s390x.ads: Add line defining
10540         Compiler_System_Version to be False.
10542         * opt.ads: Add new flag Opt.Address_Is_Private
10544         * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
10545         Add new parameter Compiler_System_Version to avoid checking for
10546         completeness of parameters when compiler is compiling itself.
10547         Allows old versions of GNAT to be compiled with new compiler.
10549 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
10551         * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
10552         (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
10553         calling thread.
10554         (Stack_Base_Available): New flag.
10555         (Get_Page_Size): New overloaded functions imported from C.
10556         (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
10557         PROT_ON, PROT_OFF): New constants.
10558         (mprotect): New function imported from C.
10559         (pthread_teb_t): New record type.
10561         * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
10562         (Create_Task): Account for the Yellow Zone and the guard page.
10564 2005-03-15  Vincent Celier  <celier@adacore.com>
10566         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
10567         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
10568         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
10569         mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
10570         Library_File_Name_For): Add new parameter In_Tree
10571         to specify the project tree: needed by the project manager.
10572         Adapt to changes in project manager using new parameter In_Tree.
10573         Remove local imports, use functions in System.CRTL.
10575         * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
10576         to use the project manager.
10578         * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
10579         In_Tree to designate the project tree. Adapt to changes in the project
10580         manager, using In_Tree.
10582         * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
10583         Copy_Interface_Sources): Add new parameter In_Tree to specify the
10584         project tree: needed by the project manager.
10585         (Build_Library): Check that Arg'Length >= 6 before checking if it
10586         contains "--RTS=...".
10588         * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
10589         Library_File_Name_For): Add new parameter In_Tree to specify the
10590         project tree: needed by the project manager.
10592         * prj.ads, prj.adb: Major modifications to allow several project trees
10593         in memory at the same time.
10594         Change tables to dynamic tables and hash tables to dynamic hash
10595         tables. Move tables and hash tables from Prj.Com (in the visible part)
10596         and Prj.Env (in the private part). Move some constants from the visible
10597         part to the private part. Make other constants deferred.
10598         (Project_Empty): Make it a variable, not a function
10599         (Empty_Project): Add parameter Tree. Returns the data with the default
10600         naming data of the project tree Tree.
10601         (Initialize): After updating Std_Naming_Data, copy its value to the
10602         component Naming of Project Empty.
10603         (Register_Default_Naming_Scheme): Use and update the default naming
10604         component of the project tree, instead of the global variable
10605         Std_Naming_Data.
10606         (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
10607         Tree is not defaulted, return the default naming data of the Tree.
10608         (Initial_Buffer_Size): Constant moved from private part
10609         (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
10610         variables initialized in procedure Initialize.
10611         (Add_To_Buffer): Add two in out parameters to replace global variables
10612         Buffer and Buffer_Last.
10613         (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
10614         functions.
10615         Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
10616         hash tables.
10617         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
10618         for the project tree.
10619         (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
10620         constant at the beginning of the package spec, so that they cane be used
10621         in subprograms before their full declarations.
10622         (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
10623         (Empty_Project): Add parameter of type Project_Node_Ref
10624         (Private_Project_Tree_Data): Add component Default_Naming of type
10625         Naming_Data.
10626         (Buffer, Buffer_Last): remove global variables
10627         (Add_To_Buffer): Add two in out parameters to replace global variables
10628         Buffer and Buffer_Last.
10629         (Current_Packages_To_Check): Remove global variable
10630         (Empty_Name): Move to private part
10631         (No-Symbols): Make it a constant
10632         (Private_Project_Tree_Data): New type for the private part of the
10633         project tree data.
10634         (Project_Tree_Data): New type for the data of a project tree
10635         (Project_Tree_Ref): New type to designate a project tree
10636         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
10637         for the project tree.
10639         * prj-attr.ads: Add with Table; needed, as package Prj no longer
10640         imports package Table.
10642         * prj-com.adb: Remove empty, no longer needed body
10644         * prj-com.ads: Move most of the content of this package to package Prj.
10646         * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
10647         designate the project node tree and Packages_To_Check to replace
10648         global variable Current_Packages_To_Check.
10649         Add new parameters In_Tree and Packages_To_Check to local subprograms,
10650         when needed. Adapt to changes in project manager with project node tree
10651         In_Tree.
10653         * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
10654         project tree to most subprograms. Move tables and hash tables to
10655         private part of package Prj.
10656         Adapt to changes in project manager using project tree In_Tree.
10658         * prj-makr.adb (Tree): New constant to designate the project node tree
10659         Adapt to change in project manager using project node tree Tree
10661         * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
10662         display the Library_Src_Dir and the Library_Dir.
10663         Add new parameter In_Tree to designate the project node tree to most
10664         subprograms. Adapt to changes in the project manager, using project tree
10665         In_Tree.
10666         (Check_Naming_Scheme): Do not alter the casing on platforms where
10667         the casing of file names is not significant.
10668         (Check): Add new parameter In_Tree to designate the
10670         * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
10671         designate the project tree.
10672         Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
10674         * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
10675         to replace those that were in the private part of package Prj.
10676         Add new parameter In__Tree to designate the project node tree to most
10677         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
10678         (Post_Parse_Context_Clause): When specifying the project node of a with
10679         clause, indicate that it is a limited with only if there is "limited"
10680         in the with clause, not necessarily when In_Limited is True.
10681         (Parse): Add new parameter In_Tree to designate the project node tree
10683         * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
10684         designate the project node tree. Adapt to change in Prj.Tree with
10685         project node tree In_Tree.
10687         * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
10688         tree In_Tree in the call to function Empty_Process to give its initial
10689         value to the project data Processed_Data.
10690         Add new parameters In_Tree to designate the project tree and
10691         From_Project_Node_Tree to designate the project node tree to several
10692         subprograms. Adapt to change in project manager with project tree
10693         In_Tree and project node tree From_Project_Node_Tree.
10695         * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
10696         to replace those that were in the private part of package Prj.
10697         Add new parameter In_Tree to designate the project node tree to most
10698         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
10700         * prj-tree.ads, prj-tree.adb: Add new parameter of type
10701         Project_Node_Tree_Ref to most subprograms.
10702         Use this new parameter to store project nodes in the designated project
10703         node tree.
10704         (Project_Node_Tree_Ref): New type to designate a project node tree
10705         (Tree_Private_Part): Change table to dynamic table and hash tables to
10706         dynamic hash tables.
10708         * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
10709         the project tree to most subprograms. Adapt to changes in project
10710         manager using project tree In_Tree.
10712         * makegpr.adb (Project_Tree): New constant needed to use project
10713         manager.
10715 2005-03-15  Olivier Hainque  <hainque@adacore.com>
10717         * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
10718         for sigactions with SA_SIGINFO set. Call
10719         __gnat_adjust_context_for_raise before raising, to perform the
10720         potentially required adjustments to the machine context for the GCC
10721         unwinder.
10723         * raise.h (__gnat_adjust_context_for_raise): New prototype.
10725         * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
10726         Adjust PC by one in the provided machine context.
10727         (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
10728         so that the handler is passed the context structure to adjust prior to
10729         the raise.
10730         (__gnat_error_handler) HPUX: Adjust the signature to match what an
10731         SA_SIGINFO sigaction should look like. Call
10732         __gnat_adjust_context_for_raise before actually raising.
10733         (__gnat_adjust_context_for_raise): Default noop to help PC
10734         adjustments before raise from signal handlers.
10735         (__gnat_error_handler): Indirectly call a predicate function to
10736         determine if a condition should be resignaled or not.
10737         (__gnat_set_resignal_predicate): User interface to modify the predicate.
10738         (__gnat_default_resignal_p): Default GNAT predicate.
10740 2005-03-15  Doug Rupp  <rupp@adacore.com>
10742         * adaint.c: Prefix #include of VMS system header files with vms/
10743         [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
10744         Do not define a dummy function "convert_addresses" under Darwin,
10745         not needed.
10747         * tb-alvms.c, expect.c: Prefix #include of VMS system header files
10748         with vms/
10750 2005-03-15  Nicolas Setton  <setton@adacore.com>
10752         * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
10753         PPC/AIX.
10755 2005-03-15  Robert Dewar  <dewar@adacore.com>
10757         * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
10758         AI-386.
10760         * a-retide.ads: Minor comment changes
10762 2005-03-15  Robert Dewar  <dewar@adacore.com>
10764         * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
10765         a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
10766         Realloc_For_Chunk to private part of package.
10767         New subprograms for AI-301
10769         * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
10770         Get_Line procedure.
10771         Avoid unnecessary use of Get/Set_Wide_String
10773 2005-03-15  Robert Dewar  <dewar@adacore.com>
10775         PR ada/13470
10777         * a-stunau.ads, a-stunau.adb:
10778         Change interface to allow efficient (and correct) implementation
10779         The previous changes to allow extra space in unbounded strings had
10780         left this interface a bit broken.
10782         * a-suteio.adb: Avoid unnecessary use of Get/Set_String
10784         * g-spipat.ads, g-spipat.adb: New interface for Get_String
10785         Minor reformatting (function specs)
10787         * g-spitbo.adb: New interface for Get_String
10789         * g-spitbo.ads: Minor reformatting
10791         * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
10793         * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
10795 2005-03-15  Javier Miranda  <miranda@adacore.com>
10796             Robert Dewar  <dewar@adacore.com>
10797             Thomas Quinot  <quinot@adacore.com>
10798             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10800         * atree.ads, atree.adb: Add support for Elist24 field
10802         * atree.h: Fix wrong definition of Field27
10803         Add support for Elist16 field
10804         Add support for Elist24 field
10806         * einfo.ads, einfo.adb (Abstract_Interfaces,
10807         Set_Abstract_Interfaces): New subprograms.
10808         (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
10809         subprograms.
10810         (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
10811         entities rather than a single node.
10812         (Is_Interface, Set_Is_Interface): New subprogram
10813         (First_Tag_Component): New syntesized attribute
10814         (Next_Tag_Component): New synthesized attribute
10815         (Write_Entity_Flags): Upgraded to write Is_Interface
10816         (Write_Field24_Name): Upgraded to write Abstract_Interfaces
10817         (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
10818         (Task_Body_Procedure): New subprogram to read this attribute.
10819         (Set_Task_Body_Procedure): New subprogram to set this attribute.
10820         (Has_Controlled_Component): Now applies to all entities.
10821         This is only a documentation change, since it always worked to apply
10822         this to other than composite types (yielding false), but now this is
10823         official.
10824         Update documentation on Must_Be_Byte_Aligned for new spec
10826         * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
10827         exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
10828         uses of the Access_Disp_Table attribute to reference the first dispatch
10829         table associated with a tagged type. As
10830         part of the implementation of abstract interface types,
10831         Access_Disp_Table has been redefined to contain a list of dispatch
10832         tables (rather than a single dispatch table).
10833         Similarly, upgrade all the references to Tag_Component by the
10834         new attribute First_Tag_Component.
10835         (Find_Inherited_TSS): Moved to exp_tss.
10836         Clean up test in Expand_N_Object_Declaration for cases
10837         where we need to do a separate assignment of the initial value.
10838         (Expand_N_Object_Declaration): If the expression in the
10839         declaration of a tagged type is an aggregate, no need to generate an
10840         additional tag assignment.
10841         (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
10842         is to be deleted.
10843         Bit packed array ops are only called if operands are known to be
10844         aligned.
10845         (Component_Equality): When returning an N_Raise_Program_Error statement,
10846         ensure that its Etype is set to Empty to avoid confusing GIGI (which
10847         expects that only expressions have a bona fide type).
10848         (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
10849         determine the amount of data to be copied.
10851         * par.adb (P_Interface_Type_Definition): New subprogram that parses the
10852         new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
10853             INTERFACE_TYPE_DEFINITION ::=
10854               [limited | task | protected | synchronized] interface
10855                 [AND interface_list]
10857         * par-ch3.adb (P_Type_Declaration): Modified to give support to
10858         interfaces.
10859         (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
10860         interfaces.
10861         (P_Interface_Type_Definition): New subprogram that parses the new
10862         syntax rule of Ada 2005 interfaces
10863         (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
10864         messages by the correct RENAMES (quotes removed).
10866         * sem_prag.adb: Upgrade all the references to Tag_Component by the new
10867         attribute First_Tag_Component.
10869         * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
10870         (Interface_List, Set_Interface_List): New subprograms.
10871         (Interface_Present, Set_Interface_Present): New subprograms.
10872         (Limited_Present, Set_Limited_Present): Available also in derived
10873         type definition nodes.
10874         (Protected_Present, Set_Protected_Present): Available also in
10875         record type definition and
10876         derived type definition nodes.
10877         (Synchronized_Present, Set_Synchronized_Present): New subprograms.
10878         (Task_Present, Set_Task_Present): New subprogram.
10879         (Task_Body_Procedure): Removed.
10880         (Set_Task_Body_Procedure): Removed.
10881         These subprogram have been removed because the attribute
10882         Task_Body_Procedure has been moved to the corresponding task type
10883         or task subtype entity to leave a field free to store the list
10884         of interfaces implemented by a task (for AI-345)
10885         Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
10886         (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
10887         expression flag Do_Range_Check
10888         (Exception_Junk): Change to Flag7 to accomodate above change
10889         (Box_Present, Default_Name, Specification, Set_Box_Present,
10890         Set_Default_Name, Set_Specification): Expand the expression
10891         "X in N_Formal_Subprogram_Declaration" into the corresponding
10892         two comparisons. Required to use the csinfo tool.
10894         * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
10895         "with string" given.
10897         * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
10898         expression given.
10900         * par-ch11.adb (P_Raise_Statement): Recognize with string expression
10901         in 2005 mode
10903         * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
10904         attribute Task_Body_Procedure rather than the old semantic field that
10905         was available in the task_type_declaration node.
10907         * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
10908         interface type definitions.
10909         (P_Formal_Derived_Type_Definition): Modified to handle the list of
10910         interfaces.
10912         * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
10913         task type declaration.
10914         (P_Protected): Modified to handle the list of interfaces in a
10915         protected type declaration.
10917 2005-03-15  Doug Rupp  <rupp@adacore.com>
10918             Vincent Celier  <celier@adacore.com>
10920         * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
10921         (Gen_Output_File_C): Likewise.
10922         (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
10924 2005-03-15  Thomas Quinot  <quinot@adacore.com>
10926         * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
10927         is an N_Raise_Constraint_Error node, create a new copy of it without
10928         going through a call to Duplicate_Subexpr.
10930 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
10931             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10932             Nicolas Setton  <setton@adacore.com>
10933             Ed Schonberg  <schonberg@adacore.com>
10935         PR ada/19900
10936         PR ada/19408
10937         PR ada/19140
10938         PR ada/20255
10940         * decl.c (gnat_to_gnu_field): Reject aliased components with a
10941         representation clause that prescribes a size not equal to the rounded
10942         size of their types.
10943         (gnat_to_gnu_entity, case E_Component): Always look at
10944         Original_Record_Component if Present and not the entity.
10945         (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
10946         of tagged extension types by not making field for components that are
10947         inside the parent.
10948         (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
10949         (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
10950         expression to the type of the object when the object is constant.
10951         Reverse defer_debug_incomplete_list before traversing it, so that trees
10952         are processed in the order at which they were added to the list. This
10953         order is important when using the stabs debug format.
10954         If we are deferring the output of debug information, also defer this
10955         output for a function return type.
10956         When adding fields to a record, prevent emitting debug information
10957         for incomplete records, emit the information only when the record is
10958         complete.
10959         (components_to_record): New parameter defer_debug.
10960         (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
10961         (gnat_to_gnu_field_decl): New function.
10962         (substitution_list, annotate_rep): Call it.
10963         (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
10964         (gnat_to_gnu_entity, case E_Record_Type): Likewise.
10965         No longer update discriminants to not be a COMPONENT_REF.
10966         (copy_alias_set): Strip padding from input type; also handle
10967         unconstrained arrays properly.
10969         * gigi.h (write_record_type_debug_info): New function.
10970         Convert to use ANSI-style prototypes. Remove unused
10971         declarations for emit_stack_check, elab_all_gnat and
10972         set_second_error_entity.
10973         (gnat_to_gnu_field_decl): New decl.
10975         * utils.c (write_record_type_debug_info): New function.
10976         (finish_record_type): Delegate generation of debug information to
10977         write_record_type_debug_info.
10978         (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
10979         (update_pointer_to): Fix pasto.
10980         (convert) <UNION_TYPE>: Accept slight type variations when
10981         converting to an unchecked union type.
10983         * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
10984         replace the N_Freeze_Entity with a null statement.
10986         * freeze.adb (Freeze_Expression): If the freeze nodes are generated
10987         within a constrained subcomponent of an enclosing record, place the
10988         freeze nodes in the scope stack entry for the enclosing record.
10989         (Undelay_Type): New Subprogram.
10990         (Set_Small_Size): Pass T, the type to modify; all callers changed.
10991         (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
10992         within records; allow them to have freeze nodes if their base types
10993         aren't frozen yet.
10995         * exp_util.adb (Remove_Side_Effects): Properly test for
10996         Expansion_Delayed and handle case when it's inside an
10997         N_Qualified_Expression.
10999         * sem_ch3.adb (Derived_Type_Declaration): New predicate
11000         Comes_From_Generic, to recognize accurately that the parent type in a
11001         derived type declaration can be traced back to a formal type, because
11002         it is one or is derived from one, or because its completion is derived
11003         from one.
11004         (Constrain_Component_Type): If component comes from source and has no
11005         explicit constraint, no need to constrain in in a subtype of the
11006         enclosing record.
11007         (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
11008         Minor change to propagate Is_Ada_2005 flag
11010         * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
11011         Expansion_Delayed is False.
11012         (assoc_to_constructor): Ignore fields that have a
11013         Corresponding_Discriminant.
11014         (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
11015         function returns "by target", dereference the target pointer using the
11016         type of the actual return value.
11017         <all>: Be prepared for a null gnu_result.
11018         (processed_inline_subprograms): Check flag_really_no_inline
11019         instead of flag_no_inline.
11020         (set_second_error_entity): Remove unused function.
11021         (gnat_to_gnu, case N_Selected_Component): Call
11022         gnat_to_gnu_field_decl.
11023         (assoc_to_constructor): Likewise.
11025 2005-03-15  Robert Dewar  <dewar@adacore.com>
11026             Ed Schonberg  <schonberg@adacore.com>
11027             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11029         * exp_pakd.adb (Create_Packed_Array_Type): Do not set
11030         Must_Be_Byte_Aligned for cases where we do not need to use a
11031         System.Pack_nn unit.
11033         * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
11034         as procedures.
11035         Needed now that we do some processing for IN parameters as well. This
11036         may well fix some unrelated errors.
11037         (Expand_Call): Handle case of unaligned objects (in particular those
11038         that come from packed arrays).
11039         (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
11040         renamed entity is an inherited operation, re-expand the call using the
11041         original operation, which is the one to call.
11042         Detect attempt to inline parameterless recursive subprogram.
11043         (Represented_As_Scalar): Fix to work properly with private types
11044         (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
11045         accurate estimate. Yields True in far fewer cases than before,
11046         improving the quality of code that depends on this test.
11048         * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
11049         over both visible and private declarations to remove them from tree,
11050         and mark subprograms declared in package as eliminated, to prevent
11051         spurious use in subsequent compilation of generic units in the context.
11053         * exp_util.ads: Minor cleanup in variable names
11055         * sem_eval.ads, sem_eval.adb: Minor reformatting
11056         (Compile_Time_Known_Bounds): New function
11058 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
11060         * exp_ch7.adb (Convert_View): Use base types of underlying types when
11061         determining whether an unchecked conversion is needed for the argument
11062         of an initialization call.
11064 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
11066         * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
11067         that appears in the instantiation rather than the internal subtype
11068         generated in the wrapper package, to avoid anomalies in gigi when the
11069         target is derived from a private type whose full view is an access type.
11071 2005-03-15  Robert Dewar  <dewar@adacore.com>
11073         * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
11074         not needed.
11075         Add documentation to replace the use of this flag
11076         Fix kludge for Maximum_Alignment on x86 so that it does not apply to
11077         the x86_64.
11079 2005-03-15  Thomas Quinot  <quinot@adacore.com>
11081         * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
11082         here from exp_attr so it can be shared between exp_attr and exp_dist.
11083         (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
11084         all TSS names, not a subset thereof, and the previous name introduced
11085         an unnecessarily confusion that a distinction might exist between
11086         "OK" TSS names and some "not OK" TSS names.
11088 2005-03-15  Doug Rupp  <rupp@adacore.com>
11090         * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
11091         Command_Name.
11093 2005-03-15  Pascal Obry  <obry@adacore.com>
11094             Eric Botcazou  <ebotcazou@adacore.com>
11096         PR ada/20226
11097         PR ada/20344
11099         * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
11100         when IN_RTS. This is to work around a bootstrap path problem.
11102         * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
11103         table and pass it to __gnat_install_SEH_handler().
11104         (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
11106         * lang.opt: Fix specification of -fRTS=.
11108 2005-03-15  Doug Rupp  <rupp@adacore.com>
11109             Bernard Banner  <banner@adacore.com>
11110             Vincent Celier  <celier@adacore.com>
11111             Arnaud Charlet  <charlet@adacore.com>
11113         PR ada/6852
11114         This change works fine when gnatlib is built from the gcc directory,
11115         but does not work when using the libada Makefile, since GCC_FOR_TARGET
11116         is not passed to ada/Makefile.in, so more work is needed by a
11117         Makefile/configure expert.
11119         * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
11120         set GMEM_LIB on ia64 linux to add optional support for gnatmem.
11121         Setup gnatlink switch -M for x86_64 linux, as it is already setup
11122         for Linux x86.
11123         (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
11124         Run ranlib on libgccprefix.a
11125         Define PREFIX_OBJS for Darwin, to build libgccprefix.
11126         (ADA_INCLUDE_SRCS): Split Ada packages.
11128 2005-03-15  Robert Dewar  <dewar@adacore.com>
11130         * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
11132         * impunit.adb: Add GNAT.UTF_32
11134         * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
11136         * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
11137         now uses GNAT.UTF_32).
11139         * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
11140         capabilities for categorizing characters using Unicode categories
11142 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
11144         * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
11145         instantiation that has been rewritten as a package body, retrieve spec
11146         to generate proper name for implicit_with_clause.
11147         (Install_Parents): Recognize a parent that is an instantiation but has
11148         been rewritten as a package declaration during analysis.
11150 2005-03-15  Javier Miranda  <miranda@adacore.com>
11151             Ed Schonberg  <schonberg@adacore.com>
11153         * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
11154         parameter reported some error we immediately return. This improves the
11155         behaviour of the frontend in case of errors.
11156         (Install_Parent, Remove_Parent): Introduce new flag
11157         Parent_Unit_Visible, to preserve the proper visibility of the ultimate
11158         ancestor of a generic child unit, when the child is being instantiated.
11159         (Inline_Instance_Body): If we are compiling the private
11160         part or the body of a child unit, restore the proper visibility of the
11161         parents after compiling the instance body.
11163 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
11164             Javier Miranda  <miranda@adacore.com>
11166         PR ada/15608
11167         * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
11168         of a private type, in which case it is underlying_type that denotes
11169         the proper task. Also modified to use the new entity attribute
11170         that is directly available in the task type and task subtype entities
11171         (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
11172         arrays when other dimensions than the first are constrained by
11173         discriminants of an enclosing record.
11174         (Insert_Explicit_Dereference): If the prefix is an indexed component or
11175         a combination of indexed and selected components, find ultimate entity
11176         and generate the appropriate reference for it, to suppress spurious
11177         warnings.
11178         (Note_Possible_Modification): If an entity name has no entity, return.
11179         (Is_Variable): A function call never denotes a variable.
11180         (Requires_Transient_Scope): For record types, recurse only on
11181         components, not on internal subtypes that may have been generated for
11182         constrained components.
11184 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
11186         * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
11187         Eliminated as candidates for resolution. Both efficient, and avoids
11188         anomalies with operators declared in deleted code.
11189         (Process_Implicit_Dereference_Prefix): Use this procedure whenever
11190         expansion is disabled (as when compiling a generic) to prevent spurious
11191         warnings on prefixes of selected components.
11193 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
11195         * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
11196         attached to a list before checking whether it appears in the private
11197         declarations of the current package.
11198         (Make_Inequality_Operator): Insert declaration in proper declarative
11199         list rather than just setting the Parent field, so that
11200         Is_Private_Declaration can handle it properly.
11202 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
11204         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
11205         a renaming a body, check that the renamed subprogram in not intrinsic.
11206         (Find_Direct_Name): If several use_visible entities hide
11207         each other, and the context is a predefined file compiled through
11208         rtsfind, keep only the entity that comes from a predefined file.
11210 2005-03-15  Geert Bosch  <bosch@adacore.com>
11212         * s-fatgen.adb (Valid): Extend special exceptions to account for long
11213         long float padding to also cover AMD64 and IA64.
11215 2005-03-15  Gary Dismukes  <dismukes@adacore.com>
11217         * s-imgwch.adb: Add with and use of Interfaces.
11218         (Img_Wide_Character): Change type of Val to Unsigned_16.
11219         (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
11221 2005-03-15  Matthew Gingell  <gingell@adacore.com>
11223         * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
11225 2005-03-15  Robert Dewar  <dewar@adacore.com>
11227         * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
11229         * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
11231         * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
11233 2005-03-15  Robert Dewar  <dewar@adacore.com>
11235         * s-bitops.adb, s-bitops.ads,
11236         s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
11237         s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
11238         tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
11239         s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
11240         s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
11241         s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
11242         s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
11243         s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
11244         reformatting.
11246 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
11248         * utils2.c (build_binary_op): Fix typo.
11250 2005-03-15  Doug Rupp  <rupp@adacore.com>
11252         * s-crtl.ads (popen,pclose): New imports.
11254 2005-03-15  Cyrille Comar  <comar@adacore.com>
11256         * comperr.adb (Compiler_Abort): remove references to obsolete
11257         procedures in the bug boxes for various GNAT builds.
11259 2005-03-15  Vincent Celier  <celier@adacore.com>
11261         * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
11263 2005-03-15  Geert Bosch  <bosch@adacore.com>
11264             Arnaud Charlet  <charlet@adacore.com>
11265             Robert Dewar  <dewar@adacore.com>
11266             Cyrille Comar  <comar@adacore.com>
11267             Sergey Rybin  <rybin@adacore.com>
11269         * gnat_ugn.texi: Remove extended inline assembly example, as it was far
11270         too specific and long-winded to be appropriate for the GNAT User's
11271         Guide.
11272         Warn about use of GCC switches not documented in the GNAT User's Guide,
11273         as these may cause generated code to not conform to Ada semantics.
11274         Remove mention of -gdwarf-2 for sparc64, since this is now the default.
11275         Add documentation for -gnat95 and -gnat05 switches
11276         Remove paragraph documenting obsolete way to refer to third party
11277         libraries.
11278         Add a few references to Ada_05 that were missing.
11279         Update documentation on -gnatZ/-gnatL.
11280         Document limitation when using -m64 under Solaris.
11281         Change the "Name Casing" subsection of the pretty-printer section
11282         according to the changes in the dictionary processing.
11284         * gnat_rm.texi: Document the Ada_05 pragma.
11285         Section on record representation clauses describes the new more
11286         relaxed rules about placement of large packed bit array components.
11287         Add documentation of GNAT.UTF_32
11289 2005-03-12  Daniel Berlin <dberlin@dberlin.org>
11291         * misc.c (gnat_post_options): Turn off structural
11292         aliasing for now.
11294 2005-03-08  Laurent Guerby <laurent@guerby.net>
11296         * system-linux-sparc.ads: Fix typo in previous commit.
11298 2005-03-07  James A. Morrison <phython@gcc.gnu.org>
11299             Laurent Guerby <laurent@guerby.net>
11301         PR ada/20035
11302         * system-linux-sparc.ads: New.
11303         * Makefile.in: Add sparc linux entry.
11305 2005-02-27  Danny Smith  <dannysmith@users.sourceforge.net>
11307         * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
11308         parameters as unused.
11310 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
11311         Partial merge from libada-gnattools-branch:
11313         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
11314         * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
11315         into code in gnattools/Makefile.in.  Remove direct dependencies on
11316         stamp-tools by tools clauses.
11317         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
11318         * config-lang.in: Add gnattools to $lang_dirs.
11320 2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>
11322         PR ada/19942
11323         * utils.c (gnat_type_for_mode): Return null instead of ICE because
11324         we asked for an unknown mode.
11326 2005-02-12  Richard Henderson  <rth@redhat.com>
11328         * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
11329         validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
11331 2005-02-10  Andreas Jaeger  <aj@suse.de>
11333         * init.c (__gnat_initialize): Mark parameter as unused.
11335 2005-02-09  Doug Rupp  <rupp@adacore.com>
11337         * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
11338         * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
11340 2005-02-09  Doug Rupp  <rupp@adacore.com>
11342         * gnatchop.adb (dup, dup2),
11343         g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
11345         * gnatlbr.adb (mkdir),
11346         mlib-tgt-vms-ia64.adb (popen, plose):  Import with decc$ prefix.
11348         * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
11350 2005-02-09  Doug Rupp  <rupp@adacore.com>
11352         * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
11354 2005-02-09  Robert Dewar  <dewar@adacore.com>
11355             Thomas Quinot  <quinot@adacore.com>
11356             Javier Miranda  <miranda@adacore.com>
11357             Pascal Obry  <obry@adacore.com>
11358             Ed Schonberg  <schonberg@adacore.com>
11359             Doug Rupp  <rupp@adacore.com>
11360             Gary Dismukes  <dismukes@adacore.com>
11361             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11363         * g-zstspl.ads: New file.
11365         * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
11367         * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
11368         Ada 95 mode
11369         Add definition of Wide_Wide_Space for AI-285
11371         * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
11372         interface (to support Ada 95 and Ada 2005 units).
11373         Add Unbounded_IO files
11374         Add entries for Wide_Wide packages for AI-285
11375         Add list of containers packages to Ada 2005 unit list
11377         * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
11378         support new Unbounded_IO package cleanly.
11380         * g-utf_32.ads, g-utf_32.adb: New files.
11382         * Makefile.rtl: Add entry for g-utf_32
11383         Add new files for Unbounded_IO
11384         Adjust make file for new AI-285 wide wide packages
11385         Add AI-302 containers to the run time.
11387         * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
11388         a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
11389         subprograms for AI-301.
11391         * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
11393         * a-stunau.ads: Minor comment correction
11395         * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
11396         etc.
11397         Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
11398         (Check_RPC): Update to match changes in expanded code.
11399         Clean up unused entity.
11401         * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
11402         was not taken into account.
11403         This includes proper initialization with Normalize_Scalars.
11404         (Get_Simple_Init_Val): Major rewrite for initialize scalars and
11405         normalize scalars cases (particularly the latter) to do a better job
11406         of finding invalid representations.
11408         * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
11410         * s-strops.ads, s-strops.adb: Remove string normalize routines, never
11411         used
11413         * exp_dist.adb: Add support for wide wide character type
11414         (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
11415         private part, generate stub bodies at the end of the private part,
11416         not the visible part.
11417         (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
11418         PolyORB support.
11419         (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
11420         generic wrapper to execute final processing after completing the
11421         expansion of the RPC receiver for an RACW.
11423         * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
11424         packages and attributes.
11425         (Preset_Names): Addition of the new reserved words of Ada 2005,
11426         that is interface, overriding and synchronized.
11427         (Get_Pragma_Id): Give support to the use of the new reserved word
11428         "interface" as a pragma name.
11429         (Is_Pragma_Name): Give support to the use of the new reserved word
11430         "interface" as a pragma name.
11431         (Preset_Names): Add stream_size string for the Stream_Size Ada2005
11432         attribute implementation.
11434         * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
11435         checks to entities that are output parameters of Asm operations.
11436         Handle the Stream_Size attribute.
11437         Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
11439         * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
11441         * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
11442         for second parameter being 0.0.
11443         Add support for wide wide character type.
11444         (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
11446         * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
11447         s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
11448         s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
11449         s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
11450         for wide wide character cases.
11452         * cstand.adb: Create entities for Wide_Wide_Character and
11453         Wide_Wide_String.
11455         * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
11456         accordance with AI-258.
11457         Add new declarations for 16/32 bit C character types (Part of AI285)
11459         * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
11460         (Obsolescent_Warning): New field
11461         (Rep_Clause): New local subprogram used to share code. Returns the rep
11462         clause for which the name is given in parameter.
11463         (Has_Stream_Size_Clause): New routine.
11464         (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
11465         (Address_Clause): Implementation is now using Rep_Clause.
11466         (Alignment_Clause): Idem.
11467         (Size_Clause): Idem.
11469         * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
11470         entity in non-Ada 2005 mode and generate warning.
11472         * par-prag.adb: Add handling of one argument form for pragma Ada_05.
11473         (Prag): Code cleanup. Remove old gnat pragma "overriding"
11475         * sem_prag.adb: Add handling of one argument form for pragma Ada_05
11476         (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
11477         on the named unit if the pragma is not in the current compilation unit,
11478         so that elaboration calls in the current unit can set up an elaboration
11479         dependency on the named unit, as needed.
11480         (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
11481         subprogram as well as for subprograms declared within a package.
11482         (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
11483         pragma overriding.
11485         * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
11486         to z) to avoid some instances of duplication for Wide_Wide packages.
11488         * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
11489         characters.
11491         * scn.adb: Char_Literal_Value field is now a Uint
11493         * scng.adb: Significant rewrite to handle new Ada 2005 features
11494         allowing wide and wide wide characters in program text, e.g. for
11495         identifiers, as described in AI-285.
11496         (Set_Reserved): New procedure, makes setting up keywords cleaner.
11497         (Initialize_Scanner): Register the new reserved words of Ada 2005.
11498         (Scan): Give support to the new reserved words.
11500         * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
11501         warning notifying that interface, overriding, and synchronized are
11502         new reserved words.
11503         (P_Pragma): Allow the use of the new reserved word "interface" as
11504         a pragma name.
11506         * gnatls.adb, gnatbind.adb,
11507         ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
11508         identifiers named "interface" to "SAL_Interface".
11510         * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
11511         (Structured Exception handling).
11512         (Gen_Main_C): Idem.
11514         * bindgen.adb:
11515         (Gen_Main_Ada): Set the default exit code if specified.
11516         (Gen_Main_C): Likewise.
11517         Part of *DC20-006.
11518         (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
11519         Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
11521         * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
11522         new -Xnnn switch.
11524         * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
11525         has a collision with the new Ada 2005 "interface" reserved word.
11527         * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
11528         generate a warning notifying that interface, overriding, and
11529         synchronized are new reserved words.
11531         * scans.ads (Token_Type): Addition of the tokens corresponding to the
11532         new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
11533         and Tok_Synchronized.
11535         * sem_res.adb (Resolve_Actuals): Change error messages to refer to
11536         "dispatching" rather than "primitive" operations, since dispatching
11537         calls are now allowed to abstract formal subprograms (which are not
11538         primitive).
11539         Char_Literal_Value field is now a Uint
11540         (Resolve_Slice): If the prefix is an access to an unconstrained array,
11541         compute the actual subtype of the designated object to impose the proper
11542         index constraints.
11543         (Resolve_Selected_Component): Do not insert an access check if the
11544         prefix is an access type: such a node is expanded into an explicit
11545         dereference, on which the access check is performed anyway. Removes
11546         expensive duplicate checks.
11547         (Resolve_Call): Use new flag Is_Obsolescent and field
11548         Obsolescent_Warning so that pragma Obsolescent works on library
11549         subprograms.
11550         Add support for wide wide character type
11551         (Resolve_Allocator): Replace the error message on wrong null-exclusion
11552         value by a warning message.
11553         (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
11554         as fixed-point, and one of the operands is non-static and universal, it
11555         can only be an illegal exponentiation operation, in which case there is
11556         no real value to retrieve.
11558         * exp_strm.adb: Add support for wide wide character type
11559         (Build_Elementary_Input_Call): Compute the size of the stream element by
11560         querying the rep chain to find the Stream_Attribute attribute value.
11561         (Build_Elementary_Write_Call): Ditto.
11563         * sem_aggr.adb: Char_Literal_Value field is now a Uint
11564         Add support for wide wide character type
11565         Replace the error messages on wrong null-exclusion value by warnings
11566         as described in Ada 2005.
11567         (Resolve_Extension_Aggregate): Document the fact that the error
11568         message on class-wide expressions in extensions aggregates.
11570         * sem_case.adb: Add support for wide wide character type
11572         * sem_ch13.adb: Add support for wide wide character type
11573         (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
11575         * sem_ch3.adb: Add support for wide wide character type
11576         (Process_Subtype): If constraint is illegal for the type, set Ekind of
11577         now-useless Itype, to prevent cascaded errors on a compiler built
11578         without -gnatp.
11580         * sem_ch8.adb: Add with and use of Sem_Disp.
11581         (Analyze_Subprogram_Renaming): Replace unclean uses of
11582         Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
11583         of Corresponding_Spec to Empty).
11584         (Attribute_Renaming): Replace use of Corresponding_Spec with
11585         Corresponding_ Formal_Spec and simplify condition.
11586         (Use_One_Package): Check that scope of homonym of identifier is defined,
11587         before checking whether it is a wrapper package.
11588         Add support for wide wide character type
11590         * sem_eval.adb: Add support for wide wide character type.
11591         (Eval_Arithmetic_Op): Check for compile time known signed integer
11592         overflow in the non-static case.
11593         (Subtypes_Statically_Match): A formal scalar type and its base type do
11594         not statically match.
11596         * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
11597         "not in" for test of N_Formal_Subprogram_Declaration (which is now a
11598         subtype).
11599         (Unit_Declaration_Node): Ditto.
11600         (Is_Variable_Prefix):  For the case of an indexed component whose prefix
11601         has a packed array type, the prefix has been rewritten into a type
11602         conversion. Determine variable-ness from the converted expression.
11603         Handle wide wide character cases.
11605         * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
11607         * stringt.ads, stringt.adb: Handle full UTF-32 range.
11608         Remove ["0A"] from comment, since it can look like a line terminator.
11609         Currently we don't permit this, but this is under discussion by the
11610         ARG, and it is easy enough to use a different example.
11612         * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
11613         handling UTF-32 encoding for wide wide character.
11614         Implement new brackets coding ["hhhhhhhh"]
11615         Add UTF-8 encodings for full UTF-32 range
11617         * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
11619         * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
11620         bit range Add full UTF-32 support.
11621         (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
11622         notify that constraint error will be raised at run-time
11623         because a null value is assigned to a null-excluding object.
11624         Remove some obsolete declarations and make Char_Code
11625         unsigned.
11627         * a-except.adb (Rcheck_30): New subprogram. Addition of the message
11628         corresponding to CE_Null_Not_Allowed, and adjust the output of all the
11629         Rcheck subprograms.
11631         * checks.adb (Check_Null_Not_Allowed): Replace the error message on
11632         wrong null-exclusion value by a warning message.
11633         (Enable_Range_Check): Do range check if the prefix is an
11634         explicit dereference whose designated object is an unconstrained array.
11635         Current algorithm for removing duplicate checks is over-eager in this
11636         case.
11638         * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
11639         null-exclusion value by a warning message
11641         * atree.h, atree.ads, atree.adb: Remove Char_Code field support
11642         completely. Add support for Uint2 field
11644         sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
11645         exp_prag.adb: Char_Literal_Value field is now a Uint.
11647         * exp_util.adb (Insert_Actions): Replace
11648         N_Formal_Subprogram_Declaration by
11649         N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
11650         Char_Literal_Value field is now a Uint.
11652         * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
11653         defined for subprogram renaming declarations. When set, the field
11654         indicates the defining entity of a corresponding formal subprogram
11655         when the renaming corresponds to a formal subprogram association in an
11656         instantiation.
11657         (Set_Corresponding_Formal_Spec): New procedure to return
11658         Corresponding_Formal_Spec field.
11659         Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
11660         (which is now a subtype).
11661         Char_Literal_Value field is now a Uint
11663         * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
11664         pointer to the base of the dispatch table.
11665         Minor changes to comments.
11666         (Controlling_Type): New function for determining the tagged type
11667         associated with a tagged primitive subprogram.
11668         (Expand_Dispatching_Call): Add support for a controlling actual that is
11669         directly a value of type Ada.Tag rather than a tagged object.
11671         * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
11672         describing the new layout.
11673         (Dispatch_Table): The expander computes the actual array size, allocates
11674         the Dispatch_Table record accordingly, and generates code that displaces
11675         the base of the record after the Typeinfo_Ptr component. The access to
11676         these components is done by means of local functions.
11677         (Offset_To_Top): New function.
11678         (Typeinfo_Ptr): New function.
11679         (Get_TSD): Modified to access the new position of the TSD.
11680         (Set_TSD): Modified to save the TSD in its new position.
11682         * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
11683         case of formal abstract subprograms. Add check and message for -gnat05.
11684         Update comments.
11686         * sem_ch12.adb: Add with and use for Sem_Disp.
11687         (Analyze_Associations): Minor change from "=" to "in" for use of
11688         N_Formal_Subtype_Declaration (which is now a subtype).
11689         (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
11690         N_Formal_Subtype_Declaration (which is now a subtype).
11691         (Analyze_Formal_Subprogram): Add handling for
11692         N_Formal_Abstract_Subprogram, marking the formal as abstract and
11693         dispatching, setting the controlling status of the formal parameters
11694         and result, and issuing an error if there is no controlling type for
11695         the formal subprogram.
11696         (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
11697         which is an unclean use of that field, we set the new field
11698         Corresponding_Formal_Spec to make the formal subprogram available to
11699         processing in Analyze_Subprogram_Declaration.
11700         (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
11701         Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
11702         Constrained, so that it is is does not statically match its anonymous
11703         base type.
11705         * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
11706         abstract formal subprograms in error check for functions returning
11707         abstract types. Set scope of new designator for
11708         a parameterless subprogram, so that it is available when checking the
11709         body for nested subprograms, before full analysis of said body.
11710         (Analyze_Subprogram_Body): Warn on inlining bodies with nested
11711         subprogram only if inner one comes from source.
11712         (Analyze_Function_Call): If the call is given in object notation, the
11713         analysis of the name rewrites the node and analyzes it with the proper
11714         argument list. After analyzing the name, if the call has been rewritten
11715         and the result type is set, no further analysis is needed.
11716         (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
11717         mark in function specification, in a context where the formals are
11718         visible and hide outer homographs.
11720         * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
11721         as the tagged type for the cases of abstract formal subprograms and
11722         renamings of those.  Clean up spec comments.
11723         (Check_Dispatching_Context): Add error message to indicate "abstract
11724         procedure", covering the case of a call to a formal abstract procedure
11725         that has statically tagged operands.
11726         (Check_Dispatching_Call): Check for the case of an actual given by
11727         a tag-indeterminate function call whose type is an ancestor of the
11728         containing call's associated tagged type. This situation can occur
11729         for inherited primitives with function defaults. In this case we
11730         use the tagged type's tag directly as the controlling argument for
11731         the calls.
11732         (Expand_Call): Name change on call to Expand_Dispatch_Call.
11734         * sprint.adb (Sprint_Node_Actual): Split
11735         N_Formal_Subprogram_Declaration into two alternatives for the new
11736         cases N_Formal_Abstract_Subprogram_Declaration and
11737         N_Formal_Concrete_Subprogram_Declaration.
11738         Char_Literal_Value field is now a Uint.
11740         * trans.c: Get rid of junk Uint2 reference.
11741         Char_Literal_Value field is now a Uint.
11742         (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
11743         (gigi): Correct third arg to gimplify_body.
11745         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
11746         (TYPE_LANG_FLAG_0): Check for record or union.
11748         * treepr.adb: Char_Literal_Value field is now a Uint
11750         * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
11751         UI_From_CC.
11753         * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
11754         Add full UTF-32 support
11755         Char_Code is now 32 bits
11757         * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
11758         wide character UTF_32 line terminators.
11759         Initialize Main_Source_File to avoid error when no main
11760         source is loaded.
11762         * errout.adb (Finalize): Do not check Num_SRef_Pragmas
11763         (Main_Source_File) when no main source has been loaded, to avoid
11764         potential crash.
11766 2005-02-09  Robert Dewar  <dewar@adacore.com>
11768         * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
11769         Fix name of Set routine
11771         * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
11772         fixed packages.
11774         * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
11775         a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
11776         fixed packages
11778         * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
11779         forms of Get_Line subprograms for AI-301.
11781         * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
11782         a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
11783         a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
11784         a-stwima.ads: Minor reformatting.
11786 2005-02-09  Doug Rupp  <rupp@adacore.com>
11787             Thomas Quinot  <quinot@adacore.com>
11789         * adaint.c, adaint.h
11790         [VMS] (to_ptr32): New function.
11791         (MAYBE_TO_PTR32): New macro.
11792         (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
11793         for pointer size.
11794         [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
11795         [VMS] (#define fork()): Remove since unneccessary.
11796         (__gnat_set_close_on_exec): New routine to support
11797         GNAT.OS_Lib.Set_Close_On_Exec.
11799         * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
11800         the parent side as close-on-exec so that they are not inherited by the
11801         child.
11803         * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
11804         set or clear the FD_CLOEXEC flag on a file descriptor.
11806 2005-02-09  Eric Botcazou  <ebotcazou@adacore.com>
11807             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11809         Fix for c330001 - PR ada/19386
11811         * decl.c:
11812         (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
11813         on the field if Pragma Component_Alignment (Storage_Unit).
11814         (gnat_to_gnu_entity, case object): Do not treat a renaming that has
11815         side-effects as if it were a constant; also make SAVE_EXPR to protect
11816         side-effects.
11817         (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
11818         UNION_TYPE.
11819         (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
11820         (components_to_record): Test it.
11821         Fix improper usage of REFERENCE_CLASS_P.
11823         * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
11824         RECORD_TYPE.
11826         * utils2.c: Minor reformatting.
11828         * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
11829         handle other cases like RECORD_TYPE.
11831         * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
11833 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
11835         * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
11836         component of an array of arrays in an assignment context, and the
11837         aggregate has component associations that require sliding on
11838         assignment, force reanalysis of the aggregate to generate a temporary
11839         before the assignment.
11840         (Must_Slide): Make global to the package, for use in Gen_Assign.
11842 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
11844         * exp_ch4.adb (Expand_Composite_Equality): If a component is an
11845         unchecked union with no inferable discriminants, return a
11846         Raise_Program_Error node, rather than inserting it at the point the
11847         type is frozen.
11848         (Expand_Record_Equality, Component_Equality): Handle properly the case
11849         where some subcomponent is an unchecked union whose generated equality
11850         code raises program error.
11852 2005-02-09  Doug Rupp  <rupp@adacore.com>
11854         * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
11855         [VMS] (#define exit hack): Remove.
11857 2005-02-09  Pascal Obry  <obry@adacore.com>
11858             Arnaud Charlet <charlet@adacore.com>
11860         * init.c (__gnat_initialize): Add a new parameter eh which contains the
11861         address of the exception registration. The Win32 version of this
11862         routine calls __gnat_install_SEH_handler() to initialize the SEH
11863         (Structured Exception Handling) handler.
11864         (__gnat_error_handler) [Win32]: Removed. Not needed as we use
11865         SEH (Structured Exception Handling) now.
11866         (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
11867         (__gnat_initialize for ppc-vxworks): Adjust comments and the
11868         preprocessor condition protecting the call to the extra eh setup
11869         subprogram, which is only available for the ppc target.
11870         (__gnat_clear_exception_count): replaced reference to
11871         variable taskIdCurrent by call to taskIdSelf(), cleaner.
11873         * seh_init.c: New file.
11875         * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
11876         (GNATBIND_OBJS): Idem.
11878         * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
11879         routine takes a new parameter (a pointer to the exception registration
11880         for the SEH (Structured Exception Handling) support.
11882         * raise.h: (__gnat_install_SEH_handler): New prototype.
11883         Update copyright notice.
11885         * s-tassta.adb (Task_Wrapper): Declare the exception registration
11886         record and initialize it by calling __gnat_install_SEH_handler.
11888 2005-02-09  Vincent Celier  <celier@adacore.com>
11890         * make.adb (Gnatmake): Do not fail when the main project has no object
11891         directory.
11893 2005-02-09  Doug Rupp  <rupp@adacore.com>
11895         * Makefile.in [VMS] (LN,LN_S): Define as cp -p
11896         Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
11897         [VMS]: Add translations for g-enblsp.adb.
11899         * s-asthan-vms.adb: Removed.
11900         * s-asthan-vms-alpha.adb: Added.
11902 2005-02-09  Pascal Obry  <obry@adacore.com>
11904         * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
11905         (LIBGNAT_OBJS): Add seh_init.o.
11907 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
11909         PR ada/16592
11911         * Makefile.in: Link all gnat tools with -static-libgcc, since
11912         -shared-libgcc is now used by default on some systems (e.g. linux with
11913         recent binutils).
11914         Remove references to Makefile.prolog/generic, no longer used.
11916 2005-02-09  Vincent Celier  <celier@adacore.com>
11918         * prj-makr.adb (Process_Directory): Put file name in canonical case
11919         before matching against the patterns.
11920         If gnatname has been invoked as <prefix>-gnatname
11921         then invoke the compiler as <prefix>-gcc, not just "gcc".
11923 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
11925         * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
11926         with expansion disabled. The actual subtype is needed among other
11927         places when the selected component appears in the context of a loop
11928         bound, and denotes a packed array.
11929         (Operator_Check): Always use the first subtype in the
11930         error message, to avoid the appearance of internal base types.
11931         (Transform_Object_Operation): Copy each actual in full
11932         to the parameter associations of the constructed call, rather than
11933         using the shallow copy mechanism of New_Copy_List. This ensures that
11934         the chaining of named associations is done properly.
11935         (Complete_Object_Operation): Rewrite node, rather than
11936         replacing it, so that we can trace back to the original selected
11937         component.
11939         * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
11940         and calls that use object notation, if the called function is not
11941         declared  in a withed unit, place the elaboration constraint on the
11942         unit in the context that makes the function accessible.
11943         (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
11944         imposes an elaboration constraint between two packages.
11946 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
11948         * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
11949         views of a private type after handling its private dependents, to
11950         maintain proper stack discipline between entry and exit from the
11951         package.
11953 2005-02-09  Cyrille Comar  <comar@adacore.com>
11955         * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
11956         Minor reformatting.
11958 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
11960         * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
11961         fields for foreign threads.
11963 2005-02-09  Doug Rupp  <rupp@adacore.com>
11965         * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
11966         recursion warnings when compiled with -gnatdm.
11968 2005-02-09  Robert Dewar  <dewar@adacore.com>
11970         * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
11971         Slight fix to documentation of -gnaty with no parameters
11973         * xr_tabls.ads: Add ??? comment for missing overall comment
11975         * xsinfo.adb: Make default file name be sinfo.h, since this is what
11976         we now use by default.
11978         * xsnames.adb: Adjust end of file test to look for five space followed
11979         by '#' instead of six spaces. The format of xsnames.adb was modified
11980         in the last update.
11982         * a-numeri.ads: Add reference to AI-388 for greek letter pi
11983         identifier.
11985         * clean.adb: Minor reformatting.
11987         * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
11988         gnatname.adb: Minor reformatting
11989         Add 2005 to copyright output when utility is run
11991         * csets.adb: Eliminate obsolete comment
11993         * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
11994         Update comments.
11996         * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
11998 2005-02-09  Sergey Rybin  <rybin@adacore.com>
12000         * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
12001         the difference between compact and incompact layout and add the record
12002         representation clause to the example illustrating different layouts.
12003         Add the description of '-A5' gnatpp option ("align 'AT' keywords in
12004         component clauses").
12006 2005-02-09  Florian Villoing  <villoing@adacore.com>
12008         * gnat_ugn.texi: Fix typos.
12009         Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
12010         @file.
12011         Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
12012         in the generated documentation.
12014 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
12016         * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
12017         longer supported.
12018         Update linker wrapper when linking with non GNU C++.
12020 2005-02-09  Pascal Obry  <obry@adacore.com>
12022         * gnat_ugn.texi:
12023         Document the procedure to debug the DllMain routine on Windows.
12024         Add note about -funwind-tables and mixed Ada and C/C++ programming in
12025         ZCX mode.
12026         Document new BIND qualifer /RETURN_CODES=VMS.
12028 2005-02-09  Ben Brosgol  <brosgol@adacore.com>
12030         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
12031         Edited gnatmetric chapter
12033 2005-02-09  Robert Dewar  <dewar@adacore.com>
12035         * gnat_rm.texi:
12036         Changes to document new wide wide character support
12037         For AI-285
12038         Update documentation on Normalize_Scalars and Initialize_Scalars
12040 2005-02-09  Pascal Obry  <obry@adacore.com>
12042         * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
12044 2005-02-09  Jose Ruiz  <ruiz@adacore.com>
12046         * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
12047         from the VxWorks kernel) that is needed for getting the active
12048         priority of the different tasks.
12050         * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
12051         Use a pragma Elaborate_Body in the spec file instead.
12052         Noticed by code reading.
12054 2005-02-09  Thomas Quinot  <quinot@adacore.com>
12056         * exp_util.ads: Minor correction in comment.
12058 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
12060         * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
12061         since this procedure is now too complex to be worth inlining.
12063 2005-02-09  Richard Henderson  <rth@redhat.com>
12065         * utils.c (gnat_define_builtin): Remove.
12066         (gnat_install_builtins): Use build_common_builtin_nodes.
12068 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
12070         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
12071         a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
12072         a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
12073         a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
12074         a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
12075         a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
12076         a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
12077         a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
12078         a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
12079         a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
12080         a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
12081         a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
12082         a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
12083         a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
12084         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
12085         a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
12086         a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
12087         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
12088         a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
12089         a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
12090         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
12091         a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
12092         a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
12093         a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
12094         a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
12095         a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
12096         a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
12097         a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
12098         a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
12099         a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
12100         a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
12101         a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
12102         a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
12103         a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
12104         library.
12106 2005-01-27  Laurent GUERBY <laurent@guerby.net>
12108         * Makefile.in: Fix a-intnam.ads from previous commit,
12109         add 2005 to copyright.
12110         * a-intman-rtems.ads: Renamed to...
12111         * a-intnam-rtems.ads:
12113 2005-01-27  Laurent GUERBY <laurent@guerby.net>
12115         * Makefile.in: Rename GNAT RTEMS specific files.
12116         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
12117         5rosinte.ads, 5rparame.adb: Replaced by files below.
12118         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
12119         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
12121 2005-01-27  Joel Sherrill <joel.sherrill@oarcorp.com>
12122             Laurent GUERBY <laurent@guerby.net>
12124         PR ada/19488
12125         * 5rosinte.ads: Add No_Key constant.
12126         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
12127         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
12129 2005-01-26  Laurent GUERBY <laurent@guerby.net>
12131         PR ada/19414
12132         * i-cobol.adb (Valid_Numeric): Handle zero length case.
12134 2005-01-20  Richard Henderson  <rth@redhat.com>
12136         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
12137         a-intnam-linux.ads and system-linux-alpha.ads.
12138         * a-intnam-linux-alpha.ads: Remove file.
12139         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
12140         * system-linux-alpha.ads: New file.
12142 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
12144         PR ada/13470
12145         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
12146         set to the new string.
12148 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
12150         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
12151         to True.
12153 2005-01-18  Richard Henderson  <rth@redhat.com>
12155         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
12156         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
12157         for alpha-linux.
12158         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
12160 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
12162         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
12163         (GCC_ZCX_Support): Likewise.
12165 2005-01-11  Bastian Blank  <waldi@debian.org>
12167         * system-linux-s390.ads: Define Preallocated_Stacks.
12168         * system-linux-s390x.ads: Likewise.
12170 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
12172         * gnat_ugn.texi: Fix texi errors with null variables.
12174 2005-01-03  Thomas Quinot  <quinot@adacore.com>
12176         * gen-soccon.c: New utility program to generate g-soccon.ads
12177         automatically.
12179         * socket.c, gsocket.h: Split inclusion of system header files into a
12180         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
12182         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
12183         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
12184         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
12185         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
12186         should not be edited by hand anymore, but should be regenerated using
12187         gen-soccon.
12189 2005-01-03  Robert Dewar  <dewar@adacore.com>
12190             Ed Schonberg  <schonberg@adacore.com>
12191             Vincent Celier  <celier@adacore.com>
12193         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
12194         on/off, since this is an obsolescent feature, for which we now generate
12195         a warning.
12197         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
12198         warning mode is set and obsolescent usage of this attribute occurs.
12199         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
12200         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
12201         predates, and partly motivates, the adoption of the AI.
12202         Implement new Ada 2005 attribute Mod
12204         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
12205         attribute Mod.
12207         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
12209         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
12210         pragma restrictions.
12211         New entry for Ada 2005 attribute Mod.
12213         * par-prag.adb:
12214         Add recognition of new pragma Restrictions No_Dependence
12215         Recognize restriction No_Obsolescent_Features at parse time
12217         * bcheck.adb: Add circuitry for checking for consistency of
12218         No_Dependence restrictions.
12220         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
12221         restrictions.
12223         * restrict.ads, restrict.adb: Add subprograms to deal with
12224         No_Dependence restrictions.
12226         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
12227         restrictions.
12229         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
12230         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
12232         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
12233         dummy parameter to scng instantiation.
12234         Needed for new restriction No_Obsolescent_Features
12236         * scn.adb: (Obsolescent_Check): New procedure
12237         Needed for new restriction No_Obsolescent_Features
12239         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
12240         specified by AI-285, needed for implementation of AI-388 (adding greek
12241         pi to Ada.Numerics).
12242         Add new generic formal to scng, needed for new restriction
12243         No_Obsolescent_Features.
12245         * s-rident.ads: Add new restriction No_Obsolescent_Features.
12247         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
12248         restrictions lines.
12249         (Scan_ALI): When finding an unexpected character on an R line, raise
12250         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
12251         Ignore_Errors is True, default restrictions are set and scanning of the
12252         ALI file continues with the next line. Also, when Bad_R_Line is raised
12253         and Ignore_Errors is True, skip to the end of le line.
12255         * sem_ch10.adb: Check that explicit with's do not violate
12256         No_Dependence restrictions.
12257         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
12258         illegal context clauses containing child units of instance.
12260         * sem_prag.adb: Processing and checking for new No_Dependence
12261         restrictions.
12262         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
12263         analyze and check the External argument.
12265         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
12267 2005-01-03  Robert Dewar  <dewar@adacore.com>
12269         * atree.adb: Add a fifth component to entities
12270         This allows us to add 32 flags and four new fields
12272         * atree.ads: Add a fifth component to entities
12273         This allows us to add 32 flags and four new fields
12275         * einfo.ads, einfo.adb: Document new fields and new flags now available
12276         Add routines for printing new fields
12278         * treepr.adb: Call routines to print out additional fields if present
12280 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
12282         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
12283         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
12285         * Makefile.in: Add support to build shared Ada libraries on solaris x86
12286         Remove gpr2make, replaced by gprmake.
12287         Remove references to gnatmem and libaddr2line.
12288         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
12289         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
12290         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
12291         a-numaux-darwin.ads and a-numaux-darwin.adb
12292         Enable mlib-tgt-lynxos.adb on lynxos.
12294         * Make-lang.in: Remove rules for gpr2make.
12295         When generating sdefault.adb, do not call Relocate_Path
12296         on S3 for function Target_Name, as it is not a path.
12297         Remove references to gnatmem and libaddr2line.
12299         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
12300         files.
12302 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
12304         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
12305         address is incompatible with its base type alignment constraints when
12306         this can be decided statically.
12308 2005-01-03  Olivier Hainque  <hainque@adacore.com>
12310         * decl.c (compatible_signatures_p): New function. The intended purpose
12311         is to check if two function signatures for a call-site and a callee are
12312         compatible enough for the call to be valid. The underlying purpose is
12313         to check if a call to a mapped builtin is using the right interface.
12314         The current code actually does not check antyhing - this a placeholder
12315         for future refinements.
12316         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
12317         builtin calls for convention Intrinsic.
12319         * gigi.h (builtin_decl_for): Declare (new function).
12321         * utils.c (gnat_install_builtins): Install the target specific builtins.
12322         (builtin_decl_for): New function, provide a dummy body for now.
12324 2005-01-03  Geert Bosch  <bosch@adacore.com>
12326         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
12327         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
12328         (Pred): Implement in terms of Succ.
12330         * trans.c (convert_with_check): Reimplement conversion of float to
12331         integer.
12333 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
12334             Vincent Celier  <celier@adacore.com>
12336         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
12337         bounds can be negative, and must be declared Int, not Nat.
12339         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
12340         array is checked after using the index in the array.
12342         * makegpr.adb (Add_Switches): Check if there is a package for the
12343         processor. If there is no package, do not look for switches.
12345 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
12347         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
12348         generation of predefined stream operations (specs and bodies) should
12349         proceed. Under various restrictions these subprograms must not be
12350         generated.
12352 2005-01-03  Thomas Quinot  <quinot@adacore.com>
12354         * exp_dist.adb:
12355         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
12356         amount of PCS-specific code in RACW stubs generation.
12357         (Copy_Specification): Set Etype on copied formal parameter entities, as
12358         this information is needed for PolyORB stubs generation.
12359         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
12360         variable Dynamic_Async.
12361         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
12362         (Build_RPC_Receiver_Specification): Make generic again, as recent
12363         changes have allowed RPC receivers to have the same profile for both
12364         variants of the PCS.
12365         Reorganise RPC receiver generation to reduce differences between the
12366         structure of GARLIC and PolyORB RPC receivers.
12367         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
12368         PCS-specific.
12369         Simplify elaboration code for RCI packages.
12371         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
12372         generation to reduce differences between the structure of GARLIC and
12373         PolyORB RPC receivers.
12375         * s-stratt.adb: Fix typo in comment.
12377 2005-01-03  Thomas Quinot  <quinot@adacore.com>
12379         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
12380         copied from Make_Init_Call).
12382         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
12383         reads and assignments on a temporary variable declared with appropriate
12384         discriminants.
12386 2005-01-03  Robert Dewar  <dewar@adacore.com>
12388         * i-c.adb (To_C): Raise CE if string is null and Append_Null
12390 2005-01-03  Robert Dewar  <dewar@adacore.com>
12392         * i-cstrin.adb (Update): Do not append a null in form called with a
12393         String. This avoids unintended behavior.
12395 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
12397         PR ada/17527
12398         * init.c: Fix warnings on Free BSD section.
12400 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
12402         PR ada/16949
12403         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
12404         xsinfo.adb).
12406 2005-01-03  Vincent Celier  <celier@adacore.com>
12408         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
12409         libraries when Unique_Compile is True (-u switch).
12410         (Gnatmake): ditto.
12412 2005-01-03  Robert Dewar  <dewar@adacore.com>
12414         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
12415         upper case letter or underscore after W, as allowed by spec.
12417 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
12419         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
12420         darwin port by using proper type definitions from header files.
12421         Use SIGTERM instead of SIGABRT for SIGADAABORT.
12423 2005-01-03  Robert Dewar  <dewar@adacore.com>
12425         * par.adb: Enhance error message handling for configuration file
12426         pragmas.
12428 2005-01-03  Robert Dewar  <dewar@adacore.com>
12430         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
12431         removed during the previous update (test properly for case of dividing
12432         largest negative number by -1, which generates overflow).
12434 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
12435             Sergey Rybin  <rybin@adacore.com>
12437         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
12438         to use as the defining identifier for a formal package.
12439         (Remove_Parent): If the instance takes place within (an instance of)
12440         a sibling, preserve private declarations of common parent.
12442 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
12444         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
12445         to determine whether one of the operands is a fixed-point type for
12446         which a user-defined multiplication or division operation might be
12447         defined.
12449         * sem_res.adb (Valid_Conversion): The legality rules for conversions
12450         of access types are symmetric in Ada 2005: either designated type can
12451         be unconstrained.
12453 2005-01-03  Vincent Celier  <celier@adacore.com>
12455         * s-fileio.adb (Temp_File_Record): Change length of string component
12456         Name from L_tmpnam + 1 to max_path_len + 1.
12458 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
12460         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
12461         Self_Id.Deferral_Level = 0.
12462         (Do_Pending_Action): Move this function to the spec.
12464         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
12465         Do_Pending_Action explicitely when needed, in case we're using
12466         No_Abort restrictions.
12468         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
12469         deferral level since it will not get changed by the generated code.
12470         Keeping a default value of 1 would prevent some operations (e.g.
12471         select or delay) to proceed successfully.
12473 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
12474             Robert Dewar  <dewar@adacore.com>
12475             Cyrille Comar  <comar@adacore.com>
12477         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
12478         porting guide chapter (vms version).
12479         Revised doc title (removed "for native platforms") and subtitle.
12480         Add discussion on warning flag for obsolescent features. First we
12481         note that it applies to obsolete GNAT features, which was previously
12482         omitted. Second we contrast the behavior with that of the new
12483         Ada 2005 AI-368 restriction No_Obsolescent_Features.
12484         Preliminary rewriting of GNAT & libraries chapter in order to take
12485         into account default project locations & new project manager
12486         capabilities.
12488 2005-01-03  Robert Dewar  <dewar@adacore.com>
12490         * cstand.adb (Create_Operators): Clean up format and documentation of
12491         unary and binary operator result tables. No change in code, just
12492         reformatting and addition of comments.
12494         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
12495         sem_ch2.adb: Minor reformatting
12497         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
12498         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
12499         comments for Tree_Read and Tree_Write.
12501 2005-01-03  Pascal Obry  <obry@adacore.com>
12503         * exp_attr.ads: Minor reformatting.
12505 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
12507         * comperr.adb (Compiler_Abort): Add specialized message for GAP
12508         versions.
12510 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
12512         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
12513         whether the ancestor type is private, as may be the case with nested
12514         instantiations.
12516 2004-12-30  Sohail Somani <sohail@sohailsomani.com>
12518         PR ada/19128
12519         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
12521 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
12523         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
12524         * utils2.c (build_unary_op): Likewise.
12526 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12528         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
12530 2004-12-19  Richard Henderson  <rth@redhat.com>
12532         * trans.c (gigi): Update gimplify_body call.
12534 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
12536         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
12538 2004-12-07  Ed Falis  <falis@adacore.com>
12540         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
12541         current task being suspended.
12543         * init.c (__gnat_clear_exception): added to reset VxWorks exception
12544         count.
12545         (__gnat_map_signal): removed test for current task being suspended.
12547 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
12549         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
12550         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
12551         targets (such as AAMP).
12553 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
12555         * atree.adb (Visit_Itype): Create a new name for the generated itype,
12556         because the back-end may otherwise treat it as a redefinition of the
12557         old symbol.
12559 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
12561         * back_end.adb (Scan_Back_End_Switches): Accept --param.
12563         * lang-specs.h: Accept --param.
12565 2004-12-07  Vincent Celier  <celier@adacore.com>
12567         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
12568         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
12569         Current_Body_Suffix => Ada_Body_Suffix).
12570         Take into account Externally_Built attribute.
12572         * clean.adb (In_Extension_Chain): Always return False when one of the
12573         parameter is No_Project.
12574         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
12575         Ada_Language_Index).
12576         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
12577         Process_Languages for procedure Parse).
12579         * gnatcmd.adb (Carg_Switches): New table.
12580         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
12581         Adapt to name changes in package Prj (Current_Spec_Suffix =>
12582         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
12584         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
12585         Header_Num and function Hash are now declared in package Prj,
12586         not Prj.Com.
12588         * prj.adb (Suffix_Of): New function.
12589         (Set (Suffix)): New procedure.
12590         (Hash): One function moved from Prj.Com
12591         (Is_Present, Language_Processing_Data_Of): New functions
12592         (Set): Two new procedures
12593         (Add_Language_Name, Display_Language_Name): New procedures
12595         * prj.ads: (Suffix_Of): New function
12596         (Set (Suffix)): New procedure
12597         Add several types and tables for multi-language support.
12598         (Header_Num): Type moved from Prj.Com
12599         (Hash): Two functions moved from Prj.Com
12600         (Is_Present, Language_Processing_Data_Of): New functions
12601         (Set): Two new procedures
12602         (Add_Language_Name, Display_Language_Name): New procedures
12603         (Naming): Component name changes:
12604         Current_Spec_Suffix => Ada_Spec_Suffix,
12605         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
12606         Impl_Suffixes, Supp_Suffixes.
12607         (Project_Data): New components: Externally_Built, Supp_Languages,
12608         First_Language_Processing, Supp_Language_Processing, Default_Linker,
12609         Default_Linker_Path.
12611         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
12612         new package Language_Processing with its attributes (Compiler_Driver,
12613         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
12614         Binder_Driver, Default_Linker).
12616         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
12617         (Header_Num): Type moved to package Prj
12619         * prj-env.adb: Adapt to name changes in package Prj
12620         (Current_Spec_Suffix => Ada_Spec_Suffix,
12621         Current_Body_Suffix => Ada_Body_Suffix).
12623         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
12624         default to the project path, except the "-" is one of the directories
12625         in env var ADA_PROJECT_PATH.
12626         (Current_Project_Path): Global variable, replacing Project_Path
12627         that was in the body of Prj.Part.
12628         (Project_Path): New function
12629         (Set_Project_Path): New procedure
12630         Initialize Current_Project_Path during elaboration of the package
12631         Remove dependency on Prj.Com, no longer needed
12633         * prj-ext.ads (Project_Path): New function
12634         (Set_Project_Path): New procedure
12636         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
12637         suffix is defined for language <lang>.
12638         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
12639         accessing directly the components of Naming.
12640         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
12641         Reorganise of this package.
12642         Break procedure Check in several procedures.
12644         * prj-nmsc.ads: Replace all procedures (Ada_Check,
12645         Other_Languages_Check and Language_Independent_Check) with a single
12646         procedure Check.
12648         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
12649         Process_Languages, no longer needed.
12651         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
12652         Current_Project_Path.
12653         Remove elaboration code, moved to the body of Prj.Ext
12654         Use new function Prj.Ext.Project_Path instead of old variable
12655         Project_Path.
12656         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
12657         When comparing with project paths on the stack, first put the resolved
12658         path in canonical case.
12659         (Parse_Single_Project): Set the path name of the project file in the
12660         tree to the normalized path.
12662         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
12663         parameter Process_Languages, no longer needed.
12664         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
12665         Other_Languages_Check.
12667         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
12668         to store the resolved canonical path of the project file.
12669         Remove dependency to Prj.Com, no longer needed
12671         * prj-util.adb: Adapt to name changes in package Prj
12672         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
12673         Ada_Body_Suffix).
12675         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
12676         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
12677         Externally_Built, Include_Option, Language_Processing.
12679         * makegpr.adb: Numerous changes due to changes in packages
12680         Prj and Prj.Nmsc.
12682         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
12683         default to the project path, except whe "-" is one of the directories
12684         in env var ADA_PROJECT_PATH.
12685         (Gnatls): In verbose mode, add the new section "Project Search Path:"
12687 2004-12-07  Robert Dewar  <dewar@adacore.com>
12689         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
12691         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
12692         set -gnatR3m mode.
12694         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
12695         flag. No longer needed now that we handle this in gnat1drv.adb.
12697         * repinfo.ads: Minor reformatting
12699 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12700             Olivier Hainque  <hainque@adacore.com>
12701             Eric Botcazou  <ebotcazou@adacore.com>
12703         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
12704         TYPE_SIZE_UNIT of result type if SIZE is not specified.
12705         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
12706         of a bitfield, which we know is useless and causes trouble because of
12707         alignment implications.
12709         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
12710         BSS sections.
12711         (process_attributes): Clear DECL_COMMON again when a section attribute
12712         is present.
12713         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
12714         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
12715         (create_field_decl): Special case ADDRESSABLE negative to mean
12716         "no bitfield creation", to be used by make_aligning_type. Don't
12717         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
12718         fields claimed addressable still have to be bitfields. Use
12719         value_factor_p instead of a raw binop construction to check for the
12720         position's alignment.
12722 2004-12-07  Geert Bosch  <bosch@adacore.com>
12724         * eval_fat.adb: Revert previous change.
12726 2004-12-07  Thomas Quinot  <quinot@adacore.com>
12727             Ed Schonberg  <schonberg@adacore.com>
12729         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
12730         with an implicit dereference as its prefix, use
12731         Insert_Explicit_Dereference instead of merely rewriting the prefix into
12732         an explicit dereference. This ensures that a reference to the original
12733         prefix is generated, if appropriate.
12735         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
12736         dereference is rewritten to an explicit one, generate a reference to
12737         the entity denoted by its prefix using the original prefix node, so
12738         the dereference can be properly recorded as a read of the denoted
12739         access value, if appropriate.
12741         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
12742         emitting 'assigned but never read' warning on a variable on the basis
12743         that it has an access type.
12744         (Check_References): Emit unreferenced warning when the scope is a
12745         subprogram body.
12747 2004-12-07  Robert Dewar  <dewar@adacore.com>
12748             Ed Schonberg  <schonberg@adacore.com>
12750         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
12751         intrinsic
12753         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
12754         leaving call unchanged.
12755         This deals with the case where the pragma Import specified
12756         an external name, to be handled by the back end.
12758         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
12759         subprogram which is Imported with convention Intrinsic if an
12760         External_Name argument is specified.
12761         (Process_Import_Or_Interface): Properly diagnose link name argument.
12762         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
12763         with Sem_Ch6.Cannot_Inline.
12764         (Process_Inline): Provide separate warning for inapplicable inline
12765         pragma.
12766         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
12767         treatment is uniform on different targets.
12769 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
12771         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
12772         construct is rewritten, preserve end label to permit source navigation.
12774 2004-12-07  Thomas Quinot  <quinot@adacore.com>
12776         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
12777         Specific_Build_Stub_Target): New subprograms.
12778         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
12779         the PCS implementation used, using the above PCS-customized subprograms.
12780         Minor reformatting.
12781         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
12782         for generation of DSA code targeted to the PolyORB PCS.
12783         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
12784         implementation of the partition communication subsystem in ancillary
12785         subprograms.
12786         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
12787         PolyORB_Support.Build_Stub_Type): New subrograms containing the
12788         PCS-specific part of Add_Stub_Type.
12789         (Insert_Partition_Check): Use runtime library function to perform
12790         E.4(19) check.
12792         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
12793         (RE_Same_Partition): New entity, from s-parint.
12795         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
12797 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
12799         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
12800         Output the copyright message on a separate line from the version
12801         message.
12803 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
12805         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
12806         compile-time warning.
12808 2004-12-07  Robert Dewar  <dewar@adacore.com>
12810         * g-regpat.adb: (Match): Change a misuse of or to or else
12812 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
12814         * lib-xref.adb:
12815         (Generate_Reference): Handle properly a reference to an entry formal,
12816          when an accept statement has a pragma Unreferenced for it.
12818         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
12819         and the Has_Pragma_Unreferenced flag for each formal before analyzing
12820         the body, to ensure that warnings are properly emitted for each accept
12821         statement of a given task entry.
12823 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
12825         * Makefile.in: Add support for foreign threads on VMS.
12827 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12829         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
12830         Remove.
12831         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
12833         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
12835         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
12836         exception.
12837         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
12839 2004-12-07  Robert Dewar  <dewar@adacore.com>
12841         * nlists.adb (Prepend_Debug): Remove parameters and nest within
12842         Prepend.
12843         (Remove_Next_Debug): Same fix
12845         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
12846         maintain back pointers now, though we did not used to, and comments
12847         were out of date).
12848         (Prepend): Remove pragma Inline.
12849         (Remove_Next): Same cleanup
12851 2004-12-07  Thomas Quinot  <quinot@adacore.com>
12853         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
12854         used to record an implicit dereference as a read operation on its
12855         prefix when operating under -gnatc. Necessary to avoid spurious
12856         'variable assigned but never read' warnings in that mode.
12857         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
12858         is a non-overloaded implicit dereference, call the above subprogram to
12859         ensure proper recording of references.
12861 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
12863         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
12864         to be resolved later as part of Analyze_Iteration_Scheme's call to
12865         Make_Index.
12867 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
12869         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
12870         prefix is not a scalar type, place error message on prefix, not on
12871         type entity.
12873 2004-12-07  Bernard Banner  <banner@adacore.com>
12875         * vxaddr2line.adb: Add support for x86 vxworks
12877 2004-12-07  Thomas Quinot  <quinot@adacore.com>
12879         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
12880         documentation of the behaviour of these functions when passed an IP
12881         address that has no record in the system hosts database and no reverse
12882         record in the DNS.
12884         * cstand.adb, a-tags.ads: Fix typos in comment.
12886 2004-12-07  Robert Dewar  <dewar@adacore.com>
12888         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
12889         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
12890         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
12891         s-poosiz.ads: Minor reformatting
12893         * make.adb: Minor reformatting
12894         Add some ??? comments asking for more comments
12896         * s-poosiz.adb: Minor reformatting
12897         Add comments on alignment requirement
12899         * sinfo.ads: Remove obsolete comment and fix typo.
12901 2004-12-07  Vincent Celier  <celier@adacore.com>
12902             Sergey Rybin  <rybin@adacore.com>
12904         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
12905         Files" with the new tool and package names.
12906         Reformatting to suppress most of the warnings for line too long
12907         Document the new section "Project Search Path:" in the output of
12908         gnatls -v.
12909         Add gnatmetric section
12911 2004-12-07  Vincent Celier  <celier@adacore.com>
12913         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
12914         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
12915         and -eit to -ept. Added qualifier
12916         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
12918 2004-11-27  Andreas Schwab  <schwab@suse.de>
12920         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
12922 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
12924         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
12925         internal implementation unit GNAT.Sockets.Thin,
12926         as their usage for sockets is non-portable (using the read and write
12927         functions from the system runtime library is fine on UNIX but won't
12928         work under Windows).
12930         * mingw32.h: Update copyright notice.
12932 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
12934         * ada-tree.h: Minor reformatting of previous change to avoid lines
12935         longer than 79 characters.
12937 2004-11-25  Olivier Hainque  <hainque@adacore.com>
12939         * tb-gcc.c: GCC infrastructure based implementation of
12940         __gnat_backtrace.
12942 2004-11-24  Steven Bosscher  <stevenb@suse.de>
12944         * misc.c (gnat_post_options): Don't clear
12945         flag_inline_functions.
12947 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
12949         PR ada/17986
12950         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
12951         tree.
12953 2004-11-21  Andreas Jaeger  <aj@suse.de>
12955         * stylesw.adb: Change Style_Check_Subprogram_Order to
12956         Style_Check_Order_Subprograms.
12958 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
12960         * adaint.h, adaint.c
12961         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
12962         to avoid warnings.
12963         Add also a cast to kill another warning.
12964         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
12965         parameter with the priority class of the parent process instead of
12966         always using the NORMAL_PRIORITY_CLASS.
12967         (__gnat_dup): New function.
12968         (__gnat_dup2): New function.
12969         (__gnat_is_symbolic_link): Enable the effective body of this
12970         function when __APPLE__ is defined.
12972         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
12973         Update comments.
12975 2004-11-18  Olivier Hainque  <hainque@adacore.com>
12977         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
12978         address of which may be used to represent "others" and "all others"
12979         choices in exception tables, instead of the current harcoded
12980         (void *)0 and (void *)1.
12981         (Setup_Exception): Do nothing in the GNAT SJLJ case.
12983         * gigi.h (others_decl, all_others_decl): New decls representing the
12984         new Others_Value and All_Others_Value objects.
12985         (struct attrib): Rename "arg" component as "args", since GCC expects a
12986         list of arguments in there.
12988         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
12989         corresponding objects exported by a-exexpr, instead of hardcoded dummy
12990         addresses.
12992         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
12993         others_decl and all_others_decl instead of hardcoded dummy addresses
12994         to represent "others" and "all others" choices, which is cleaner and
12995         more flexible with respect to the possible eh pointer encoding policies.
12997         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
12998         (process_attributes): Account for the naming change of the "args"
12999         attribute list entry component.
13001         * decl.c (build_attr_list): Rename into prepend_attributes to allow
13002         cumulating attributes for different entities into a single list.
13003         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
13004         attributes for the current entity and propagate first subtype
13005         attributes to other subtypes.
13006         <E_Procedure>: Attribute arguments are attr->args and not
13007         attr->arg any more.
13008         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
13009         argument provided, as this is what GCC expects. Use NULL_TREE instead
13010         of 0 for trees.
13012 2004-11-18  Robert Dewar  <dewar@adacore.com>
13014         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
13015         Minor reformatting througout (including new function specs)
13016         Add ??? comments asking for clarification.
13018 2004-11-18  Thomas Quinot  <quinot@adacore.com>
13020         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
13021         incomplete duplicate implementation of this subprogram from butil.
13023 2004-11-18  Thomas Quinot  <quinot@adacore.com>
13025         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
13026         procedures factors the common processing for building an RPC receiver
13027         for an RCI package or an RACW type.
13028         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
13029         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
13030         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
13031         in use.
13032         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
13033         Add_RACW_Features.
13034         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
13035         Add_RAST_Features.
13036         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
13037         distribution subprogram identifiers that are either subprogram numbers
13038         or strings.
13039         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
13040         string distribution identifiers assigned to a given subprogram.
13041         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
13042         (Add_RAS_Dereference_TSS): Add comments.
13043         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
13044         is not referenced yet because it will be used by the PolyORB DSA
13045         implementation.
13046         (Insert_Partition_Check): Remove fossile code.
13047         (First_RCI_Subprogram_Id): Document this constant.
13048         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
13049         RAS_Access TSS.
13050         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
13051         replaced with calls to Get_Library_Unit_Name_String. Previously there
13052         were several instances of the same code in different locations in the
13053         compiler; this checkin completes the replacement of all of these
13054         instances with calls to a common subprogram.
13055         Minor reformatting.
13057         * sem_dist.adb: Remove comment noting that RPC receiver generation
13058         should be disabled for RACWs that implement RASs.
13059         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
13061         * sem_util.ads, sem_util.adb (Has_Stream): New function
13062         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
13063         qualified name of a library unit into the name buffer.
13064         (Note_Possible_Modification): Generate a reference only
13065         if the context comes from source.
13067         * snames.ads (PCS_Names): New subtype corresponding to names of
13068         supported implementations of the Partition Communication Subsystem
13069         (PCS) (i.e. the runtime library support modules for the distributed
13070         systems annex).
13072 2004-11-18  Robert Dewar  <dewar@adacore.com>
13073             Ed Schonberg  <schonberg@adacore.com>
13075         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
13076         (Has_Rep_Pragma): New function
13077         (Has_Attribute_Definition_Clause): New function
13078         (Record_Rep_Pragma): Moved here from sem_ch13.adb
13079         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
13081         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
13083         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
13084         (Expand_Pragma_Psect_Object): New procedure
13085         These procedures contain the revised and cleaned up processing for
13086         these two pragmas. This processing was formerly in Sem_Prag, but
13087         is more appropriately moved here. The cleanup involves making sure
13088         that the pragmas are properly attached to the tree, and that no
13089         nodes are improperly shared.
13091         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
13092         pragmas to Exp_Prag, which is more appropriate.
13093         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
13094         check for duplicates Remove use of Is_Psected flag, no longer needed.
13095         Use new Make_String_Literal function with string.
13097         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
13098         that are functions return universal values, that have to be converted
13099         to the context type.
13100         Use new Make_String_Literal function with string.
13101         (Get_Stream_Convert_Pragma): New function, replaces the use of
13102         Get_Rep_Pragma, which had to be kludged to work in this case.
13104         * freeze.adb: Use new Has_Rep_Pragma function
13106         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
13107         function with string.
13108         Use new Has_Rep_Pragma function.
13110         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
13111         string argument.
13113 2004-11-18  Robert Dewar  <dewar@adacore.com>
13115         * errout.ads, errout.adb: (First_Sloc): New function
13117         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
13118         check (-gnatyx) instead of being included as a redundant construct
13119         warning.
13121         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
13122         Style_Check_Order_Subprograms.
13124         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
13125         stylesw.adb: Add Style_Check_Xtra_Parens
13127         * usage.adb: Add line for -gnatyx (check extra parens)
13129         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
13131 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
13132             Robert Dewar  <dewar@adacore.com>
13134         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
13135         discriminant of a constrained subtype, analyze the copy of the
13136         corresponding constraint, because in some cases it may be only
13137         partially analyzed.
13138         Removes long-lived ??? comments.
13140         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
13141         handled controlled or secondary-stack expressions within the
13142         iteration_scheme of a loop.
13144         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
13145         bounds that may contain functions calls, to prevent memory leaks when
13146         the bound contains a call to a function that uses the secondary stack.
13147         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
13148         generate temporaries for loop bounds that might contain function calls
13149         that require secondary stack and/or finalization actions.
13151         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
13152         selected component and the selector is overloadable (not just a
13153         function) treat as function call, Analyze_Call will disambiguate if
13154         necessary.
13155         (Analyze_Selected_Component): Do not generate an actual subtype for the
13156         selected component if expansion is disabled. The actual subtype is only
13157         needed for constraint checks.
13158         (Analyze_Allocator): If restriction No_Streams is set, then do
13159         not permit objects to be declared of a stream type, or of a
13160         composite type containing a stream.
13162         * restrict.ads: Remove the a-stream entry from Unit_Array, since
13163         No_Streams no longer prohibits with'ing this package.
13165         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
13166         discriminants, but the parent base has unknown discriminants, there is
13167         no discriminant constraint to inherit. Such a discrepancy can arise
13168         when the actual for a formal type with unknown discriminants is a
13169         similar private type whose full view has discriminants.
13170         (Analyze_Object_Declaration): If restriction No_Streams is set, then
13171         do not permit objects to be declared of a stream type, or of a
13172         composite type containing a stream.
13174 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
13176         * exp_dbug.ads: Update documentation to reflect simpler encoding for
13177         protected operations.
13179         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
13180         generated name, it complicates decoding in gdb and hinders debugging
13181         of protected operations.
13182         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
13183         flag for the protected entry barrier function.
13184         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
13185         flag for the protected entry function.
13187 2004-11-18  Nicolas Setton  <setton@adacore.com>
13189         * expect.c: Define __unix__ when __APPLE__ is defined.
13191         * Makefile.in: Inform the value of the variable GMEM_LIB in the
13192         Darwin-specific section.
13194         * lang-specs.h: Change the placement of the %1 marker.
13195         Works around the fact that gcc adds -fPIC by default under Darwin.
13197 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
13199         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
13200         type of the object with the packed array type, set the Analyzed flag
13201         on the object if it is an entity or simple indexed component, to avoid
13202         spurious type errors.
13204 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
13206         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
13207         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
13208         separate line from the version message.
13210 2004-11-18  Ed Falis  <falis@adacore.com>
13212         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
13213         vthreads.
13214         (init_float): Eliminate initialization of floating point status for
13215         AE653. The instructions have no effect for vThreads.
13217 2004-11-18  Vincent Celier  <celier@adacore.com>
13219         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
13220         gnatbind is invoked with -shared.
13222 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
13224         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
13225         for Detect_Blocking which is redundant with the check done within the
13226         procedure Protected_Single_Entry_Call.
13227         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
13228         Detect_Blocking which is redundant with the check done within the
13229         procedure Protected_Single_Entry_Call.
13231 2004-11-18  Vincent Celier  <celier@adacore.com>
13233         * makegpr.adb (Compile): Put the compiling switches (in package
13234         Compiler and on the command line) immediately after "-c", instead of
13235         at the end of the command line invocation of the compiler, when
13236         compiling a non-Ada file.
13237         (Build_Global_Archive): When there is no need to rebuild the archive,
13238         set Global_Archive_Exists, so that the archive is passed to the linker
13239         if one is needed.
13241 2004-11-18  Robert Dewar  <dewar@adacore.com>
13242             Sergey Rybin  <rybin@adacore.com>
13244         * gnat_ugn.texi:
13245         Remove extra paren check from list of checks for redundant constructs
13246         Add documentation of new -gnatyx style check (check extra parens)
13247         Remove paragraph about gnatelim debug options.
13249         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
13250         objects rather than forbidding dependencies on the package Ada.Streams.
13252         * sinfo.ads: Add ??? note that we should document pragmas passed to
13253         back end.
13255         * g-expect.ads: Fix a few typos in the comments.
13257 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
13259         * misc.c (gnat_handle_option): Use %< and %> for quoting in
13260         warning message.
13262 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13264         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
13266 2004-11-07  Andreas Schwab  <schwab@suse.de>
13268         * Makefile.in (install-gnatlib): Remove spurious hyphen.
13270 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
13272         PR ada/18228
13273         * Makefile.in (darwin): Set soext to .dylib.
13275 2004-10-26  Vincent Celier  <celier@gnat.com>
13276             Thomas Quinot   <quinot@act-europe.fr>
13278         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
13279         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
13280         there is no use of GNAT.Sockets.Constants.
13281         Remove remaining pragma Import for C_Write
13282         Remove C_Read and C_Write from internal implementation unit
13283         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
13284         the read and write functions from the system runtime library is fine
13285         on UNIX but won't work under Windows).
13287         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
13288         (Check_Selector): Use C_Recv instead of C_Read.
13289         Selectors are the GNAT.Sockets abstraction to perform a select()
13290         call on a set of descriptors. To allow abortion of an ongoing
13291         select operation, some data is written to a dedicated socket that
13292         is always monitored.
13293         Under Windows, the write and read library functions cannot operate
13294         on sockets, so we need to use send and recv instead, which is portable
13295         across all supported platforms.
13297         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
13298         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
13299         (using the read and write functions from the system runtime library is
13300         fine on UNIX but won't work under Windows).
13302 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
13304         * mlib-tgt-darwin.adb: New file.
13306         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
13307         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
13308         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
13309         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
13310         subprogram body.
13312         * Makefile.in: Add support for building shared libraries under Darwin.
13313         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
13314         the low level EH init subprogram to be called from __gnat_initialize.
13316         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
13317         indicates which options to pass to the archive indexer.
13319         * mlib-utl.adb: Add support for calling ranlib with additional
13320         options. This is needed for instance under Mac OS X.
13321         (Ranlib_Options): New global variable, used to store the potential
13322         options to pass to ranlib.
13323         (Ar): Use Ranlib_Options when spawning ranlib.
13324         (Initialize): Set the value of ranlib option.
13326 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
13328         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
13329         instead of 8K, to reflect the real potential needs for stack-checking
13330         in the ZCX case.
13332 2004-10-26  Pascal Obry  <obry@gnat.com>
13334         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
13336         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
13337         Windows only the initial thread stack size can be set so it is good to
13338         start we a low stack size.
13339         The OS will adjust the size as needed.
13341 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
13342             Nicolas Setton  <setton@act-europe.fr>
13344         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
13345         "__unix__" instead of "unix".
13346         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
13347         sections were just mistakenly ignored. The former is
13348         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
13349         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
13350         of hpux. This prevents an unwanted definition of the symbol
13351         convert_addresses in adaint.o.
13353 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
13355         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
13356         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
13358 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
13360         * a-filico.ads, a-filico.adb: fix incorrect header.
13362 2004-10-26  Javier Miranda  <miranda@gnat.com>
13364         * a-ststio.ads: Fix typo in identifier
13366 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
13368         * sem_ch4.adb: Minor reformatting.
13370 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
13372         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
13373         enabled, check the result of unary and binary operations when the
13374         expression is the right-hand side of an assignment.
13376 2004-10-26  Vincent Celier  <celier@gnat.com>
13378         * clean.adb (Delete): Do not output warnings when in quiet output and
13379         not in verbose mode.
13380         (Force_Deletions): New Boolean flag, defaulted to False
13381         (Delete): Only delete a file if it is writable, and when
13382         Force_Deletions is True.
13383         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
13384         (Usage): Line for new switch -f
13385         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
13386         own.
13388 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
13390         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
13391         JM type only if its size matches that of the wrapper.  When a size is
13392         prescribed and the field is not aliased, remove the wrapper of a JM
13393         type only if the size is not greater than that of the packed array.
13394         (gnat_to_gnu_entity): Change the extension of packed array wrappers
13395         from LJM to JM.
13397 2004-10-26  Geert Bosch  <bosch@gnat.com>
13399         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
13400         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
13401         (Pred): Implement in terms of Succ.
13403 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
13405         * exp_aggr.adb (Safe_Component): An aggregate component that is an
13406         unchecked conversion is safe for in-place use if the expression of the
13407         conversion is safe.
13408         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
13409         be expandable in place even if the aggregate does not come from source.
13410         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
13411         designated object of an allocator in place, rather than building it
13412         first on the stack. The previous scheme forces a full copy of the array,
13413         and may be altogether unsusable if the size of the array is too large
13414         for stack allocation.
13416 2004-10-26  Robert Dewar  <dewar@gnat.com>
13418         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
13419         compares if the component is atomic.
13421         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
13422         array assignment if the component type is atomic.
13424 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
13425             Eric Botcazou  <ebotcazou@act-europe.fr>
13427         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
13428         is aliased and is a by_reference type, do not pass by copy.
13429         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
13430         detect whether the call is in the right side of an assignment or
13431         the expression of an object declaration.  Recurse on component
13432         association within aggregates.
13433         Call it in the condition that determines whether the temporary is
13434         necessary for correct stack-checking.
13436 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
13438         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
13439         RACW_Type, used in the PolyORB version.
13440         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
13441         version and the GARLIC version.
13443         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
13444         Rename RCI_Info to RCI_Locator for better consistency between the
13445         GARLIC and PolyORB versions of the distributed systems annex.
13446         (DSA_Implementation_Name): This enumeration lists the possible
13447         implementations of the Partition Communication Subsystem for the
13448         Distributed Systems Annex (DSA). The three available implementations
13449         are the dummy stub implementation (No_DSA), and two versions based on
13450         two different distribution runtime libraries: GARLIC and PolyORB. Both
13451         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
13452         technology.
13453         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
13454         that organization.
13456         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
13457         between the GARLIC and PolyORB versions of the distributed systems
13458         annex.
13459         Remove RE_Unbounded_Reclaim_Pool since it is unused.
13461 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
13463         * gnat1drv.adb: Suppress calling the back end when
13464         Frontend_Layout_On_Target is true.
13466 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
13468         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
13469         Set_Read_Only): New subprograms.
13470         These new routines allow the user to set or unset the Owner execute
13471         and Owner write permission flags on a file.
13473         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
13474         GNAT.OS_Lib.Set_Executable instead of rolling our own.
13476 2004-10-26  Matthew Gingell  <gingell@gnat.com>
13478         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
13480 2004-10-26  Pascal Obry  <obry@gnat.com>
13482         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
13483         memory before the faulting page we properly test the process read
13484         access for this address using appropriate Win32 routine.
13485         (HPUX sections): guard with "__hpux__" instead of "hpux".
13487 2004-10-26  Robert Dewar  <dewar@gnat.com>
13489         * lib-xref.adb (Generate_Reference): Don't complain about reference to
13490         entry parameter if pragma Unreferenced set, since we do not properly
13491         handle the case of multiple parameters.
13493 2004-10-26  Vincent Celier  <celier@gnat.com>
13495         * prj-env.adb: (Contains_ALI_Files): New Boolean function
13496         (Ada_Objects_Path.Add): For a library project, add to the object path
13497         the library directory only if there is no object directory or if the
13498         library directory contains ALI files.
13499         (Set_Ada_Paths.Add.Recursive_Add): Ditto
13501 2004-10-26  Vincent Celier  <celier@gnat.com>
13503         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
13504         extension of library projects.
13506         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
13507         path defaults to ".:<prefix>/lib/gnat".
13508         (Parse): For an extending all project, allow direct import of a project
13509         that is virtually extended.
13511         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
13512         the specified name is directly imported, return its ID. Otherwise, if
13513         an extension of this project is imported, return the ID of the
13514         extension.
13516 2004-10-26  Robert Dewar  <dewar@gnat.com>
13518         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
13519         (Sub3): New procedure, used by Scaled_Divide
13520         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
13521         correct more than one instance of failure to propagate carries
13522         correctly.
13523         (Double_Divide): Handle overflow case of largest negative number
13524         divided by minus one.
13526         * s-arit64.ads (Double_Divide): Document that overflow can occur in
13527         the case of a quotient value out of range.
13528         Fix comments.
13530 2004-10-26  Robert Dewar  <dewar@gnat.com>
13532         * s-bitops.adb (Bit_Eq): Remove redundant check.
13534         * s-bitops.ads: Minor comment updates
13535         Change some occurrences of Address to System.Address
13537         * s-carsi8.ads: Fix minor cut-and-paste error in comments
13539 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
13541         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
13542         accessibility check to prefix that is a protected operation.
13544 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
13546         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
13547         empty, post message on stub.
13549 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
13550             Javier Miranda  <miranda@gnat.com>
13552         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
13553         current instance appears within a unit that is directly in the context
13554         of the main unit.
13555         Used to determine whether the body of the instance should be analyzed
13556         immediately after its spec, to make its subprogram bodies available
13557         for front-end inlining.
13558         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
13559         constraint is not allowed on the component type (AARM 12.5.3(3))
13561 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
13563         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
13564         'Storage_Pool): enhance, document & limit detection of non-sharable
13565         internal pools.
13567         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
13569         * s-pooglo.ads: Add more documentation now that this pool is properly
13570         documented.
13572 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
13574         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
13575         or protected type with discriminants, do not constrain the
13576         corresponding record type if the subtype declaration has no
13577         discriminant constraints. This can be the case in source code, or in
13578         the subtype declaration created to rename an actual type within an
13579         instantiation.
13581 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
13583         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
13584         different kind of stub (possibly wrong name for file), do not check
13585         for conformance.
13586         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
13587         includes call to some function that returns an unconstrained type, do
13588         not inline.
13590 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
13592         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
13593         appear in the code for the main unit. Dependencies among units in the
13594         context of the main unit are established when those other units are
13595         compiled. Otherwise spurious elaboration constraints can generate
13596         incorrect elaboration circularities.
13598 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
13599             Ed Schonberg   <schonberg@gnat.com>
13601         * sem_util.adb (Is_Aliased_View): Defend against the case where this
13602         subprogram is called with a parameter that is not an object name. This
13603         situation arises for some cases of illegal code, which is diagnosed
13604         later, and in this case it is wrong to call Is_Aliased, as that might
13605         cause a compiler crash.
13606         (Explain_Limited_Type): Refine previous fix to include
13607         inherited components of derived types, to provide complete information.
13609         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
13610         is the prival for a protected object.
13611         It is necessary to mark this entity as a variable, in addition to
13612         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
13613         modified to avoid checking the Aliased flag on entities that are not
13614         objects. (Checking that flag for non-objects is erroneous and could
13615         lead to a compiler crash).
13617 2004-10-26  Robert Dewar  <dewar@gnat.com>
13619         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
13620         X_Frac = 0.5, then we know that the number X must be positive.
13621         (Succ): Remove the same redundant test, and also fix the primary test
13622         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
13623         Minor reformatting
13624         (Decompose): Add fuller comments to spec
13626 2004-10-26  Pascal Obry  <obry@gnat.com>
13628         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
13629         validity (process must have read access). Set to 0 in all other cases.
13630         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
13631         violation on Win32.
13632         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
13633         segmentation violation.
13635 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
13637         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
13638         whose type is a constructed subtype of an aliased object with an
13639         unconstrained nominal subtype, convert the actual to the constructed
13640         subtype before taking its address.
13642 2004-10-26  Vincent Celier  <celier@gnat.com>
13644         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
13645         (Is_Path_Name_Case_Sensitive): New function
13647         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
13648         (Base_Name, Simple_Name, Current_Directory, Compose,
13649         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
13650         the result.
13652 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
13653             Vasiliy Fofanov  <fofanov@act-europe.fr>
13654             Vincent Celier   <celier@gnat.com>
13656         * gnat_ugn.texi: Generalize "finding memory problems" section into a
13657         "memory management issues" section and document some of the useful
13658         memory pools provided as part of the GNAT library.
13659         Remove "virtual" from declaration of A::method2 in
13660         the simple example of Ada/C++ mixed system.
13661         Library Projects may be virtually extended: their virtual extensions
13662         are not Library Projects.
13663         Added section on extending project hierarchies.
13665 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
13667         * adaint.c (__gnat_get_libraries_from_registry): Cast value
13668         to LPBYTE.
13669         (__gnat_portable_spawn): Remove const.
13671         * mingw32.h (MAXPATHLEN): Check for previous definition.
13673 2004-10-17  Matthias Klose  <doko@debian.org>
13675         * gnatvsn.ads: Set gnat library version to 4.0.
13677 2004-10-05  Vincent Celier  <celier@gnat.com>
13679         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
13681 2004-10-04  Laurent GUERBY <laurent@guerby.net>
13683         PR ada/15156
13684         * Makefile.in: Define and use RANLIB_FLAGS.
13686 2004-10-04  Pascal Obry  <obry@gnat.com>
13688         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
13689         other x86 platforms).
13691 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
13693         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
13694         in general and triggers stack alignment adjustment for thread entry
13695         points on targets where this is necessary.
13697 2004-10-04  Bernard Banner  <banner@gnat.com>
13699         PR ada/13897
13701         * Makefile.in: Add section for powerpc linux
13702         Add variant i-vxwork-x86.ads
13704         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
13706 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
13708         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
13709         table registration calls when need be. Ensures no reference to the crt
13710         ctors symbol are issued in the SJLJ case, which avoids possible
13711         undefined symbol errors in the case of modules to be statically linked
13712         with the kernel.
13714 2004-10-04  Javier Miranda  <miranda@gnat.com>
13716         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
13717         in-line the code corresponding to subprogram Analyze_Actuals. In
13718         addition, analyze the actuals only in case of subprogram call.
13720 2004-10-04  Ed Falis  <falis@gnat.com>
13722         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
13724 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
13726         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
13727         in the documentation.
13729 2004-10-04  Robert Dewar  <dewar@gnat.com>
13731         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
13732         IF and CASE.
13733         (Analyze_Block_Statement): Add circuitry to detect following dead code
13734         (Check_Unreachable_Code): Handle case of block exit
13736 2004-10-04  Robert Dewar  <dewar@gnat.com>
13738         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
13739         (XMatchD): Avoid warning for Logic_Error call
13741 2004-10-04  Robert Dewar  <dewar@gnat.com>
13743         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
13744         consider expressions buried within a procedure actual to be an actual.
13745         This caused some blowups with uses of packed slices within a procedure
13746         actual.
13748 2004-10-04  Robert Dewar  <dewar@gnat.com>
13750         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
13751         longer need to be initialized to zero.
13752         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
13753         initialized to zero.
13755         * checks.adb (Expr_Known_Valid): Packed arrays are now always
13756         considered valid, even if the representation is modular. That's correct
13757         now that we no longer initialize packed modular arrays to zero.
13759         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
13760         suffixes. These are now documented as the only cases in which the
13761         debugger ignores outer records.
13762         Previously, the spec allowed arbitrary suffixes for this purpose.
13763         Change name of LJM to JM for packed array pad records
13764         Create separate section on packed array handling, and add a whole new
13765         set of comments to this section describing the situation with packed
13766         modular types and justification requirements depending on endianness.
13768 2004-10-04  Robert Dewar  <dewar@gnat.com>
13770         * a-except.adb: Add a comment for last change
13772         * einfo.ads: Minor spelling correction in comment
13774         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
13776         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
13777         messages.
13779         * sem_util.ads: Minor comment update
13781 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
13783         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
13784         Inline_Always when in Configurable_Run_Time mode.
13786         * sem_prag.adb (Process_Convention): If entity is an inherited
13787         subprogram, apply convention to parent subprogram if in same scope.
13788         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
13789         when in Configurable_Run_Time mode.
13791 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
13793         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
13794         class_wide type after component list has been inherited.
13796 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
13798         * sem_ch12.adb (Check_Generic_Actuals): New predicate
13799         Denotes_Previous_Actual, to handle properly the case of a private
13800         actual that is also the component type of a subsequent array actual.
13801         The visibility status of the first actual is not affected when the
13802         second is installed.
13803         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
13804         make fully recursive the treatment of formals of packages declared
13805         with a box.
13806         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
13807         the above on exit from an instantiation.
13808         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
13809         current instantiation which is now complete.
13810         (Analyze_Package_Instantiation): No instantiated body is needed if the
13811         main unit is generic. Efficient, and avoid anomalies when a instance
13812         appears in a package accessed through rtsfind.
13814 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
13816         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
13817         do not generate a declaration for a temporary if the call is part of a
13818         library-level instantiation.
13820 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
13822         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
13823         searching for a limited component to flag.
13825         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
13826         expansion of Input, to account for the fact that the implicit call
13827         generated by the attribute reference must freeze the user-defined
13828         stream subprogram. This is only relevant to 'Input, because it can
13829         appear in an object declaration, prior to the body of the subprogram.
13831         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
13832         expansion can proceed and further errors uncovered.
13833         (Minor clean up): Fix cases of using | instead of \ for continuation
13834         messages.
13836 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13838         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
13840         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
13841         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
13842         Use gcc_assert and gcc_unreachable.
13844         * decl.c (gnat_to_gnu_entity, case object): Check and process a
13845         specified alignment before validating size.
13846         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
13847         stripped-down declaration for the type of the inner field when making
13848         a JM type.
13850         * utils.c (finish_record_type): Do not compute the size in units
13851         incrementally. Instead compute it once for the rep clause case.
13852         Use gcc_assert and gcc_unreachable.
13854 2004-10-04  Vincent Celier  <celier@gnat.com>
13856         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
13857         in file name.
13858         (Is_Valid_Path_Name): Take '/' as a directory separator.
13860 2004-10-04  Vincent Celier  <celier@gnat.com>
13862         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
13863         (Extended_Project) only if Extended_Project is defined, to avoid
13864         assertion error.
13865         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
13866         resolved path.
13867         (Parse_Single_Project): Ditto.
13869         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
13870         Add_To_Project_Path for virtual projects.
13872 2004-10-04  Vincent Celier  <celier@gnat.com>
13874         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
13875         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
13876         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
13877         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
13878         parameter Options_2.
13880         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
13881         Build_Dynamic_Library with an empty Options_2.
13883         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
13884         default anymore.
13886         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
13887         directory separator, if any.
13888         (Gprmake): Do not allow mains on the command line for library projects.
13889         Do not attempt to link when the project is a library project.
13890         (Library_Opts): New table to store Library_Options.
13891         (Build_Library): If Library_Options is specified, pass these options
13892         when building a shared library.
13894 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
13896         * s-tposen.adb (Service_Entry): The object must be always unlocked at
13897         the end of this procedure now that the unlock operation was inserted
13898         by the expander.
13900 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
13902         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
13903         corresponding to the Preallocated_Stacks flags in System.
13904         (Get_Target_Parameters): Including the processing for
13905         Preallocated_Stacks.
13907         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
13908         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
13909         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
13910         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
13911         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
13912         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
13913         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
13914         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
13915         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
13916         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
13917         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
13918         used to signal whether the compiler creates the required stacks and
13919         descriptors for the different tasks (when True) or it is done by the
13920         underlying operating system at run time (when False).
13921         It is initially set to False in all targets.
13923         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
13924         if it is supported by the target.
13925         (Make_Task_Create_Call): Pass the stack address if it has been
13926         previously created. Otherwise pass a Null_Address.
13928         * snames.adb: Add _stack.
13930         * snames.ads: Add Name_uStack. Required to allow the expander to
13931         statically allocated task stacks.
13933         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
13934         Stack_Address argument.
13935         Check that its value is equal to Null_Address because this target does
13936         not support the static stack allocation.
13938 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
13940         * usage.adb: Change "pragma inline" to "pragma Inline" in information
13941         and error messages
13943 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
13945         * exp_dist.adb: Split declaration of asynchronous flag out of
13946         Add_RACW_Read_Attribute.
13947         Minor reformatting for better alignment with PolyORB version.
13948         Store the entity for the asynchronous flag of an RACW, rather than the
13949         expression, in the asynchronous flags table. This will allow this flag
13950         to be used in other subprograms beside Add_RACW_Read_Attribute.
13952 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
13954         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
13955         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
13956         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
13957         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
13958         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
13959         sockets constant MSG_NOSIGNAL (Linux-specific).
13960         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
13961         all Send operations.
13962         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
13963         from trigerring SIGPIPE.
13964         Rename components to avoid clash with Ada 2005 possible reserved
13965         word 'interface'.
13966         (Check_Selector): When the select system call returns with an error
13967         condition, propagate Socket_Error to the caller.
13969 2004-10-01  Jan Hubicka  <jh@suse.cz>
13971         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
13973 2004-09-23  Robert Dewar  <dewar@gnat.com>
13975         PR ada/17540
13977         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
13978         instead do this at freeze time (we won't do it if there is an address
13979         clause).
13980         Change "pragma inline" to "pragma Inline" in information and error
13981         messages.
13982         Minor reformatting.
13984         * freeze.adb (Check_Address_Clause): Remove previous change, not the
13985         right way of doing things after all.
13986         (Freeze_Entity): For object, set Is_Public for imported entities
13987         unless there is an address clause present.
13989 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
13991         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
13992         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
13993         ensures proper handling of types with rep clauses, which might have
13994         their TYPE_SIZE set already.
13996 2004-09-21  Robert Dewar  <dewar@gnat.com>
13998         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
13999         packed array types in both little- and big-endian cases. This change
14000         ensures that we no longer count on the unused bits being initialized
14001         for such types (and in particular ensures that equality testing will
14002         only read the relevant bits).
14003         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
14004         These changes mean that we no longer need to initialize small packed
14005         arrays.
14006         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
14007         optimization to an LJM field as to its parent field.
14009         * ada-tree.h, trans.c, utils.c, utils2.c:
14010         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
14012 2004-09-20  Jan Hubicka  <jh@suse.cz>
14014         * utils.c (gnat_finalize): Remove.
14015         (end_subprog_body): Directly call cgraph_finalize_function;
14016         do not lower the nested functions.
14018 2004-09-20  Robert Dewar  <dewar@gnat.com>
14020         PR ada/17540
14022         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
14023         if an address clause is present, since that means that the Import
14024         should be ignored.
14026 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
14028         * 5tsystem.ads: Removed, no longer used.
14030 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
14031             Zack Weinberg  <zack@codesourcery.com>
14033         * ada-tree.def: Use tree_code_class enumeration constants
14034         instead of code letters.
14035         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
14036         Update for new tree-class enumeration constants.
14038 2004-09-17  Vincent Celier  <celier@gnat.com>
14040         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
14041         capabilities of the general project manager.
14043 2004-09-09  Vincent Celier  <celier@gnat.com>
14045         * a-direct.ads: Add pragma Ada_05
14046         (Directory_Entry_Type): Give default value to component Kind to avoid
14047         not initialized warnings.
14049         * a-direct.adb (Current_Directory): Remove directory separator at the
14050         end.
14051         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
14052         an existing directory.
14053         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
14054         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
14055         Convert the result to File_Size.
14057         * prj.ads: (Project_Error): New exception
14059         * prj-attr.adb: Except in procedure Initialize, Fail comes from
14060         Prj.Com, not from Osint.
14061         (Attrs, Package_Attributes): Tables moved to private part of spec
14062         (Add_Attribute, Add_Unknown_Package): Moved to new child package
14063         Prj.Attr.PM.
14064         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
14065         Prj.Project_Error after call to Fail.
14066         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
14067         Fail. Check that package name is not already in use.
14069         * prj-attr.ads: Comment updates to indicate that all subprograms may be
14070         used by tools, not only by the project manager, and to indicate that
14071         exception Prj.Prj_Error may be raised in case of problem.
14072         (Add_Unknown_Package, Add_Attribute): Moved to new child package
14073         Prj.Attr.PM.
14074         (Attrs, Package_Attributes): Table instantiations moved from the body to
14075         the private part to be accessible from Prj.Attr.PM body.
14077         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
14078         from new package Prj.Attr.PM.
14079         (Parse_Attribute_Declaration): Call Add_Attribute from new package
14080         Prj.Attr.PM.
14082         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
14084         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
14085         instead of Elaboration_Checks).
14087         * a-calend.adb: Minor reformatting
14089 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14091         * gigi.h (maybe_pad_type): New declaration.
14092         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
14094         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
14096         * cuintp.c: Convert to use buildN.
14098         * decl.c (maybe_pad_type): No longer static.
14099         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
14100         target pointer.
14101         Convert to use buildN.
14103         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
14104         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
14105         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
14106         RHS.
14107         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
14108         (gnat_gimplify_expr, case ADDR_EXPR): New case.
14109         Convert to use buildN.
14111         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
14112         TREE_READONLY for const.
14113         Convert to use buildN.
14115         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
14116         (create_var_decl): Refine when TREE_STATIC is set.
14117         Convert to use buildN.
14119 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
14121         * gnat_ugn.texi: Delete text relating to checking of ali and object
14122         consistency.
14124         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
14125         routines.
14127 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
14129         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
14130         pragmas recognized by GNAT.
14132         * gnat_rm.texi: Document pragma Detect_Blocking.
14134         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
14135         raise Program_Error if called from a protected operation.
14137         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
14138         the protected action nesting level.
14139         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
14140         protected action nesting level.
14141         (Unlock): When pragma Detect_Blocking is active decrease the protected
14142         action nesting level.
14144         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
14145         Protected_Action_Nesting.
14147         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
14148         Common_ATCB record. It contains the dynamic level of protected action
14149         nesting for each task. It is needed for checking whether potentially
14150         blocking operations are called from protected operations.
14151         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
14152         Detect_Blocking is active or not in the partition.
14154         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
14155         raise Program_Error if called from a protected operation.
14156         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
14157         Program_Error if called from a protected operation.
14158         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
14159         Program_Error if called from a protected operation.
14161         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
14162         raise Program_Error if called from a protected operation.
14164         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
14165         raise Program_Error if called from a protected operation, and increase
14166         the protected action nesting level.
14167         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
14168         Program_Error if called from a protected operation, and increase the
14169         protected action nesting level.
14170         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
14171         protected action nesting level.
14173         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
14174         raise Program_Error if called from a protected operation, and increase
14175         the protected action nesting level.
14176         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
14177         Program_Error if called from a protected operation, and increase the
14178         protected action nesting level.
14179         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
14180         raise Program_Error if called from a protected operation.
14181         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
14182         active, raise Program_Error if called from a protected operation.
14183         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
14184         protected action nesting level.
14186         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
14187         insertion of the statement raising Program_Error. The run time
14188         contains the required machinery for handling that.
14190         * sem_util.ads: Change comment associated to procedure
14191         Check_Potentially_Blocking_Operation.
14192         This procedure does not insert a call for raising the exception because
14193         that is currently done by the run time.
14195         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
14197         * init.c: Add the global variable __gl_detect_blocking that indicates
14198         whether pragma Detect_Blocking is active (1) or not (0). Needed for
14199         making the pragma available at run time.
14200         (__gnat_set_globals): Pass and update the detect_blocking parameter.
14202         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
14203         pragma Detect_Blocking is active.
14205         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
14207         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
14208         DB is found in the ali file. Any unit compiled with pragma
14209         Detect_Blocking active forces its effect in the whole partition.
14211         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
14212         Detect_Blocking is active and delay is called from a protected
14213         operation.
14215         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
14216         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
14217         Detect_Blocking is active (0 otherwise).
14218         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
14219         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
14220         otherwise).
14222 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
14224         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
14225         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
14226         package.
14228         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
14229         (Register_Receiving_Stub): Add Subp_Info formal parameter.
14230         Update API in placeholder implemetation of s-parint to reflect changes
14231         in distribution runtime library.
14233         * sem_ch3.adb (Expand_Derived_Record): Rename to
14234         Expand_Record_Extension.
14236         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
14237         primitive operations of potentially distributed object types that have
14238         non-controlling anonymous access formals.
14240         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
14241         subprogram.
14242         New implementation of expansion for remote access-to-subprogram types,
14243         based on the RACW infrastructure.
14244         This version of sem_dist is compatible with PolyORB/DSA as well as
14245         GLADE.
14247         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
14248         Asynchrronous that applies to a remote access-to-subprogram type, mark
14249         the underlying RACW type as asynchronous.
14251         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
14252          __gnat_using_gnu_linker to 1.
14254         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
14255         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
14256         GNAT.Perfect_Hash_Generators, and remove the empty
14257         GNAT.Perfect_Hash package.
14259         * atree.adb: Minor reformatting
14261         * exp_ch3.adb (Expand_Derived_Record): Rename to
14262         Expand_Record_Extension.
14263         (Build_Record_Init_Proc.Build_Assignment): The default expression in
14264         a component declaration must remain attached at that point in the
14265         tree so New_Copy_Tree copies it if the enclosing record type is derived.
14266         It is therefore necessary to take a copy of the expression when building
14267         the corresponding assignment statement in the init proc.
14268         As a side effect, in the case of a derived record type, we now see the
14269         original expression, without any rewriting that could have occurred
14270         during expansion of the ancestor type's init proc, and we do not need
14271         to go back to Original_Node.
14273         * exp_ch3.ads (Expand_Derived_Record): Rename to
14274         Expand_Record_Extension.
14276         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
14277         Returns the RACW type used to implement a remote access-to-subprogram
14278         type.
14279         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
14280         New subprograms. Used to create a proxy tagged object for a remote
14281         subprogram. The proxy object is used as the designated object
14282         for RAS values on the same partition (unless All_Calls_Remote applies).
14283         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
14284         System.Partition_Interface.Get_Unique_Remote_Pointer.
14285         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
14286         Renamed from Add_RAS_*_Attribute.
14287         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
14288         subprograms.
14289         New implementation of expansion for remote access-to-subprogram types,
14290         based on the RACW infrastructure.
14292         * exp_dist.ads (Copy_Specification): Update comment to note that this
14293         function can copy the specification from either a subprogram
14294         specification or an access-to-subprogram type definition.
14296 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
14298         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
14299         in an instance, between an explicit subprogram an one inherited from a
14300         type derived from an actual.
14302         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
14303         add a polling call if the subprogram is to be inlined by the back-end,
14304         to avoid repeated calls with multiple inlinings.
14306         * checks.adb (Apply_Alignment_Check): If the expression in the address
14307         clause is a call whose name is not a static entity (e.g. a dispatching
14308         call), treat as dynamic.
14310 2004-09-09  Robert Dewar  <dewar@gnat.com>
14312         * g-trasym.ads: Minor reformatting
14314         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
14315         packed arrays, since unused bits are expected to be zero for a
14316         comparison.
14318 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
14320         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
14321         comment.
14323 2004-09-09  Pascal Obry  <obry@gnat.com>
14325         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
14326         enable map file generation. Add the right option to generate the map
14327         file if Map_File is set to True.
14329         * gnatdll.adb (Gen_Map_File): New variable.
14330         (Syntax): Add info about new -m (Map_File) option.
14331         (Parse_Command_Line): Add support for -m option.
14332         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
14333         Minor reformatting.
14335 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
14337         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
14338         new gnatdist implementation.
14339         Define a subpackage isolating the output routines specific to this
14340         verbose mode.
14342 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
14344         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
14346         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
14348 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
14350         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
14351         internal unit.
14353         * opt.ads: Add Ada_Version_Runtime constant used to decide which
14354         version of the language is used to compile the run time.
14356 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
14358         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
14359         of variable length temporaries for function return now that the
14360         back-end and gigi support it.
14362 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14364         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
14366         * trans.c (struct stmt_group): Delete field GLOBAL.
14367         (gnat_init_stmt_group): Do not initialize it.
14368         (call_to_gnu): Use save_expr, not protect_multiple_eval.
14369         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
14370         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
14371         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
14372         (start_stmt_group): Likewise.
14373         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
14375         * utils2.c (ggc.h): Include.
14376         (build_call_raise): Call build_int_cst, not build_int_2.
14378         * utils.c (gnat_init_decl_processing): Fix arg to
14379         build_common_tree_nodes.
14380         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
14381         (gnat_define_builtin): Set built_in_decls.
14382         (init_gigi_decls): Call build_int_cst, not build_int_2.
14384         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
14385         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
14386         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
14387         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
14388         SET_TYPE_MODULE): Use them.
14389         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
14390         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
14391         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
14392         SET_TYPE_ADA_SIZE): Likewise.
14393         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
14394         (DECL_CONST_CORRESPONDING_VAR,
14395         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
14396         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
14397         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
14398         (TYPE_RM_SIZE_NUM): New macro.
14399         (TYPE_RM_SIZE): Modified to use above.
14401         * cuintp.c: (build_cst_from_int): New function.
14402         (UI_To_gnu): Use it.
14404         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
14405         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
14406         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
14407         MIN_EXPR for the size, copy it into new.
14409 2004-09-01  Robert Dewar  <dewar@gnat.com>
14411         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
14412         packed indexed component where array is an IN OUT formal. This
14413         generated garbage code previously.
14415         * gnat_ugn.texi: Document -fverbose-asm
14417         * gnat-style.texi: Minor updates (note that boolean constants and
14418         variables are joined with AND/OR rather than short circuit forms).
14420 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
14422         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
14423         it is an upward conversion of an untagged type with no representation
14424         change.
14426 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
14428         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
14429         System.Partition_Interface.
14431         * checks.adb (Apply_Access_Checks): Do not generate checks when
14432         expander is not active (but check for unset reference to prefix of
14433         dereference).
14435         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
14436         pragma Debug as an if statement with a constant condition, for
14437         consistent treatment of entity references contained within the
14438         enclosed procedure call.
14440 2004-09-01  Vincent Celier  <celier@gnat.com>
14442         * bindgen.adb: (Set_EA_Last): New procedure
14443         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
14444         Set_EA_Last.
14445         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
14446         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
14447         linked without errors.
14448         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
14449         ST and EA.
14450         (Gen_Exception_Table_C): Correct same bugs
14452         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
14454         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
14455         on Windows, make sure that the drive letter is in upper case.
14457         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
14458         Windows, when the drive letter is added and Case_Sensitive is True, the
14459         drive letter is forced to upper case.
14461         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
14462         to Options_2 for the call to MLib.Utl.Gcc.
14464         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
14465         directory separator when defining BASE_DIR.
14467 2004-09-01  Pascal Obry  <obry@gnat.com>
14469         * gprcmd.adb (Extend): Do not output trailing directory separator. This
14470         is not needed and it confuses Windows GNU/make which does not report
14471         directory terminated by a slash as a directory.
14472         (gprcmd): Idem for "pwd" internal command.
14474         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
14475         target names rewrite to fix regressions with recent version of
14476         GNU/make. Starting with GNU/make 3.80 the pipe character was not
14477         handled properly anymore.
14479 2004-09-01  Andreas Schwab  <schwab@suse.de>
14481         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
14482         * raise.c [!IN_RTS]: Undef abort.
14484 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
14486         * utils2.c (build_allocator): Use ssize_int.
14488         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
14490 2004-08-27  Andreas Schwab  <schwab@suse.de>
14492         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
14494 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
14495             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14497         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
14499 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
14501         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
14502         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
14503         * utils.c (init_gigi_decls): Likewise.
14504         * utils2.c (build_call_raise, build_allocator): Likewise.
14506 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
14508         * utils.c (gnat_init_decl_processing): Adjust
14509         build_common_tree_nodes call.
14511 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
14513         * utils2.c (build_allocator): Use build_int_cst for negative
14514         size types.
14516 2004-08-18  Richard Henderson  <rth@redhat.com>
14518         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
14520 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
14522         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
14523         call.s
14524         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
14525         (gnat_to_gnu): Likewise.
14527 2004-08-16  Pascal Obry  <obry@gnat.com>
14529         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
14530         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
14531         option and not mdll anymore. Update comment.
14533 2004-08-16  Pascal Obry  <obry@gnat.com>
14535         * bld.adb (Put_Include_Project): Properly handle directory separators
14536         on Windows.
14538 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
14540         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
14541         decreasing the number of allocated junk nodes while searching for the
14542         appropriate subprogram.
14544 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
14546         * cuintp.c (UI_To_gnu): Use build_int_cst..
14547         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
14548         * utils.c (init_gigi_decls): Likewise.
14549         * utils2.c (build_call_raise): Likewise.
14551 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
14553         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
14554         for a global aliased object with a variable size and an unconstrained
14555         nominal subtype, pretend there is no initializer if the one we have is
14556         incomplete, and avoid referencing an inexistant component in there. The
14557         part we have will be rebuilt anyway and the reference may confuse
14558         further operations.
14560 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
14562         * einfo.ads: Minor reformatting
14564         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
14565         restrictions in the ALI if we only want to warn about violations.
14567 2004-08-13  Vincent Celier  <celier@gnat.com>
14569         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
14570         when creating a new Unit_Record in table Units.
14572         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
14573         that are violated, if any.
14575         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
14576         add directory separator if path already ends with a directory separator.
14578 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
14580         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
14581         unit, this is an attempt to inline a construct that is not available in
14582         the current restricted mode, so abort rather than trying to continue.
14584         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
14585         discriminants that rename those of the parent, recover names of
14586         original discriminants for the constraint on the full view of the
14587         parent.
14588         (Complete_Private_Subtype): Do not create a subtype declaration if the
14589         subtype is an itype.
14591         * gnat_rm.texi: Added section on implementation of discriminated
14592         records with default values for discriminants.
14594 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
14596         PR ada/15601
14597         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
14598         the second operand is overloaded.
14600 2004-08-10  Richard Henderson  <rth@redhat.com>
14602         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
14603         add __builtin_alloca.
14605 2004-08-10  Richard Henderson  <rth@redhat.com>
14607         * config-lang.in (boot_language): Yes.
14609 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
14611         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
14612         from complaining on potential uninitialized reference.
14613         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
14614         new specification and test explicitly for non-zero return value.
14616         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
14617         returning C.int, to avoid using a derived boolean type.
14619         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
14620         Duplicate_Subexpr_No_Checks in preference to direct use of
14621         Remove_Side_Effects and New_Copy_Tree.
14622         Clear Comes_From_Source on prefix of 'Size attribute reference.
14624         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
14625         g-socthi-vxworks.adb: Change calls to
14626         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
14627         and test explicitly for non-zero return value.
14629         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
14630         (Is_Socket_In_Set): Declare imported function as returning C.int, to
14631         avoid using a derived boolean type.
14633 2004-08-09  Albert Lee  <lee@gnat.com>
14635         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
14637 2004-08-09  Pascal Obry  <obry@gnat.com>
14639         * gnat_ugn.texi: Document new way to build DLLs on Windows using
14640         GCC's -shared option.
14642         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
14643         Options_2 parameter (options put after object files).
14645 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
14647         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
14648         ignore overflows on low and high bounds of an index to also account for
14649         differences in signedness between sizetype and gnu_index_subtype.
14650         These are as legitimate as the ones caused by a lower TYPE_PRECISION
14651         on sizetype.
14653 2004-08-09  Robert Dewar  <dewar@gnat.com>
14655         * s-solita.ads, s-solita.adb: Minor reformatting
14657         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
14658         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
14659         obsolescent section
14660         Add note that No_Implicit_Conditionals does not suppress
14661         run time constraint checks.
14663         * vms_conv.ads: Minor reformatting
14665         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
14666         and necessary for following change).
14667         (Mark): Return new format Mark_Id containing sec stack address
14668         (Release): Use sec stack address from Mark_Id avoiding Self call
14670         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
14671         pointer (cleanup and necessary for following change).
14672         Define Mark_Id as record containing address of secondary stack, that way
14673         Release does not need to find the stack again, decreasing the number of
14674         calls to Self and improving efficiency.
14676         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
14678         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
14679         case variable into the individual case branches when possible.
14681         * sem_ch11.adb: Minor reformatting
14683         * prj.ads: Correct spelling of suffixs
14685         * prj-nmsc.adb: Minor reformatting
14686         Correct spelling suffixs throughout (also in identifiers)
14688         * freeze.adb: Minor spelling correction
14690         * exp_ch2.adb: Cleanups to handling of Current_Value
14691         (no functional effect).
14693         * bld.adb: Correct spelling of suffixs
14695         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
14697 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
14699         PR ada/15408
14701         * sem_ch7.adb (Install_Private_Declarations): In the body of the
14702         package or of a child, private entities are both immediately_visible
14703         and not hidden.
14705 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
14707         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
14708         there are no range checks on the value of the literal.
14710         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
14711         wrapped is the triggering alternative of an asynchronous select, action
14712         statements mustbe inserted before the select itself.
14714         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
14715         case where the prefix is a protected function call.
14716         (Resolve_Attribute, case 'Access): The attribute reference on a
14717         subprogram is legal in a generic body if the subprogram is declared
14718         elsewhere.
14720 2004-08-09  Vincent Celier  <celier@gnat.com>
14722         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
14723         languages, otherwise building the library may fail with unresolved
14724         symbols.
14725         (Compile_Sources): Do not build libraries if -c switch is used
14727         * gnatlink.adb (Process_Args): New switches -M and -Mmap
14728         (Write_Usage): If map file creation is supported, output new switches
14729         -M and -Mmap.
14730         (Gnatlink): When -M is specified, add the necessary switch(es) to the
14731         gcc call, when supported.
14733         * Makefile.in: Added indepsw.o to the object list for gnatlink
14734         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
14736         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
14737         indepsw.adb, indepsw.ads: New files.
14739 2004-08-09  Bernard Banner  <banner@gnat.com>
14741         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
14743         * Makefile.in: add section for vxworks x86
14745 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
14747         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
14748         per-object constrained components where the discriminant is of an
14749         Access type.
14750         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
14751         the parent initialization procedure for derived Unchecked_Unions.
14752         Instead, derived Unchecked_Unions build their own initialization
14753         procedure.
14754         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
14755         Check the body of the subprogram for details.
14756         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
14757         functions for derived Unchecked_Union types by introducing a condition.
14758         Allow the creation of TSS equality functions for Unchecked_Unions.
14759         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
14760         Add formal parameter Discr to function signature. Discr is used to
14761         control the generated case statement for Unchecked_Union types.
14762         (Make_Eq_If): Rename formal parameter Node to E in function signature.
14764         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
14765         Unchecked_Unions.
14766         Check the body of the subprogram for details.
14767         (Expand_Composite_Equality): Augment composite type equality to include
14768         correct handling of Unchecked_Union components.
14769         (Expand_N_In): Add condition to detect illegal membership tests when the
14770         subtype mark is a constrained Unchecked_Union and the expression lacks
14771         inferable discriminants, and build a Raise_Program_Error node.
14772         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
14773         to detect types that contain components of unconstrained Unchecked_Union
14774         subtype. Add condition to detect equality between types that have an
14775         unconstrained Unchecked_Union component, and build a Raise_Program_Error
14776         node. Add condition to detect equality between Unchecked_Union types
14777         that lack inferable discriminants, and build a Raise_Program_Error node.
14778         Otherwise build a TSS equality function call.
14779         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
14780         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
14781         with the operand lacking inferable discriminants, and build a Raise_
14782         Program_Error node.
14783         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
14784         composite equality.
14785         (Has_Inferable_Discriminants): Implement new predicate for objects and
14786         expressions of Unchecked_Union type. Check the body of subprogram for
14787         details.
14788         (Has_Unconstrained_UU_Components): Add function
14789         Component_Is_Unconstrained_UU. It is used to detect whether a single
14790         component is of an unconstrained Unchecked_Union subtype. Add function
14791         Variant_Is_Unconstrained_UU. It is used to detect whether a single
14792         component inside a variant is of an unconstrained Unchecked_Union type.
14794         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
14795         inferred discriminant values. Add condition to generate a case
14796         statement with an inferred discriminant as the switch.
14797         (Make_Component_List_Assign): Introduce a Boolean flag that determines
14798         the behaviour of the subprogram in the presence of an Unchecked_Union.
14799         Add condition to trigger the usage of the inferred discriminant value
14800         as the generated case statement switch.
14801         (Make_Field_Assign): Introduce a Boolean flag that determines the
14802         behaviour of the subprogram in the presence of an Unchecked_Union. Add
14803         condition to trigger the usage of the inferred discriminant value as
14804         the right-hand side of the generated assignment.
14806         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
14807         parameter generation when dealing with Unchecked_Unions.
14809         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
14810         checks for Unchecked_Unions.
14812         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
14814         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
14815         Raise_Program_Error nodes for the execution of Read and Write
14816         attributes of Unchecked_Union types and the execution of Input and
14817         Output attributes of Unchecked_Union types that lack default
14818         discriminant values.
14820         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
14821         Unchecked_Union. Add procedure Check_Component. It is used to inspect
14822         per-object constrained components of Unchecked_Unions for being
14823         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
14824         check individual components withing a variant.
14826         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
14827         comparison of Unchecked_Unions.
14828         (Resolve_Equality_OP): Remove guard that prevents equality between
14829         Unchecked_Unions.
14831         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
14832         of component subtypes for Unchecked_Union components.
14833         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
14834         since it is the actual subtype.
14836         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
14837         pass of Unchecked_Union subtypes as generic actuals to formal types
14838         that lack known_discriminant_parts or that are derived Unchecked_Union
14839         types, and do nothing. In any other case, produce an error message.
14841         * sem_ch3.adb (Analyze_Component_Declaration): Add function
14842         Contains_POC. It determines whether a constraint uses the discriminant
14843         of an enclosing record type.
14844         Add condition to detect per-object constrained component and set the
14845         appropriate flag.
14846         (Derived_Type_Declaration): Remove guard that prevents derivation from
14847         Unchecked_Union types.
14848         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
14849         Union subtypes.
14851         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
14852         references to Unchecked_Union discriminants.
14854         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
14855         formal generation when dealing with Unchecked_Unions.
14856         (Set_Actual_Subtypes): Add condition to prevent generation of actual
14857         subtypes for Unchecked_Unions.
14859         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
14860         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
14861         completions of discriminated partial views by Unchecked_Unions and
14862         produce an error message.
14864 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14866         * trans.c (struct stmt_group): New field, GLOBAL.
14867         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
14868         (struct elab_info): New struct.
14869         (elab_info_list, gnu_elab_proc_stack): New variables.
14870         (Compilation_Unit_to_gnu): New procedure.
14871         (gigi): Call it and also handle elaboration procs we've saved.
14872         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
14873         global field from parent.
14874         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
14875         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
14876         (start_stmt_group): Initialize global field from parent.
14877         (add_decl_expr): Set to global for current statement group.
14878         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
14879         post.
14881         * utils.c (global_bindings_p): True when no current_function_decl; no
14882         longer check current_binding_level.
14884 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
14886         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
14887         choice.
14889         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
14891 2004-08-06  Andreas Schwab  <schwab@suse.de>
14893         * utils.c (gnat_define_builtin): Remove second parameter of
14894         make_decl_rtl.
14895         (begin_subprog_body): Likewise.
14897 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
14899         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
14900         optimization, not supported by the tree-ssa back-end.
14902 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
14904         * s-mastop-irix.adb: Update comments.
14906         * a-except.adb (Exception_Information): Raise Constraint_Error if
14907         exception Id is Null_Id.
14908         This is required behavior, which is more reliably and clearly checked
14909         at the top level interface level.
14911 2004-07-26  Javier Miranda  <miranda@gnat.com>
14913         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
14914         call if a component has no default_expression and the box is used.
14916         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
14917         default_expression and you use box, it behaves as if you had declared a
14918         stand-alone object.
14919         (Resolve_Record_Aggregate): If a component has no default_expression and
14920         you use box, it behaves as if you had declared a stand-alone object.
14922         * sem_ch10.adb (Install_Siblings): Do not make visible the private
14923         entities of private-with siblings.
14925 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
14927         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
14928         for a component of an itype, set the parent pointer for analysis,
14929         there is no list in which to insert it.
14931         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
14932         bona-fide renamings, not for inherited operations.
14934         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
14935         actual for a formal that is an access parameter, create local
14936         finalization list even if the expression is not an aggregate.
14938 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
14940         PR ada/16213
14941         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
14942         Diagnose properly illegal subprogram renamings that are library units.
14944 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
14946         PR ada/15588
14947         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
14948         conversion rewritten as an unchecked conversion, check that original
14949         expression is a variable.
14951         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
14952         unchecked_conversion, create new node rather than rewriting in place,
14953         to preserve original construct.
14955 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14957         * gigi.h (gnat_expand_body): Deleted.
14959         * Make-lang.in: (trans.o): Depends on function.h.
14961         * misc.c: (gnat_expand_body): Moved to here.
14963         * trans.c (gnat_expand_body_1): Deleted.
14964         (gnat_expand_body): Moved from here.
14965         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
14966         (add_stmt): Check for marked visited with global_bindings_p.
14967         (gnat_gimplify_expr, case COMPONENT_REF): New case.
14968         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
14970         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
14971         VIEW_CONVERT_EXPR if not operation type.
14973         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
14974         fat pointer.
14976         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
14977         changes: reformatting of negation operators, removing unneeded
14978         inequality comparison with zero, converting equality comparisons with
14979         zero to negations, changing int/0/1 to bool/false/true, replace calls
14980         to gigi_abort with abort, and various other similar changes.
14982 2004-07-26  Vincent Celier  <celier@gnat.com>
14984         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
14985         "setup".
14987         * make.adb (Gnatmake): Fail when a library is not present and there is
14988         no object directory.
14990         * mlib-prj.adb (Check_Library): No need to check if the library needs
14991         to be rebuilt if there is no object directory, hence no object files
14992         to build the library.
14994         * opt.ads (Setup_Projects): New Boolean flag.
14996         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
14997         Location.
14998         Create directory when Kind /= "" and in "gnat setup". Report error if
14999         directory cannot be created.
15000         (Ada_Check): Create library interface copy dir if it does not exist
15001         and we are in "gnat setup".
15002         (Find_Sources): No error if in "gnat setup" and no Ada sources were
15003         found.
15004         (Language_Independent_Check): Create object directory, exec directory
15005         and/or library directory if they do not exist and we are in
15006         "gnat setup".
15008         * vms_conv.ads: (Command_Type): New command Setup.
15010         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
15012         * vms_data.ads: Add qualifiers/switches for new built-in command
15013         "setup".
15015 2004-07-25  Richard Henderson  <rth@redhat.com>
15017         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
15018         DECL_IGNORED_P on RESULT_DECL.
15020 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
15022         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
15023         allocation and potentially overflowing update with
15024         Tailored_Exception_Information. Use the sec-stack free procedural
15025         interface to output Exception_Information instead.
15027         * a-except.adb (To_Stderr): New subprogram for character, and string
15028         version moved from a-exextr to be visible from other separate units.
15029         (Tailored_Exception_Information): Remove the procedural version,
15030         previously used by the default Last_Chance_Handler and not any more.
15031         Adjust various comments.
15033         * a-exexda.adb: Generalize the exception information procedural
15034         interface, to minimize the use of secondary stack and the need for
15035         local buffers when the info is to be output to stderr:
15036         (Address_Image): Removed.
15037         (Append_Info_Character): New subprogram, checking for overflows and
15038         outputing to stderr if buffer to fill is of length 0.
15039         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
15040         (Append_Info_Address, Append_Info_Exception_Name,
15041         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
15042         Append_Info_Basic_Exception_Traceback,
15043         Append_Info_Exception_Information): New subprograms.
15044         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
15045         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
15046         Exception_Info_Maxlength, Exception_Name_Length,
15047         Exception_Message_Length): New subprograms.
15048         (Exception_Information): Use Append_Info_Exception_Information.
15049         (Tailored_Exception_Information): Use
15050         Append_Info_Basic_Exception_Information.
15051         Export services for the default Last_Chance_Handler.
15053         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
15054         other separate units.
15056 2004-07-20  Vincent Celier  <celier@gnat.com>
15058         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
15060 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
15062         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
15063         emit itype references for the designated types of component types that
15064         are declared outside of the full record declaration, and that may
15065         denote a partial view of that record type.
15067 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
15069         PR ada/15607
15070         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
15071         which is the designated type in an access component declaration, to the
15072         list of incomplete dependents of the parent type, to avoid elaboration
15073         issues with out-of-scope subtypes.
15074         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
15075         full view of the parent.
15077 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
15079         PR ada/15610
15080         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
15081         entities that are hidden, such as references to generic actuals
15082         outside an instance.
15084 2004-07-20  Javier Miranda  <miranda@gnat.com>
15086         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
15087         support to the new notation.
15088         (Analyze_Selected_Component): Add call to Try_Object_Operation.
15090 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
15092         * s-taprob.adb: Adding the elaboration code required for initializing
15093         the tasking soft links that are common to the full and the restricted
15094         run times.
15096         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
15097         restricted run time has been moved to the package
15098         System.Soft_Links.Tasking.
15100         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
15101         restricted run time has been moved to the package
15102         System.Soft_Links.Tasking.
15104         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
15106         * s-solita.ads, s-solita.adb: New files.
15108 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15110         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
15111         Case_Statement_to_gnu): Split off from gnat_to_gnu.
15112         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
15113         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
15114         Exception_Handler_to_gnu_zcx): Likewise.
15116 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
15118         * gigi.h (builtin_function): Declare.
15120 2004-07-15  Robert Dewar  <dewar@gnat.com>
15122         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
15123         reformatting
15125         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
15126         access values as an example of a warning.
15128         * gnat_rm.texi: Document new attribute Has_Access_Values
15130         * gnat-style.texi: Document that box comments belong on nested
15131         subprograms
15133         * sem_util.ads (Has_Access_Values): Improved documentation
15135         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
15137         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
15138         (Process_Interface_Name): Call to this new procedure
15139         (Set_Extended_Import_Export_External_Name): Call to this new procedure
15141         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
15143         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
15145         * einfo.ads: Minor comment typo fixed
15147 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
15149         * snames.adb: Add _atcb.
15151         * snames.ads: Add Name_uATCB.
15153         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
15154         (in the expanded code) when using the restricted run time.
15156         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
15157         a in parameter in order to allow ATCBs to be preallocated (in the
15158         expanded code).
15160         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
15161         order to allow ATCBs to be preallocated. In case of error, the ATCB is
15162         deallocated in System.Tasking.Stages.
15164         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
15165         order to allow ATCBs to be preallocated.
15167         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
15168         here. It was previously done in Initialize_ATCB.
15170         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
15172         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
15173         Restricted run time.
15175         * exp_ch3.adb: When using the Restricted run time, pass the
15176         preallocated Ada_Task_Control_Block when creating a task.
15178 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
15180         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
15181         function call that is itself an actual in an enclosing call, diagnose
15182         problem here rather than assuming that resolution will catch it.
15184         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
15185         the local copy of a generic unit for a formal package, and the generic
15186         is a child unit, install private part of ancestors before compiling
15187         private part of spec.
15189         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
15190         use scope entities rather than tree structures, to handle properly
15191         parent units that are instances rewritten as bodies for inlining
15192         purposes.
15194         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
15195         Remove_Parents): Handle properly a parent unit that is an
15196         instantiation, when the unit has been rewritten as a body for inlining
15197         purposes.
15199         * par.adb (Goto_List): Global variable to collect goto statements in a
15200         given unit, for use in detecting natural loops.
15202         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
15203         use in detecting natural loops.
15205         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
15206         backwards goto's, and rewrite as a infinite loop, to improve locality
15207         of temporaries.
15209         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
15210         subcomponent that includes an indexed reference, to prevent the
15211         generation of copies that would miscompile the desired assignment
15212         statement.
15213         (Build_Task_Image_Decls): Add a numeric suffix to
15214         generated name for string variable, to avoid spurious conflicts with
15215         the name of the type of a single protected object.
15217         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
15218         loop with an explicit exit statement, to avoid generating an
15219         out-of-range value with 'Succ leading to spurious constraint_errors
15220         when compiling with -gnatVo.
15222 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
15224         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
15225         might not be analyzed yet, even if its Etype is already set (case of an
15226         unchecked conversion built using Unchecked_Convert_To, for example).
15227         If the prefix has already been analyzed, this will be a nop anyway.
15229         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
15230         controller type, or an assignment of a record type with controlled
15231         components, copy only user data, and leave the finalization chain
15232         pointers untouched.
15234 2004-07-15  Vincent Celier  <celier@gnat.com>
15236         * make.adb (Collect_Arguments): Improve error message when attempting
15237         to compile a source not part of any project, when -x is not used.
15239         * prj.ads: (Defined_Variable_Kind): New subtype
15241         * prj-attr.adb (Register_New_Package): Two new procedures to register
15242         a package with or without its attributes.
15243         (Register_New_Attribute): Mew procedure to register a new attribute in a
15244         package.
15245         New attribute oriented subprograms: Attribute_Node_Id_Of,
15246         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
15247         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
15248         Next_Attribute.
15249         New package oriented subprograms: Package_Node_Id_Of,
15250         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
15252         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
15253         type.
15254         (Package_Node_Id): Now a private, self initialized type
15255         (Register_New_Package): New procedure to register a package with its
15256         attributes.
15257         New attribute oriented subprograms: Attribute_Node_Id_Of,
15258         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
15259         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
15260         Next_Attribute.
15261         New package oriented subprograms: Package_Node_Id_Of,
15262         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
15264         * prj-dect.adb (Parse_Attribute_Declaration,
15265         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
15267         * prj-makr.adb (Make): Parse existing project file before creating
15268         other files. Fail if there was an error during parsing.
15270         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
15271         new spec of Prj.Attr.
15273         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
15274         to new spec of Prj.Attr.
15276 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15278         * utils2.c: Fix typo in comment.
15280 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15282         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
15283         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
15285 2004-07-14  Andreas Schwab  <schwab@suse.de>
15287         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
15289 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15291         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
15292         object type.
15293         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
15294         TYPE_STUB_DECL.
15296         * misc.c (gnat_types_compatible_p): New function.
15297         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
15298         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
15300         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
15301         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
15302         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
15303         (mark_visited): Don't mark dummy type.
15304         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
15305         parameter, we must remove any LJM building from GNU_NAME.
15306         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
15307         (pos_to_constructor): Use int_const_binop.
15308         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
15309         PARM_DECL.
15311         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
15312         (gnat_pushlevel): Set TREE_USE on BLOCK node.
15313         (gnat_install_builtins): Add __builtin_memset.
15315 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
15317         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
15318         for a renaming, stabilize the initialization expression if we are at a
15319         local level.  At the local level, uses of the renaming may be performed
15320         by a direct dereference of the initializing expression, and we don't
15321         want possible variables there to be evaluated for every use.
15323         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
15324         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
15325         them on the way.  Account for the fact that we may introduce side
15326         effects in the process.
15328 2004-07-13  Richard Henderson  <rth@redhat.com>
15330         * misc.c (default_pass_by_ref): Use pass_by_reference.
15332 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
15334         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
15335         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
15337 2004-07-08  Richard Henderson  <rth@redhat.com>
15339         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
15340         commentary.
15342 2004-07-06  Vincent Celier  <celier@gnat.com>
15344         * vms_conv.ads: Minor reformatting.
15345         Alphabetical order for enumerated values of type Command_Type, to have
15346         the command in alphabetical order for the usage.
15348         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
15349         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
15351         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
15353         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
15354         (Add_Archive_Path): Only add the global archive if there is one.
15355         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
15356         or not any object file to put in the global archive, and don't build
15357         a global archive if there is none.
15358         (X_Switches): New table
15359         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
15360         in the X_Switches table, if any.
15361         (Initialize): Make sure the X_Switches table is empty
15362         (Scan_Arg): Record -X switches in table X_Switches
15364         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
15366         * make.adb: Minor comment fix
15368         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
15369         invoked with directory information, add the directory in front of the
15370         path.
15372         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
15373         invoked with directory information, add the directory in front of the
15374         path.
15376         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
15377         when Keep_Temporary_Files is False.
15378         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
15379         directory information, add the directory in front of the path.
15380         When not on VMS, handle new switch -dn before the command to set
15381         Keep_Temporary_Files to True.
15382         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
15383         everywhere.
15385         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
15386         invoked with directory information, add the directory in front of the
15387         path.
15389 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
15391         * snames.ads, snames.adb (Name_Stub): New name for the distributed
15392         systems annex.
15394         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
15395         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
15397         * g-socket.adb (To_Timeval): Fix incorrect conversion of
15398         Selector_Duration to Timeval for the case of 0.0.
15400         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
15401         documentation from Evolve_And_Then.
15403 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
15405         * s-taprop-tru64.adb, s-taprop-os2.adb,
15406         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
15408 2004-07-06  Robert Dewar  <dewar@gnat.com>
15410         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
15411         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
15412         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
15413         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
15414         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
15415         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
15416         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
15417         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
15418         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
15419         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
15420         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
15421         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
15422         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
15423         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
15424         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
15425         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
15426         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
15427         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
15428         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
15429         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
15430         vms_data.ads: Minor reformatting,
15431         Fix bad box comment format.
15433         * gnat_rm.texi: Fix minor grammatical error
15435         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
15437         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
15438         more cases of discriminated records to be recognized as not needing a
15439         secondary stack.
15440         (Has_Access_Values): New function.
15442         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
15444         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
15445         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
15446         with LRM terminology).
15447         Change terminology in comments primitive type => elementary type.
15449 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
15451         PR ada/15602
15452         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
15453         parameters do not impose any requirements on the presence of a body.
15455 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
15457         PR ada/15593
15458         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
15459         compilation unit and is in an open scope at the point of instantiation,
15460         assume that a body may be present later.
15462 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
15464         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
15465         Improve error message when specified size is not supported.
15467         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
15468         is never a primitive operation.
15470 2004-07-05  Andreas Schwab  <schwab@suse.de>
15472         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
15473         RECORD_OR_UNION_CHECK.
15474         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
15476 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
15478         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
15479         dependency on xgnatugn, instead build it via a submake.
15480         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
15482 2004-07-04  Richard Henderson  <rth@redhat.com>
15484         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
15486 2004-07-01  Richard Henderson  <rth@redhat.com>
15488         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
15489         * utils.c (max_size): Likewise.
15491 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15493         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
15494         and rest_of_type_compilation; add arg to create_*_decl.
15495         (annotate_decl_with_node): Deleted.
15496         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
15497         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
15498         (get_current_block_context, gnat_pushdecl): New declarations.
15499         (gnat_init_stmt_group): Likewise.
15500         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
15501         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
15502         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
15503         (gnat_init): Call gnat_init_stmt_group.
15504         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
15505         (gnu_pending_elaboration_list): Deleted.
15506         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
15507         (gigi): Rearrange initialization calls and move some to last above.
15508         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
15509         Delete calls to add_decl_expr; add arg to create_*_decl.
15510         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
15511         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
15512         begin_subprog_body and call it.
15513         Don't push and pop ggc context.
15514         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
15515         (add_stmt): Remove handling of DECL_EXPR from here.
15516         If not in function, mark visited.
15517         (add_decl_expr): Put global at top level.
15518         Check for cases of DECL_INITIAL we have to handle here.
15519         (process_type): Add extra arg to create_type_decl.
15520         (build_unit_elab): Rework to just gimplify.
15521         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
15522         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
15523         (get_pending_elaborations, pending_elaborations_p): Likewise.
15524         (push_pending_elaborations, pop_pending_elaborations): Likewise.
15525         (get_elaboration_location, insert_elaboration_list): Likewise.
15526         (gnat_binding_level): Renamed from ada_binding_level.
15527         (init_gnat_to_gnu): Don't clear pending_elaborations.
15528         (global_bindings_p): Treat as global if no current_binding_level.
15529         (set_current_block_context): New function.
15530         (gnat_pushdecl): Renamed from pushdecl; major rework.
15531         All callers changed.
15532         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
15533         (finish_record_type): Call call pushdecl for stub decl.
15534         (function_nesting_depth): Deleted.
15535         (begin_subprog_body): Delete obsolete code.
15536         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
15538 2004-06-28  Robert Dewar  <dewar@gnat.com>
15540         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
15541         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
15542         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
15543         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
15544         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
15546         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
15547         deal with problem of inefficient slices on machines with strict
15548         alignment, when the slice is a component of a composite.
15550         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
15551         machines, we need the check there as well.
15553 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
15555         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
15556         determine safe copying direction for overlapping slice assignments
15557         when component is controlled.
15559         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
15560         formal derived type in the actual for a formal package are visible in
15561         the enclosing instance.
15563 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
15565         PR ada/15600
15566         * sem_util.adb (Trace_Components): Diagnose properly an illegal
15567         circularity involving a private type whose completion includes a
15568         self-referential component.
15569         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
15570         renaming or an instantiation from an implicit derived operation.
15572 2004-06-28  Pascal Obry  <obry@gnat.com>
15574         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
15575         DLL.
15576         (Library_File_Name_For): Idem.
15578 2004-06-28  Matthew Gingell  <gingell@gnat.com>
15580         * g-traceb.ads: Add explanatory note on the format of addresses
15581         expected by addr2line.
15583 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
15585         * Makefile.in: Force debugging information on s-tasdeb.adb,
15586         a-except.adb and s-assert.adb needed by the debugger.
15588 2004-06-28  Vincent Celier  <celier@gnat.com>
15590         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
15591         Need_To_Build_Lib.
15592         (Gnatmake): Ditto.
15594         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
15596         * prj.adb: Minor reformatting
15597         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
15599         * prj.ads: Comment updates
15600         Minor reformatting
15601         (Project_Data): Change Flag1 to Need_To_Build_Lib.
15602         Remove Flag2: not used.
15604         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
15605         declaration.
15607         * gnat_ugn.texi: Put a "null;" declaration in one project file example
15609         * gnat_rm.texi: Document Empty declarations "null;".
15611         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
15612         front of the linker options.
15613         (Link_Foreign): Put the global archives and the libraries in front of
15614         the linker options.
15616 2004-06-28  Javier Miranda  <miranda@gnat.com>
15618         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
15619         (RTU_Loaded): Code cleanup
15620         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
15621         withed predefined units.
15623         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
15624         explicitly withed predefined units.
15625         Fix typo in comment
15627         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
15628         explicitly withed predefined units.
15630 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15632         * ada-tree.def (DECL_STMT): Deleted.
15633         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
15634         (DECL_STMT_VAR): Deleted.
15635         * decl.c: add_decl_stmt now add_decl_expr.
15636         * gigi.h: Likewise.
15637         * trans.c: Likewise.
15638         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
15639         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
15640         (add_stmt): Only handle padded type here.
15641         (add_stmt_with_node): Allow gnat_node to not be present.
15642         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
15643         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
15644         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
15645         make a SAVE_EXPR for the entire fat pointer.
15646         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
15647         (create_index_type): Make a DECL_EXPR.
15648         (end_subprog_body): Don't call allocate_struct_function here but
15649         do clear cfun.
15651 2004-06-25  Pascal Obry  <obry@gnat.com>
15653         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
15654         Relocatable from Build_Dynamic_Library call.
15656         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
15657         Relocatable are now synonym.
15659         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
15661         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
15662         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
15663         call.
15665         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
15666         Lib_Address and Relocatable.
15667         (Default_DLL_Address): Removed.
15669         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
15670         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
15671         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
15672         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
15673         (Default_DLL_Address): Removed.
15675         * mlib-tgt-mingw.adb: Ditto.
15676         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
15678         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
15679         the initial thread stack size.
15681         * a-strmap.ads: Move package L to private part as it is not used in
15682         the spec. Found while reading code.
15684 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
15686         * tracebak.c: Introduce support for a GCC infrastructure based
15687         implementation of __gnat_backtrace.
15689         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
15690         any more. Use accessors instead. This eases maintenance and relaxes
15691         some alignment constraints.
15692         (_GNAT_Exception structure): Remove the Ada specific fields
15693         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
15694         a-exexpr.adb.
15695         (is_handled_by, __gnat_eh_personality): Replace component references to
15696         exception structure by use of the new accessors.
15698         * init.c (__gnat_initialize): Adjust comments to match the just
15699         reverted meaning of the -static link-time option.
15701         * adaint.c (convert_addresses): Arrange not to define a stub for
15702         mips-irix any more, as we now want to rely on a real version from a
15703         recent libaddr2line.
15705         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
15706         the personality routine can use them and not have to rely on a C
15707         counterpart of the record anymore. This simplifies maintenance and
15708         relaxes the constraint of having Standard'Maximum_Alignment match
15709         BIGGEST_ALIGNMENT.
15710         Update comments, and add a section on the common header alignment issue.
15712 2004-06-25  Geert Bosch  <bosch@gnat.com>
15714         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
15715         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
15717 2004-06-25  Robert Dewar  <dewar@gnat.com>
15719         * gnat_rm.texi: Fix section on component clauses to indicate that the
15720         restriction on byte boundary placement still applies for bit packed
15721         arrays.
15722         Add comment on stack usage from Initialize_Scalars
15724         * gnat_ugn.texi: Add documentation for -gnatyLnnn
15726         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
15727         limiting nesting level.
15729         * usage.adb: Add line for -gnatyLnnn switch
15731         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
15732         sem_ch13.adb, exp_aggr.adb: Minor reformatting
15734         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
15735         type as well as on the subtype. This corrects a problem in freeze in
15736         setting alignments of atomic types.
15738         * sem_eval.ads: Minor comment typo fixed
15740         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
15741         level.  Minor reformatting.
15743         * fname.adb (Is_Predefined_File_Name): Require a letter after the
15744         minus sign. This means that file names like a--b.adb will not be
15745         considered predefined.
15747         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
15748         record Test new flag and give diagnostic for bad component clause.
15749         (Freeze_Entity): Set alignment of array from component alignment in
15750         cases where this is safe to do.
15752         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
15753         arrays.
15755         * cstand.adb: (Create_Standard): Set alignment of String to 1
15757         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
15759         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
15760         code in the common constrained array cases.
15762         * a-storio.adb: Change implementation to avoid possible alignment
15763         problems on machines requiring strict alignment (data should be moved
15764         as type Buffer, not type Elmt).
15766         * checks.adb (Apply_Array_Size_Check): Improve these checks by
15767         killing the overflow checks which we really do not need (64-bits is
15768         enough).
15770 2004-06-25  Vincent Celier  <celier@gnat.com>
15772         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
15773         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
15774         inconditionally for the main project.
15775         (Recursive_Add_Archives.Add_Archive_Path): New procedure
15776         (Link_Executables.Check_Time_Stamps): New procedure
15777         (Link_Executables.Link_Foreign): New procedure
15778         Changes made to reduce nesting level of this package
15779         (Check): New procedure
15780         (Add_Switches): When not in quiet output, check that a switch is not
15781         the concatenation of several valid switches. If it is, issue a warning.
15782         (Build_Global_Archive): If the global archive is rebuilt, linking need
15783         to be done.
15784         (Compile_Sources): Rebuilding a library archive does not imply
15785         rebuilding the global archive.
15786         (Build_Global_Archive): New procedure
15787         (Build_Library): New name for Build_Archive, now only for library
15788         project
15789         (Check_Archive_Builder): New procedure
15790         (Create_Global_Archive_Dependency_File): New procedure
15791         (Gprmake): Call Build_Global_Archive before linking
15792         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
15793         throughout.
15794         (Scan_Arg): Display the Copyright notice when -v is used
15796         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
15797         for gnatls.
15799         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
15800         COMPILE.
15801         Add new GNAT LIST qualifier /FILES=
15802         Added qualifier /DIRECTORY= to GNAT METRIC
15803         Added qualifier /FILES= to GNAT METRIC
15804         Added qualifier /FILES to GNAT PRETTY
15806         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
15807         to take into account both versions of the switch.
15809         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
15810         always be the last switch to the gcc driver. Disable switch storing so
15811         that switches automatically added by the gcc driver are not put in the
15812         ALI file.
15814         * prj.adb (Project_Empty): Take into account changes in components of
15815         Project_Data.
15817         * prj.ads (Languages_Processed): New enumaration value All_Languages.
15819         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
15820         used. Split Boolean component Ada_Sources_Present in two Boolean
15821         components Ada_Sources_Present and Other_Sources_Present.
15822         Minor reformatting
15824         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
15825         instead of Sources_Present.
15826         (Set_Ada_Paths.Add.Recursive_Add): Ditto
15828         * prj-nmsc.adb: Minor reformatting
15829         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
15830         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
15831         Check_Ada_Naming_Scheme.
15832         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
15833         throughout.
15835         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
15836         In_Limited.
15837         Make sure that all cycles where there is at least one "limited with"
15838         are detected.
15839         (Parse_Single_Project): New Boolean parameter In_Limited
15841         * prj-proc.adb (Recursive_Check): When Process_Languages is
15842         All_Languages, call first Prj.Nmsc.Ada_Check, then
15843         Prj.Nmsc.Other_Languages_Check.
15845         * prj-proc.adb (Process): Use Ada_Sources_Present or
15846         Other_Sources_Present (instead of Sources_Present) depending on
15847         Process_Languages.
15849         * lang-specs.h: Keep -g and -m switches in the same order, and as the
15850         last switches.
15852         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
15853         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
15854         False.
15855         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
15856         False.
15858         * lib.ads (Disable_Switch_Storing): New procedure.
15860         * make.adb: Modifications to reduce nesting level of this package.
15861         (Check_Standard_Library): New procedure
15862         (Gnatmake.Check_Mains): New procedure
15863         (Gnatmake.Create_Binder_Mapping_File): New procedure
15864         (Compile_Sources.Compile): Add switch -gnatez as the last option
15865         (Display): Never display -gnatez
15867         * Makefile.generic:
15868         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
15870         * gnatcmd.adb (Check_Project): New function
15871         (Process_Link): New procedure to reduce nesting depth
15872         (Check_Files): New procedure to reduce the nesting depth.
15873         For GNAT METRIC, include the inherited sources in extending projects.
15874         (GNATCmd): When GNAT LS is invoked with a project file and no files,
15875         add the list of files from the sources of the project file. If this list
15876         is too long, put it in a temp text files and use switch -files=
15877         (Delete_Temp_Config_Files): Delete the temp text file that contains
15878         a list of source for gnatpp or gnatmetric, if one has been created.
15879         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
15880         in the project file is too large, create a temporary text file that
15881         list them and pass it to the tool with "-files=<temp text file>".
15882         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
15884         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
15885         generated file is in not in Ada.
15887         * gnatls.adb: Remove all parameters And_Save that are no longer used.
15888         (Scan_Ls_Arg): Add processing for -files=
15889         (Usage): Add line for -files=
15891         * g-os_lib.adb (On_Windows): New global constant Boolean flag
15892         (Normalize_Pathname): When on Windows and the path starts with a
15893         directory separator, make sure that the resulting path will start with
15894         a drive letter.
15896         * clean.adb (Clean_Archive): New procedure
15897         (Clean_Project): When there is non-Ada code, delete the global archive,
15898         the archive dependency files, the object files and their dependency
15899         files, if they exist.
15900         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
15902 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
15904         * sinfo.ads: Fix typo in comment.
15906         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
15907         the TSS for remote access-to-subprogram types, since these TSS are
15908         always present once the type has been analyzed.
15909         (RAS_E_Dereference): Same.
15911         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
15912         reference raises Bad_Attribute, mark the reference as analyzed so the
15913         node (and any children resulting from rewrites that could have occurred
15914         during the analysis that ultimately failed) is not analyzed again.
15916         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
15918         * exp_dist.adb: Minor comment fix.
15920         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
15921         type is an anonymous access type, no unchecked deallocation of the
15922         allocated object can occur. If the object is controlled, attach it with
15923         a count of 1. This allows attachment to the Global_Final_List, if
15924         no other relevant list is available.
15925         (Get_Allocator_Final_List): For an anonymous access type that is
15926         the type of a discriminant or record component, the corresponding
15927         finalisation list is the one of the scope of the type.
15929 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
15931         * sem_ch3.adb (Replace_Type): When computing the signature of an
15932         inherited subprogram, use the first subtype if the derived type
15933         declaration has no constraint.
15935         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
15936         before applying previous optimization. Minor code cleanup.
15938         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
15939         placed at the beginning of an unpacked record without explicit
15940         alignment, a slice of it will be aligned and does not need a copy when
15941         used as an actual.
15943 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
15945         PR ada/15591
15946         PR ada/15592
15947         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
15948         reference is written with expressions mimicking parameters.
15950 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
15952         PR ada/15589
15953         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
15954         STEP 2a. The constraints of a full type declaration of a derived record
15955         type are checked for conformance with those declared in the
15956         corresponding private extension declaration. The message
15957         "not conformant with previous declaration" is emitted if an error is
15958         detected.
15960 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
15962         * g-traceb.ads: Document the need for -E binder switch in the spec.
15964         * g-trasym.ads: Document the need for -E binder switch in the spec.
15966 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
15968         * sem_prag.adb: Add handling of pragma Detect_Blocking.
15970         * snames.h, snames.ads, snames.adb: Add entry for pragma
15971         Detect_Blocking.
15973         * s-rident.ads: Change reference to pragma Detect_Blocking.
15975         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
15976         system.ads.
15978         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
15979         to indicate whether pragma Detect_Blocking is active.
15981         * par-prag.adb: Add entry for pragma Detect_Blocking.
15983         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
15984         of not handling WITH.
15985         Note that this replaces the previous update which was incorrect.
15987 2004-06-25  Javier Miranda  <miranda@gnat.com>
15989         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
15990         use-clauses to have a clean environment.
15992         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
15993         the installation of the use-clauses to stablish a clean environment in
15994         case of compilation of a separate unit; otherwise the call to
15995         use_one_package is protected by the barrier Applicable_Use.
15997         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
15998         the installation of the use-clauses to stablish a clean environment in
15999         case of compilation of a separate unit.
16000         (End_Use_Clauses): Minor comment cleanup.
16002 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
16004         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
16006 2004-06-23  Richard Henderson  <rth@redhat.com>
16008         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
16010 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16012         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
16013         now bool instead of int.
16014         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
16015         * trans.c (gnu_switch_label_stack): New function.
16016         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
16017         elaboration of renamed entity returns.
16018         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
16019         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
16020         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
16021         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
16022         DECL_SIZE_UNIT and simplify variable-sized case.
16023         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
16024         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
16025         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
16026         (build_unit_elab): Disable for now.
16027         * utils.c (mark_visited): New function.
16028         (pushdecl): Walk tree to call it for global decl.
16029         (update_pointer_to): Update all variants of pointer and ref types.
16030         Add arg to COMPONENT_REF.
16031         (convert): Likewise.
16032         Move check for converting between variants lower down.
16033         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
16034         (build_allocator): Don't force type of MODIFY_EXPR.
16035         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
16036         put_var_into_stack.
16038 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16040         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
16041         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
16042         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
16043         subprograms.
16044         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
16045         all callers changed.
16046         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
16047         the way that EXIT_STMT finds the loop label.
16048         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
16049         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
16050         (add_stmt): Use annotate_with_locus insted of setting directly.
16051         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
16052         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
16053         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
16054         (build_vms_descriptor): Add extra args to ARRAY_REF.
16055         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
16056         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
16057         New cases.
16058         (build_binary_op): Don't make explicit CONVERT_EXPR.
16059         Add extra rgs to ARRAY_REF.
16061 2004-06-14  Pascal Obry  <obry@gnat.com>
16063         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
16064         Windows.  Fix minor typo.
16066         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
16067         which is now supported on Windows. With this implementation using the
16068         Library Project feature is no different on Windows than on UNIX.
16070 2004-06-14  Vincent Celier  <celier@gnat.com>
16072         * makegpr.adb (Compile_Sources): Nothing to do when there are no
16073         non-Ada sources.
16075         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
16077         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
16078         found, show the project name and the path of the previously parsed
16079         project file.
16081 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
16083         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
16084         array, avoid copying the actual before the call.
16086 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
16088         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
16089         Instead, allocate memory on worst-case alignment assumptions, and then
16090         return an aligned address within the allocated zone.
16092 2004-06-14  Robert Dewar  <dewar@gnat.com>
16094         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
16095         elab entities in predefined units in No_Run_Time_Mode.
16096         (Gen_Adainit_C): Same fix
16097         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
16098         units in No_Run_Time_Mode
16099         (Gen_Elab_Calls_C): Same fix
16101         * symbols-vms-alpha.adb: Minor reformatting
16103         * g-debpoo.ads: Minor reformatting
16105         * lib.adb (In_Same_Extended_Unit): Version working on node id's
16107         * lib.ads (In_Same_Extended_Unit): Version working on node id's
16109         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
16110         working on nodes.
16112         * make.adb: Minor reformatting
16114         * par-ch12.adb: Minor reformatting
16116         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
16118         * prj-strt.adb: Minor reformatting
16120         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
16121         be more general.
16123         * sem_attr.adb: Minor reformatting
16125         * sem_ch7.adb: Minor reformatting
16127         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
16128         for type in the same unit as the object declaration.
16130         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
16131         static string expressions and not just string literals.
16132         Minor reformatting
16133         (Set_Warning): Reset restriction warning flag for restriction pragma
16134         Implement pragma Profile_Warnings
16135         Implement pragma Profile (Restricted)
16136         Give obolescent messages for old restrictions and pragmas
16138         * snames.h, snames.ads, snames.adb: Add new entry for pragma
16139         Profile_Warnings.
16141         * s-rident.ads: Add declarations for restrictions required by profile
16142         Restricted and profile Ravenscar.
16144         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
16146         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
16147         configuration pragmas.
16149 2004-06-11  Vincent Celier  <celier@gnat.com>
16151         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
16152         gnatsym, when symbol policy is Restricted.
16154         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
16155         gnatsym, when symbol policy is Restricted.
16157         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
16158         read the symbol file.
16159         (Finalize): Fail in symbol policy Restricted if a symbol in the original
16160         symbol file is not in the object files. Do not create a new symbol file
16161         when symbol policy is Restricted.
16163         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
16164         in Scng.
16166         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
16167         Restricted.
16168         (Usage): Line for new switch -R
16170         * make.adb (Initialize): When the platform is not VMS, add the
16171         directory where gnatmake is invoked in the front of the path, if
16172         gnatmake is invoked with directory information.  Change the Scan_Args
16173         while loop to a for loop.
16174         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
16175         if Depth is equal or greater than the proposed depth, there is nothing
16176         to do.
16177         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
16178         instead of 0.
16180         * prj.ads: Add new symbol policy Restricted.
16182         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
16183         with the new parameters Check_All_Labels and Case_Location.
16185         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
16186         (Library_Symbol_File needs to be defined).
16188         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
16189         and Case_Location If Check_All_Labels is True, check that all values of
16190         the string type are used, and output warning(s) if they are not.
16192         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
16193         and Case_Location.
16195         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
16197         * gnat_ugn.texi: Update documentation about the library directory in
16198         Library Projects.
16200         * makegpr.adb (Display_Command): In verbose mode, also display the
16201         value of the CPATH env var, when the compiler is gcc.
16202         (Initialize): Change the Scan_Args while loop to a for loop
16203         (Compile_Individual_Sources): Change directory to object directory
16204         before compilations.
16206         * symbols.ads: New symbol policy Restricted.
16208 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
16210         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
16211         is now taken care of internally in the Exception_Propagation package
16212         and does not require clients assistance any more.
16214         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
16215         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
16216         functions. Helpers to maintain a predicate required in the handling of
16217         occurrence transfer between tasks.
16218         This is now handled internally and does not require clients assistance
16219         for the setup/propagate separation anymore.
16220         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
16221         allocation strategy, handle the Setup_And_Not_Propagated predicate and
16222         document.
16224         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
16225         raise_after_setup, now that everything is handled internally within the
16226         setup/propagation engine.
16228 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
16230         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
16231         Add additional conditions for the case of an actual being a simple
16232         name or literal. Improve inlining by preventing the generation
16233         of temporaries with a short lifetime (one use).
16235 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
16237         PR ada/15587
16239         * einfo.ads: Minor comment updates for Has_Completion and
16240         E_Constant list of flags.
16242         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
16243         and constant redeclarations now set the Has_Completion flag of their
16244         defining identifiers.
16246         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
16247         Inspect_Deferred_Constant_Completion.
16248         Used to detect private deferred constants that have not been completed
16249         either by a constant redeclaration or pragma Import. Emits error message
16250         "constant declaration requires initialization expression".
16252         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
16253         completes a deferred constant.
16255 2004-06-11  Geert Bosch  <bosch@gnat.com>
16257         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
16259         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
16260         calculating exponent for scaling denormal numbers.
16261         (Leading_Part): Properly raise Constraint_Error for zero or negative
16262         Adjustment.
16263         (Remainder): Properly raise Constraint_Error for zero divisor.
16265 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
16267         * sem_util.adb: Minor reformatting.
16269         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
16270         dereference when accessing the entry parameter record.
16271         (Check_Array_Type): Always check for possible implicit dereference.
16272         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
16273         Abort if a pointer is still present (denoting that an implicit
16274         dereference was left in the tree by the front-end).
16276         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
16277         dereference when accessing the entry parameter record.
16278         (Check_Array_Type): Always check for possible implicit dereference.
16279         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
16280         Abort if a pointer is still present (denoting that an implicit
16281         dereference was left in the tree by the front-end).
16283 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
16285         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
16286         message, like the compiler itself does. Easier to parse the output.
16288         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
16290         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
16291         be base names, and not includes directories.
16293 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
16295         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
16296         so that dependencies are properly taken into account by make.
16298 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
16300         PR ada/15622
16301         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
16302         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
16304 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
16306         * Makefile.in (install-gnatlib): install target-specific run-time files.
16308         * Make-lang.in: Remove obsolete targets.
16310 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
16312         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
16313         specification, to catch misuses of program unit names.
16315         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
16316         superfluous conversions in an instance.
16318 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
16320         PR ada/15403
16322         * sem_ch12.adb (Save_References): If operator node has been folded to
16323         enumeration literal, associated_node must be discarded.
16325 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
16327         * s-stchop-vxworks.adb: Add required pragma Convention to
16328         Task_Descriptor because it is updated by a C function.
16330 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
16332         PR ada/15568
16334         * Makefile.in: Remove target specific SO_OPT on IRIX
16336 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16338         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
16339         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
16340         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
16341         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
16342         (STMT_STMT, USE_STMT): New statement codes.
16343         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
16344         * ada-tree.h: Reflect above changes.
16345         (struct tree_loop_id): Deleted.
16346         (union lang_tree_node, struct lang_decl, struct lang_type):
16347         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
16348         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
16349         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
16350         (IS_ADA_STMT): New macro.
16351         * decl.c (annotate_decl_with_node): New function.
16352         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
16353         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
16354         Call add_stmt_with_node to do needed assignments.
16355         Add call to update setjmp buffer directly, not via EXPR_STMT.
16356         (maybe_variable): Argment GNAT_NODE deleted.
16357         * gigi.h (maybe_variable): Likewise.
16358         (make_transform, add_stmt_with_node, set_block_for_group): New.
16359         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
16360         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
16361         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
16362         (set_lineno, set_lineno_from_sloc): Likewise.
16363         (record_code_position, insert_code_for): Likewise.
16364         (gnat_poplevel): Now returns void.
16365         (end_subprog_body): Now takes argument.
16366         * misc.c (cgraph.h, tree-inline.h): New includes.
16367         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
16368         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
16369         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
16370         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
16371         (gnat_parse_file): Don't set immediate_size_expand.
16372         Call cgraph functions.
16373         (gnat_expand_expr): Remove most cases.
16374         (record_code_position, insert_code_for): Remove from here.
16375         * trans.c (toplev.h, tree-gimple.h): Now included.
16376         (discard_file_names): Deleted.
16377         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
16378         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
16379         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
16380         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
16381         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
16382         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
16383         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
16384         (set_block_for_group, add_stmt_list): Likewise.
16385         (start_stmt_group): Renamed from start_block_stmt.
16386         (end_stmt_group): Likewise, from end_block_stmt.
16387         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
16388         (gigi): Don't set discard_file_names or call set_lineno.
16389         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
16390         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
16391         Numerous changes throughout to reflect new names and complete
16392         function-at-a-time implementation.
16393         (gnat_expand_stmt): Delete or comment out all cases.
16394         (process_inlined_subprograms): Use add_stmt.
16395         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
16396         call set_lineno; also remove unneeded block handling.
16397         (process_type): Remove unneeded block handling.
16398         (build_unit_elab): Remove calls to deleted functions.
16399         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
16400         (tree-dump.h): Likewise.
16401         (struct ada_binding_level): Add field jmpbuf_decl.
16402         (gnat_define_builtin, gnat_install_builtins): New.
16403         (gnat_gimplify_function, gnat_finalize): Likewise.
16404         (gnat_poplevel): No longer return BLOCK, set it instead.
16405         Remove code dealing with nested functions.
16406         (gnat_init_decl_processing): Also set size_type_node.
16407         Call gnat_install_builtins.
16408         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
16409         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
16410         Remove special-case for "main".
16411         (end_subprog_body): Add arg and rework for tree-ssa.
16412         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
16413         Add case for BOOLEAN_TYPE.
16414         * utils2.c (rtl.h): Now include.
16415         (build_call_raise): Test Debug_Flag_NN directly.
16416         (build_call_alloc_dealloc): Don't use local stack allocation for now.
16417         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
16418         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
16420 2004-06-07  Robert Dewar  <dewar@gnat.com>
16422         * a-direct.ads, einfo.ads: Minor comment updates
16424         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
16425         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
16426         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
16427         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
16428         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
16430         * s-interr-sigaction.adb: Remove unreferenced variable
16431         (Attached_Interrupts).  Minor reformatting.
16432         Avoid use of variable I (replace by J).
16434         * par-ch10.adb: Fix text of one error message
16436         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
16437         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
16438         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
16439         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
16440         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
16441         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
16442         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
16443         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
16444         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
16445         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
16446         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
16447         2005 support.
16449 2004-06-07  Doug Rupp  <rupp@gnat.com>
16451         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
16453         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
16455         * mlib-tgt-vms-ia64.adb: New file.
16457         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
16458         Add mlib-tgt-vms-ia64.adb
16459         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
16460         Move to alpha specific ifeq section.
16461         Add VMS specific versions of symbols.adb
16462         Renaming of 5q vms files.
16464         * 5qsystem.ads renamed to system-vms_64.ads.
16466 2004-06-07  Vincent Celier  <celier@gnat.com>
16468         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
16469         explain that when a time of day corresponding to the non existing hour
16470         on the day switching to DST is specified, Split may return a different
16471         value for Seconds.
16473         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
16474         to GNAT PRETTY.
16476         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
16477         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
16479         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
16480         to False.
16481         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
16482         the linking options.
16483         (Build_Library.Check_Libs): On VMS, if there is a dependency on
16484         g-trasym.ads, set Gtrasymobj_Needed to True.
16486         * prj-attr.adb: Add new package Metrics for gnatmetric
16488         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
16489         canonical case to take into account files with upper case characters on
16490         Windows.
16491         (Ada_Check): Load the reference symbol file name in the name buffer to
16492         check it, not the symbol file name.
16494         * snames.ads, snames.adb: Add standard name Metrics (name of project
16495         file package for gnatmetric).
16497         * vms_conv.ads: Add Metric to Comment_Type
16499         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
16501         * vms_data.ads: Add qualifiers for GNAT METRIC
16503         * makegpr.adb (Link_Executables): Take into account the switches
16504         specified in package Linker of the main project.
16506 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
16508         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
16509         the index of the last element is Units.Last, not Units.Table'Last
16510         (which is usually not a valid index within the actually allocated
16511         storage for the table).
16513         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
16514         determines whether to generate a call to a checked storage pool
16515         Dereference action.
16516         Generate such a call only for a dereference that either comes from
16517         source, or is the result of rewriting a dereference that comes from
16518         source.
16520 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
16522         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
16524 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
16526         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
16527         file level, elaborate the stride for inner dimensions in alignment
16528         units, not bytes.
16530         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
16531         in a comment.
16533 2004-06-07  Javier Miranda  <miranda@gnat.com>
16535         * exp_ch6.adb: Correct wrong modification in previous patch
16537 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
16539         * g-trasym.ads: Corrected comment to properly reflect level of support
16540         on VMS.
16542 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
16544         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
16545         includes case of a variable referenced on the left hand side of an
16546         assignment, therefore remove redundant code. Variables and prefixes of
16547         indexed or selected components are now marked as referenced on left
16548         hand side. Warnings are now properly emitted when variables or prefixes
16549         are assigned but not read.
16551         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
16552         left hand side referenced variables. Private access types do not
16553         produce the warning "variable ... is assigned but never read".
16554         Add also additional checks to left hand side referenced variables.
16555         Aliased, renamed objects and access types do not produce the warning
16556         "variable ... is assigned but never read" since other entities may read
16557         the memory location.
16559 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
16561         * Makefile.in: In the powerpc/vxworks-specific section, restore
16562         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
16563         by mistake).
16565 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
16567         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
16568         predefined operators.
16569         Removes spurious type errors from g-trasym-vms.adb.
16571         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
16572         distinct from the operator appearing in the source, call appropriate
16573         routine to insert conversions when needed, and complete resolution of
16574         node.
16575         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
16576         interpretations for rewritten right operand.
16577         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
16578         the other operand is overloaded and the context is a type conversion.
16580 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16582         * ada-tree.def (BLOCK_STMT): Now has two operands.
16583         (BREAK_STMT): New.
16585         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
16587         * gigi.h: (gnat_poplevel): Now returns a tree.
16589         * trans.c (end_block_stmt): Add arg; all callers changed.
16590         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
16591         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
16592         (add_stmt): Set TREE_TYPE.
16593         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
16594         (gnat_expand_stmt, case BREAK_STMT): New case.
16596         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
16598 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
16600         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
16601         procedure Set_Stack_Size that is not needed.
16603 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
16605         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
16606         used for gnatpp input file and for the files upon which it depends
16608 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
16610         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
16612 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
16614         * gnatvsn.ads: Bump version numbers appropriately.
16615         Add new build type.
16617 2004-06-07  Pascal Obry  <obry@gnat.com>
16619         * gnat_ugn.texi: Improve comments about imported names and link names
16620         on Windows. Add a note about the requirement to use -k gnatdll's option
16621         when working with a DLL which has stripped stdcall symbols (no @nn
16622         suffix).
16624 2004-05-27  Vincent Celier  <celier@gnat.com>
16626         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
16627         COMMENTS_LAYOUT=UNTOUCHED
16629         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
16630         symbols-vms-alpha.adb
16632 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
16634         * sem.ads: Clarify documentation on checks suppression.
16636         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
16638 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
16640         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
16641         the case of multiple derivations.
16642         (Is_Object_Reference): For a selected component, verify that the prefix
16643         is itself an object and not a value.
16645         * sem_ch12.adb (Same_Instantiated_Constant): New name for
16646         Same_Instantiated_Entity.
16647         (Same_Instantiated_Variable): Subsidiary to
16648         Check_Formal_Package_Instance, to recognize actuals for in-out generic
16649         formals that are obtained from a previous formal package.
16650         (Instantiate_Subprogram_Body): Emit proper error when
16651         generating code and the proper body of a stub is missing.
16653         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
16654         has a universal interpretation, do the disambiguation here.
16656         * exp_ch4.adb (Expand_N_Type_Conversion,
16657         Expand_N_Unchecked_Type_Conversion): Special handling when target type
16658         is Address, to avoid typing anomalies when Address is a visible integer
16659         type.
16661         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
16662         to determine whether a subprogram should not be marked Pure, even when
16663         declared in a pure package.
16665 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
16667         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
16669         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
16670         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
16671         Update the documentation about the Ravenscar profile, following the
16672         definition found in AI-249.
16674         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
16675         setting the Profile (Ravenscar). This must be done in addition to
16676         setting the required restrictions.
16678         * rtsfind.ads: Add the set of operations defined in package
16679         Ada.Interrupts.
16681         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
16682         restriction.
16684 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
16686         lang-specs.h: Always require -c or -S and always redirect to /dev/null
16687         if -gnatc or -gnats is passed.
16689 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
16691         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
16692         a significant reference. Warnings are now properly emitted when a
16693         discriminated type is not referenced.
16695         * lib-xref.adb (Generate_Reference): A deferred constant completion,
16696         record representation clause or record type discriminant does not
16697         produce a reference to its corresponding entity. Warnings are now
16698         properly emitted when deferred constants and record types are not
16699         referenced.
16701 2004-05-27  Geert Bosch  <bosch@gnat.com>
16703         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
16704         Fixes ACATS Annex G tests.
16706 2004-05-27  Robert Dewar  <dewar@gnat.com>
16708         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
16709         handling WITH
16711 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
16713         * s-interr.adb (Server_Task): Take into account case of early return
16714         from sigwait under e.g. linux.
16716 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
16718         * gnat_ugn.texi: Add description for the new gnatpp options:
16719          -rnb - replace the original source without creating its backup copy
16720          -c0 - do not format comments
16722 2004-05-24  Geert Bosch  <bosch@gnat.com>
16724         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
16725         with 192 bits of precision, sufficient to reduce a double-extended
16726         arguments X with a maximum relative error of T'Machine_Epsilon, for X
16727         in -2.0**32 .. 2.0**32.
16728         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
16729         reduction by the processor, which only uses a 68-bit approximation of
16730         Pi.
16731         (Tan): Always reduce arguments and compute function either using
16732         the processor's fptan instruction, or by dividing sin and cos as needed.
16734 2004-05-24  Doug Rupp  <rupp@gnat.com>
16736         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
16737         gcc error on 32/64 bit VMS.
16739 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
16741         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
16742         since this is what we get for stack overflows although not documented
16743         as such.
16744         Document the issues which may require adjustments to our signal
16745         handlers.
16747 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
16749         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
16750         enclosing dynamic scope if the instantiation is within a generic unit.
16752 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
16754         * exp_dbug.ads: Fix typo.
16756         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
16757         Rename it to its proper name: system-linux-ia64.ads
16758         (stamp-gnatlib1): Remove extra target specific run time files when
16759         setting up the rts directory.
16761 2004-05-24  Javier Miranda  <miranda@gnat.com>
16763         * einfo.ads, einfo.adb (Limited_Views): Removed.
16764         (Limited_View): New attribute that replaces the previous one. It is
16765         now a bona fide package with the limited-view list through the
16766         first_entity and first_private attributes.
16768         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
16769         limited-private-with clause.
16770         (Install_Limited_Withed_Unit): Install the private declarations of a
16771         limited-private-withed package. Update the installation of the shadow
16772         entities according to the new structure (see Build_Limited_Views)
16773         (Build_Limited_Views): Replace the previous implementation of the
16774         limited view by a package entity that references the first shadow
16775         entity plus the first shadow private entity (required for limited-
16776         private-with clause)
16777         (New_Internal_Shadow_Entity): Code cleanup.
16778         (Remove_Limited_With_Clause): Update the implementation to undo the
16779         new work carried out by Build_Limited_Views.
16780         (Build_Chain): Complete documentation.
16781         Replace Ada0Y by Ada 0Y in comments
16782         Minor reformating
16784         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
16785         types the level of accessibility depends on the enclosing type
16786         declaration.
16788         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
16789         entities. Complete documentation of previous change.
16791 2004-05-24  Robert Dewar  <dewar@gnat.com>
16793         * namet.adb: Minor reformatting
16794         Avoid use of name I (replace by J)
16795         Minor code restructuring
16797         * sem_ch6.adb: Minor reformatting
16799         * lib-writ.adb: Do not set restriction as active if this is a
16800         Restriction_Warning case.
16802         * sem_prag.adb: Reset restriction warning flag if real pragma
16803         restriction encountered.
16805         * s-htable.adb: Minor reformatting
16806         Change rotate count to 3 in Hash (improves hash for small strings)
16808         * 5qsystem.ads: Add comments for type Address (no literals allowed).
16810         * gnat_ugn.texi: Add new section of documentation "Code Generation
16811         Control", which describes the use of -m switches.
16813 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
16815         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
16816         through the DECL_INITIAL for renamed variables.
16818 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
16820         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
16822 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
16824         * exp_dbug.ads: Correct comments concerning handling of overloading,
16825         since we no longer use $ anymore.
16827 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
16829         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
16830         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
16831         with illegal subunits.
16833 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
16835         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
16836         body with front-end inlining enabled, check whether an inline pragma
16837         appears immediately after the body and applies to it.
16839         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
16840         enabled and the pragma appears after the body of the subprogram.
16842 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16844         Part of function-at-a-time conversion
16846         * misc.c (adjust_decl_rtl): Deleted.
16847         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
16848         Define.
16850         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
16851         (add_decl_stmt, add_stmt, block_has_vars): New functions.
16852         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
16854         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
16855         when making a decl.
16856         (gnat_to_gnu_entity): Likewise.
16857         Use add_stmt to update setjmp buffer.
16858         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
16859         flush_addressof.
16860         No longer call adjust_decl_rtl.
16861         (DECL_INIT_BY_ASSIGN_P): New macro.
16862         (DECL_STMT_VAR): Likewise.
16864         * trans.c (gigi): Call start_block_stmt to make the outermost
16865         BLOCK_STMT.
16866         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
16867         Call start_block_stmt and end_block_stmt temporarily.
16868         Use gnat_expand_stmt instead of expand_expr_stmt.
16869         (add_decl_stmt): New function.
16870         (tree_transform): Call it.
16871         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
16872         (end_block_stmt): Set type and NULL_STMT.
16873         (gnat_expand_stmt): Make recursize call instead of calling
16874         expand_expr_stmt.
16875         (gnat_expand_stmt, case DECL_STMT): New case.
16876         (set_lineno_from_sloc): Do nothing if global.
16877         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
16878         (start_block_stmt, add_stmt, end_block_stmt): New functions.
16879         (build_block_stmt): Call them.
16880         (gnat_to_code): Don't expand NULL_STMT.
16881         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
16882         args.
16883         (tree_transform): Likewise.
16884         (tree_transform, case N_Null_Statement): Return NULL_STMT.
16885         (gnat_expand_stmt, case NULL_STMT): New case.
16886         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
16887         IF_STMT_TRUE.
16889         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
16890         TREE_ADDRESSABLE.
16892         * utils.c (create_var_decl): Do not call expand_decl or
16893         expand_decl_init.
16894         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
16895         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
16896         here.
16897         (struct e_stack): Add chain_next to GTY.
16898         (struct binding_level): Deleted.
16899         (struct ada_binding_level): New struct.
16900         (free_block_chain): New.
16901         (global_binding_level, clear_binding_level): Deleted.
16902         (global_bindings_p): Rework to see if no chain.
16903         (kept_level_p, set_block): Deleted.
16904         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
16905         new data structure and work directly on BLOCK node.
16906         (gnat_poplevel): Similarly.
16907         (get_decls): Look at BLOCK_VARS.
16908         (insert_block): Work directly on BLOCK node.
16909         (block_has_var): New function.
16910         (pushdecl): Rework for new binding structures.
16911         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
16912         poplevel.
16913         (build_subprog_body): Likewise.
16914         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
16916         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
16918         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
16919         (DECL_STMT_VAR): Likewise.
16921 2004-05-17  Robert Dewar  <dewar@gnat.com>
16923         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
16924         procedure
16926         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
16927         of restriction synonyums by using
16928         Restrict.Process_Restriction_Synonyms.
16930         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
16932         * s-restri.ads (Tasking_Allowed): Correct missing comment
16934         * s-rident.ads: Add entries for restriction synonyms
16936         * ali.adb: Fix some problems with badly formatted ALI files that can
16937         result in infinite loops.
16939         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
16940         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
16941         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
16942         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
16943         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
16944         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
16945         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
16946         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
16947         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
16948         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
16949         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
16950         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
16951         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
16952         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
16953         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
16954         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
16955         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
16956         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
16957         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
16958         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
16959         to Task_Id (minor cleanup).
16961 2004-05-17  Vincent Celier  <celier@gnat.com>
16963         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
16964         directory separator.
16966         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
16967         project being extended, if Languages is not declared in extending
16968         project.
16970 2004-05-17  Javier Miranda  <miranda@gnat.com>
16972         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
16973         limited view of a visible sibling.
16975 2004-05-14  Robert Dewar  <dewar@gnat.com>
16977         * gnat_ugn.texi: Minor change to -gnatS documentation
16979         * sprint.adb: Remove some instances of Assert (False) and for this
16980         purpose replace them by output of a ??? string.
16982         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
16983         Assert (False).
16985         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
16986         flag processing. This was suppressing required dependencies in
16987         No_Run_Time mode and is not needed since the binder does not generate
16988         references for things in libgnat anyway.
16990         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
16991         warning.
16993 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
16995         * gnat_ugn.texi: Document AIX-specific issue with initialization of
16996         resolver library.
16998         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
16999         action for the case of an actual parameter in an init proc call.
17001 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
17003         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
17004         subtype, check visible entities in base type.
17006         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
17007         actions if the object is a renaming.
17009         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
17010         Check_Formal_Package_Instance, to determine more precisely when the
17011         formal and the actual denote the same entity.
17013 2004-05-14  Javier Miranda  <miranda@gnat.com>
17015         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
17017         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
17018         corresponding to a private_with must be removed from visibility; it
17019         will be made visible later, just before we analyze the private part of
17020         the package.
17021         (Check_Private_Child_Unit): Allow private_with clauses in public
17022         siblings.
17023         (Install_Siblings): Make visible the private entities of private-withed
17024         siblings.
17025         (Install_Withed_Unit): Do not install the private withed unit if we
17026         are compiling a package declaration and the Private_With_OK flag was
17027         not set by the caller. These declarations will be installed later,
17028         just before we analyze the private part of the package.
17030         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
17031         during the evaluation of the expression that initializes the object,
17032         decorate it with the expected type to avoid cascade errors.
17033         Code cleanup.
17035         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
17036         subprogram we have to install the private_with clauses after its
17037         specification has been analyzed (as documented in AI-262.TXT).
17039         * sem_ch8.adb (Has_Private_With): New function. Determines if the
17040         current compilation unit has a private with on a given entity.
17041         (Find_Direct_Name): Detect the Beaujolais problem described in
17042         AI-262.TXT
17044         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
17045         provides the functionality of the function Is_Ancestor that was
17046         previously available in sem_ch10. It has been renamed to avoid
17047         overloading.
17049         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
17051 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17053         * utils.c (build_vms_descriptor): Use SImode pointers.
17055 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
17057         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
17059 2004-05-14  GNAT Script  <nobody@gnat.com>
17061         * Make-lang.in: Makefile automatically updated
17063 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
17065         Renaming of target specific files for clarity
17067         * Makefile.in: Rename GNAT target specific files.
17069         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
17070         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
17071         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
17072         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
17073         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
17074         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
17075         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
17076         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
17077         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
17078         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
17079         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
17080         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
17081         51osinte.adb, 51osinte.ads, 51system.ads,
17082         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
17083         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
17084         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
17085         56tpopsp.adb, 57system.ads, 58system.ads,
17086         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
17087         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
17088         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
17089         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
17090         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
17091         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
17092         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
17093         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
17094         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
17095         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
17096         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
17097         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
17098         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
17099         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
17100         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
17101         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
17102         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
17103         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
17104         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
17105         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
17106         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
17107         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
17108         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
17109         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
17110         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
17111         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
17112         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
17113         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
17114         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
17115         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
17116         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
17117         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
17118         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
17119         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
17120         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
17121         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
17122         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
17123         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
17124         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
17125         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
17127         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
17128         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
17129         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
17130         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
17131         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
17132         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
17133         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
17134         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
17135         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
17136         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
17137         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
17138         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
17139         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
17140         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
17141         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
17142         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
17143         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
17144         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
17145         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
17146         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
17147         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
17148         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
17149         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
17150         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
17151         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
17152         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
17153         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
17154         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
17155         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
17156         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
17157         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
17158         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
17159         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
17160         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
17161         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
17162         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
17163         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
17164         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
17165         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
17166         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
17167         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
17168         s-osinte-vms.ads, s-osinte-vxworks.adb,
17169         s-osinte-vxworks.ads, s-osprim-mingw.adb,
17170         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
17171         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
17172         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
17173         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
17174         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
17175         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
17176         s-stchop-vxworks.adb, s-taprop-dummy.adb,
17177         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
17178         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
17179         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
17180         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
17181         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
17182         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
17183         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
17184         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
17185         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
17186         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
17187         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
17188         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
17189         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
17190         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
17191         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
17192         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
17193         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
17194         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
17195         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
17196         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
17197         system-irix-o32.ads, system-linux-x86_64.ads,
17198         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
17199         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
17200         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
17201         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
17202         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
17203         system-vxworks-mips.ads, system-vxworks-ppc.ads,
17204         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
17205         above.
17207 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
17209         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
17211 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
17213         Merge from tree-ssa-20020619-branch.
17215         * config-lang.in (boot_language, build_by_default): Set
17216         to no.
17217         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
17218         (max_size): Add static chain op for call_expr.
17220 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
17222         PR target/15331
17223         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
17225 2004-05-11  Roger Sayle  <roger@eyesopen.com>
17227         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
17228         COND_EXPR.
17230 2004-05-10  Doug Rupp  <rupp@gnat.com>
17232         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
17233         system.aux_dec.
17235         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
17237         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
17239         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
17240         Fixes undefined symbols in IA64 gnatlib.
17242         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
17244         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
17245         Short_Address). This will be moved to system.auxdec.
17247 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
17249         * sem_util.adb: Replace test for presence of a node that is always
17250         present with a call to Discard_Node.
17252         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
17253         Analyze on the library unit node after generation of distribution stub
17254         constructs.  The call was a no-op because Unit_Node has already been
17255         Analyzed, and the tree fragments for the distribution stubs are
17256         analyzed as they are inserted in Exp_Dist.
17257         Update comment regarding to distribution stubs to reflect that we
17258         do not generate stub in separate files anymore.
17260         * einfo.ads: Clarify the fact that a tagged private type has the
17261         E_Record_Type_With_Private Ekind.
17263         * erroutc.adb: Minor reformatting
17265         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
17266         values if line length is increased using -gnatyM (noticed during code
17267         reading).
17269         * eval_fat.adb: Minor reformatting
17270         Put spaces around exponentiation operator
17272 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
17274         PR ada/15005
17275         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
17276         has been rewritten as an explicit dereference, retrieve type of
17277         original node to check for possibly unconstrained record type.
17279 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
17281         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
17282         overriding, use the operation of the parent unconditionally.
17284         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
17285         operation when either operand is a literal, to avoid further
17286         ambiguities.
17288         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
17289         overridden by a previous explicit declaration, mark the previous entity
17290         as overriding.
17292         * sem_disp.adb (Check_Dispatching_Operation): New predicate
17293         Is_Visibly_Controlled, to determine whether a declaration of a
17294         primitive control operation for a derived type overrides an inherited
17295         one. Add warning if the explicit declaration does not override.
17297 2004-05-10  Vincent Celier  <celier@gnat.com>
17299         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
17300         some cases when the sources are no longer present.
17302         * make.adb (Collect_Arguments): Fail if an external source, not part
17303         of any project need to be compiled, when switch -x has not been
17304         specified.
17306         * makeusg.adb: Document new switch -x
17308         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
17309         defaulted to False.
17311         * switch-m.adb (Scan_Make_Switches): New switch -x
17313         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
17314         gnatmake switch -x.
17316         * gnat_ugn.texi: Document new gnatmake switch -x
17318 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
17320         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
17322         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
17323         (process_attributes): Likewise.
17325 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
17327         * s-inmaop.ads: Fix spelling mistake in one of the comments.
17329 2004-05-10  Robert Dewar  <dewar@gnat.com>
17331         * gnat_ugn.texi: Document that for config pragma files, the maximum
17332         line length is always 32767.
17334         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
17335         literals is now allowed.
17337         * gnat-style.texi: Remove statement about splitting long lines before
17338         an operator rather than after, since we do not follow this rule at all.
17339         Clarify rule (really lack of rule) for spaces around exponentiation
17341         * sem_elim.adb: Allow concatenation of string literals as well as a
17342         single string literal for pragma arguments.
17344         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
17346         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
17347         written for append case.
17349         * frontend.adb: Changes to avoid checking max line length in config
17350         pragma files.
17352         * g-os_lib.ads: Minor reformatting
17354         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
17355         wrong in any case. Instead use standard value. Noticed during code
17356         reading.
17358         * opt.ads (Max_Line_Length): New field, used to implement removal of
17359         limitation on length of lines when scanning config pragma files.
17361         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
17362         makeutl.ads, makeutl.adb: Minor reformatting
17364         * scn.adb: Do not check line length while scanning config pragma files
17365         Do not check line length while scanning out license information
17367         * scng.adb: Changes to avoid line length checks while parsing config
17368         pragma files.
17370 2004-05-10  GNAT Script  <nobody@gnat.com>
17372         * Make-lang.in: Makefile automatically updated
17374 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
17376         * osint.adb (Find_Program_Name): Fix handling of VMS version
17377         number.
17379 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
17381         * g-os_lib.ads (Invalid_Time): New constant
17383         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
17384         return OS_Time instead of time_t to match what is imported by Ada.
17385         Now return -1 if the file doesn't exist, instead of a random value
17387 2004-05-05  Robert Dewar  <dewar@gnat.com>
17389         * usage.adb: Add line for -gnatR?s switch
17391         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
17393         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
17394         and for Match (Data_First, Data_last)
17396         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
17397         written when we are dealing with multi-unit files.
17399 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
17401         * Makefile.in: Remove unused targets and variables.
17403 2004-05-05  Vincent Celier  <celier@gnat.com>
17405         * switch-m.adb: New gnatmake switch -eI
17407         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
17408         of new gnatmake switch -eInnn.
17410         * makegpr.adb: Take into account new parameters Index and Src_Index in
17411         Prj.Util.
17413         * clean.adb: Implement support for multi-unit sources, including new
17414         switch -i.
17416         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
17417         Src_Index.
17419         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
17420         (Extract_From_Q): New out parameter Index
17421         (Mark, Is_Marked): Subprograms moved to Makeutl
17422         (Switches_Of): New parameter Source_Index
17423         (Add_Switch): New parameter Index
17424         (Check): New parameter Source_Index
17425         (Collect_Arguments): New parameter Source_Index
17426         (Collect_Arguments_And_Compile): New parameter Source_Index
17427         (Compile): New parameter Source_Index
17428         Put subprograms in alphabetical order
17429         Add support for multi-source sources, including in project files.
17431         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
17432         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
17433         Make.
17435         * makeusg.adb: New gnatmake switch -eInnn
17437         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
17438         Prj.Util.Value_Of.
17440         * opt.ads (Main_Index): New variable, defaulted to 0.
17442         * osint.ads, osinte.adb (Add_File): New parameter Index
17443         (Current_Source_Index): New function
17445         * prj.adb: Take into account new components Index and Src_Index
17447         * prj.ads (String_Element): New component Index
17448         (Variable_Value): New component Index
17449         (Array_Element): New component Src_Index
17451         * prj-attr.adb: Indicate that optional index may be specified for
17452         attributes Main, Executable, Spec, Body and some of Switches.
17454         * prj-attr.ads (Attribute_Kind): New values for optional indexes
17455         (Attribute_Record): New component Optional_Index
17457         * prj-com.ads (File_Name_Data): New component Index
17459         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
17461         * prj-env.adb (Put): Output optional index
17463         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
17464         attributes Spec and Body.
17466         * prj-nmsc.adb: Process optional indexes
17468         * prj-pp.adb: Ouput "at" for optional indexes
17470         * prj-proc.adb: Take into account optional indexes
17472         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
17473         Optional_Index. For string literal,
17474         process optional index when Optional_Index is True.
17475         (Parse_Expresion): New Boolean parameter Optional_Index
17477         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
17478         (Set_Source_Index_Of): New procedure
17480         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
17481         index.
17483         * prj-util.ads (Executable_Of): New parameter Index
17484         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
17485         New parameter Src_Index, defaulted to 0.
17487 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
17489         PR ada/15257
17490         * sem_ch3.adb (Access_Definition): If this is an access parameter
17491         whose designated type is imported through a limited_with clause, do
17492         not add the enclosing subprogram to the list of private dependents of
17493         the type.
17495 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
17497         PR ada/15258
17498         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
17499         a limited_with clause, and the other is its non-limited view.
17501 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
17503         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
17505         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
17506         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
17507         Stand.Boolean_Literals to produce references to entities
17508         Standard_False and Standard_True from compile-time computed boolean
17509         values.
17511         * stand.ads (Boolean_Literals): New variable, provides the entity
17512         values for False and True, for use by the expander.
17514 2004-05-05  Doug Rupp  <rupp@gnat.com>
17516         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
17517         5vinmaop.adb: Unchecked convert Short_Address vice Address
17519         * adaint.c, raise.c: Caste CRTL function return value
17520         to avoid gcc error on 32/64 bit IVMS.
17522         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
17523         target = IA64/VMS.
17525         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
17527         * 5qsystem.ads (Address): Declare as Long_Integer
17528         (Short_Address): Declare as 32 bit subtype of Address
17529         Declare  abstract address operations to avoid gratuitous ambiguities.
17531 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
17533         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
17534         instead of the old Boolean_Entry_Barriers.
17535         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
17537 2004-05-05  GNAT Script  <nobody@gnat.com>
17539         * Make-lang.in: Makefile automatically updated
17541 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
17543         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
17545 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
17547         PR ada/15152
17549         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
17550         alone. Replacing object references by literals is inappropriate in a
17551         so low level context.
17553 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
17555         * a-exexpr.adb: Add comments
17557 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
17559         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
17560         declare the Ancestor_Tags array in Type_Specific_Data with a small size
17561         without risking a bounds check error when accessing one of its
17562         components.
17563         (Type_Specific_Data): Define Ancestor_Tags as a small array.
17564         This prevents us from hitting a limitation during the debug info
17565         generation when using stabs.
17567         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
17568         small array.
17569         This prevents us from hitting a limitation during the debug info
17570         generation when using stabs.
17572 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
17574         lang-specs.h: Remove -gnatz* from specs.
17576 2004-05-03  Vincent Celier  <celier@gnat.com>
17578         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
17580         * Make-lang.in, Makefile.in: Add gprmake
17582 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
17584         * sem_aggr.adb: Fix typo in comment.
17586 2004-05-03  Robert Dewar  <dewar@gnat.com>
17588         * make.adb: Minor reformatting
17590         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
17592         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
17593         so that it works when address is not a private type.
17595         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
17596         properly with rewritten unchecked conversions. This prevents
17597         order-of-elaboration issues that can otherwise arise.
17598         (Minimum_Size): Don't check size of access types under VMS
17600         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
17601         interpretations of integer literals as type System.Address.
17603         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
17604         (Is_Descendent_Of): New function
17606 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
17608         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
17609         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
17610         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
17612         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
17613         of the old Max_Entry_Queue_Depth.
17615         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
17616         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
17617         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
17619         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
17620         New entry for proper handling of Max_Entry_Queue_Depth.
17621         New entry for proper handling of No_Dynamic_Interrupts.
17623         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
17624         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
17625         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
17626         the GNAT specific restriction Max_Entry_Queue_Depth.
17627         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
17628         the GNAT specific restriction No_Dynamic_Interrupts.
17630         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
17631         instead of the old Boolean_Entry_Barriers.
17632         Use the new restriction No_Dynamic_Attachment instead of the old
17633         No_Dynamic_Interrupts.
17635         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
17636         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
17638         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
17639         of the old Max_Entry_Queue_Depth.
17641 2004-05-03  GNAT Script  <nobody@gnat.com>
17643         * Make-lang.in: Makefile automatically updated
17645 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
17647         * checks.adb (Enable_Range_Check): If the prefix of an index component
17648         is an access to an unconstrained array, perform check unconditionally.
17650 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17652         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
17653         Component_Clause.
17655 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
17657         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
17658         alternate stack setting. There was no support for the tasking cases
17659         and the changes eventually caused a number of side-effect failures in
17660         the non-tasking case too.
17662 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
17664         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
17665         -gnats is passed.
17667 2004-04-29  Vincent Celier  <celier@gnat.com>
17669         * make.adb (Gnatmake): Increase max size of argument array for
17670         gnatbind for the potential addition of -F.
17671         If there are Stand-Alone Library projects, invoke gnatbind with -F to
17672         be sure that elaboration flags will be checked.
17674         * switch-c.adb: Correct call to Scan_Pos for -gnateI
17676 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
17678         * sem_warn.adb (Check_References): Move '<access-variable> may be
17679         null' warning out of under Warn_On_No_Value_Assigned.
17681 2004-04-29  Ed Falis  <falis@gnat.com>
17683         * gnat_ugn.texi: Fixed texi error
17685 2004-04-29  Robert Dewar  <dewar@gnat.com>
17687         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
17688         abstract operations if they come from predefined files.
17690         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
17691         Dynamic, not RM).
17693         * s-addope.adb: Correct obvious error in mod function
17695 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
17697         * Makefile.in: Add target pairs for powerpc darwin*
17698         tasking support.
17700         * a-intnam-darwin.ads, s-osinte-darwin.adb,
17701         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
17703 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
17705         * Makefile.in: Add target macro definitions for s390*-linux*.
17706         * system-linux-s390.ads: New file.
17707         * system-linux-s390x.ads: New file.
17709 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
17711         * gnat_ugn.texi: Correct argument to @setfilename.
17713 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
17715         * a-exexpr.adb (Unwind_Word): New data type.
17716         (Unwind_Exception): Use it as type of Private1 and Private2.
17718         * raise.c (db_action_for): Fix debug printf.
17720 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
17722         * a-wtmoio.ads: Formal type must be a modular type, not a signed
17723         integer type.
17725 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17727         * decl.c (gnat_to_gnu_entity, case object): Call
17728         __builtin_update_setjmp_buf.
17730         * gigi.h (update_setjmp_buf): Deleted.
17731         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
17733         * misc.c: (update_setjmp_buf): Deleted.
17735         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
17736         around block of RTL.
17738         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
17740 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
17742         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
17743         subprogram for which no pragma All_Calls_Remote applies, store the
17744         address of the real subprogram in the underlying record type, so local
17745         dereferences do not go through the PCS.
17747 2004-04-26  Robert Dewar  <dewar@gnat.com>
17749         * i-c.ads: Add some type qualifications to avoid ambiguities when
17750         compiling with s-auxdec.ads and a non-private address type.
17752 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
17754         * Makefile.rtl: Fix error in previous check-in:
17755         Add s-addope.o to non tasking object list (rather than tasking object
17756         list).
17758 2004-04-26  Javier Miranda  <miranda@gnat.com>
17760         * sem_aggr.adb: Fix typo in comments
17761         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
17762         Required to check the null-exclusion attribute.
17764         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
17765         case of anonymous access types in record and array components. For a
17766         component definition the level is the same of the enclosing composite
17767         type.
17769         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
17770         that are anonymous access types the level of accessibility depends on
17771         the enclosing type declaration. In order to have this information, set
17772         the scope of the anonymous access type to the enclosing record type
17773         declaration.
17774         (Array_Type_Declaration): In case of components that are anonymous
17775         access types the level of accessibility depends on the enclosing type
17776         declaration. In order to have this information, set the scope of the
17777         anonymous access type to the enclosing array type declaration.
17779         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
17780         access type.
17782         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
17783         renaming of anonymous access-to-constant types allowed if and only if
17784         the renamed object is access-to-constant.
17786         * sem_util.adb (Type_Access_Level): In case of anonymous access types
17787         that are component_definition or discriminants of a nonlimited type,
17788         the level is the same as that of the enclosing component type.
17790 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
17792         * sem_elim.adb: Some minor code reorganization from code reading. Fix
17793         misprint in the function name (File_Name_Match).
17795 2004-04-23  Laurent GUERBY <laurent@guerby.net>
17797         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
17798         install.
17800 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17802         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
17804 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
17806         * adaint.c (__gnat_try_lock): No longer requires that the parent
17807         directory be writable, the directory itself is enough.
17808         (gnat_is_absolute_path): Change profile, so that the call from
17809         GNAT.OS_Lib can be made more efficient.
17811         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
17812         from GNAT.OS_Lib can be made more efficient.
17814         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
17815         one copy of the file name. Found by code reading.
17817 2004-04-23  Vincent Celier  <celier@gnat.com>
17819         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
17820         Correct documentation on gnatmake switches transmitted to the compiler
17822         * ali.ads: Minor comment fix
17824 2004-04-23  Javier Miranda  <miranda@gnat.com>
17826         * sem_ch6.adb: (Confirming Types): Code cleanup
17828         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
17829         subprogram types: E_Anonymous_Access_Subprogram_Type and
17830         E_Anonymous_Access_Protected_Subprogram_Type.
17832 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
17834         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
17835         whether a pragma All_Calls_Remote applies to the subprogram on which
17836         'Access is taken.
17837         No functional change is introduced by this revision; the new parameter
17838         will be used to allow calls to local RCI subprograms to be optimized
17839         to not use the PCS in the case where no pragma All_Calls_Remote applies,
17840         as is already done in the PolyORB implementation of the DSA.
17842         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
17843         whether a pragma All_Calls_Remote applies to the subprogram on which
17844         'Access is taken.
17845         No functional change is introduced by this revision; the new parameter
17846         will be used to allow calls to local RCI subprograms to be optimized
17847         to not use the PCS in the case where no pragma All_Calls_Remote applies,
17848         as is already done in the PolyORB implementation of the DSA.
17850 2004-04-23  Robert Dewar  <dewar@gnat.com>
17852         * Makefile.rtl: Add entry for s-addope.o in run time library list
17853         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
17854         * s-addope.ads, s-addope.adb: New files.
17856         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
17857         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
17858         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
17859         System.Address to be non-private and signed.
17861         * sem_elim.adb: Minor reformatting (fairly extensive)
17862         Some minor code reorganization from code reading
17863         Add a couple of ??? comments
17865 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17867         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
17868         (tree_transform, case N_If_Statement): Remove non-determinism.
17870         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
17872 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
17874         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
17875         Eliminate' section.
17877         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
17878         no longer used as a parameter name for Eliminate pragma).
17880 2004-04-22  Laurent GUERBY <laurent@guerby.net>
17882         PR optimization/14984
17883         PR optimization/14985
17884         * trans.c (gigi): Fix non determinism leading to bootstrap
17885         comparison failures.
17887 2004-04-21  Pascal Obry  <obry@gnat.com>
17889         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
17890         passed to spawnvp() to properly handle program pathname with spaces on
17891         Win32.
17893 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
17895         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
17896         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
17897         unlocked in case of exceptions.
17899 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
17901         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
17902         This function does not exist anymore.
17904 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
17906         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
17908         * link.c: Move variables to the __gnat name space.
17910         * Makefile.in: list link.o explicitly when needed.
17912         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
17914 2004-04-21  Javier Miranda  <miranda@gnat.com>
17916         * einfo.adb (Original_Access_Type): New subprogram
17917         (Set_Original_Access_Type): New subprogram
17918         (Write_Field21_Name): Write the name of the new field
17920         * einfo.ads (Original_Access_Type): New field present in access to
17921         subprogram types.
17922         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
17923         E_Anonymous_Access_Protected_Subprogram_Type.
17925         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
17926         subprogram types.
17928         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
17929         to anonymous access to subprogram types.
17931         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
17932         to subprogram types.
17934         * sem_ch3.adb (Access_Definition): Complete decoration of entities
17935         corresponding to anonymous access to subprogram types.
17936         (Analyze_Component_Declaration): Add new actual to the call to
17937         subprogram replace_anonymous_access_to_protected_subprogram.
17938         (Array_Type_Declaration): Add new actual to the call to subprogram
17939         replace_anonymous_access_to_protected_subprogram.
17940         (Process_Discriminants): Add new actual to the call to subprogram
17941         replace_anonymous_access_to_protected_subprogram.
17942         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
17944         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
17945         formal.
17947         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
17948         access to subprogram types.
17950         * sem_util.adb (Has_Declarations): Addition of package_specification
17951         nodes.
17953 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
17955         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
17956         inlined flags to renamed entity only if in current unit.
17958 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
17960         * s-parint.ads: Add DSA implementation marker.
17962         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
17963         value of System.Partition_Interface.DSA_Implementation to determine
17964         what version of the distributed systems annex is available (no
17965         implementation, GLADE, or PolyORB).
17967 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
17969         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
17971 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17973         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
17974         with new type if alias sets differ.
17975         Fixes ACATS c41103b.
17977 2004-04-21  Vincent Celier  <celier@gnat.com>
17979         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
17980         Add array Lang_Args for the language specific compiling argument
17981         switches.
17983         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
17985 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
17987         * gnat_rm.texi: Update the descripton of the Eliminate pragma
17988         according to the recent changes in the format of the parameters of the
17989         pragma (replacing Homonym_Number with Source_Location).
17991 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
17993         * 5isystem.ads: Removed, unused.
17995         * gnat_rm.texi: Redo 1.13 change.
17997 2004-04-19  Robert Dewar  <dewar@gnat.com>
17999         * s-stoele.ads: Clean up definition of Storage_Offset (the new
18000         definition is cleaner, avoids the kludge of explicit Standard operator
18001         references, and also is consistent with a visible System.Address with
18002         no visible operations.
18004         * s-geveop.adb: Add declarations to avoid assumption of visible
18005         operations on type System.Address (since these might not be available
18006         if Address is a non-private type for which the operations
18007         are made abstract).
18009         * sem_eval.adb: Minor reformatting
18011         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
18012         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
18013         reformatting (new function spec format).
18015         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
18016         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
18017         s-caun64.adb: Add declarations to avoid assumption of visible
18018         operations on type System.Address (since these might not be available
18019         if Address is a non-private type for which the operations are made
18020         abstract).
18022         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
18024         * exp_intr.adb: Minor comment update
18026         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
18028         * 5omastop.adb: Add declarations to avoid assumption of visible
18029         operations on type System.Address (since these might not be available
18030         if Address is a non-private type for which the operations
18031         are made abstract).
18033 2004-04-19  Vincent Celier  <celier@gnat.com>
18035         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
18037         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
18038         defaulted to Ada.
18040         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
18041         defaulted to Ada.
18042         Call Check with Process_Languages.
18043         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
18044         with Process_Languages.
18045         (Recursive_Check): New Boolean parameter Process_Languages. Call
18046         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
18047         Process_Languages.
18049         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
18051         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
18052         parameter Ada_Main, defaulted to True.
18053         Check for Ada specific characteristics only when Ada_Main is True.
18055         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
18057         * prj.adb: (Project_Empty): Add new Project_Data components.
18059         * prj.ads: New types and tables for non Ada languages.
18060         (Project_Data): New components Languages, Impl_Suffixes,
18061         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
18062         Include_Path, Include_Data_Set.
18064         * prj-env.ads, prj-env.adb: Minor reformatting
18066         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
18067         Put subprograms in alphabetical order
18069         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
18070         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
18071         Opt.Follow_Links.
18073         * mlib-prj.adb: Back out modification in last version, as they are
18074         incorrect.
18075         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
18077         * make.adb: (Mains): Moved to package Makeutl
18078         (Linker_Opts): Moved to package Makeutl
18079         (Is_External_Assignment): Moved to package Makeutl
18080         (Test_If_Relative_Path): Moved to package Makeutl
18081         (Gnatmake): Move sorting of linker options to function
18082         Makeutl.Linker_Options_Switches.
18084         * makeutl.ads, makeutl.adb: New files.
18086         * Makefile.in: Add makeutl.o to the object files for gnatmake
18088         * makeusg.adb: Add line for new switch -eL.
18090         * gnatls.adb (Image): New function.
18091         (Output_Unit): If in verbose mode, output the list of restrictions
18092         specified by pragmas Restrictions.
18094         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
18095         Text_IO.
18097         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
18098         needed, to put it in the range 1970 (included) - 2026 (excluded).
18099         (Time_Of): Do not shift Unix_Min_Year (1970).
18100         Shift the date by multiple of 56 years, if needed, to put it in the
18101         range 1970 (included) - 2026 (excluded).
18103         * adaint.h, adaint.c (__gnat_set_executable): New function.
18105 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18107         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
18108         and pop GC context.
18109         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
18110         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
18111         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
18112         (tree_transform, case N_Code_Statement): Likewise.
18113         (gnat_expand_stmt, case LABEL_STMT): Don't look at
18114         LABEL_STMT_FIRST_IN_EH.
18115         (gnat_expand_stmt, case ASM_STMT): New case.
18117         * utils2.c (build_unary_op): Properly set TREE_READONLY of
18118         UNCONSTRAINED_ARRAY_REF.
18120         * utils.c (poplevel): Temporarily push/pop GC context around inline
18121         function expansion.
18123         * decl.c (maybe_variable): Properly set TREE_READONLY of
18124         UNCONSTRAINED_ARRAY_REF.
18125         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
18127         * ada-tree.def: (ASM_STMT): New.
18129         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
18130         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
18131         ASM_STMT_INPUT): New.
18132         (ASM_STMT_CLOBBER): Likewise.
18134 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
18136         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
18137         general rcheck mechanism to raise Program_Error for E.4(18), instead
18138         of a custom raiser in System.Partition_Interface.
18139         Part of general cleanup work before PolyORB integration.
18141         * snames.ads, snames.adb: Add new runtime library entities and names
18142         for PolyORB DSA.
18144         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
18145         exp_dist.
18146         (Build_Subprogram_Id): New subprogram provided by exp_dist
18147         Code reorganisation in preparation for PolyORB integration.
18149         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
18150         exp_dist.
18151         (Build_Subprogram_Id): New subprogram provided by exp_dist
18153         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
18154         actual parameter types for call to dereference of an
18155         access-to-subprogram type.
18157         * rtsfind.ads: Add new runtime library entities and names for PolyORB
18158         DSA.
18160         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
18161         instead, which has the same behaviour here since we never pass it a
18162         NULL pointer.
18164         * link.c (run_path_option, Solaris case): Use -Wl, as for other
18165         platforms.
18167         * Makefile.in: adjust object file lists for gnatlink and gnatmake
18168         to account for new dependency upon Interfaces.C.Strings + link.o
18169         For x86 FreeBSD, use 86numaux.
18171         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
18172         from Mlib.Tgt to Mlib.
18174         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
18175         target-independent.
18177         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
18178         target-specific versions of this subprogram, now implemented as a
18179         target-independent function in Mlib.
18181         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
18182         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
18183         (Linker_Library_Path_Option): Remove target-specific versions of this
18184         subprogram, now implemented as a target-independent function in Mlib.
18186         * atree.adb: (Allocate_Initialize_Node): New subprogram.
18187         Factors out node table slots allocation.
18188         (Fix_Parents): New subprogram.
18189         Encapsulate the pattern of fixing up parent pointers for syntactic
18190         children of a rewritten node.
18191         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
18192         (Rewrite): Use New_Copy when creating saved copy of original node.
18193         (Replace): Use Copy_Node to copy nodes.
18195 2004-04-19  Javier Miranda  <miranda@gnat.com>
18197         * sprint.adb (Sprint_Node_Actual): Give support to the new
18198         Access_To_Subprogram node available in Access_Definition nodes. In
18199         addition, give support to the AI-231 node fields: null-exclusion,
18200         all-present, constant-present.
18202         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
18204         * sinfo.ads, sinfo.adb:
18205         New field Access_To_Subprogram_Definition in Access_Definition nodes
18207         * sem_ch6.adb (Process_Formals): Move here the code that creates and
18208         decorates internal subtype declaration corresponding to the
18209         null-excluding formal. This code was previously in Set_Actual_Subtypes.
18210         In addition, carry out some code cleanup on this code. In case of
18211         access to protected subprogram call
18212         Replace_Anonymous_Access_To_Protected_Subprogram.
18213         (Set_Actual_Subtypes): Code cleanup.
18215         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
18216         Find_Type in case of anonymous access renamings. Add warning in case of
18217         null-excluding attribute used in anonymous access renaming.
18219         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
18220         subprogram
18222         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
18223         subprogram.
18224         (Access_Definition): In case of anonymous access to subprograms call
18225         the corresponding semantic routine to decorate the node.
18226         (Access_Subprogram_Declaration): Addition of some comments indicating
18227         some code that probably should be added here. Detected by comparison
18228         with the access_definition subprogram.
18229         (Analyze_Component_Declaration): In case of access to protected
18230         subprogram call Replace_Anonymous_Access_To_Protected.
18231         (Array_Type_Declaration): In case of access to protected subprogram call
18232         Replace_Anonymous_Access_To_Protected_Subprogram.
18233         (Process_Discriminants): In case of access to protected subprogram call
18234         Replace_Anonymous_Access_To_Protected_Subprogram.
18236         * par.adb (P_Access_Definition): New formal that indicates if the
18237         null-exclusion part was present.
18238         (P_Access_Type_Definition): New formal that indicates if the caller has
18239         already parsed the null-excluding part.
18241         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
18242         (P_Identifier_Declarations): Code cleanup and give support to renamings
18243         of anonymous access to subprogram types.
18244         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
18245         (P_Array_Type_Definition): Give support to AI-254.
18246         (P_Component_Items): Give support to AI-254.
18247         (P_Access_Definition): New formal that indicates if the header was
18248         already parsed by the caller.
18249         (P_Access_Type_Definition): New formal that indicates if the caller has
18250         already parsed the null-excluding part.
18252         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
18253         call to P_Access_Definition.
18255 2004-04-19  Geert Bosch  <bosch@gnat.com>
18257         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
18258         the delicate semantics of floating-point to integer conversion.
18259         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
18261         * eval_fat.adb (Machine_Mantissa): Moved to spec.
18262         (Machine_Radix): New function.
18264         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
18265         conversion checks.
18266         (Machine_Radix): New function also for use in conversion checks.
18268 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
18270         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
18272         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
18273         to decorate the access-to-protected subprogram and the equivalent type.
18275         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
18276         to anonymous access to subprogram types.
18278         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
18279         constant-folding, for legality checks in contexts that require an RM
18280         static expression.
18282         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
18283         temporary but stack checking is not enabled, increment serial number
18284         to so that symbol generation is consistent with and without stack
18285         checking.
18287         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
18288         independent on whether stack checking is enabled, caller must check
18289         the corresponding flag.
18291         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
18292         range checks.
18293         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
18294         parent if it has discriminants.
18295         (Build_Derived_Private_Type): Constructed full view does
18296         not come from source.
18297         (Process_Discriminants): Default discriminants on a tagged type are
18298         legal if this is the internal completion of a private untagged
18299         derivation.
18301         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
18302         no constraint checks, because it corresponds to an existing object.
18304         * sem_prag.adb (Process_Convention): Pragma applies
18305         only to subprograms in the same declarative part, i.e. the same unit,
18306         not the same scope.
18308         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
18309         ignore type mismatch on a numeric conversion if expression comes from
18310         expansion.
18312 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
18314         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
18315         Homonym_Number parameter, add processing for Source_Location parameter
18316         corresponding.
18317         (Check_Eliminated): Remove the check for homonym numbers, add the check
18318         for source location traces.
18320         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
18321         with Arg_Source_Location corresponding to the changes in the format of
18322         the pragma.
18324         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
18325         Eliminate pragma corresponding to the changes in the format of the
18326         pragma: Homonym_Number is replaced with Source_Location, two ways of
18327         distinguishing homonyms are mutially-exclusive.
18329 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
18331         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
18333         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
18334         No_Dollar_In_Label, no longer necessary, as it is always True.
18335         (Strip_Suffixes): Likewise.
18337 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
18339         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
18340         modulus for compatibility with size clause on targets with 16-bit
18341         Integer.
18343         * layout.adb (Discrimify): In the case of private types, set Vtyp to
18344         full type to fix type mismatches on calls to size functions for
18345         discriminant-dependent array components.
18347 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
18349         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
18350         lib.
18352 2004-04-19  Pascal Obry  <obry@gnat.com>
18354         * mdll-utl.adb (Locate): New version is idempotent.
18356 2004-04-17  Laurent Guerby <laurent@guerby.net>
18358         PR ada/14988 (partial)
18359         * impunit.adb: Fix typo.
18361 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
18363         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
18364         and install-rts-cert targets.  Remove all gnatlib and gnattools
18365         targets and all other rts-* targets (moved to libada).  Remove (now)
18366         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
18367         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
18369 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18371         * trans.c (tree_transform): Shortcut returning error_mark_node for
18372         statements in annotate_only_mode.
18373         (tree_transform, case N_Label, case N_Return_Statement,
18374         N_Goto_Statement): Make statement tree instead of generating code.
18375         (tree_transform, case N_Assignment_Statement): No longer check
18376         type_annotate_only.
18377         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
18378         RETURN_STMT): New.
18379         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
18380         New fcns.
18381         (gnat_to_gnu): Collect any RTL generated and deal with it.
18382         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
18383         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
18384         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
18386         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
18388         * ada-tree.def (EXPR_STMT): Fix typo in name.
18389         (BLOCK_STMT, IF_STMT): New nodes.
18391         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
18392         LABEL_STMT_FIRST_IN_EH): New macros.
18393         (RETURN_STMT_EXPR): Likewise.
18395         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
18396         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
18398 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
18400         * atree.ads: Correct documentation on extended nodes.
18402         * link.c: Set run_path_option for FreeBSD.
18404 2004-04-08  Vincent Celier  <celier@gnat.com>
18406         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
18407         one of the ALI file, do not link with DEC lib.
18409         * par.adb Remove the last two characters ("%s" or "%b") when checking
18410         if a language defined unit may be recompiled.
18412 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
18414         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
18415         removal of abstract operation leaves no possible interpretation for
18416         expression.
18418         * sem_eval.adb (Eval_Qualified_Expression): Use
18419         Set_Raises_Constraint_Error on node when needed, so that it does not
18420         get optimized away by subsequent optimizations.
18422         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
18423         operands even when they are not wrapped in a type conversion.
18425 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
18427         * sem_prag.adb (Set_Exported): Warn about making static as result of
18428         export only when the export is coming from source. This may be not
18429         be true e.g. on VMS where we expand export pragmas for exception codes
18430         together with imported or exported exceptions, and we don't want the
18431         user to be warned about something he didn't write.
18433 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
18435         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
18436         duplication between normal entities and those declared as renamings.
18437         No functional change.
18439         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
18440         inline functions returning an unconstrained result.
18442 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
18444         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
18445         conform to what other front-ends do.
18447 2004-04-08  Doug Rupp  <rupp@gnat.com>
18449         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
18450         libraries.
18452 2004-04-06  Pascal Obry  <obry@gnat.com>
18454         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
18456         * osint.adb (Program_Name): Do not look past a directory separator.
18458 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
18460         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
18462         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
18463         requirement for preserving a copy of the original assignment node.
18465         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
18467 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
18469         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
18470         when supported.
18472 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
18474         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
18475         operator calls in functional notation, and apply
18476         Universal_Interpretation to operands, not to their type.
18478 2004-04-06  Robert Dewar  <dewar@gnat.com>
18480         * 5wdirval.adb: Minor reformatting
18482 2004-04-06  Ed Falis  <falis@gnat.com>
18484         * gnat_rm.texi: Improve a reference to the GCC manual
18486 2004-04-05  Vincent Celier  <celier@gnat.com>
18488         * adaint.h, adaint.c: Add function __gnat_named_file_length
18490         * impunit.adb: Add Ada.Directories to the list
18492         * Makefile.in: Add VMS and Windows versions of
18493         Ada.Directories.Validity package body.
18495         * Makefile.rtl: Add a-direct and a-dirval
18497         * mlib-tgt.ads: Minor comment update.
18499         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
18500         a-direct.ads, a-direct.adb: New files.
18502 2004-04-05  Vincent Celier  <celier@gnat.com>
18504         PR ada/13620
18505         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
18506         just to the compiler.
18508 2004-04-05  Robert Dewar  <dewar@gnat.com>
18510         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
18511         returned string is 1.
18513         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
18515         * eval_fat.ads: Minor reformatting
18517         * g-curexc.ads: Document that lower bound of returned string values
18518         is always one.
18520         * gnatlink.adb: Add ??? comment for previous change
18521         (need to document why this is VMS specific)
18523         * s-stoele.ads: Minor reformatting
18525         * tbuild.ads: Minor reformatting throughout (new function specs)
18527         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
18528         after WITH.
18530         * scng.adb: Minor reformatting
18532 2004-04-05  Geert Bosch  <bosch@gnat.com>
18534         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
18535         (Leading_Part): Still perform truncation to machine number if the
18536         specified radix_digits is greater or equal to machine_mantissa.
18538 2004-04-05  Javier Miranda  <miranda@gnat.com>
18540         * par-ch3.adb: Complete documentation of previous change
18541         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
18542         (aliased must appear before constant).
18544         * par-ch4.adb: Complete documentation of previous change.
18546         * par-ch6.adb: Complete documentation of previous change.
18548         * sinfo.ads: Fix typo in commment.
18550 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
18552         * sem_ch3.adb (Inherit_Components): If derived type is private and has
18553         stored discriminants, use its discriminants to constrain parent type,
18554         as is done for non-private derived record types.
18556         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
18557         Ada 2005 AI-310: an abstract non-dispatching operation is not a
18558         candidate interpretation in an overloaded call.
18560         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
18561         expression is Null and target type is not an access type (e.g. a
18562         non-private address type).
18564 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
18566         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
18567         statement whose right-hand side is an inlined call, save a copy of the
18568         original assignment subtree to preserve enough consistency for
18569         Analyze_Assignment to proceed.
18571         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
18572         complete assignment subtree which is now unnecessary, as the expansion
18573         of inlined call has been improved to preserve a consistent assignment
18574         tree.  Note_Possible_Modification must be called only
18575         after checks have been applied, or else unnecessary checks will
18576         be generated.
18578         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
18579         of explicit dereferences that do not Come_From_Source:
18580          - be selective on cases where we must go back to the dereferenced
18581            pointer (an assignment to an implicit dereference must not be
18582            recorded as modifying the pointer);
18583          - do not rely on Original_Node being present (Analyze_Assignment
18584            calls Note_Possible_Modification on a copied tree).
18586         * sem_warn.adb (Check_References): When an unset reference to a pointer
18587         that is never assigned is encountered, prefer '<pointer> may be null'
18588         warning over '<pointer> is never assigned a value'.
18590 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
18592         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
18593         the ABI.
18595 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
18597         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
18598         libexc. We currently don't reference anything in this library and
18599         linking it in triggers linker warnings we don't want to see.
18601         * init.c: Update comments.
18603 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18605         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
18606         * utils.c (create_field_decl): Likewise.
18607         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
18609 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
18611         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
18612         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
18613         Add info directory entry and category.
18615 2004-04-02  Jan Hubicka  <jh@suse.cz>
18617         * utils.c: Include function.h
18618         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
18620 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
18622         PR ada/14150
18623         * Make-lang.in: Clean up generation of documentation
18625         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
18627         * xgnatug.adb: Removed, replaced by xgnatugn.adb
18629         * xgnatugn.adb: Replaces xgnatug.adb
18631         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
18633         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
18635         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
18636         gnat_ug_wnt.texi: Removed.
18638 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
18640         * utils2.c: Update copyright notice.
18642 2004-04-01  Robert Dewar  <dewar@gnat.com>
18644         * checks.adb: Minor reformatting throughout
18645         Note that prev checkin added RM reference to alignment warning
18647 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
18649         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
18650         non-static when building aggregate for bit-packed array.
18652         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
18653         function call that is itself the actual in a procedure call, build
18654         temporary for it.
18656         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
18657         a string literal, create a temporary for it, constant folding only
18658         handles scalars here.
18660 2004-04-01  Vincent Celier  <celier@gnat.com>
18662         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
18663         Error_Msg_SP): New empty procedures to instantiate the Scanner.
18664         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
18665         tokens.
18666         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
18667         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
18668         and get the checksum.
18670         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
18671         already in the Q.
18672         Increase the Marking_Label at the end of the Multiple_Main_Loop,
18673         instead of at the beginning.
18675         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
18676         directly.
18677         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
18678         on VMS.
18680         * osint.ads (Multi_Unit_Index_Character): New Character global variable
18682         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
18683         not '~' directly.
18685         * par.adb: Remove test on file name to detect language defined units.
18686         Add test on unit name, after parsing, to detect language defined units
18687         that are not compiled with -gnatg (except System.RPC and its children)
18689         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
18690         following units without style checking.
18692         * switch-c.adb: Change -gnatC to -gnateI
18694         * usage.adb: Document new switch -gnateInnn
18696         * scng.adb (Accumulate_Token_Checksum): New procedure
18697         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
18698         word or literal number.
18699         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
18700         numbers.
18702 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
18704         * a-tasatt.adb,
18705         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
18706         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
18707         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
18708         5vtpopde.adb: Add missing 'constant' keywords.
18710 2004-04-01  Javier Miranda  <miranda@gnat.com>
18712         * par-ch4.adb: (P_Allocator): Code cleanup
18714         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
18715         attribute.
18717         * sinfo.ads: Complete documentation of previous change
18719 2004-04-01  Pascal Obry  <obry@gnat.com>
18721         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
18722         only on VMS.  This special handling was done because an old GNU/ld bug
18723         on Windows which has been fixed.
18725 2004-04-01  GNAT Script  <nobody@gnat.com>
18727         * Make-lang.in: Makefile automatically updated
18729 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18731         * decl.c (gnat_to_gnu_entity, make_type_from_size):
18732         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
18733         * trans.c (tree_transform, convert_with_check): Likewise.
18734         * utils.c (gnat_signed_or_unsigned_type): Likewise.
18735         (build_vms_descriptor, unchecked_convert): Likewise.
18736         * utils2.c (nonbinary_modular_operation): Likewise.
18738 2004-03-29  Javier Miranda  <miranda@gnat.com>
18740         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
18741         (Install_Null_Excluding_Check): Local subprogram that determines whether
18742         an access node requires a runtime access check and if so inserts the
18743         appropriate run-time check.
18744         (Apply_Access_Check): Call Install_Null_Excluding check if required
18745         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
18747         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
18749         * einfo.ads: Fix typo in comment
18751         * exp_ch3.adb (Build_Assignment): Generate conversion to the
18752         null-excluding type to force the corresponding run-time check.
18753         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
18754         type to force the corresponding run-time check.
18756         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
18757         the null-excluding type to force the corresponding run-time check.
18759         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
18760         case of access types unless they have the null-excluding attribute.
18762         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
18763         part.
18765         * exp_util.ads: Fix typo in comment
18767         * par.adb (P_Null_Exclusion): New subprogram
18768         (P_Subtype_Indication): New formal that indicates if the null-excluding
18769         part has been scanned-out and it was present
18771         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
18773         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
18774         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
18775         type to force the corresponding run-time check
18776         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
18777         components
18778         (Resolve_Array_Aggregate): Carry out some static checks
18779         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
18781         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
18782         attribute must be set only if specified by means of the null-excluding
18783         part. In addition, we must also propagate the access-constant attribute
18784         if present.
18785         (Access_Subprogram_Declaration, Access_Type_Declaration,
18786         Analyze_Component_Declaration, Analyze_Object_Declaration,
18787         Array_Type_Declaration, Process_Discriminants,
18788         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
18789         and carry out some static checks.
18790         (Build_Derived_Access_Type): Set the null-excluding attribute
18791         (Derived_Type_Declaration, Process_Subtype): Carry out some static
18792         checks.
18794         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
18796         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
18798         * sem_ch6.adb (Process_Formals): Carry out some static checks.
18799         (Set_Actual_Subtypes): Generate null-excluding subtype if the
18800         null-excluding part was present; it is not required to be done here in
18801         case of anonymous access types.
18802         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
18803         value.
18805         * sem_res.adb (Resolve_Actuals): Carry out some static check
18806         (Resolve_Null): Allow null in anonymous access
18808         * sinfo.adb: New subprogram Null_Exclusion_Present
18809         All_Present and Constant_Present available on access_definition nodes
18811         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
18812         object_declaration, derived_type_definition, component_definition,
18813         discriminant_specification, access_to_object_definition,
18814         access_function_definition, allocator, access_procedure_definition,
18815         access_definition, parameter_specification, All_Present and
18816         Constant_Present flags available on access_definition nodes.
18818 2004-03-29  Robert Dewar  <dewar@gnat.com>
18820         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
18821         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
18822         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
18823         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
18824         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
18825         sem_prag.adb: Updates to handle multiple units/file
18827         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
18829         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
18830         sem_util.adb: Minor reformatting
18832         * sem_ch12.adb: Add comment for previous change
18834 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
18836         * osint.adb (Executable_Prefix): Set Exec_Name to the current
18837         executable name when not initialized. Otherwise, use its current value.
18839         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
18840         initialize it to another executable name than the current one. This
18841         allows to configure paths for an executable name (gnatmake) different
18842         from the current one (gnatdist).
18844 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
18846         * exp_ch6.adb (Expand_Call): A call to a function declared in the
18847         current unit cannot be inlined if it appears in the body of a withed
18848         unit, to avoid order of elaboration problems in gigi.
18850         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
18851         information for protected (wrapper) operation as well, to simplify gdb
18852         use.
18854         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
18855         protected body, indicate that the entity for the generated spec comes
18856         from source, to ensure that references are properly generated for it.
18857         (Build_Body_To_Inline): Do not inline a function that returns a
18858         controlled type.
18860         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
18861         apply convention to homonyms that are declared explicitly.
18863         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
18864         that renames an equality operator and the operands are overloaded,
18865         resolve them with the declared formal types, before rewriting as an
18866         operator.
18868 2004-03-29  GNAT Script  <nobody@gnat.com>
18870         * Make-lang.in: Makefile automatically updated
18872 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
18874         * memtrack.adb: Log realloc calls, which are treated as free followed
18875         by alloc.
18877 2004-03-25  Vincent Celier  <celier@gnat.com>
18879         * prj-makr.adb (Process_Directories): Detect when a file contains
18880         several units. Do not include such files in the config pragmas or
18881         in the naming scheme.
18883         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
18884         Resolve links only when not in Trusted_Mode.
18885         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
18886         Do not resolve links for the display names.
18888         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
18889         resolve links when computing the display names.
18891 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
18893         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
18894         attribute reference does not denote a subtype, it can be any
18895         expression that has a classwide type, potentially after an implicit
18896         dereference.  In particular, the prefix can be a view conversion for
18897         a classwide type (for which Is_Object_Reference holds), but it can
18898         also be a value conversion for an access-to-classwide type. In the
18899         latter case, there is an implicit dereference, and the original node
18900         for the prefix does not verify Is_Object_Reference.
18902         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
18903         conversion of a discriminant-dependent component of a mutable object
18904         is one itself.
18906 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
18908         * freeze.adb (Freeze_Entity): When an inherited subprogram is
18909         inherited, has convention C, and has unconstrained array parameters,
18910         place the corresponding warning on the derived type declaration rather
18911         than the original subprogram.
18913         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
18914         indication on renaming declaration, if formal has a box and actual
18915         is absent.
18917         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
18918         determine whether to generate an implicit or explicit reference to
18919         the renamed entity.
18921         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
18922         subprogram renaming comes from a defaulted formal subprogram in an
18923         instance.
18925 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
18927         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
18928         value expressions to ensure that calls within a component definition
18929         will be checked (since those are evaluated during the record type's
18930         elaboration).
18932 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
18934         * s-tpobop.adb: Code clean up:
18935         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
18936         code.
18937         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
18939 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
18941         * Makefile.in: Clean up in the ravenscar run time.
18943 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18945         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
18946         of No_Strict_Aliasing to build_pointer_type_for_mode.
18947         * utils.c (update_pointer_to): Walk pointer and ref chains.
18949 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
18951         * ali.ads: Fix Comment about Dynamic_Elab.
18953         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
18954         Has_RACW, Is_Generic, etc.)
18955         (Output_Object, Gnatls): Take into account ALI files not attached to
18956         an object.
18958 2004-03-22  Vincent Celier  <celier@gnat.com>
18960         * gprep.adb: Change all String_Access to Name_Id
18961         (Is_ASCII_Letter): new function
18962         (Double_File_Name_Buffer): New procedure
18963         (Preprocess_Infile_Name): New procedure
18964         (Process_Files): New procedure
18965         (Gnatprep): Check if output and input are existing directories.
18966         Call Process_Files to do the real job.
18968 2004-03-22  Robert Dewar  <dewar@gnat.com>
18970         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
18971         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
18973 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
18975         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
18976         case when the source contains only comments.
18978 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
18980         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
18981         declaration for a child subprogram body that acts as a spec, indicate
18982         that the entity in the declaration needs debugging information.
18984         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
18985         full view if the subtype is created for a constrained record component;
18986         gigi has enough information to construct the record, and there is no
18987         place in the tree for the declaration.
18989         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
18990         serial number for the dummy body that is built for analysis, to avoid
18991         inconsistencies in the generation of internal names when compiling
18992         with -gnatN.
18994 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
18996         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
18997         object.
18999 2004-03-22  GNAT Script  <nobody@gnat.com>
19001         * Make-lang.in: Makefile automatically updated
19003 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19005         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
19006         * trans.c (tree_transform, emit_index_check): Likewise.
19007         * utils.c (build_template): Likewise.
19008         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
19009         (maybe_unconstrained_array, unchecked_convert): Likewise.
19010         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
19011         (build_unary_op): Likewise.
19012         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
19013         (fill_vms_descriptor): Likewise.
19014         (build_call_alloc_dealloc): Likewise.
19015         ALIGN is unsigned.
19016         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
19018 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
19020         PR other/14630
19021         * gnat_ug.texi: Add info directory category and entry.
19022         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
19023         gnat_ug_wnt.texi: Regenerate.
19025 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
19027         * ada-tree.h: Update copyright notice.
19028         Minor reformatting.
19030 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
19032         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
19033         as regular exception objects and not as mere integers representing the
19034         condition code.  The latter approach required some dynamics to mask off
19035         severity bits, which did not fit well into the GCC table based model.
19036         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
19037         exception data objects. We don't it and it would conflict with the other
19038         external symbol we have to generate for such exceptions.
19040         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
19041         the special code for VMS exceptions, since these are now represented
19042         as regular exceptions objects.
19044 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19046         * decl.c (debug_no_type_hash): Remove.
19047         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
19048         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
19050 2004-03-19  Laurent Guerby <laurent@guerby.net>
19052         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
19053         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
19055 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19057         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
19058         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
19059         (TYPE_RM_SIZE_INT): Directly use type.values.
19060         (TREE_LOOP_ID): Clean up check.
19061         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
19062         TYPE_VALUES, not TYPE_FIELDS.
19063         * trans.c (convert_with_check): Delay access of bounds of basetype
19064         until sure is numeric.
19066 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
19068         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
19070         Code clean up:
19071         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
19072         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
19073         Specific.Set instead of direct call to e.g pthread_setspecific.
19075 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
19077         * adaint.c: Update comments.
19079         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
19080         GNATLIB_SHARED for FreeBSD.
19082 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
19084         * init.c [VxWorks]: Do not fix the stack size for the environment task.
19085         When needed (stack checking) the stack size is retrieved
19086         from the VxWorks kernel.
19088         * Makefile.in: Flag -nostdinc is required when building the run time
19089         for avoiding looking for files in the base compiler.
19090         Add the VxWorks specific version of the package body for
19091         System.Stack_checking.Operations (5zstchop.adb).
19093         * Make-lang.in: Add the object file for
19094         System.Stack_Checking.Operations.
19096         * Makefile.rtl: Add object file for the package
19097         System.Stack_Checking.Operations.
19099         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
19101         * s-stache.ads, s-stache.adb: Move the operations related to stack
19102         checking from this package to package System.Stack_Checking.Operations.
19103         This way, stack checking operations are only linked in the final
19104         executable when using the -fstack-check flag.
19106 2004-03-18  Doug Rupp  <rupp@gnat.com>
19108         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
19109         Reorganize ifeq's.
19111         * 5qsystem.ads, 5xcrtl.ads: New files.
19113 2004-03-18  Vincent Celier  <celier@gnat.com>
19115         * prj.adb (Reset): Reset hash table Files_Htable
19117         * prj-env.adb (Source_Paths, Object_Paths): New tables.
19118         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
19119         the procedures Add_To_Path_File.
19120         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
19121         making sure that each directory is present only once and, for object
19122         dirs, when a directory already present is added, the duplicate is
19123         removed and the directory is always put as the last in the table.
19124         Write the path files at the end of these accumulations.
19126         * prj-nmsc.adb (Record_Source): Add source file name in hash table
19127         Files_Htable for all sources.
19129         * prj-proc.adb (Process): Remove restrictions between not directly
19130         related extending projects.
19132 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
19134         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
19135         (Find_Sources): Minor speed optimization.
19137         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
19138         parameter Trusted_Mode.
19140 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
19142         * scn.adb (Determine_License): Take into account a degenerated case
19143         when the source contains only comments.
19145 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
19147         * sem_warn.adb (Check_References): For a warning on a selected
19148         component that does not come from source, locate an uninitialized
19149         component of the record type to produce a more precise error message.
19151 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
19153         * 3zsoccon.ads: Fix multicast options.
19155         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
19156         in the spec.
19158 2004-03-15  Robert Dewar  <dewar@gnat.com>
19160         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
19161         pragma used for a private type.
19163         * lib-xref.adb (Generate_Reference): Do not generate warning if
19164         reference is in a different unit from the pragma Unreferenced.
19166         * 5vtpopde.adb: Minor reformatting
19167         Fix casing of To_Task_ID
19169         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
19170         flag if we have an unchecked conversion to an access type in the same
19171         unit.
19173 2004-03-15  Geert Bosch  <bosch@gnat.com>
19175         * a-ngcoty.adb (Modulus): In alternate formula for large real or
19176         imaginary parts, use Double precision throughout.
19178         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
19179         we want to be able to compile run-time with -gnata for testing, but
19180         this may also be instantiated in user code that is compiled with -gnata.
19182 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
19184         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
19185         codes. Having a separate type for this is useful to enforce consistency
19186         throughout the various run-time units.
19187         (Exception_Data): Use Exception_Code for Import_Code.
19189         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
19190         Natural and Integer in various places.
19191         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
19192         with the severity bits masked off.
19193         (Register_VMS_Exception): Handle the additional exception data pointer
19194         argument.
19196         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
19197         component, now reflected by an exported accessor.
19198         (is_handled_by): New routine to compute whether the propagated
19199         occurrence matches some handler choice specification. Extracted out of
19200         get_action_description_for, and expanded to take care of the VMS
19201         specifities.
19202         (get_action_description_for): Use is_handled_by instead of an explicit
19203         complex condition to decide if the current choice at hand catches the
19204         propagated occurrence.
19206         * raise.h (Exception_Code): New type for C.
19208         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
19209         System.Standard_Library.Exception_Code, to allow references from the
19210         pragma import/export expander.
19212         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
19213         New accessors to allow easy access to GNAT exception data
19214         characteristics.
19215         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
19216         redundant Handled_By_Others component, helper for the personality
19217         routine which will now be able to call the appropriate exception data
19218         accessor instead.
19220         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
19221         component of Standard_Exception_Type to be the closest possible to
19222         Exception_Code in System.Standard_Library, that we cannot get at this
19223         point. Expand a ??? comment to notify that this type node should
19224         probably be rewritten later on.
19226         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
19227         registration call to include a pointer to the exception object in the
19228         arguments.
19230         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
19231         instead of int and explicit bitmasks.
19233 2004-03-15  Vincent Celier  <celier@gnat.com>
19235         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
19236         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
19238         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
19239         longer needed now that it is in the spec of
19240         System.Tasking.Task_Attributes.
19242         * adaint.h, adaint.c: (__gnat_create_output_file): New function
19244         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
19246         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
19248         * make.adb (Gnatmake): Do not check the executable suffix; it is being
19249         taken care of in Scan_Make_Arg.
19250         (Scan_Make_Arg): Add the executable suffix only if the argument
19251         following -o, in canonical case, does not end with the executable
19252         suffix.  When in verbose mode and executable file name does not end
19253         with executable suffix, output the executable name, in canonical case.
19255         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
19256         to avoid warnings when instantiating Ada.Task_Attributes.
19257         Minor reformating.
19259         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
19260         in the correct order.
19262         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
19263         redirect standard output and error to a file for the invocation of the
19264         compiler, then read the file.
19266         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
19267         directory, instead of the Value.
19268         (Find_Source_Dirs): Remove useless code & comments.
19270 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
19272         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
19273         tagged type is inherited, and the parent operation is not frozen yet,
19274         force generation of a freeze node for the inherited operation, so the
19275         corresponding dispatch entry is properly initialized.
19276         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
19277         when looking for user-defined equality operation.
19279         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
19280         boolean when locating primitive equality of tagged component.
19282         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
19283         bit-aligned field and the right-hand side a string literal, introduce
19284         a temporary before expanding assignment into a loop.
19286         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
19287         priority in full, to ensure that any expanded subepxressions of it are
19288         elaborated in the scope of the init_proc.
19290         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
19291         after object declaration, skipping over code that may have been
19292         generated for validity checks.
19294         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
19295         discriminants, ignore the known discriminants of its full view, if
19296         any, to check legality.
19298         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
19299         component if type has unknown discriminants.
19300         (Analyze_Private_Extension_Declaration): Discriminant constraint is
19301         null if type has unknown discriminants.
19303         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
19304         for end label when present.
19306         * s-fileio.adb (Open): When called with a C_Stream, use given name for
19307         temporary file, rather than an empty string.
19309 2004-03-15  Ed Falis  <falis@gnat.com>
19311         * s-thread.adb: Removed, no longer used.
19313 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19315         * decl.c (target.h): Now include.
19316         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
19317         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
19318         (validate_size): For POINTER_TYPE, get smallest size permitted on
19319         machine.
19321         * fe.h: Sort Einfo decls and add Set_Mechanism.
19323         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
19324         (ada/decl.o): Depends on target.h.
19326         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
19327         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
19329 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
19331         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
19333         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
19334         Insert_Dereference_Action when rewriting an implicit dereference into
19335         an explicit one, this will be taken care of during expansion of the
19336         explicit dereference.
19337         (Expand_N_Slice): Same. Always do the rewriting, even for the case
19338         of non-packed slices, since the dereference action generated by
19339         expansion of the explicit dereference is needed in any case.
19340         (Expand_N_Selected_Component): When rewriting an implicit dereference,
19341         analyze and resolve the rewritten explicit dereference so it is seen
19342         by the expander.
19343         (Insert_Dereference_Action): This procedure is now called only for the
19344         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
19345         dereferences that do not come from source (including explicit
19346         dereferences resulting from rewriting implicit ones), but do not
19347         recursively insert a check for the dereference nodes contained within
19348         the check.
19349         (Insert_Dereference_Action): Clarify and correct comment.
19351 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
19353         PR ada/14131
19354         Move language detection to the top level.
19355         * config-lang.in: Build by default.
19357 2004-03-05  Robert Dewar  <dewar@gnat.com>
19359         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
19361         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
19362         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
19363         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
19364         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
19365         unchecked conversion to spec to avoid warnings.
19367         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
19368         to Task_ID
19370         * 7stpopsp.adb: Correct casing in To_Task_ID call
19372         * a-strsea.ads, a-strsea.adb: Minor reformatting
19374         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
19376         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
19377         Adjust Max_Msg_Length to be clearly large enough.
19379         * fe.h: Define In_Same_Source_Unit
19381         * osint.adb: Add pragma Warnings Off to suppress warnings
19382         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
19383         aliasing warnings.
19385         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
19387         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
19389         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
19391         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
19393         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
19395         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
19396         node. We now do generate them for gcc back end.
19398         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
19399         warning.
19401         * sinput-c.adb: Fix bad name in header.
19402         Add pragma Warnings Off to suppress aliasing warning.
19404         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
19406         * snames.h, snames.ads, snames.adb: Add entry for pragma
19407         No_Strict_Aliasing.
19409 2004-03-05  Vincent Celier  <celier@gnat.com>
19411         * prj-com.ads: Add hash table Files_Htable to check when a file name
19412         is already a source of another project.
19414         * prj-nmsc.adb (Record_Source): Before recording a new source, check
19415         if its file name is not already a source of another project. Report an
19416         error if it is.
19418         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
19419         source file name, call gnatpp with all the sources of the main project.
19421         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
19422         of file names.
19424         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
19425         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
19426         /RUNTIME_SYSTEM=, converted to --RTS=
19427         /NOTABS, converted to -notabs
19429 2004-03-05  Pascal Obry  <obry@gnat.com>
19431         * make.adb: Minor reformatting.
19433 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
19435         Part of implemention of AI-262.
19436         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
19438         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
19439         procedure.
19441         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
19442         when component type is a partially constrained class-wide subtype.
19443         (Constrain_Discriminated_Type): If parent type has unknown
19444         discriminants, a constraint is illegal, even if full view has
19445         discriminants.
19446         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
19447         with unknown discriminants whose full view is a discriminated record.
19449         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
19450         flag, to handle properly derivations of tagged types with unknown
19451         discriminants.
19452         (Analyze_Package_Spec, Analyze_Package_Body): Install
19453         Private_With_Clauses before analyzing private part or body.
19455         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
19456         Has_Discriminants can be true for a given type (documentation).
19458 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
19460         * s-restri.ads: Fix license (GPL->GMGPL).
19462         * s-tassta.adb: Minor reformatting.
19464         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
19465         by calls to Exit_One_ATC_Level, since additional clean up is performed
19466         by this function.
19468         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
19469         by calls to Exit_One_ATC_Level, since additional clean up is performed
19470         by this function.
19472 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19474         * trans.c: Reflect GCC changes to fix bootstrap problem.
19475         Add warning for suspicious aliasing unchecked conversion.
19477 2004-03-05  GNAT Script  <nobody@gnat.com>
19479         * Make-lang.in: Makefile automatically updated
19481 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
19483         * ali.adb (Read_Instantiation_Instance): Do not modify the
19484         current_file_num when reading information about instantiations, since
19485         this corrupts files in later references.
19487 2004-03-02  Vincent Celier  <celier@gnat.com>
19489         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
19490         before checking if it is read-only.
19492         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
19493         of SRC_DIRS and eliminate duplicates.
19495         * gprcmd.adb: Replace command "path" with command "path_sep" to return
19496         the path separator.
19497         (Usage): Document path_sep
19499         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
19500         C++ compiler. No need for a script.
19501         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
19502         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
19503         subst.
19505         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
19506         where there are Ada sources.
19507         (Set_Ada_Paths): Only add to the include path the source dirs of project
19508         with Ada sources.
19509         (Add_To_Path): Add the Display_Values of the directories, not their
19510         Values.
19512         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
19513         data.
19515         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
19516         is not No_Name.
19517         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
19518         Value is canonicalized.
19519         (Language_Independent_Check): Do not copy Value to Display_Value when
19520         canonicalizing Value.
19522         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
19523         path to find limited with cycles.
19524         (Parse_Single_Project): Use canonical cased path to find the end of a
19525         with cycle.
19527 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
19529         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
19530         and not a child unit.
19532         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
19533         appear in a with_clause.
19535         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
19536         only happen in type_annotate mode, do not try to elaborate it.
19538         * exp_util.adb (Force_Evaluation): If expression is a selected
19539         component on the left of an assignment, use a renaming rather than a
19540         temporary to remove side effects.
19542         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
19543         inlined instance body, which is analyzed before the end of the
19544         enclosing scope.
19546 2004-03-02  Robert Dewar  <dewar@gnat.com>
19548         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
19549         sem_ch4.adb: Use new feature for substitution of keywords in VMS
19551         * errout.ads, errout.adb: Implement new circuit for substitution of
19552         keywords in VMS.
19554         * sem_case.adb (Analyze_Choices): Place message properly when case is
19555         a subtype reference rather than an explicit range.
19557         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
19559 2004-03-02  Doug Rupp  <rupp@gnat.com>
19561         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
19563 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
19565         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
19567 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19569         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
19570         BLKmode bitfield.
19572 2004-02-25  Robert Dewar  <dewar@gnat.com>
19574         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
19575         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
19576         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
19577         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
19578         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
19579         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
19580         the defining instance of the type to avoid aliasing problems.
19581         Fix copyright header.  Fix bad comments in package header.
19583         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
19585 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
19587         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
19588         rewritten as references when aliased through an address clause.
19590         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
19591         whether call can be interpreted as an indirect call to the result of a
19592         parameterless function call returning an access subprogram.
19594 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
19596         Code clean up:
19597         * exp_ch7.adb (Make_Clean): Remove generation of calls to
19598         Unlock[_Entries], since this is now done by Service_Entries directly.
19600         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
19602         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
19603         Requeue_Call for better code readability. Change spec and update calls:
19604         PO_Service_Entries now unlock the PO on exit.
19605         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
19606         PO_Service_Entries.
19608         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
19610         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
19612 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
19614         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
19615         protected subprogram call and analyzing the result of such expanding
19616         in case when the called protected subprogram is eliminated.
19618         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
19619         names.
19621 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
19623         * Makefile.in: Clean ups.
19625 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
19627         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
19628         protected operations if original subprogram is flagged as eliminated.
19629         (Expand_N_Subprogram_Body): For a protected operation, create
19630         discriminals for next operation before checking whether the operation
19631         is eliminated.
19633         * exp_ch9.adb (Expand_N_Protected_Body,
19634         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
19635         for internal protected operations if the original subprogram is
19636         eliminated.
19638         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
19639         declared in a single protected object.
19641 2004-02-23  Vincent Celier  <celier@gnat.com>
19643         * prj-attr.adb: Make attribute Builder'Executable an associative array,
19644         case insensitive if file names are case insensitive, instead of a
19645         standard associative array.
19647         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
19648         them as case insensitive on platforms where the file names are case
19649         sensitive.
19651         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
19652         project file has already been parsed that canonical path are compared.
19654 2004-02-23  Robert Dewar  <dewar@gnat.com>
19656         * sinput-c.ads: Correct bad unit title in header
19658         * freeze.adb: Minor reformatting
19660 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19662         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
19663         nonaddressable COMPONENT_REF that is removing padding that we are
19664         taking the address of, take the address of the padded record instead
19665         if item is variable size.
19667 2004-02-20  Robert Dewar  <dewar@gnat.com>
19669         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
19671 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
19673         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
19674         itype references for the constrained designated type of a component
19675         whose base type is already frozen.
19677 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
19679         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
19680         avoid GCC warnings.
19682 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
19684         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
19685         identifier for a phantom package that rewrites the formal package
19686         declaration with a box. The Add semantic decorations for the defining
19687         identifier from the original node (that represents the formal package).
19689 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
19691         * Make-lang.in (ada/stamp-sdefault): Use the top level
19692         move-if-change.
19694 2004-02-19  Richard Henderson  <rth@redhat.com>
19696         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
19698 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
19700         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
19701         Scan_ALI can be used for multiple ALI files without reinitializing
19702         between calls.
19704 2004-02-18  Robert Dewar  <dewar@gnat.com>
19706         * debug.adb: Minor reformatting.
19708 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19710         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
19711         to zero if there is an address clause.
19713 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
19715         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
19717 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
19719         * layout.adb (Layout_Component_List): Revise generation of call to
19720         discriminant-checking function to pass selections of all of the type's
19721         discriminants rather than just the variant-controlling discriminant.
19723 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
19725         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
19726         fail in the current setup and triggers spurious system error messages.
19727         Pretend it occurred and failed instead.
19729 2004-02-18  Vincent Celier  <celier@gnat.com>
19731         * bld.adb: Mark FLDFLAGS as saved
19732         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
19733         it is not the root project.  Put each directory to be
19734         extended between double quotes to prevent it to be expanded on Windows.
19735         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
19736         the project file. Set them back to their initial values if they have not
19737         been set in the project file.
19739         * gprcmd.adb: (Gprdebug, Debug): New global variables
19740         (Display_Command): New procedure
19741         (Usage): Document new command "linkopts"
19742         Call Display_Command when env var GPRDEBUG has the value "TRUE"
19743         Implement new command "linkopts"
19744         Remove quotes that may be around arguments for "extend"
19745         Always call Normalize_Pathname with arguments formatted for the platform
19747         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
19748         Change @echo to @$(display) in target clean to be able to clean silently
19750         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
19752         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
19753         canonical case.
19755         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
19756         = Extending_All when current project is an extending all project.
19758         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
19759         set to True only for LINK command, after Unix switch -o.
19760         (Process_Arguments): Set Output_File_Expected to True for LINK command
19761         after Unix switch -o. When Output_File_Expected is True, never add an
19762         extension to a file name.
19764         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
19765         option file name, only to the --for-linker= switch.
19766         (Option_File_Name): If option file name do not end with ".opt", append
19767         "/OPTIONS".
19769 2004-02-18  GNAT Script  <nobody@gnat.com>
19771         * Make-lang.in: Makefile automatically updated
19773 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
19775         * Make-lang.in (stamp-sdefault): Do not depend on
19776         move-if-change.
19778 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
19780         * config-lang.in: Disable Ada by default until probe logic for
19781         a bootstrap Ada compiler can be moved to the top level configure
19782         script.
19784 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
19786         * decl.c (components_to_record): Don't claim that the internal fields
19787         we make to hold the variant parts are semantically addressable, because
19788         they are not.
19790         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
19791         adjust the comment describing the modular type form when we can use it.
19792         (Install_PAT): Account for the Esiz renaming.
19794         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
19795         sc_onstack context indication before raising the exception to which
19796         the signal is mapped. Allows better handling of later signals possibly
19797         triggered by the resumed user code if the exception is handled.
19799 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
19801         * 5zinit.adb: Removed, no longer used.
19803 2004-02-12  Robert Dewar  <dewar@gnat.com>
19805         * ali.adb: Remove separating space between parameters on R line. Makes
19806         format consistent with format used by the binder for Set_Globals call.
19808         * atree.ads, atree.adb: Minor reformatting (new function header format)
19810         * bindgen.adb: Add Run-Time Globals documentation section containing
19811         detailed documentation of the globals passed from the binder file to
19812         the run time.
19814         * gnatls.adb: Minor reformatting
19816         * init.c (__gnat_set_globals): Add note pointing to documentation in
19817         bindgen.
19819         * lib-writ.ads, lib-writ.adb: Remove separating space between
19820         parameters on R line.
19821         Makes format consistent with format used by the binder for Set_Globals
19822         call.
19824         * osint.ads: Add 2004 to copyright notice
19825         Minor reformatting
19827         * snames.ads: Correct capitalization of FIFO_Within_Priorities
19828         Noticed during code reading, documentation issue only
19830         * usage.adb: Remove junk line for obsolete C switch
19831         Noticed during code reading
19833 2004-02-12  Vincent Celier  <celier@gnat.com>
19835         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
19836         extend for each directory, so that multiple /** directories are
19837         extended individually.
19838         (Recursive_Process): Set the default for LANGUAGES to ada
19840         * gprcmd.adb: Define new command "ignore", to do nothing.
19841         Implement new comment "path".
19843         * Makefile.generic: Suppress output when SILENT is set
19844         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
19845         used, so that the correct compiler is invoked.
19846         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
19847         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
19849 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
19851         * Makefile.in: Clean ups and remove obsolete targets.
19853 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
19855         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
19856         predicate declared in exp_util.
19858         * exp_util.adb: Add comments.
19860         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
19861         visibility before compiling context of the subunit.
19863         * sem_res.adb (Check_Parameterless_Call): If the context expects a
19864         value but the name is a procedure, do not attempt to analyze as a call,
19865         in order to obtain more telling diagnostics.
19867         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
19868         'Access on parameterless function calls.
19869         (Normalize_Actuals): For a parameterless function call with missing
19870         actuals, defer diagnostic until resolution of enclosing call.
19872         * sem_util.adb (Wrong_Type): If the context type is an access to
19873         subprogram and the expression is a procedure name, suggest a missing
19874         'attribute.
19876 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
19877             Nathanael Nerode  <neroden@gcc.gnu.org>
19879         PR ada/6637, PR ada/5911
19880         Merge with libada-branch:
19881         * config-lang.in: Build libada only when ada is built.
19883 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
19885         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
19886         for a tagged type, verify that both formals have the same type.
19888         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
19889         temporary when the formal is an in-parameter and the actual a possibly
19890         unaligned slice.
19892         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
19893         when expansion is disabled, to ensure proper name capture with
19894         overloaded literals.  Condition can be of any boolean type, resolve
19895         accordingly.
19897         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
19898         renaming is for a formal subprogram with a default operator name, and
19899         there is a usable operator that is visible at the point of
19900         instantiation.
19902 2004-02-09  Robert Dewar  <dewar@gnat.com>
19904         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
19905         rewrite to ignore errors in ali files, intended to allow tools downward
19906         compatibility with new versions of ali files.
19908         * ali.ads: Add new parameter Ignore_Errors
19910         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
19911         duplicating the error message giving the file with restrictions.
19913         * debug.adb: Add debug flag I for gnatbind
19915         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
19916         operators for the case where the operator is a defining operator.
19918         * exp_ch3.adb: Minor reformatting (new function spec format).
19920         * exp_ch4.adb: Add comment for previous change, and make minor
19921         adjustment to loop to always check for improper loop termination.
19922         Minor reformatting throughout (new function spec format).
19924         * gnatbind.adb: Implement -di debug flag for gnatbind
19926         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
19928         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
19930         * lib-load.adb: Fix bad assertion.
19931         Found by testing and code reading.
19932         Minor reformatting.
19934         * lib-load.ads: Minor reformatting.
19936         * lib-writ.adb: There is only one R line now.
19938         * lib-writ.ads: Add documentation on making downward compatible changes
19939         to ali files so old tools work with new ali files.
19940         There is only one R line now.
19941         Add documentation on format incompatibilities (with special GPS note)
19943         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
19945         * par-load.adb: Minor reformatting
19947         * sem_ch8.adb: Fix to error message from last update
19948         Minor reformatting and restructuring of code from last update
19950         * par-prag.adb, snames.adb, snames.ads, snames.h,
19951         sem_prag.adb: Implement pragma Profile.
19953         * stylesw.adb: Implement -gnatyN switch to turn off all style check
19954         options.
19956         * usage.adb: Add line for -gnatyN switch
19958         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
19960 2004-02-09  Albert Lee  <lee@gnat.com>
19962         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
19964 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
19966         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
19967         slices.
19969         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
19970         is nested in an instance that is not frozen yet, to avoid
19971         order-of-elaboration problems in gigi.
19973         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
19974         body the attribute is legal.
19976 2004-02-09  Robert Dewar  <dewar@gnat.com>
19978         * s-rident.ads: Minor comment correction
19980         * targparm.adb: Remove dependence on uintp completely. There was
19981         always a bug in Make in that it called Targparm before initializing
19982         the Uint package. The old code appeared to get away with this, but
19983         the new code did not! This caused an assertion error in gnatmake.
19985         * targparm.ads: Fix bad comment, restriction pragmas with parameters
19986         are indeed fully supported.
19988 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
19990         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
19992 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
19994         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
19995         with targetm.calls.promote_prototypes.
19997 2004-02-04  Robert Dewar  <dewar@gnat.com>
19999         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
20000         ali.ads, gprcmd.adb: Minor reformatting
20002         * bindgen.adb: Output restrictions string for new style restrictions
20003         handling
20005         * impunit.adb: Add s-rident.ads (System.Rident) and
20006         s-restri (System.Restrictions)
20008         * lib-writ.adb: Fix bug in writing restrictions string (last few
20009         entries wrong)
20011         * s-restri.ads, s-restri.adb: Change name Restrictions to
20012         Run_Time_Restrictions to avoid conflict with package name.
20013         Add circuit to read and acquire run time restrictions.
20015 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
20017         * restrict.ads, restrict.adb: Use the new restriction
20018         No_Task_Attributes_Package instead of the old No_Task_Attributes.
20020         * sem_prag.adb: No_Task_Attributes is a synonym of
20021         No_Task_Attributes_Package.
20023         * snames.ads, snames.adb: New entry for proper handling of
20024         No_Task_Attributes.
20026         * s-rident.ads: Adding restriction No_Task_Attributes_Package
20027         (AI-00249) that supersedes the GNAT specific restriction
20028         No_Task_Attributes.
20030 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
20032         * sem_prag.adb:
20033         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
20034          body, an identifier may be wrapped in an unchecked conversion.
20036 2004-02-04  Vincent Celier  <celier@gnat.com>
20038         * lib-writ.ads: Comment update for the W lines
20040         * bld.adb: (Expression): An empty string list is static
20042         * fname-uf.adb: Minor comment update
20044         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
20046         * gnatbind.adb: Initialize Cumulative_Restrictions with the
20047         restrictions on the target.
20049 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
20051         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
20052         gen_rtx.
20054 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
20056         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
20058 2004-02-02  Vincent Celier  <celier@gnat.com>
20060         * gprcmd.adb (Check_Args): If condition is false, print the invoked
20061         comment before the usage.
20062         Gprcmd: Fail when command is not recognized.
20063         (Usage): Document command "prefix"
20065         * g-md5.adb (Digest): Process last block.
20066         (Update): Do not process last block. Store remaining characters and
20067         length in Context.
20069         * g-md5.ads (Update): Document that several call to update are
20070         equivalent to one call with the concatenated string.
20071         (Context): Add fields to allow new Update behaviour.
20073         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
20074         defaulted to False.
20075         When May_Fail is True and no existing file can be found, return No_File.
20077         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
20078         functions.
20080         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
20081         spec file name instead on the W line.
20083 2004-02-02  Robert Dewar  <dewar@gnat.com>
20085         * ali.adb: Read and acquire info from new format restrictions lines
20087         * bcheck.adb: Add circuits for checking restrictions with parameters
20089         * bindgen.adb: Output dummy restrictions data
20090         To be changed later
20092         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
20093         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
20094         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
20095         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
20096         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
20098         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
20099         the warning message on access to possibly uninitialized variable S)
20100         Minor changes for new restrictions handling.
20102         * gnatbind.adb: Minor reformatting
20103         Minor changes for new restrictions handling
20104         Move circuit for -r processing here from bcheck (cleaner)
20106         * gnatcmd.adb, gnatlink.adb: Minor reformatting
20108         * lib-writ.adb: Output new format restrictions lines
20110         * lib-writ.ads: Document new R format lines for new restrictions
20111         handling.
20113         * s-restri.ads/adb: New files
20115         * Makefile.rtl: Add entry for s-restri.ads/adb
20117         * par-ch3.adb: Fix bad error messages starting with upper case letter
20118         Minor reformatting
20120         * restrict.adb: Major rewrite throughout for new restrictions handling
20121         Major point is to handle restrictions with parameters
20123         * restrict.ads: Major changes in interface to handle restrictions with
20124         parameters. Also generally simplifies setting of restrictions.
20126         * snames.ads/adb: New entry for proper handling of No_Requeue
20128         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
20129         restriction counting.
20130         Other minor changes for new restrictions handling
20132         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
20133         Restriction_Warnings now allows full parameter notation
20134         Major rewrite of Restrictions for new restrictions handling
20136 2004-02-02  Javier Miranda  <miranda@gnat.com>
20138         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
20139         syntax rule for object renaming declarations.
20140         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
20141         component definitions.
20143         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
20144         components.
20145         (Array_Type_Declaration): Give support to access components. In addition
20146         it was also modified to reflect the name of the object in anonymous
20147         array types. The old code did not take into account that it is possible
20148         to have an unconstrained anonymous array with an initial value.
20149         (Check_Or_Process_Discriminants): Allow access discriminant in
20150         non-limited types.
20151         (Process_Discriminants): Allow access discriminant in non-limited types
20152         Initialize the new Access_Definition field in N_Object_Renaming_Decl
20153         node.  Change Ada0Y to Ada 0Y in comments
20155         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
20156         equality operators.
20157         Change Ada0Y to Ada 0Y in comments
20159         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
20160         renamings Change Ada0Y to Ada 0Y in comments
20162         * sem_type.adb (Find_Unique_Type): Give support to the equality
20163         operators for universal access types
20164         Change Ada0Y to Ada 0Y in comments
20166         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
20168         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
20169         field.
20170         (N_Object_Renaming_Declaration): Addition of Access_Definition field
20171         Change Ada0Y to Ada 0Y in comments
20173         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
20174         component definition and object renaming nodes
20175         Change Ada0Y to Ada 0Y in comments
20177 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
20179         * restrict.adb: Use the new restriction identifier
20180         No_Requeue_Statements instead of the old No_Requeue for defining the
20181         restricted profile.
20183         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
20184         No_Requeue_Statements.
20186         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
20187         that supersedes the GNAT specific restriction No_Requeue. The later is
20188         kept for backward compatibility.
20190 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
20192         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
20193         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
20194         pragma and fix incorrect ones.
20196         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
20197         warning if the pragma is redundant.
20199 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
20201         * 5staprop.adb: Add missing 'constant' keywords.
20203         * Makefile.in: use consistent value for SYMLIB on
20204         platforms where libaddr2line is supported.
20206 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20208         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
20209         annotating types.
20211 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
20213         * init.c (__gnat_install_handler): Setup an alternate stack for signal
20214         handlers in the environment thread. This allows proper propagation of
20215         an exception on stack overflows in this thread even when the builtin
20216         ABI stack-checking scheme is used without support for a stack reserve
20217         region.
20219         * utils.c (create_field_decl): Augment the head comment about bitfield
20220         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
20221         here, because the former is not accurate enough at this point.
20222         Let finish_record_type decide instead.
20223         Don't make a bitfield if the field is to be addressable.
20224         Always set a size for the field if the record is packed, to ensure the
20225         checks for bitfield creation are triggered.
20226         (finish_record_type): During last pass over the fields, clear
20227         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
20228         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
20229         from DECL_BIT_FIELD.
20231 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
20233         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
20234         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
20235         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
20237 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
20239         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
20241         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
20242         (ZCX_By_Default): Likewise.
20243         (Front_End_ZCX_Support): Likewise.
20245         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
20246         (Initialize_Lock): Mark Level unreferenced.
20247         (Sleep): Mark Reason unreferenced.
20248         (Timed_Sleep): Likewise.
20249         (Wakeup): Likewise.
20250         (Exit_Task): Use Result.
20251         (Check_No_Locks): Mark Self_ID unreferenced.
20253         * 5gtasinf.adb (New_Sproc): Make Attr constant.
20254         (Bound_Thread_Attributes): Make Sproc constant.
20255         (New_Bound_Thread_Attributes): Likewise.
20257 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
20259         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
20260         one-dimensional array an slice assignments, when component type is
20261         controlled.
20263         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
20264         component type is controlled, and control_actions are in effect, use
20265         TSS procedure rather than generating inline code.
20267         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
20268         arrays with controlled components.
20270 2004-01-26  Vincent Celier  <celier@gnat.com>
20272         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
20273         command line for the non VMS case.
20275         * gnatlink.adb (Process_Binder_File): When building object file, if
20276         GNU linker is used, put all object paths between quotes, to prevent ld
20277         error when there are unusual characters (such as '!') in the paths.
20279         * Makefile.generic: When there are sources in Ada and the main is in
20280         C/C++, invoke gnatmake with -B, instead of -z.
20282         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
20283         from VMS_Conversion.
20284         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
20285         specification of argument file on the command line.
20287 2004-01-26  Bernard Banner  <banner@gnat.com>
20289         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
20291 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
20293         * snames.adb: Update copyright notice.
20294         Add info on slice assignment for controlled arrays.
20296 2004-01-23  Robert Dewar  <dewar@gnat.com>
20298         * exp_aggr.adb: Minor reformatting
20300         * exp_ch9.adb: Minor code clean up
20301         Minor reformatting
20302         Fix bad character in comment
20304         PR ada/13471
20305         * targparm.adb (Get_Target_Parameters): Give clean abort error on
20306         unexpected end of file, along with more detailed message.
20308 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20310         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
20311         PAT.
20313         * decl.c (copy_alias_set): New function.
20314         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
20316 2004-01-23  Doug Rupp  <rupp@gnat.com>
20318         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
20319         lib$${file} in case subsequent character is not a separator.
20321 2004-01-23  Vincent Celier  <celier@gnat.com>
20323         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
20324         when the GCC version is at least 3.
20326         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
20327         Remove all "Opt.", to prepare for opt split
20329         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
20330         Extends_All. Set to True when the project parsed is an extending all
20331         project. Fails for importing an extending all project only when the
20332         imported project is an extending all project.
20333         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
20334         depending on the value of Extends_All returned.
20336         * prj-proc.adb (Process): Check that no project shares its object
20337         directory with a project that extends it, directly or indirectly,
20338         including a virtual project.
20339         Check that no project extended by another project shares its object
20340         directory with another also extended project.
20342         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
20343         Kind = N_With_Clause
20345         * prj-tree.ads: Minor reformatting
20346         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
20348 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
20350         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
20351         applies to a type with an incomplete view, use full view in Name of
20352         clause, for consistency with uses of Get_Attribute_Definition_Clause.
20354 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
20356         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
20357         SCHED_RR, since other values are not supported by this policy.
20358         (Initialize): Move initialization of mutex attribute to package
20359         elaboration, to prevent early access to this variable.
20361         * Makefile.in: Remove mention of Makefile.adalib, unused.
20363         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
20364         1ssecsta.ads: Removed, unused.
20366 2004-01-21  Javier Miranda  <miranda@gnat.com>
20368         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
20369         entity if already built in the current scope.
20371         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
20372         reminder in internal scopes. Required for nested limited aggregates.
20374 2004-01-21  Doug Rupp  <rupp@gnat.com>
20376         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
20377         VMS. Replace all occurences of libgnat- and libgnarl- with
20378         libgnat$(hyphen) and libgnarl$(hyphen).
20379         Fixed shared library build problem on VMS.
20381 2004-01-21  Robert Dewar  <dewar@gnat.com>
20383         * mlib-prj.adb: Minor reformatting
20385 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
20387         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
20388         'constant' keywords for declaration of pointers that are not modified.
20390         * exp_pakd.adb: Fix English in comment.
20392 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
20394         PR ada/10889
20395         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
20396         copy all attributes of the parent, including the foreign language
20397         convention.
20399 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
20401         PR ada/10565
20402         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
20403         for 'delay until' statement.
20405 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
20407         * Make-lang.in: Replace $(docdir) with doc.
20408         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
20409         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
20410         to use consistent MAKEINFO rule.
20411         (ada.man, ada.srcman): Dummy entry.
20412         (ADA_INFOFILES): Define.
20413         (ada.info, ada.srcinfo): New rules.
20415 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
20417         * utils.c: Update copyright notice, missed in previous change.
20419 2004-01-19  Vincent Celier  <celier@gnat.com>
20421         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
20422         args if Bind is True. Set First_ALI, if not already done.
20423         (Build_Library): For Stand Alone Libraries, extract from one ALI file
20424         an eventual --RTS switch, for gnatbind, and all backend switches +
20425         --RTS, for linking.
20427 2004-01-19  Robert Dewar  <dewar@gnat.com>
20429         * sem_attr.adb, memtrack.adb: Minor reformatting
20431 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
20433         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
20434         that rename enumeration literals. This is properly done in sem_eval.
20436         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
20437         to functions that rename enumeration literals.
20439         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
20440         functions that rename enumeration literals.
20442 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
20444         * Make-lang.in (utils.o): Depend on target.h.
20445         * utils.c: Include target.h.
20446         (process_attributes): Use targetm.have_named_sections instead
20447         of ASM_OUTPUT_SECTION_NAME.
20449 2004-01-16  Andreas Jaeger  <aj@suse.de>
20451         * Makefile.in: Add $(DESTDIR).
20453 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
20455         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
20456         also when not defining if a Size clause applies. That information is
20457         not to be ignored.
20459 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
20461         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
20462         symbolic links for the shared gnat run time when needed.
20464 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
20466         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
20467         for writing, and terminate with an error message if not.
20469 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
20471         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
20472         warning on an access to subprogram in an instance, when the target
20473         type is declared in the same generic unit.
20474         (Eval_Attribute): If 'access is known to fail accessibility check,
20475         rewrite as a raise statement.
20477 2004-01-15  GNAT Script  <nobody@gnat.com>
20479         * Make-lang.in: Makefile automatically updated
20481 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
20483         * Make-lang.in (ada.srcextra): Dummy entry.
20485 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
20487         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
20489 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
20491         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
20492         components that are initialized with aggregates.
20494 2004-01-13  Vincent Celier  <celier@gnat.com>
20496         * gnatlink.adb (Process_Binder_File): To find directory of shared
20497         libgcc, if "gcc-lib" is not a subdirectory, look for the last
20498         subdirectory "lib" in the path of the shared libgnat or libgnarl.
20500         * make.adb (Gnatmake): If GCC version is at least 3, link with
20501         -shared-libgcc, when there is at least one shared library project.
20503         * opt.ads (GCC_Version): New integer constant.
20505         * adaint.c (get_gcc_version): New function.
20507 2004-01-13  Robert Dewar  <dewar@gnat.com>
20509         * sem_dist.adb, sem_res.adb, sem_util.adb,
20510         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
20511         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
20513 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
20515         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
20516         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
20517         declarations.
20519 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
20521         * misc.c: Remove trailing spaces.
20522         Update copyright notice missed in previous change.
20524         PR ada/13572
20525         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
20526         prefix/share/make
20528         * Makefile.generic: Update copyright.
20529         Add license notice.
20531         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
20532         of prefix/share/make.
20534         * Makefile.prolog: Update copyright.
20535         Add license notice.
20537 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
20539         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
20540         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
20541         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
20542         instead of String.
20544         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
20545         signature.
20547 2004-01-12  Javier Miranda  <miranda@gnat.com>
20549         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
20550         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
20551         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
20552         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
20553         Component_Definition node.
20555 2004-01-12  Ed Falis  <falis@gnat.com>
20557         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
20559 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
20561         * link.c: Change default libgnat kind to STATIC for FreeBSD.
20563 2004-01-12  Bernard Banner  <banner@gnat.com>
20565         * Makefile.in: map 86numaux to a-numaux for x86_64
20567 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
20569         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
20570         generated to rename a generic actual, go to the actual itself, the
20571         subtype is not a user-visible entity.
20573         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
20574         part is a private subtype, reset the visibility of its full view, if
20575         any, to be consistent.
20577         PR ada/13417
20578         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
20579         to use a generic package G as a formal package for another generic
20580         declared within G.
20582 2004-01-12  Robert Dewar  <dewar@gnat.com>
20584         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
20586         * usage.adb: Remove mention of obsolete -gnatwb switch
20587         Noticed during code reading
20589 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
20591         * 1ssecsta.adb: Minor changes for -gnatwa warnings
20593 2004-01-12  GNAT Script  <nobody@gnat.com>
20595         * Make-lang.in: Makefile automatically updated
20597 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
20599         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
20601 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
20603         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
20605 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
20607         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
20608         Update comment and copyright date.
20609         * stamp-xgnatug: Delete.
20611 2004-01-05  Robert Dewar  <dewar@gnat.com>
20613         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
20614         be modified by the binder generated main program if the -D switch is
20615         used.
20617         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
20618         imported functions (since now we expect this to be done for imported
20619         functions)
20621         * 5vtaprop.adb: Add several ??? for sections requiring more comments
20622         Minor reformatting throughout
20624         * 5zinit.adb: Minor reformatting
20625         Add 2004 to copyright date
20626         Minor changes to avoid -gnatwa warnings
20627         Correct some instances of using OR instead of OR ELSE (noted while
20628         doing reformatting)
20630         * sprint.adb: Minor updates to avoid -gnatwa warnings
20632         * s-secsta.ads, s-secsta.adb:
20633         (SS_Get_Max): New function to obtain high water mark for ss stack
20634         Default_Secondary_Stack is not a constant since it may be modified by
20635         the binder generated main program if the -D switch is used.
20637         * switch-b.adb: New -Dnnn switch for binder
20639         * switch-c.adb:
20640         Make -gnatg imply all warnings currently in -gnatwa
20642         * vms_conv.adb: Minor reformatting
20643         Add 2004 to copyright notice
20644         Add 2004 to printed copyright notice
20646         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
20647         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
20648         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
20649         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
20650         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
20651         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
20652         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
20653         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
20654         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
20655         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
20656         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
20657         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
20658         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
20659         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
20660         checks.adb, clean.adb, cstand.adb, einfo.ads,
20661         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
20662         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
20663         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
20664         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
20665         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
20666         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
20667         Minor reformatting and code clean ups.
20668         Minor changes to prevent -gnatwa warnings
20670         * ali.adb: Minor reformatting and cleanup of code
20671         Acquire new SS indication of secondary stack use from ali files
20673         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
20674         (since now we expect this to be done for imported functions)
20676         * bindgen.adb: Generate call to modify default secondary stack size if
20677         -Dnnn switch given
20679         * bindusg.adb: Add line for new -D switch
20681         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
20682         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
20683         Add circuitry for both records and arrays to avoid gigi
20684         processing if the type involved has non-bit-aligned components
20686         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
20687         N_String_Literal node always references an E_String_Literal_Subtype
20688         entity. This may not be true in the future.
20689         (Possible_Bit_Aligned_Component): Move processing of
20690         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
20692         * exp_ch6.adb (Expand_Thread_Body): Pick up
20693         Default_Secondary_Stack_Size as variable so that we get value modified
20694         by possible -Dnnn binder parameter.
20696         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
20697         (Type_May_Have_Bit_Aligned_Components): New function.
20699         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
20700         (Type_May_Have_Bit_Aligned_Components): New function.
20702         * fe.h: (Set_Identifier_Casing): Fix prototype.
20703         Add declaration for Sem_Elim.Eliminate_Error_Msg.
20704         Minor reformatting.
20706         * freeze.adb (Freeze_Entity): Add RM reference to error message about
20707         importing constant atomic/volatile objects.
20708         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
20709         unless explicit Pure_Function pragma given, to avoid insidious bug of
20710         call to non-pure imported function getting eliminated.
20712         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
20713         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
20714         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
20715         Add 2004 to printed copyright notice
20717         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
20718         stack used.
20720         * Makefile.rtl: Add entry for g-sestin.o
20721         g-sestin.ads: New file.
20723         * mdll.adb: Minor changes to avoid -gnatwa warnings
20725         * mlib-tgt.adb: Minor reformatting
20727         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
20728         New switch Sec_Stack_Used (GNAT, GNATBIND)
20729         Make Default_Secondary_Stack_Size a variable instead of a constant,
20730         so that it can be modified by the new -Dnnn bind switch.
20732         * rtsfind.adb (Load_Fail): Give full error message in configurable
20733         run-time mode if all_errors mode is set. This was not done in the case
20734         of a file not found, which was an oversight.
20735         Note if secondary stack unit is used by compiler.
20737         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
20738         ineffective elaborate all pragmas on non-visible packages (this
20739         happened when a renamed subprogram was called). Now the elaborate all
20740         always goes on the package containing the renaming rather than the one
20741         containing the renamed subprogram.
20743         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
20744         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
20746         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
20747         has an Etype that references an E_String_Literal.
20748         (Eval_String_Literal): Avoid assumption that N_String_Literal node
20749         always references an E_String_Literal_Subtype entity. This may not
20750         be true in the future.
20752         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
20753         pragma location.
20755         * sem_res.adb (Resolve): Specialize msg for function name used in proc
20756         call.
20758 2004-01-05  Ed Falis  <falis@gnat.com>
20760         * g-debuti.adb: Replaced direct boolean operator with short-circuit
20761         form.
20763 2004-01-05  Vincent Celier  <celier@gnat.com>
20765         * bld.adb: Minor comment updates
20766         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
20767         of Item_Name).
20769         * make.adb (Gnatmake): Special process for files to compile/check when
20770         -B is specified. Fail when there are only foreign mains in attribute
20771         Main of the project file and -B is not specified. Do not skip bind/link
20772         steps when -B is specified.
20774         * makeusg.adb: Document new switch -B
20776         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
20778         * switch-m.adb: (Scan_Make_Switches): Process -B switch
20780         * vms_data.ads: Add new GNAT PRETTY qualifier
20781         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
20783 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20785         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
20786         case.
20788         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
20789         Set_Identifier_Casing.
20791         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
20792         has size that overflows.
20794 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
20796         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
20797         -gnatwa warning on static condition.
20799 2004-01-05  Doug Rupp  <rupp@gnat.com>
20801         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
20803 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
20805         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
20806         all attributes, including read-only attribute.
20808 2004-01-05  Pascal Obry  <obry@gnat.com>
20810         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
20811         library naming scheme.
20813         * mlib-prj.adb (Build_Library): Generate different names for the static
20814         or dynamic version of the GNAT runtime. This is needed to support the
20815         new shared library naming scheme.
20816         (Process_Binder_File): Add detection of shared library in binder file
20817         based on the new naming scheme.
20819         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
20820         scheme for the shared runtime libraries.
20822         * Makefile.in:
20823         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
20824         scheme.
20825         (install-gnatlib): Do not create symlinks for shared libraries.
20826         (gnatlib-shared-default): Idem.
20827         (gnatlib-shared-dual-win32): New target. Not used for now as the
20828         auto-import feature does not support arrays/records.
20829         (gnatlib-shared-win32): Do not create copy for the shared libraries.
20830         (gnatlib-shared-vms): Fix shared runtime libraries names.
20832         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
20833         dependent runtime shared library name.
20835 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
20837         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
20838         than the object.
20840 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
20842         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
20843         protected objects when allocator has a subtype indication, not a
20844         qualified expression. Note that qualified expressions may have to be
20845         checked when limited aggregates are implemented.
20847         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
20848         pure, emit warning.
20849         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
20850         subprogram is imported, remove warning.
20852 2004-01-05  Geert Bosch  <bosch@gnat.com>
20854         * s-poosiz.adb: Update copyright notice.
20855         (Allocate): Use Task_Lock to protect against concurrent access.
20856         (Deallocate): Likewise.
20858 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
20860         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
20861         comment.
20863 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
20865         * gnat_ug.texi: Force a CVS commit by updating copyright.
20866         * gnat_ug_vxw.texi: Regenerate.
20867         * gnat_ug_wnt.texi: Regenerate.
20868         * gnat_ug_vms.texi: Regenerate.
20869         * gnat_ug_unx.texi: Regenerate.
20871 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
20873         * trans.c: Remove uses of "register" specifier in
20874         declarations of local variables.
20876 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
20878         * stamp-xgnatug: New stamp file.
20879         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
20880         (ada/doctools/xgnatug): Add $(build_exeext).
20881         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
20882         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
20884 2003-12-17  Ed Falis  <falis@gnat.com>
20886         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
20887         eliminate warning.
20889         * a-exextr.adb: Add context clause for
20890         Ada.Exceptions.Last_Chance_Handler.
20892 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
20894         * cstand.adb (Create_Standard): Change the way how the declaration of
20895         the Duration type is created (making it the same way as it is for all
20896         the other standard types).
20898 2003-12-17  Robert Dewar  <dewar@gnat.com>
20900         * s-crtl.ads: Fix header format
20901         Change Pure to Preelaborate
20903 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
20905         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
20906         the expression type only if it is declared in the current unit.
20908         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
20909         are universal and already analyzed, as can occur in constrained
20910         subcomponents that depend on discriminants, when one constraint is a
20911         subtype mark.
20913         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
20914         type Any_Fixed is legal as the argument of a conversion, if only one
20915         fixed-point type is in context.
20917 2003-12-17  GNAT Script  <nobody@gnat.com>
20919         * Make-lang.in: Makefile automatically updated
20921 2003-12-15  Robert Dewar  <dewar@gnat.com>
20923         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
20924         sec stack size.
20926 2003-12-15  Vincent Celier  <celier@gnat.com>
20928         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
20929         (Gnatchop): Do not set failure status when reporting the number of
20930         warnings.
20932 2003-12-15  Doug Rupp  <rupp@gnat.com>
20934         * s-ctrl.ads: New file.
20936         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
20938         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
20939         (GNATBIND_OBJS): Add ada/s-crtl.o.
20941         * Makefile.in [VMS]: Clean up ifeq rules.
20943         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
20944         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
20945         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
20946         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
20947         s-tasdeb.adb: Update copyright.
20948         Import System.CRTL.
20949         Make minor modifications to use System.CRTL declared functions instead
20950         of importing locally.
20952 2003-12-15  GNAT Script  <nobody@gnat.com>
20954         * Make-lang.in: Makefile automatically updated
20956 2003-12-11  Ed Falis  <falis@gnat.com>
20958         * 5zinit.adb: Clean up.
20960         * 5zintman.adb (Notify_Exception): replaced case statement with a call
20961         to __gnat_map_signal, imported from init.c to support
20962         signal -> exception mappings that depend on the vxWorks version.
20964         * init.c:
20965         Created and exported __gnat_map_signal to support signal -> exception
20966         mapping that is dependent on the VxWorks version.
20967         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
20969 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
20971         * 5wosinte.ads: Link with -mthreads switch.
20973 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
20975         * init.c (__gnat_install_handler [NetBSD]): Set
20976         __gnat_handler_installed, as done on all other platforms.
20977         Remove duplicated code.
20979 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
20981         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
20983 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
20985         * sinfo.ads: Fix inconsistent example code in comment.
20987 2003-12-11  Robert Dewar  <dewar@gnat.com>
20989         * a-tiinau.adb: Add a couple of comments
20991         * sem_ch3.adb: Minor reformatting
20993         * sem_prag.adb:
20994         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
20995         Minor reformatting throughout
20997 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
20999         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
21000         bounds of a loop, create a separate block in order to generate proper
21001         cleanup actions to prevent memory leaks.
21003         * sem_res.adb (Resolve_Call): After a call to
21004         Establish_Transient_Scope, the call may be rewritten and relocated, in
21005         which case no further processing is needed.
21007         * sem_util.adb: (Wrong_Type): Refine previous fix.
21008          Fixes ACATS regressions.
21010         PR ada/13353
21012         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
21013         be inlined.
21015 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
21017         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
21018         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
21019         obsolete files.
21021         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
21022         (rts-zfp): Ditto.
21024 2003-12-08  Robert Dewar  <dewar@gnat.com>
21026         * 7sintman.adb: Minor reformatting
21028         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
21029         standard linker options to get standard libraries linked. We now plan
21030         to provide dummy versions of these libraries to match the appropriate
21031         configurable run-time (e.g. if a library is not needed at all, provide
21032         a dummy empty library).
21034         * targparm.ads: Configurable_Run_Time mode no longer affects linker
21035         options (-L parameters and standard libraries). What we plan to do is
21036         to provide dummy libraries where the libraries are not required.
21038         * gnatbind.adb: Minor comment improvement
21040 2003-12-08  Javier Miranda  <miranda@gnat.com>
21042         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
21043         aggregate in the parent. Otherwise constants with limited aggregates
21044         are not supported. Add new formal to pass the component type (Ctype).
21045         It is required to call the corresponding IP subprogram in case of
21046         default initialized components.
21047         (Gen_Assign): In case of default-initialized component, generate a
21048         call to the IP subprogram associated with the component.
21049         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
21050         of aggregate with default initialized components.
21051         (Has_Default_Init_Comps): Improve implementation to recursively check
21052         all the present expressions.
21054         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
21055         to indicate that the initialization call corresponds to a
21056         default-initialized component of an aggregate.
21057         In case of default initialized aggregate with tasks this parameter is
21058         used to generate a null string (this is just a workaround that must be
21059         improved later). In case of discriminants, this parameter is used to
21060         generate a selected component node that gives access to the discriminant
21061         value.
21063         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
21064         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
21065         allocated aggregates with default-initialized components.
21067         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
21068         the box notation is used in positional aggregates.
21070 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
21072         * lib.ads: Fix typo in comment
21074 2003-12-08  Vincent Celier  <celier@gnat.com>
21076         * prj.adb (Project_Empty): New component Unkept_Comments
21077         (Scan): Remove procedure; moved to Prj.Err.
21079         * prj.ads (Project_Data): New Boolean component Unkept_Comments
21080         (Scan): Remove procedure; moved to Prj.Err.
21082         * prj-dect.adb: Manage comments for the different declarations.
21084         * prj-part.adb (With_Record): New component Node
21085         (Parse): New Boolean parameter Store_Comments, defaulted to False.
21086         Set the scanner to return ends of line and comments as tokens, if
21087         Store_Comments is True.
21088         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
21089         comments are associated with these nodes. Store the node IDs in the
21090         With_Records.
21091         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
21092         With_Records.
21093         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
21094         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
21095         current project. Call Tree.Restore afterwards. Set the various nodes
21096         for comment storage (Next_End, End_Of_Line, Previous_Line,
21097         Previous_End).
21099         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
21100         defaulted to False.
21102         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
21103         to False. When Truncated is True, truncate the string, never go to the
21104         next line.
21105         (Write_End_Of_Line_Comment): New procedure
21106         (Print): Process comments for nodes N_With_Clause,
21107         N_Package_Declaration, N_String_Type_Declaration,
21108         N_Attribute_Declaration, N_Typed_Variable_Declaration,
21109         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
21110         Process nodes N_Comment.
21112         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
21113         without comments and there are some comments, set the flag
21114         Unkept_Comments to True.
21115         (Scan): If there are comments, set the flag Unkept_Comments to True and
21116         clear the comments.
21117         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
21118         (Next_End_Nodes: New table
21119         (Comment_Zones_Of): New function
21120         (Scan): New procedure; moved from Prj. Accumulate comments in the
21121         Comments table and set end of line comments, comments after, after end
21122         and before end.
21123         (Add_Comments): New procedure
21124         (Save, Restore, Seset_State): New procedures
21125         (There_Are_Unkept_Comments): New function
21126         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
21127         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
21128         procedures.
21129         (First_Comment_After, First_Comment_After_End): New functions
21130         (First_Comment_Before, First_Comment_Before_End): New functions
21131         (Next_Comment): New function
21132         (End_Of_Line_Comment, Follows_Empty_Line,
21133         Is_Followed_By_Empty_Line): New functions
21134         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
21135         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
21136         (Set_Next_Comment): New procedure
21137         (Default_Project_Node): Associate comment before if the node can store
21138         comments.
21140         * scans.ads (Token_Type): New enumeration value Tok_Comment
21141         (Comment_Id): New global variable
21143         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
21144         defaulted to False.
21145         (Scan): Store position of start of comment. If comments are tokens, set
21146         Comment_Id and set Token to Tok_Comment when scanning a comment.
21147         (Set_Comment_As_Token): New procedure
21149         * sinput-p.adb: Update Copyright notice
21150         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
21151         that no longer exists.
21153 2003-12-08  Javier Miranda  <miranda@gnat.com>
21155         * sem_aggr.adb: Add dependence on Exp_Tss package
21156         Correct typo in comment
21157         (Resolve_Aggregate): In case of array aggregates set the estimated
21158         type of the aggregate before calling resolve. This is needed to know
21159         the name of the corresponding IP in case of limited array aggregates.
21160         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
21161         in case of default initialized array components.
21163         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
21164         types. Required to give support to limited aggregates in generic
21165         formals.
21167 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
21169         * sem_ch3.adb (Check_Initialization): For legality purposes, an
21170         inlined body functions like an instantiation.
21171         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
21172         until bounds are analyzed, to diagnose premature use of type.
21174         * sem_util.adb (Wrong_Type): Improve error message when the type of
21175         the expression is used prematurely.
21177 2003-12-08  GNAT Script  <nobody@gnat.com>
21179         * Make-lang.in: Makefile automatically updated
21181 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
21183         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
21184         they are automatically generated by Make-lang.in and cause nothing but
21185         maintenance troubles.
21187 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
21189         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
21190         version of this unit).
21192 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
21194         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
21195         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
21196         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
21197         the body of System.Interrupt_Management common to several targets.
21198         Update copyright notice when appropriate.
21200         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
21201         constant.
21203         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
21204         to ensure that the kernel fills in the interrupted context structure
21205         before calling a signal handler, which is necessary to be able to
21206         unwind past it. Update the copyright notice.
21208 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
21210         * a-elchha.ads: New file.
21212         * a-elchha.adb: New default last chance handler. Contents taken from
21213         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
21215         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
21216         is moved to a-elchha.adb to provide a target-independent default last
21217         chance handler.
21219         * Makefile.rtl: Add a-elchha.o
21221         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
21223 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
21225         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
21226         declared in an instance, do not inline the call if the instance is not
21227         frozen yet, to prevent order of elaboration problems.
21229         * sem_prag.adb: Add comments for previous fix.
21231 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
21233         * g-table.adb: Use the right variable in Set_Item.
21234         Update copyright notice.
21236 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
21238         * Makefile.in: Remove unused rules.
21240 2003-12-05  Vincent Celier  <celier@gnat.com>
21242         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
21243         -nostdlib. Not needed here after all.
21245 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
21247         PR ada/11724
21249         * adaint.h, adaint.c, g-os_lib.ads:
21250         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
21251         on some platforms (including FreeBSD), it is a 64 bit value.
21252         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
21254 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
21256         * gnatvsn.ads (Library_Version): Now contain only the relevant
21257         version info.
21258         (Verbose_Library_Version): New constant.
21260         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
21261         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
21262         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
21264         * gnatlbr.adb: Clean up: replace Library_Version by
21265         Verbose_Library_Version.
21267         * make.adb, lib-writ.adb, exp_attr.adb:
21268         Clean up: replace Library_Version by Verbose_Library_Version.
21270         * 5lintman.adb: Removed.
21272         * Makefile.in:
21273         Update and simplify computation of LIBRARY_VERSION.
21274         Fix computation of GSMATCH_VERSION.
21275         5lintman.adb is no longer used: replaced by 7sintman.adb.
21277 2003-12-03  Robert Dewar  <dewar@gnat.com>
21279         * exp_ch5.adb:
21280         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
21281         name. Modified to consider small non-bit-packed arrays as troublesome
21282         and in need of component-by-component assigment expansion.
21284 2003-12-03  Vincent Celier  <celier@gnat.com>
21286         * lang-specs.h: Process nostdlib as nostdinc
21288         * back_end.adb: Update Copyright notice
21289         (Scan_Compiler_Arguments): Process -nostdlib directly.
21291 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
21293         * Makefile.in:
21294         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
21295         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
21296         included in HIE_NONE_TARGET_PAIRS.
21298 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
21300         * sem_attr.adb:
21301         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
21302         is legal in an instance, because legality is cheched in the template.
21304         * sem_prag.adb:
21305         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
21306         appplied to an unchecked conversion of a formal parameter.
21308         * sem_warn.adb:
21309         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
21310         variables.
21312 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
21314         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
21315         routines. The second one is new functionality to deal with backtracing
21316         through signal handlers.
21317         (unwind): Split into the two separate subroutines above.
21318         Update the documentation, and deal properly with sizeof (REG) different
21319         from sizeof (void*).
21321 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
21323         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
21324         so that the debugger can reliably access the value of the parameter,
21325         and therefore is able to display the exception name when an exception
21326         breakpoint is reached.
21328 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
21330         * fmap.adb: Fix typo in warning message.
21332         * g-socket.ads, g-socket.adb: Make Free a visible instance of
21333         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
21335 2003-12-01  Vincent Celier  <celier@gnat.com>
21337         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
21338         ther is no Afile.
21339         (Build_Library): Get the switches only if Default_Switches is declared
21340         in package Binder.
21342 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
21344         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
21345         actuals that are indexed components, reanalyze actual to ensure that
21346         packed array references are properly expanded.
21348         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
21349         attempted assignment to a discriminant.
21351 2003-12-01  Robert Dewar  <dewar@gnat.com>
21353         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
21354         reformatting.
21356         * switch-c.adb: Minor reformatting of comments
21358 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
21360         * Makefile.in: Clean ups.
21362 2003-12-01  GNAT Script  <nobody@gnat.com>
21364         * Make-lang.in: Makefile automatically updated
21366 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
21368         * 5wsystem.ads: Disable zero cost exception, not ready yet.
21370 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
21372         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
21373         to force serialization.
21375 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
21377         * g-socket.ads, g-socket.adb:
21378         Clarify documentation of function Stream. Introduce a Free procedure
21379         to release the returned Stream once it becomes unused.
21381         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
21383 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
21385         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
21386         since NT 4 cannot handle timeout values that are too large,
21387         e.g. DWORD'Last - 1.
21389 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
21391         * exp_ch4.adb:
21392         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
21393         in procedure calls and whose expansion must be deferred.
21395         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
21396         is in exp_ch4.
21398         * sem_ch3.adb:
21399         (Build_Derived_Array_Type): Create operator for unconstrained type
21400         if ancestor is unconstrained.
21402 2003-11-26  Vincent Celier  <celier@gnat.com>
21404         * make.adb (Project_Object_Directory): New global variable
21405         (Change_To_Object_Directory): New procedure
21406         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
21407         of Change_Dir directly. Do not change working directory to object
21408         directory of main project after each compilation.
21409         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
21410         directly.
21411         Change to object directory of main project before binding step.
21412         (Initialize): Initialize Project_Object_Directory to No_Project
21414         * mlib-prj.adb:
21415         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
21416         binding a Stand-Alone Library.
21418         * output.adb: Update Copyright notice
21419         (Write_Char): Output buffer when full
21421 2003-11-26  Robert Dewar  <dewar@gnat.com>
21423         * sem_ch13.adb: (Check_Size): Reset size if size is too small
21425         * sem_ch13.ads:
21426         (Check_Size): Fix documentation to include bit-packed array case
21428         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
21430         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
21432         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
21434 2003-11-24  Arnaud Charlet <charlet@act-europe.fr>
21436         PR ada/13142
21437         * utils.c (init_gigi_decls): Change name of built-in setjmp to
21438         __builtin_setjmp, since this is apparently needed by recent
21439         non Ada changes.
21441 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
21443         * adadecode.c: Only include ctype.h if not IN_GCC.
21444         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
21446 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
21448         * Makefile.in:
21449         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
21450         signals and interrupts.
21452         * 5zintman.ads: New File.
21454         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
21455         add exception signals to the set of unmasked signals.
21457         * 5ztaprop.adb:
21458         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
21459         between signals and interrupts.
21460         Add to Unblocked_Signal_Mask the set of signals that are in
21461         Keep_Unmasked.
21463         * 7sinmaop.adb:
21464         Adding a check to see whether the Interrupt_ID we want to unmask is in
21465         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
21466         reason is that the index type of the Keep_Unmasked array is not always
21467         Interrupt_ID; it may be a subtype of Interrupt_ID.
21469 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
21471         * exp_util.adb:
21472         (Remove_Side_Effects): Condition constantness of object created for a
21473          an unchecked type conversion on the constantness of the expression
21474          to ensure the correct value for 'Constrained when passing components
21475          of view-converted class-wide objects.
21477 2003-11-24  Robert Dewar  <dewar@gnat.com>
21479         * par-load.adb (Load): Improve handling of misspelled and missing units
21480         Removes several cases of compilation abandoned messages
21482         * lib.adb: (Remove_Unit): New procedure
21484         * lib.ads: (Remove_Unit): New procedure
21486         * lib-load.adb: Minor reformatting
21488 2003-11-24  Vincent Celier  <celier@gnat.com>
21490         * make.adb:
21491         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
21492         (Marking_Label): Label to mark processed source files. Incremented for
21493         each executable.
21494         (Gnatmake): Increase Marking_Labet for each executable
21495         (Is_Marked): Compare against marking label
21496         (Mark): Mark with marking label
21498 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
21500         * s-thread.ads:
21501         Move the declaration of the TSD for System.Threads to System.Soft_Links.
21502         Add some comments.
21504         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
21505         (rts-cert): build a single relocatable object for the run-time lib.
21506         Fix perms.
21508 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
21510         * Make-lang.in:
21511         Use gnatls rather than gcc to obtain the location of GNAT RTL for
21512         crosstools build.
21514 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
21516         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
21517         can not use it as before (that is, as a variable) when dumping it into
21518         the tree file. Add a local variable to store the result of this
21519         function and to be used as the string to be written into the tree.
21521         * scn.adb (Initialize_Scanner): Add comments explaining the recent
21522         changes.
21524         * sinput.adb (Source_First, Source_Last): In case of
21525         Internal_Source_File, replace returning attributes of
21526         Internal_Source_Ptr (which is wrong) with returning attributes of
21527         Internal_Source.
21529 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
21531         * sem_ch3.adb:
21532         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
21533         used for implicit concatenation operators.
21534         Code cleanup.
21536         * sem_elab.adb:
21537         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
21538         task bodies that are in the scope of a Suppress pragma.
21539         (Check_A Call): Use the flag to prevent spurious elaboration checks.
21541         * sinfo.ads, sinfo.adb:
21542         New flag No_Elaboration_Check on function/procedure calls, to properly
21543         suppress checks on calls in task bodies that are within a local suppress
21544         pragma.
21546         * exp_ch4.adb:
21547         (Expand_Concatenate_Other): Use the proper integer type for the
21548         expression for the upper bound, to avoid universal_integer computations
21549         when possible.
21551 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
21553         * .cvsignore: Delete.
21555 2003-11-21  Andreas Schwab  <schwab@suse.de>
21557         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
21559 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
21561         * 5wsystem.ads: Enable zero cost exception.
21563 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
21565         * 5ztiitho.adb: Remove an unreferenced variable.
21567 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
21569         * adaint.c: For FreeBSD, use mkstemp.
21571 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
21573         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
21575 2003-11-21  Robert Dewar  <dewar@gnat.com>
21577         * bld.adb: Remove useless USE of gnatvsn
21579         * gnatchop.adb: Minor reformatting
21580         Clean up version handling to be more consistent
21582         * gnatxref.adb: Minor reformatting
21584         * gprcmd.adb: Minor reformatting
21585         Fix output of copyright to be more consistent with other tools
21587 2003-11-21  Vincent Celier  <celier@gnat.com>
21589         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
21591 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
21593         * atree.adb (Initialize): Add initializations for global variables
21594         used in New_Copy_Tree.
21596         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
21597         Internal_Source_File as the actual).
21598         Put the set of statements creating Any_Character before the set of
21599         statements creating Any_Array to have Any_Character fully initialized
21600         when it is used in creating Any_Array.
21602         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
21603         not call Scan in case if the actual is Internal_Source_File
21604         Add 2003 to copyright note.
21606         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
21607         processing Internal_Source_File.
21609         * types.ads: Add the constant Internal_Source_File representing the
21610         source buffer for artificial source-code-like strings created within
21611         the compiler (the definition of Source_File_Index is changed).
21613 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
21615         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
21616         56system.ads: New file, FreeBSD version.
21618 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
21620         * Make-lang.in (ada.extraclean): Delete.
21622 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
21624         * gnatmem.adb: Clean up verbose output.
21626         * gprcmd.adb: Change copyright to FSF.
21628 2003-11-19  Vincent Celier  <celier@gnat.com>
21630         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
21631         and Version (ignored).
21633         * symbols.ads: (Policy): New type
21634         (Initialize): New parameter Reference, Symbol_Policy and
21635         Library_Version.
21636         Remove parameter Force.
21637         Minor reformatting.
21639         * snames.ads, snames.adbadb: New standard names
21640         Library_Reference_Symbol_File and Library_Symbol_Policy
21642         * mlib-prj.adb:
21643         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
21644         project.
21646         * mlib-tgt.adb:
21647         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
21649         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
21651         * prj.adb: (Project_Empty): New component Symbol_Data
21653         * prj.ads: (Policy, Symbol_Record): New types
21654         (Project_Data): New component Symbol_Data
21656         * prj-attr.adb:
21657         New attributes Library_Symbol_File, Library_Symbol_Policy and
21658         Library_Reference_Symbol_File.
21660         * prj-nmsc.adb:
21661         (Ada_Check): When project is a Stand-Alone library project, process
21662         attribute Library_Symbol_File, Library_Symbol_Policy and
21663         Library_Reference_Symbol_File.
21665         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
21666         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
21667         5sml-tgt.adb (Build_Dynamic_Library): New parameter
21668         Symbol_Data (ignored).
21670         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
21671         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
21672         functions Option_File_Name and Version_String. Set new options of
21673         gnatsym related to symbol file, symbol policy and reference symbol
21674         file.
21676         * 5vsymbol.adb:
21677         Extensive modifications to take into account the reference symbol file,
21678         the symbol policy, the library version and to put in the symbol file the
21679         minor and major IDs.
21681         * bld.adb (Process_Declarative_Items): Put second argument of
21682         gprcmd to_absolute between single quotes, to avoid problems with
21683         Windows.
21685         * bld-io.adb: Update Copyright notice.
21686         (Flush): Remove last character of a line, if it is a back slash, to
21687         avoid make problems.
21689         * gnatsym.adb:
21690         Implement new scheme with reference symbol file and symbol policy.
21692         * g-os_lib.ads: (Is_Directory): Clarify comment
21694 2003-11-19  Robert Dewar  <dewar@gnat.com>
21696         * atree.adb: Move New_Copy_Tree global variables to head of package
21698         * errout.adb: Minor reformatting
21700 2003-11-19  Javier Miranda  <miranda@gnat.com>
21702         * sem_ch4.adb: (Diagnose_Call): Improve error message.
21703         Add reference to Ada0Y (AI-50217)
21705         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
21706         sem_util.adb: Add reference to AI-50217
21708         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
21710         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
21712         * sem_aggr.adb: Complete documentation of AI-287 changes
21714         * par-ch4.adb: Document previous changes.
21716         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
21717         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
21718         Ada0Y (AI-50217)
21720         * exp_aggr.adb: Add references to AI-287 in previous changes
21722 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
21724         * exp_ch6.adb:
21725         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
21726         in the rewriting is the result of an inlined call.
21728         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
21729         parameter is a type conversion, use original node to construct the
21730         post-call assignment, because expression may have been rewritten, e.g.
21731         if it is a packed array.
21733         * sem_attr.adb:
21734         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
21735         body, just as it is in an instance.
21736         Categorization routines
21738         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
21739         Instantiate_Object): Set proper sloc reference for message on missing
21740         actual.
21742 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
21744         * Makefile.in: Add FreeBSD libgnat pairs.
21746         * usage.adb: Fix typo in usage message.
21748 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
21750         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
21751         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
21752         pragma Thread_Body.
21753         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
21755         * s-thread.adb: This file is now a dummy implementation of
21756         System.Thread.
21758 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
21760         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
21762 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
21764         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
21765         instanciation references in the parent type description.
21767 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21769         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
21771         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
21772         TYPE_PRECISION directly from esize.
21774 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
21776         * cstreams.c:
21777         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
21779         * init.c: Initialization routines for FreeBSD
21781         * link.c: Link info for FreeBSD
21783         * sysdep.c: Add the case of FreeBSD
21785 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
21787         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
21788         already called in System.Threads.
21790         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
21791         environment task, as it has been moved to System.Threads.Initialization.
21793 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
21795         * adaint.c (__gnatlib_install_locks): Only reference
21796         __gnat_install_locks on VMS, since other platforms can avoid using
21797         --enable-threads=gnat
21799 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21801         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
21803         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
21804         TYPE_PACKED_ARRAY_TYPE_P.
21805         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
21807         Part of PR ada/12806
21808         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
21809         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
21811 2003-11-17  Vincent Celier  <celier@gnat.com>
21813         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
21814         to False.
21815         Do not set exit status to Failure when Warning is True.
21816         (Gnatchop): Make errors "no compilation units found" and
21817         "no source files written" warnings only.
21819         * make.adb (Gnatmake): When using a project file, set
21820         Look_In_Primary_Dir to False.
21821         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
21822         and Local_Configuration_Pragmas in the project where they are declared
21823         not an extending project which might have inherited them.
21825         * osint.adb (Locate_File): If Name is already an absolute path, do not
21826         look for a directory.
21828         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
21829         -gnats (Check_Syntax) is used, issue only a warning, not an error.
21831         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
21832         in objects of type Variable_Value.
21834         * prj.ads: (Variable_Value): New component Project
21836         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
21837         is in a project extended by Project.
21839         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
21840         Project of Variable_Values to this new parameter value.
21841         (Expression): Set component Project of Variable_Values.
21842         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
21843         Set the component Project in array elements.
21845 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
21847         * errout.adb: (Initialize): Add initialization for error nodes.
21849         * sem_ch12.adb (Initialize): Add missing initializations for
21850         Exchanged_Views and Hidden_Entities.
21852 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
21854         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
21855         already instantiated tree for use in subsequent inlining.
21856         (Analyze_Associations, Instantiate_Formal_Subprogram,
21857         Instantiate_Object): improve error message for mismatch in
21858         instantiations.
21860         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
21861         instantiations of subprograms declared in instances.
21863 2003-11-17  Javier Miranda  <miranda@gnat.com>
21865         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
21866         executed only under the Extensions_Allowed flag.
21868 2003-11-17  Robert Dewar  <dewar@gnat.com>
21870         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
21871         zeroes suppressed.
21872         (Address_Image): Fix bug of returning 0x instead of 0x0
21873         Minor reformatting (function specs).
21875         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
21876         (missed case of 33-63)
21878         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
21880         * s-thread.adb: Add comments for pragma Restriction
21882         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
21883         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
21885 2003-11-17  Ed Falis  <falis@gnat.com>
21887         * s-thread.adb: Added No_Tasking restriction for this implementation.
21889 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
21891         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
21892         instanciation references in the parent type description.
21894 2003-11-17  GNAT Script  <nobody@gnat.com>
21896         * Make-lang.in: Makefile automatically updated
21898 2003-11-16  Jason Merrill  <jason@redhat.com>
21900         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
21901         and TAGS files that include them for each front end.
21903 2003-11-14  Andreas Jaeger  <aj@suse.de>
21905         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
21906         is the canonical version.
21907         * misc.c (gnat_handle_option): Likewise.
21909         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
21911         * 5nsystem.ads: New file for x86_64-linux-gnu.
21913 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
21915         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
21917         * comperr.adb: Fix logic in previous change.
21919 2003-11-13  Vincent Celier  <celier@gnat.com>
21921         * 5bml-tgt.adb (Build_Dynamic_Library): Use
21922         Osint.Include_Dir_Default_Prefix instead of
21923         Sdefault.Include_Dir_Default_Name.
21925         * gnatlbr.adb: Update Copyright notice
21926         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
21927         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
21928         instead of Sdefault.Object_Dir_Default_Name
21930         * gnatlink.adb:
21931         (Process_Binder_File): Never suppress the option following -Xlinker
21933         * mdll-utl.adb:
21934         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
21935         Sdefault.Object_Dir_Default_Name.
21937         * osint.ads, osint.adb:
21938         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
21939         Minor reformatting.
21941         * vms_conv.ads: Minor reformating
21942         Remove GNAT STANDARD and GNAT PSTA
21944         * vms_conv.adb:
21945         Allow GNAT MAKE to have several files on the command line.
21946         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
21947         Sdefault.Object_Dir_Default_Name.
21948         Minor Reformating
21949         Remove data for GNAT STANDARD
21951         * vms_data.ads:
21952         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
21953         Remove data for GNAT STANDARD
21954         Remove options and documentation for -gnatwb/-gnatwB: these warning
21955         options no longer exist.
21957 2003-11-13  Ed Falis  <falis@gnat.com>
21959         * 5zthrini.adb: (Init_RTS): Made visible
21961         * 5zthrini.adb:
21962         (Register): Removed unnecessary call to taskVarGet that checked whether
21963          an ATSD was already set as a task var for the argument thread.
21965         * s-thread.adb:
21966         Updated comment to reflect that this is a VxWorks version
21967         Added context clause for System.Threads.Initialization
21968         Added call to System.Threads.Initialization.Init_RTS
21970 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
21972         * 5zthrini.adb:
21973         (Init_RTS): New procedure, for the initialization of the run-time lib.
21975         * s-thread.adb:
21976         Remove dependancy on System.Init, so that this file can be used in the
21977         AE653 sequential run-time lib.
21979 2003-11-13  Robert Dewar  <dewar@gnat.com>
21981         * bindgen.adb: Minor reformatting
21983 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
21985         * checks.adb:
21986         (Apply_Discriminant_Check): Do no apply check if target type is derived
21987         from source type with no applicable constraint.
21989         * lib-writ.adb:
21990         (Ensure_System_Dependency): Do not apply the style checks that may have
21991         been specified for the main unit.
21993         * sem_ch8.adb:
21994         (Find_Selected_Component): Further improvement in error message, with
21995         RM reference.
21997         * sem_res.adb:
21998         (Resolve): Handle properly the case of an illegal overloaded protected
21999         procedure.
22001 2003-11-13  Javier Miranda  <miranda@gnat.com>
22003         * exp_aggr.adb:
22004         (Has_Default_Init_Comps): New function to check the presence of
22005         default initialization in an aggregate.
22006         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
22007         extension aggregate of a limited record. In addition, a new formal
22008         was added to do not initialize the record controller (if any) during
22009         this recursive expansion of ancestors.
22010         (Init_Controller): Add support for limited record components.
22011         (Expand_Record_Aggregate): In case of default initialized components
22012         convert the aggregate into a set of assignments.
22014         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
22015         describing the new syntax.
22016         Nothing else needed to be done because this subprogram delegates part of
22017         its work to P_Precord_Or_Array_Component_Association.
22018         (P_Record_Or_Array_Component_Association): Give support to the new
22019         syntax for default initialization of components.
22021         * sem_aggr.adb:
22022         (Resolve_Aggregate): Relax the strictness of the frontend in case of
22023         limited aggregates.
22024         (Resolve_Record_Aggregate): Give support to default initialized
22025         components.
22026         (Get_Value): In case of default initialized components, duplicate
22027         the corresponding default expression (from the record type
22028         declaration). In case of default initialization in the *others*
22029         choice, do not check that all components have the same type.
22030         (Resolve_Extension_Aggregate): Give support to limited extension
22031         aggregates.
22033         * sem_ch3.adb:
22034         (Check_Initialization): Relax the strictness of the front-end in case
22035         of aggregate and extension aggregates. This test is now done in
22036         Get_Value in a per-component manner.
22038         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
22039         expression corresponds to a limited aggregate. This test is now done
22040         in Get_Value.
22042         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
22043         Box_Present flag.
22045         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
22046         present in an N_Component_Association node
22048 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
22050         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
22051         type-conformant entry only if they are homographs.
22053 2003-11-13  GNAT Script  <nobody@gnat.com>
22055         * Make-lang.in: Makefile automatically updated
22057 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
22059         * adadecode.c: Use <> form of include for ctype.h.
22060         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
22062 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
22064         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
22065         Works around PR middle-end/6552.
22067 2003-11-10  Ed Falis  <falis@gnat.com>
22069         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
22071         * 5zinit.adb: (Install_Handler): Moved back to spec
22072         (Install_Signal_Handlers): Deleted
22074         * 5zthrini.adb: Added context clause for System.Storage_Elements
22075         (Register): Only handles creation of taskVar; initialization moved to
22076         Thread_Body_Enter.
22077         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
22078         Added declaration of environment task secondary stack and
22079         initialization.
22081         * s-thread.adb: Implement bodies for thread body processing
22083         * s-thread.ads:
22084         Added comment identifying supported targets for pragma Thread_Body.
22086 2003-11-10  Pascal Obry  <obry@gnat.com>
22088         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
22089         GNAT_MAX_PATH_LEN.
22091         * s-fileio.adb:
22092         (Open): Properly check for string length before copying into the buffer.
22093         Raises Name_Error if buffer is too small. Note that this was a potential
22094         buffer overflow.
22096 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
22098         * bindgen.adb, comperr.adb: Code clean ups.
22099         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
22101 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
22103         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
22105 2003-11-10  Vincent Celier  <celier@gnat.com>
22107         * gprcmd.adb:
22108         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
22109         installation.
22111         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
22113         * prj.adb: (Project_Empty): Add new boolean component Virtual
22115         * prj.ads: (Virtual_Prefix): New constant string
22116         (Project_Data): New boolean component Virtual
22118         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
22119         a library project is extended by a virtual extending project.
22121         * prj-part.adb:
22122         Modifications throughout to implement extending-all project, including:
22123         (Virtual_Hash, Processed_Hash): New hash tables
22124         (Create_Virtual_Extending_Project): New procedure
22125         (Look_For_Virtual_Projects_For): New procedure
22127         * prj-proc.adb:
22128         (Process): After checking the projects, if main project is an
22129         extending-all project, set the object directory of all virtual extending
22130         project to the object directory of the main project.
22131         Adjust error message when a virtual extending project has the same
22132         object directory as an project being extended.
22133         (Recursive_Process): If name starts with the virtual prefix, set Virtual
22134         to True in the project data.
22136         * prj-tree.adb:
22137         (Default_Project_Node): Add new boolean component Extending_All
22138         (Is_Extending_All): New function
22139         (Set_Is_Extending_All): New procedure
22141         * prj-tree.ads: (Is_Extending_All): New function
22142         (Set_Is_Extending_All): New procedure
22143         (Project_Node_Record): New boolean component Extending_All
22145         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
22147         * vms_data.ads:
22148         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
22150         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
22151         "gprcmd prefix" to define it.
22153 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
22155         * einfo.ads: Fix a typo and remove an extraneous word in comments.
22157         * lib-load.adb:
22158         (Create_Dummy_Package_Unit): Set the scope of the entity for the
22159         created dummy package to Standard_Standard, not to itself, to
22160         defend other parts of the front-end against encoutering a cycle in
22161         the scope chain.
22163         * sem_ch10.adb:
22164         (Analyze_With_Clause): When setting the entities for the successive
22165         N_Expanded_Names that constitute the name of a child unit, do not
22166         attempt to go further than Standard_Standard in the chain of scopes.
22167         This case arises from the placeholder units created by
22168         Create_Dummy_Package_Unit in the case of a with_clause for a
22169         nonexistent child unit.
22171 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
22173         * exp_ch6.adb:
22174         (Expand_Thread_Body): Place subprogram on scope stack, so that new
22175         declarations are given the proper scope.
22177         * sem_ch13.adb:
22178         (Check_Expr_Constants): Reject an expression that contains a constant
22179         created during expansion, and that appears after the object to which
22180         the address clause applies.
22182         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
22183         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
22184         that uses 'Range of a function call with controlled components, so
22185         that the function result can be finalized before starting the loop.
22187         * sem_ch8.adb:
22188         (Find_Selected_Component): Improve error message when prefix is
22189         an implicit dereference of an incomplete type.
22191 2003-11-10  Robert Dewar  <dewar@gnat.com>
22193         * opt.ads: New Print_Standard flag for -gnatS switch
22195         * sem_ch13.adb: Remove some additional checks for unaligned arrays
22197         * cstand.adb (Create_Standard): Print out package standard if -gnatS
22198         switch set
22200         * debug.adb: Update doc for -gnatds to discuss relationship with new
22201         -gnatS flag
22203         * sinfo.adb: Add new field Entity_Or_Associated_Node
22205         * sinfo.ads: Add new field Entity_Or_Associated_Node
22206         Update documentation for Associated_Node and Entity fields to clarify
22207         relationship and usage.
22209         * sprint.adb:
22210         (Write_Id): Properly process Associated_Node field in generic template
22212         * switch-c.adb:
22213         Recognize new -gnatS switch for printing package Standard
22214         This replaces gnatpsta
22216         * usage.adb:
22217         Add line for  new -gnatS switch for printing package Standard
22218         This replaces gnatpsta
22220 2003-11-10  Andreas Jaeger  <aj@suse.de>
22222         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
22223         integer.
22225 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
22227         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
22228         by gnat1.
22230 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
22232         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
22233         no longer needed.
22235         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
22237         * sysdep.c: Add handling of cygwin.
22239 2003-11-10  GNAT Script  <nobody@gnat.com>
22241         * Make-lang.in: Makefile automatically updated
22243 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
22245         PR 12950
22246         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
22247         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
22248         Replace GNAT_ROOT by GCC_ROOT.
22250         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
22252 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
22254         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
22255         and update for changed meaning of GET_MODE_BITSIZE.
22257 2003-11-04  Doug Rupp  <rupp@gnat.com>
22259         * sysdep.c: Problem discovered during IA64 VMS port.
22260         [VMS] #include <unixio.h> to get proper prototypes.
22262         * adaint.c:
22263         Issues discovered/problems fixed during IA64 VMS port.
22264         [VMS] #define _POSIX_EXIT for proper semantics.
22265         [VMS] #include <unixio.h> for proper prototypes.
22266         [VMS] (fork): #define IA64 version.
22267         (__gnat_os_exit): Remove unnecessary VMS specific code.
22269 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22271         Part of PR ada/12806
22273         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
22274         tree, not integer.
22276         * decl.c:
22277         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
22278         not integer.
22280         * targtyps.c, decl.c, misc.c,
22281         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
22282         routines to work around change in FP sizing semantics in GCC.
22284         * utils.c:
22285         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
22287         * gigi.h: (enumerate_modes): New function.
22289         * Make-lang.in: (ada/misc.o): Add real.h.
22291         * misc.c: (enumerate_modes): New function.
22293 2003-11-04  Robert Dewar  <dewar@gnat.com>
22295         * 3vtrasym.adb: Minor reformatting
22296         Use terminology encoded/decoded name, rather than C++ specific notion
22297         of mangling (this is the terminology used throughout GNAT).
22299         * einfo.h: Regenerated
22301         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
22303         * exp_ch6.adb:
22304         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
22306         * par-prag.adb: Add dummy entry for Thread_Body pragma
22308         * rtsfind.ads:
22309         Add entries for System.Threads entities for thread body processing
22311         * sem_attr.adb:
22312         (Analyze_Pragma, Access attributes): Check these are not applied to a
22313         thread body, since this is not permitted
22315         * sem_prag.adb: Add processing for Thread_Body pragma.
22316         Minor comment fix.
22318         * sem_res.adb:
22319         (Resolve_Call): Check for incorrect attempt to call a thread body
22320          procedure with a direct call.
22322         * snames.ads, snames.adb: Add entry for Thread_Body pragma
22323         Add names associated with thread body expansion
22325         * snames.h: Add entry for Thread_Body pragma
22327         * s-thread.adb: Add entries for thread body processing
22328         These are dummy bodies so far
22330         * s-thread.ads: Add documentation on thread body handling.
22331         Add entries for thread body processing.
22333 2003-11-04  Javier Miranda  <miranda@gnat.com>
22335         * sem_ch10.adb:
22336         (Build_Limited_Views): Return after posting an error in case of limited
22337         with_clause on subprograms, generics, instances or generic renamings
22338         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
22339         on subprograms, generics, instances or generic renamings
22341 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
22343         * raise.c (setup_to_install): Correct mistake in last revision; two
22344         arguments out of order.
22346         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
22347         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
22348         notice, missed in previous change.
22349         Remove trailing blanks and other style errors introduced in previous
22350         change.
22352 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
22354         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
22355         rid of the wrapper for a LJM type, ensuring we don't do that if the
22356         field is addressable.  This avoids potential low level type view
22357         mismatches later on, for instance in a by-reference argument passing
22358         process.
22360 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22362         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
22363         aligned at byte boundary.
22365 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
22367         * decl.c (components_to_record): Do not delete the empty variants from
22368         the end of the union type.
22370 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
22372         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
22373         operation for a derived type, an explicit declaration may use a local
22374         subtype of Boolean.
22376 2003-11-04  Vincent Celier  <celier@gnat.com>
22378         * make.adb (Gnatmake): Allow main sources on the command line with a
22379         library project when it is only for compilation (no binding or
22380         linking).
22382 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
22384         * Makefile.in: Remove many duplicate variables.
22386 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
22388         * Make-lang.in (dvi): Move targets to $(docobjdir).
22389         (gnat_ug_vms.dvi): Simplify rule and adjust target.
22390         (gnat_ug_wnt.dvi): Likewise.
22391         (gnat_ug_unx.dvi): Likewise.
22392         (gnat_ug_vxw.dvi): Likewise.
22393         (gnat_rm.dvi): Likewise.
22394         (gnat-style.dvi): Likewise.
22396 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
22398         * gigi.h: Missed commit from update for C90.
22400 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
22402         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
22404 2003-10-31  Andreas Schwab  <schwab@suse.de>
22406         * raise.c (get_action_description_for): Fix typo in last change.
22408 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
22410         PR ada/12761
22411         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
22412         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
22414 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
22416         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
22417         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
22418         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
22419         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
22420         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
22422 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
22424         * 3vtrasym.adb:
22425         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
22426         numbers when symbol name is too long.
22428 2003-10-30  Ed Falis  <falis@gnat.com>
22430         * g-signal.ads, g-signal.adb: New files
22432         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
22434         * Makefile.rtl: Introduce GNAT.Signals
22436 2003-10-30  Robert Dewar  <dewar@gnat.com>
22438         * freeze.adb: Minor reformatting
22440         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
22442         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
22443         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
22444         New handling of Id_Check parameter to improve recognition of keywords
22445         used as identifiers.
22446         Update copyright notice to include 2003
22448 2003-10-29  Robert Dewar  <dewar@gnat.com>
22450         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
22451         sem_ch10.adb: Minor reformatting
22453         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
22454         (Expand_Assign_Record): Test right hand side for bit unaligned as well
22456 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
22458         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
22459         Support for TBK$SYMBOLIZE-based symbolic traceback.
22461 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
22463         * exp_disp.adb:
22464         Revert previous change, that did not work well when pragma No_Run_Time
22465         was used in conjunction with a run-time other than ZFP.
22467 2003-10-29  Vincent Celier  <celier@gnat.com>
22469         * make.adb:
22470         (Gnatmake): When there are no Ada mains in attribute Main, disable the
22471          bind and link steps only is switch -z is not used.
22473 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
22475         * Makefile.generic: Remove duplicated setting of CC.
22477         * Makefile.prolog: Set CC to gcc by default, to override make's
22478         default (cc).
22480         * einfo.h: Regenerated.
22482 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
22484         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
22485         current body, after compiling subunit.
22487         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
22488         when in deleted code, because gigi needs properly ordered freeze
22489         actions to annotate types.
22491         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
22492         prevent the premature freezing of record type that contains
22493         subcomponents with a private type that does not yet have a completion.
22495 2003-10-29  Javier Miranda  <miranda@gnat.com>
22497         * sem_ch12.adb:
22498         (Analyze_Package_Instantiation): Check that instances can not be used in
22499         limited with_clauses.
22501         * sem_ch8.adb:
22502         (Analyze_Package_Renaming): Check that limited withed packages cannot
22503         be renamed. Improve text on error messages related to limited
22504         with_clauses.
22506         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
22508         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
22509         Update copyright notice.
22511         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
22512         (Install_Limited_Context_Clauses): New subprogram that isolates all the
22513         checks required for limited context_clauses and installs the limited
22514         view.
22515         (Install_Limited_Withed_Unit): Complete its documentation.
22516         (Analyze_Context): Check that limited with_clauses are only allowed in
22517         package specs.
22518         (Install_Context): Call Install_Limited_Context_Clauses after the
22519         parents have been installed.
22520         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
22521         package as 'From_With_Type'; this mark indicates that the limited view
22522         is installed. Used to check bad usages of limited with_clauses.
22523         (Build_Limited_Views): Do not add shadow entities to the scope's list
22524         of entities. Do not add real entities to the Non_Limited_Views chain.
22525         Improve error notification.
22526         (Remove_Context_Clauses): Remove context clauses in two phases:
22527         limited views first and regular views later (to maintain the
22528         stack model).
22529         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
22530         its visible entities.
22532 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
22534         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
22535         with any type that Is_Fixed_Point_Type.
22537         * sinfo.ads: Fix documentation for Associated_Node attribute.
22539 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
22541         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
22542         both '-gnatc' and '-gnatt' are specified.
22544         * atree.adb (Initialize): Add initialization for Node_Count (set to
22545         zero).
22547 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22549         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
22550         do not consider as Pure.
22552         Part of implementation of function-at-a-time:
22554         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
22555         (tree_transform): Add new argument to build_component_ref.
22556         (tree_transform, case N_Assignment_Statement): Make and return an
22557         EXPR_STMT.
22558         (tree_transform): If result IS_STMT, set flags and return it.
22559         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
22561         * utils2.c (build_simple_component_ref, build_component_ref): Add new
22562         arg, NO_FOLD_P.
22563         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
22564         (build_allocator): Likewise.
22566         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
22567         Add new arg to build_component_ref.
22568         (maybe_unconstrained_array, unchecked_convert): Likewise.
22570         * ada-tree.def (EXPR_STMT): New code.
22572         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
22574         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
22575         build_component_ref calls.
22577         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
22579         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
22580         (build_component_ref): Add new argument, NO_FOLD_P.
22582 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
22584         * Makefile.generic: Add missing substitution on object_deps handling.
22586         PR ada/5909:
22587         * Make-lang.in (check-ada): Enable ACATS test suite.
22589 2003-10-27  Robert Dewar  <dewar@gnat.com>
22591         * exp_ch3.adb:
22592         (Freeze_Array_Type): We do not need an initialization routine for types
22593         derived from String or Wide_String. They should be treated the same
22594         as String and Wide_String themselves. This caused problems with the
22595         use of Initialize_Scalars.
22597         * exp_ch5.adb:
22598         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
22599         composites. This allows use of component clauses that are not byte
22600         aligned.
22602         * sem_prag.adb:
22603         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
22604         is an attempt to pack an array of atomic objects.
22606         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
22608 2003-10-27  Pascal Obry  <obry@gnat.com>
22610         * g-dirope.adb:
22611         (Basename): Check for drive letters in a pathname only on DOS based OS.
22613 2003-10-27  Vincent Celier  <celier@gnat.com>
22615         * make.adb:
22616         (Gnatmake): When unable to change dir to the object dir, display the
22617         content of the parent dir of the obj dir, to try to understand why this
22618         happens.
22620 2003-10-27  GNAT Script  <nobody@gnat.com>
22622         * Make-lang.in: Makefile automatically updated
22624 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
22626         * sem_ch12.adb:
22627         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
22628         should not be done in Save/Restore_Scope_Stack, because it is performed
22629         locally.
22631         * sem_ch8.adb:
22632         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
22633         whether use clauses should be removed/restored.
22635         * sem_ch8.ads:
22636         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
22637         whether use clauses should be removed/restored.
22639 2003-10-26  Andreas Jaeger  <aj@suse.de>
22641         * Makefile.in: Remove duplicated lines.
22643 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
22645         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
22646         minimize the differences with ACT tree.
22648         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
22649         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
22650         Gnatvsn.Gnat_Static_Version_String to reduce differences between
22651         ACT and FSF trees.
22653 2003-10-24  Pascal Obry  <obry@gnat.com>
22655         * adadecode.c (ostrcpy): New function.
22656         (__gnat_decode): Use ostrcpy of strcpy.
22657         (has_prefix): Set first parameter a const.
22658         (has_suffix): Set first parameter a const.
22659         Update copyright notice. Fix source name in header.
22660         Removes a trailing space.
22661         PR ada/12014.
22663 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
22665         * exp_disp.adb:
22666         Remove the test against being in No_Run_Time_Mode before generating a
22667         call to Register_Tag. It is redundant with the test against the
22668         availability of the function Register_Tag.
22670 2003-10-24  Vincent Celier  <celier@gnat.com>
22672         * g-catiio.adb: (Month_Name): Correct spelling of February
22674         * make.adb: (Mains): New package
22675         (Initialize): Call Mains.Delete
22676         (Gnatmake): Check that each main on the command line is a source of a
22677         project file and, if there are several mains, each of them is a source
22678         of the same project file.
22679         (Gnatmake): When a foreign language is specified in attribute Languages,
22680         no main is specified on the command line and attribute Mains is not
22681         empty, only build the Ada main. If there is no Ada main, just compile
22682         the Ada sources and their closure.
22683         (Gnatmake): If a main is specified on the command line with directory
22684         information, check that the source exists and, if it does, that the path
22685         is the actual path of a source of a project.
22687         * prj-env.adb:
22688         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
22689         Full_Path is True, return the full path instead of the simple file name.
22690         (Project_Of): New function
22692         * prj-env.ads:
22693         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
22694         defaulted to False.
22695         (Project_Of): New function
22697 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
22699         * Makefile.generic:
22700         Ensure objects of main project are always checked and rebuilt if needed.
22701         Set CC to gcc by default.
22702         Prepare new handling of link by creating a global archive (not activated
22703         yet).
22705         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
22706         stringt.h: Update copyright notice. Remove trailing blanks.
22707         Fix source name in header.
22709 2003-10-24  Robert Dewar  <dewar@gnat.com>
22711         * sem_ch12.adb: Minor reformatting
22713         * sem_ch3.adb:
22714         Minor reformatting (including new function return style throughout)
22716         * sem_ch3.ads:
22717         Minor reformatting (including new function return style throughout)
22719 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
22721         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
22722         stringt.h: Update copyright notice. Remove trailing blanks.
22723         Fix source name in header.
22725 2003-10-24  GNAT Script  <nobody@gnat.com>
22727         * Make-lang.in: Makefile automatically updated
22729 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
22731         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
22732         stringt.h: Convert to ISO C90 declarations and definitions.
22734 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
22736         PR ada/11978:
22737         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
22738         External_Tag attribute definition clauses.
22740 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
22742         PR ada/7613:
22743         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
22744         child unit, generate a fully qualified name to avoid spurious errors
22745         when the context contains renamings of different child units with
22746         the same simple name.
22748         * exp_dbug.ads: Add documentation on name qualification for renamings
22749         of child units.
22751 2003-10-23  Robert Dewar  <dewar@gnat.com>
22753         * g-regpat.ads, g-regpat.adb: Minor reformatting
22755 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
22757         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
22759 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22761         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
22762         Machine call.
22764         * urealp.h: (Machine): Update to proper definition.
22766 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
22768         * init.c, adaint.c: Minor reformatting.
22770 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
22772         * adaint.c (w32_epoch_offset): Define static const at file level.
22773         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
22774         rather than t_create, t_access in call to GetFileTime. Use union
22775         to convert between FILETIME and  unsigned long long.
22776         (__gnat_file_time_name): Test for invalid file handle.
22777         (__gnat_set_filetime_name): Support win32 targets using
22778         w32api SetFileTime.
22780 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
22782         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
22784         * ctrl_c.c (__gnat_int_handler): Remove declaration.
22786         * decl.c (creat_concat_name):  Const-ify prefix.
22788         * adaint.c: Include ctype.h if __MINGW32__.
22789         (__gnat_readlink): Mark arguments as possibly unused.
22790         (__gnat_symlink): Likewise.
22791         (__gnat_is_symbolic_link): Likewise.
22792         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
22793         declaration
22794         (__gnat_file_time_name): Don't declare struct stat statbuf when
22795         not needed.
22796         (__gnat_is_absolute_path): Add parenthesis around condition of
22797         'if' statement to avoid warning.
22798         (__gnat_plist_init): Specify void as parameter.
22799         (plist_enter): Likewise.
22800         (plist_leave): Likewise.
22801         (remove_handle): Make static. Initialize prev.
22803 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
22805         * Makefile.in: Disable build of gnatpsta. PR ada/10110.
22806         * cstreams.c (__gnat_full_name): Minor improvements and clean up
22807         of previous change.
22809 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
22811         * tracebak.c (MAX): Avoid redefinition warning.
22813         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
22814         Change msg to const char *.
22815         (__gnat_install_handler): Remove ss, unused.
22816         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
22817         to const char *.
22818         * cstreams.c (__gnat_full_name): Declare p only when used.
22819         (__gnat_full_name) [sgi] Return buffer.
22821 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
22823         * mingw32.h: New file.
22824         * gnat_wrapper.adb: New file.
22826 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
22828         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
22829         string match a pre compiled regular expression (the corresponding
22830         version of the function working on a raw regular expression)
22831         Fix typos in various comments
22832         Update copyright notice in spec
22834 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
22836         * exp_ch3.adb:
22837         (Component_Needs_Simple_Initialization): Return False when the type is a
22838         packed bit array. Revise spec comments to document this case.
22840         * exp_prag.adb:
22841         (Expand_Pragma_Import): Set any expression on the imported object to
22842         empty to avoid initializing imported objects (in particular this
22843         covers the case of zero-initialization of bit arrays).
22844         Update copyright notice.
22846 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
22848         * sem_ch12.adb:
22849         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
22850         a subunit is missing.
22851         (Instantiate_Subprogram_Body): If body of function is missing, set type
22852         of return expression explicitly in dummy body, to prevent cascaded
22853         errors when a subunit is missing.
22854         Fixes PR 5677.
22856         * sem_ch3.adb:
22857         (Access_Subprogram_Declaration): Verify that return type is valid.
22858         Fixes PR 8693.
22860         * sem_elab.adb:
22861         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
22862         generic.
22863         Fixes PR 12318.
22865         * sem_util.adb:
22866         (Corresponding_Discriminant): If the scope of the discriminant is a
22867         private type without discriminant, use its full view.
22868         Fixes PR 8247.
22870 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
22872         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
22873         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
22874         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
22875         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
22876         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
22877         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
22878         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
22879         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
22880         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
22881         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
22882         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
22883         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
22884         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
22885         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
22886         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
22887         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
22888         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
22889         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
22890         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
22891         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
22892         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
22893         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
22894         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
22895         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
22896         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
22897         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
22898         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
22899         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
22900         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
22901         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
22902         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
22903         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
22904         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
22905         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
22906         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
22907         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
22908         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
22909         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
22910         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
22911         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
22912         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
22913         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
22914         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
22915         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
22916         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
22917         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
22918         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
22919         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
22920         vms_conv.ads, vms_conv.adb, vms_data.ads,
22921         vxaddr2line.adb: Files added. Merge with ACT tree.
22923         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
22924         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
22925         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
22926         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
22927         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
22928         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
22929         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
22930         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
22931         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
22932         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
22934         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
22935         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
22936         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
22937         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
22938         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
22939         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
22940         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
22941         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
22942         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
22943         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
22944         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
22945         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
22946         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
22947         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
22948         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
22949         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
22950         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
22951         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
22952         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
22953         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
22954         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
22955         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
22956         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
22957         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
22958         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
22959         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
22960         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
22961         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
22962         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
22963         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
22964         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
22965         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
22966         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
22967         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
22968         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
22969         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
22970         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
22971         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
22972         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
22973         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
22974         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
22975         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
22976         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
22977         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
22978         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
22979         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
22980         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
22981         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
22982         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
22983         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
22984         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
22985         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
22986         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
22987         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
22988         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
22989         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
22990         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
22991         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
22992         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
22993         checks.adb, checks.ads, cio.c, comperr.adb,
22994         comperr.ads, csets.adb, cstand.adb, cstreams.c,
22995         debug_a.adb, debug_a.ads, debug.adb, decl.c,
22996         einfo.adb, einfo.ads, errout.adb, errout.ads,
22997         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
22998         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
22999         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
23000         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
23001         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
23002         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
23003         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
23004         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
23005         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
23006         fe.h, fmap.adb, fmap.ads, fname.adb,
23007         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
23008         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
23009         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
23010         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
23011         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
23012         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
23013         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
23014         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
23015         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
23016         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
23017         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
23018         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
23019         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
23020         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
23021         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
23022         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
23023         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
23024         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
23025         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
23026         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
23027         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
23028         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
23029         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
23030         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
23031         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
23032         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
23033         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
23034         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
23035         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
23036         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
23037         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
23038         layout.adb, lib.adb, lib.ads, lib-list.adb,
23039         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
23040         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
23041         link.c, live.adb, make.adb, make.ads,
23042         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
23043         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
23044         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
23045         misc.c, mkdir.c, mlib.adb, mlib.ads,
23046         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
23047         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
23048         namet.adb, namet.ads, namet.h, nlists.ads,
23049         nlists.h, nmake.adt, opt.adb, opt.ads,
23050         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
23051         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
23052         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
23053         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
23054         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
23055         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
23056         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
23057         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
23058         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
23059         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
23060         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
23061         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
23062         prj-util.adb, prj-util.ads, raise.c, raise.h,
23063         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
23064         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
23065         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
23066         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
23067         scans.ads, scn.adb, scn.ads, s-crc32.adb,
23068         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
23069         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
23070         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
23071         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
23072         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
23073         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
23074         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
23075         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
23076         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
23077         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
23078         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
23079         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
23080         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
23081         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
23082         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
23083         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
23084         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
23085         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
23086         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
23087         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
23088         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
23089         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
23090         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
23091         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
23092         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
23093         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
23094         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
23095         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
23096         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
23097         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
23098         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
23099         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
23100         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
23101         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
23102         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
23103         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
23104         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
23105         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
23106         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
23107         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
23108         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
23109         stringt.adb, stringt.ads, stringt.h, style.ads,
23110         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
23111         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
23112         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
23113         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
23114         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
23115         table.adb, table.ads, targparm.adb, targparm.ads,
23116         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
23117         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
23118         ttypes.ads, types.ads, types.h, uintp.adb,
23119         uintp.ads, uintp.h, uname.adb, urealp.adb,
23120         urealp.ads, urealp.h, usage.adb, utils2.c,
23121         utils.c, validsw.adb, validsw.ads, widechar.adb,
23122         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
23123         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
23124         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
23125         gnatvsn.ads: Merge with ACT tree.
23127         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
23129 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
23131         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
23132         (gnat_ug_vmx.info): Likewise.
23133         (gnat_ug_vxw.info): Likewise.
23134         (gnat_ug_wnt.info): Likewise.
23135         (gnat_rm.info): Likewise.
23136         (gnat-style.info): Likewise.
23138         * Make-lang.in (ada.install-info): Remove target.
23139         (info): New target.
23140         (install-info): Likewise.
23141         (gnat_ug_unx.info): Simplify rule.
23142         (gnat_ug_vmx.info): Likewise.
23143         (gnat_ug_vxw.info): Likewise.
23144         (gnat_ug_wnt.info): Likewise.
23145         (gnat_rm.info): Likewise.
23146         (gnat-style.info): Likewise.
23148 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
23150         * Make-lang.in: Replace uses of $(target_alias) with
23151         $(target_noncanonical).
23152         * ada/Makefile.in: Remove unused mention of $(target_alias).
23154 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
23156         * Make-lang.in (ada.info): Replace with ...
23157         (info): ... this.
23158         (ada.dvi): Replace with ...
23159         (dvi): ... this.
23161 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
23163         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
23164         initialize dconstp5 and dconstmp5.
23166 2003-09-28  Richard Henderson  <rth@redhat.com>
23168         * trans.c (tree_transform): Update call to expand_asm_operands.
23170 2003-09-21  Richard Henderson  <rth@redhat.com>
23172         * trans.c, utils.c: Revert.
23174 2003-09-21  Richard Henderson  <rth@redhat.com>
23176         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
23177         change to const.
23179 2003-09-04  Michael Matz  <matz@suse.de>
23181         * misc.c: Include "target.h".
23182         * Make-lang.in (misc.o): Add dependency on target.h.
23184 2003-09-03  DJ Delorie  <dj@redhat.com>
23186         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
23187         hook.
23189 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
23191         * Makefile.in: Update substitutions to match changes to
23192         configure.  Use include directives instead of @-insertions
23193         to read in host and target fragments.  Add a rule to
23194         regenerate ada/Makefile.
23196 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
23198         * lang-options.h: Remove.
23199         * lang.opt: Add help text.
23201 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
23203         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
23204         calls.
23206 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
23208         * misc.c (gnat_handle_option): Don't handle filenames.
23210 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
23212         * Make-lang.in: Replace PWD with PWD_COMMAND.
23213         * Makefile.adalib: Likewise.
23214         * Makefile.in: Likewise.
23216 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
23218         * misc.c (gnat_argv): Revert last change.
23219         (gnat_handle_option, gnat_init_options): Copy arguments.
23221 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
23223         * misc.c (gnat_argv): Make const.
23225 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
23227         * misc.c (save_argc, save_argv): Keep non-static!
23229 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
23231         * misc.c (save_argc, save_argv): Make static.
23232         (gnat_init_options): New prototype.
23233         (gnat_init_options): Update.
23235 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
23237         * gnat_ug.texi: Remove unlikely characters from @vars.
23238         * gnat_ug_vms.texi: Regenerate.
23240 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
23242         * misc.c (record_code_position): Adjust emit_note call.
23244 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
23246         * misc.c (gnat_handle_option): Don't check for missing arguments.
23248 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
23250         * utils.c (end_subprog_body): Adjust expand_function_end call.
23252 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
23254         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
23255         Bind_Main_Program.
23257 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
23259         * lang.opt: Declare Ada.
23260         * misc.c (gnat_init_options): Update.
23262 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
23264         * utils.c (begin_subprog_body): Adjust init_function_start call.
23266 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
23268         * Make-lang.in: Update to use options.c and options.h.
23269         * misc.c: Include options.h not aoptions.h.
23270         (gnat_handle_option): Abort on unrecognized switch.
23271         (gnat_init_options): Request Ada switches.
23273 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
23275         * lang.opt: Add -Wall.
23276         * misc.c (gnat_handle_option): Handle it.
23278 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
23280         * misc.c (gnat_handle_option): Fix warnings.
23282 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
23284         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
23286 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
23288         * Make-lang.in: Update to handle command-line options.
23289         * lang.opt: New file.
23290         * misc.c: Include aoptions.h.
23291         (cl_options_count, cl_options): Remove.
23292         (gnat_handle_option): New.
23293         (gnat_decode_option): Remove.
23294         (LANG_HOOKS_DECODE_OPTION): Remove.
23295         (LANG_HOOKS_HANDLE_OPTION): Override.
23297 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
23299         * init.c, misc.c, trans.c, utils.c: Remove dead code.
23301 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
23303         * Makefile.in: Replace "host_canonical" with "host" for autoconf
23304         substitution.
23306 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
23308         * Make-lang.in: Update.
23309         * misc.c: Include opts.h. Define cl_options_count and cl_options.
23311 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
23313         * misc.c (gnat_init_options): Update.
23315 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
23317         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
23318         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
23319         __attribute__ ((__unused__)).
23321 2003-06-05  Jan Hubicka  <jh@suse.cz>
23323         * Make-lang.in:  Add support for stageprofile and stagefeedback
23325 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
23327         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
23328         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
23330 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
23332         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
23333         Remove non-VMS directive.
23334         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
23335         alternatives.
23336         (Examples of gnatls Usage): Remove VMS alternative.
23338 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
23340         PR ada/9953:
23341         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
23342         and turn ZCX_By_Default back to False since the underlying support
23343         is not quite there yet.
23345 2003-06-01  Andreas Jaeger  <aj@suse.de>
23347         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
23348         and ROUND_TYPE_SIZE_UNIT.
23350 2003-05-22   Geert Bosch <bosch@gnat.com>
23352         * gnat_rm.texi : Remove reference to Ada Core Technologies.
23354 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
23356         * trans.c (tree_transform): Use location_t and input_location
23357         directly.
23358         (build_unit_elab): Likewise.
23359         * utils.c (create_label_decl): Likewise.
23361 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
23363         * trans.c (tree_transform, build_unit_elab,
23364         set_lineno): Rename lineno to input_line.
23365         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
23366         end_subprog_body): Likewise.
23367         * utils2.c (build_call_raise): Likewise.
23369 2003-05-01  Laurent Guerby <guerby@acm.org>
23371         PR ada/10546
23372         * 5iosinte.ads: Increase pthread_cond_t size to match recent
23373         LinuxThread and NPTL version, merge from ACT.
23375 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
23377         * utils.c (convert): No need to clear TREE_CST_RTL.
23379 2003-04-23   Geert Bosch <bosch@gnat.com>
23381         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
23382         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
23383         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
23384         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
23385         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
23386         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
23387         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
23388         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
23389         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
23390         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
23391         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
23392         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
23393         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
23394         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
23395         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
23396         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
23397         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
23398         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
23399         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
23400         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
23401         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
23402         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
23403         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
23404         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
23405         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
23406         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
23407         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
23408         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
23409         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
23410         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
23411         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
23412         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
23413         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
23414         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
23415         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
23416         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
23417         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
23418         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
23419         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
23420         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
23421         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
23422         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
23423         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
23424         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
23425         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
23426         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
23427         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
23428         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
23429         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
23430         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
23431         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
23432         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
23433         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
23434         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
23435         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
23436         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
23437         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
23438         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
23439         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
23440         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
23441         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
23442         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
23443         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
23444         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
23445         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
23446         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
23447         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
23448         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
23449         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
23450         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
23451         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
23452         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
23453         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
23454         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
23455         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
23456         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
23457         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
23458         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
23459         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
23460         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
23461         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
23462         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
23463         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
23464         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
23465         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
23466         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
23467         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
23468         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
23469         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
23470         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
23471         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
23472         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
23473         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
23474         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
23475         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
23476         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
23477         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
23478         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
23479         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
23480         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
23481         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
23482         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
23483         ali.adb, ali.ads, alloc.ads, argv.c,
23484         atree.adb, atree.ads, atree.h, aux-io.c,
23485         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
23486         binde.adb, binde.ads, binderr.adb, binderr.ads,
23487         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
23488         butil.adb, butil.ads, cal.c, calendar.ads,
23489         casing.adb, casing.ads, ceinfo.adb, checks.adb,
23490         checks.ads, cio.c, comperr.adb, comperr.ads,
23491         config-lang.in, csets.adb, csets.ads, csinfo.adb,
23492         cstand.adb, cstand.ads, cuintp.c, debug.adb,
23493         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
23494         dec-io.ads, dec.ads, deftarg.c, directio.ads,
23495         einfo.adb, einfo.ads, elists.adb, elists.ads,
23496         elists.h, errno.c, errout.adb, errout.ads,
23497         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
23498         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
23499         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
23500         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
23501         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
23502         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
23503         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
23504         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
23505         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
23506         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
23507         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
23508         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
23509         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
23510         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
23511         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
23512         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
23513         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
23514         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
23515         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
23516         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
23517         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
23518         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
23519         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
23520         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
23521         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
23522         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
23523         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
23524         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
23525         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
23526         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
23527         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
23528         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
23529         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
23530         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
23531         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
23532         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
23533         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
23534         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
23535         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
23536         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
23537         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
23538         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
23539         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
23540         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
23541         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
23542         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
23543         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
23544         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
23545         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
23546         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
23547         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
23548         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
23549         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
23550         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
23551         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
23552         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
23553         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
23554         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
23555         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
23556         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
23557         lib.adb, lib.ads, live.adb, live.ads,
23558         machcode.ads, make.adb, make.ads, makeusg.adb,
23559         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
23560         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
23561         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
23562         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
23563         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
23564         mlib.ads, namet.adb, namet.ads, nlists.adb,
23565         nlists.ads, opt.adb, opt.ads, osint-b.adb,
23566         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
23567         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
23568         osint.ads, output.adb, output.ads, par-ch10.adb,
23569         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
23570         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
23571         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
23572         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
23573         par-tchk.adb, par-util.adb, par.adb, par.ads,
23574         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
23575         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
23576         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
23577         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
23578         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
23579         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
23580         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
23581         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
23582         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
23583         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
23584         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
23585         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
23586         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
23587         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
23588         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
23589         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
23590         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
23591         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
23592         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
23593         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
23594         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
23595         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
23596         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
23597         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
23598         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
23599         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
23600         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
23601         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
23602         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
23603         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
23604         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
23605         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
23606         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
23607         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
23608         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
23609         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
23610         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
23611         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
23612         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
23613         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
23614         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
23615         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
23616         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
23617         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
23618         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
23619         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
23620         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
23621         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
23622         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
23623         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
23624         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
23625         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
23626         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
23627         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
23628         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
23629         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
23630         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
23631         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
23632         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
23633         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
23634         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
23635         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
23636         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
23637         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
23638         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
23639         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
23640         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
23641         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
23642         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
23643         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
23644         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
23645         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
23646         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
23647         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
23648         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
23649         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
23650         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
23651         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
23652         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
23653         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
23654         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
23655         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
23656         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
23657         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
23658         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
23659         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
23660         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
23661         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
23662         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
23663         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
23664         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
23665         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
23666         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
23667         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
23668         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
23669         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
23670         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
23671         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
23672         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
23673         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
23674         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
23675         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
23676         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
23677         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
23678         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
23679         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
23680         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
23681         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
23682         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
23683         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
23684         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
23685         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
23686         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
23687         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
23688         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
23689         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
23690         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
23691         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
23692         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
23693         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
23694         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
23695         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
23696         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
23697         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
23698         snames.ads, sprint.adb, sprint.ads, stand.adb,
23699         stand.ads, stringt.adb, stringt.ads, style.adb,
23700         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
23701         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
23702         switch-m.ads, switch.adb, switch.ads, system.ads,
23703         table.adb, table.ads, targparm.adb, targparm.ads,
23704         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
23705         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
23706         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
23707         ttypef.ads, ttypes.ads, types.adb, types.ads,
23708         uintp.adb, uintp.ads, uname.adb, uname.ads,
23709         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
23710         usage.adb, usage.ads, validsw.adb, validsw.ads,
23711         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
23712         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
23713         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
23714         formatting and other trivial changes from ACT.
23716 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
23718         * gigi.h, utils2.c (build_constructor):
23719         Rename gnat_build_constructor. Use build_constructor.
23720         * decl.c (gnat_to_gnu_entity)
23721         * trans.c (tree_transform, pos_to_constructor, extract_values)
23722         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
23723         (unchecked_convert)
23724         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
23725         (fill_vms_descriptor):
23726         Update to match.
23728 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
23730         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
23731         * misc.c (gnat_tree_size): New function.
23732         (LANG_HOOKS_TREE_SIZE): Override.
23734 2003-04-03  Jason Merrill  <jason@redhat.com>
23736         * misc.c (gnat_adjust_rli): #if 0.
23738 2003-03-31   Geert Bosch <bosch@gnat.com>
23740         PR ada/10020
23741         * link.c : Fix misspelled "const" keyword
23743 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
23745         PR c++/7086
23746         * utils2.c: Adjust calls to put_var_into_stack.
23748 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
23750         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
23752 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
23754         * misc.c (gnat_init): Update for new prototype.
23756 2003-03-05  Olivier Hainque  <hainque@gnat.com>
23758         ada/9961
23759         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
23760         warning, and fix return type for the IN_RTS && !SJLJ case.
23762 2003-03-04  Tom Tromey  <tromey@redhat.com>
23764         * Make-lang.in (ada.tags): New target.
23766 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
23768         ada/9911
23769         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
23770         wrapper, which name remains constant whatever underlying GCC
23771         scheme.
23773         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
23774         the stable interface needed for a-except.
23776 2003-03-02  Andreas Jaeger  <aj@suse.de>
23778         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
23779         gnat_ug_wnt.texi: Regenerate.
23781 2003-03-02  Laurent Guerby <guerby@acm.org>
23783         * Makefile.in (install-gnatlib): Match previous change there
23784         so it works.
23786 2003-02-28  Andreas Schwab  <schwab@suse.de>
23788         * Make-lang.in (install-gnatlib): Change to ada directory before
23789         running make instead of using ada/Makefile directly.
23791 2003-02-18  Ben Elliston  <bje@redhat.com>
23793         Part of fix for PR ada/9406
23794         * gnat_ug.texi (Binder output file): Grammar fix.
23796 2003-02-18  Ben Elliston  <bje@redhat.com>
23798         PR other/7350
23799         * 5qtaprop.adb (Sleep): Fix typo in comment.
23801 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
23803         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
23804         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
23805         gnat_ug_wnt.texi: Regenerate.
23807 2003-02-03  Christian Cornelssen <ccorn@cs.tu-berlin.de>
23809         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
23810         be created if necessary.
23811         (ada.install-common): Let $(DESTDIR)$(bindir) be created
23812         if necessary.  Remove erroneous and redundant gnatchop
23813         installation commands.  Test for gnatdll before attempting
23814         to install it.
23815         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
23816         and gnatdll from all plausible locations.
23818 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
23820         * utils2.c (build_unary_op): Don't check flag_volatile.
23821         * gnat_ug.texi: Remove -fvolatile from example.
23822         * gnat_ug_vxw.texi: Likewise.
23824 2003-01-29  Laurent Guerby <guerby@acm.org>
23826         PR ada/8344
23827         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
23828         * Makefile.in: match previous change.
23829         * Make-lang.in: match previous change.
23831 2003-01-29      Joel Sherrill <joel@OARcorp.com>
23833         * 5rosinte.ads: Add SIGXCPU.
23834         * 5rtpopsp.adb: New file.
23835         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
23836         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
23837         specific file 5rtpopsp.adb.
23838         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
23839         is likely needed for all newlib targets.
23840         * init.c: Add RTEMS specific version of __gnat_initialize().
23842 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
23844         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
23846 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
23848         * init.c (__gnat_error_handler): Make msg const.
23850         * gmem.c (convert_addresses): Move declaration ...
23851         * adaint.h: ... here.
23852         * adaint.c (convert_addresses): Adapt addrs type to match
23853         prototype.
23855         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
23857 2003-01-24  Andreas Schwab  <schwab@suse.de>
23859         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
23860         size_t to avoid warning.
23862 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
23864         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
23866 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
23868         * gnat_rm.texi: Remove RCS version number.
23870         * ada-tree.h (union lang_tree_node): Add chain_next option.
23872 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
23874         * Make-lang.in (ada.install-info, ada.install-common,
23875         ada.uninstall): Prepend $(DESTDIR) to the destination
23876         directory in all (un)installation commands.
23877         * Makefile.in (install-gnatlib, install-rts): Ditto.
23879 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
23881         * gnat_rm.texi, gnat_ug.texi: Use @copying.
23882         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
23883         gnat_ug_wnt.texi: Regenerate.
23885 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
23887         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
23888         only.
23889         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
23890         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
23891         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
23892         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
23893         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
23894         $(srcdir)/doc/include/gcc-common.texi.
23896 2002-12-15   Geert Bosch <bosch@gnat.com>
23898         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
23900 2002-12-14   Geert Bosch <bosch@gnat.com>
23902         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
23903         case of a body created for a Renaming_As_Body, on which
23904         conformance checks are not performed. Fixes PR ada/5690.
23906 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
23908         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
23909         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
23910         not already included.
23911         * Make-lang.in: Update dependencies.
23913 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
23914         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
23915         solution to buffer overflow bug on GNU/Linux.
23917 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
23918         Closes PR ada/5856 and PR ada/6919 !
23919         * bindgen.adb: Remove all references to Public_Version.
23920         * comperr.adb: Remove all references to Public_Version and
23921         GNATPRO_Version; correct bug reporting instructions.
23922         * comperr.ads: Change to match bug box.
23923         * gnatvsn.ads: Remove all references to Public version and
23924         GNATPRO version.
23926 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
23927         PR ada/6919
23928         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
23929         GNU/Linux.
23931         PR ada/6558
23932         * config-lang.in: Remove diff_excludes.
23934 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
23935         PR ada/8358
23936         * trans.c (gnu_pending_elaboration_lists): New GC root.
23937         (build_unit_elab): Use..
23939 2002-10-30   Geert Bosch <bosch@gnat.com>
23940         PR ada/6558
23941         * misc.c : Include optabs.h
23943         * Make-lang.in (misc.o): Add dependency on optabs.h
23945 2002-10-29   Geert Bosch <bosch@gnat.com>
23946         PR ada/6558
23947         * Make-lang.in (gnatbind): Depend on CONFIG_H
23949 2002-10-29  Geert bosch  <bosch@gnat.com>
23950         PR ada/6558
23951         * misc.c: Unrevert misc.c (1.13)
23953 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
23955         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
23956         maintainership comments.
23958 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
23959         PR ada/5904
23960         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
23961         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
23962         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
23963         7staprop.adb: Correct statements in comments about
23964         maintainership of GNAT.
23966         PR ada/5904
23967         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
23968         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
23969         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
23970         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
23971         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
23972         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
23973         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
23974         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
23975         comments about maintainership of GNAT.
23977         PR ada/6919 (forward port of patch for PR ada/5904)
23978         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
23979         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
23980         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
23981         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
23982         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
23983         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
23984         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
23985         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
23986         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
23987         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
23988         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
23989         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
23990         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
23991         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
23992         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
23993         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
23994         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
23995         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
23996         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
23997         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
23998         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
23999         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
24000         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
24001         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
24002         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
24003         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
24004         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
24005         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
24006         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
24007         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
24008         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
24009         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
24010         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
24011         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
24012         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
24013         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
24014         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
24015         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
24016         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
24017         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
24018         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
24019         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
24020         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
24021         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
24022         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
24023         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
24024         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
24025         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
24026         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
24027         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
24028         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
24029         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
24030         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
24031         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
24032         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
24033         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
24034         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
24035         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
24036         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
24037         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
24038         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
24039         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
24040         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
24041         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
24042         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
24043         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
24044         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
24045         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
24046         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
24047         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
24048         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
24049         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
24050         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
24051         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
24052         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
24053         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
24054         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
24055         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
24056         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
24057         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
24058         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
24059         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
24060         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
24061         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
24062         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
24063         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
24064         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
24065         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
24066         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
24067         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
24068         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
24069         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
24070         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
24071         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
24072         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
24073         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
24074         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
24075         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
24076         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
24077         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
24078         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
24079         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
24080         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
24081         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
24082         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
24083         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
24084         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
24085         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
24086         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
24087         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
24088         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
24089         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
24090         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
24091         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
24092         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
24093         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
24094         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
24095         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
24096         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
24097         par-endh.adb par-labl.adb par-load.adb par-prag.adb
24098         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
24099         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
24100         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
24101         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
24102         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
24103         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
24104         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
24105         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
24106         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
24107         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
24108         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
24109         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
24110         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
24111         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
24112         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
24113         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
24114         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
24115         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
24116         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
24117         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
24118         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
24119         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
24120         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
24121         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
24122         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
24123         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
24124         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
24125         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
24126         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
24127         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
24128         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
24129         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
24130         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
24131         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
24132         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
24133         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
24134         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
24135         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
24136         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
24137         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
24138         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
24139         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
24140         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
24141         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
24142         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
24143         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
24144         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
24145         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
24146         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
24147         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
24148         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
24149         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
24150         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
24151         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
24152         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
24153         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
24154         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
24155         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
24156         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
24157         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
24158         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
24159         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
24160         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
24161         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
24162         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
24163         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
24164         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
24165         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
24166         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
24167         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
24168         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
24169         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
24170         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
24171         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
24172         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
24173         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
24174         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
24175         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
24176         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
24177         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
24178         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
24179         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
24180         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
24181         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
24182         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
24183         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
24184         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
24185         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
24186         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
24187         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
24188         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
24189         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
24190         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
24191         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
24192         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
24193         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
24194         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
24195         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
24196         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
24197         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
24198         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
24199         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
24200         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
24201         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
24202         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
24203         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
24204         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
24205         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
24206         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
24207         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
24208         stringt.ads stringt.h style.adb style.ads stylesw.adb
24209         stylesw.ads switch.adb switch.ads sysdep.c system.ads
24210         table.adb table.ads targparm.adb targparm.ads targtyps.c
24211         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
24212         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
24213         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
24214         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
24215         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
24216         usage.ads utils.c utils2.c validsw.adb validsw.ads
24217         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
24218         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
24219         xtreeprs.adb: Correct statements in comments about maintainership
24220         of GNAT.
24222 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
24224         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
24225         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
24226         * gnatvsn.ads: Gnat_Version_String is now a function.
24227         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
24228         copy the C version_string into a String and return it.
24229         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
24230         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
24231         Remove pragma Ident (Gnat_Version_String).  If this was the
24232         sole use of package Gnatvsn, remove the with statement too.
24233         * gnat1drv.adb: Tweak -gnatv output.
24235 2002-09-17  Richard Henderson  <rth@redhat.com>
24237         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
24238         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
24239         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
24240         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
24241         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
24242         and real_2expN instead of a loop.
24243         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
24244         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
24246 2002-08-25  Andre Leis <a.leis@gmx.net>
24247             David Billinghurst (David.Billinghurst@riotinto.com>
24249         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
24251 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
24253         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
24254         Remove $(CONFIG_H) dependency.
24256 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
24258         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
24260 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24262         * adadecode.c (ada_demangle): Use xstrdup in lieu of
24263         xmalloc/strcpy.
24264         * misc.c (gnat_decode_option): Likewise.
24266 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
24268         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
24269         function approach did not work well because of a side effect (the
24270         function call could reallocate the table which was being indexed
24271         using its result). Fixes ada/4851. [RESURRECTED]
24273 2002-07-01  Roger Sayle  <roger@eyesopen.com>
24275         * ada/utils.c (builtin_function): Accept an additional parameter.
24277 2002-06-28  Andreas Jaeger  <aj@suse.de>
24279         PR ada/7144
24280         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
24281         <adi@thur.de>.
24283 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24285         * Makefile.in (SHELL): Set to @SHELL@.
24287 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24289         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
24290         array size calculation.
24292 2002-06-04  Andreas Jaeger  <aj@suse.de>
24294         * Make-lang.in (gnatbind): Readd rule that has been lost in last
24295         patch.
24297 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
24299         Merge from pch-branch:
24301         * config-lang.in (gtfiles): Add ada-tree.h.
24302         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
24303         (SET_TYPE_MODULUS): New.
24304         (SET_TYPE_INDEX): New.
24305         (SET_TYPE_DIGITS_VALUE): New.
24306         (SET_TYPE_RM_SIZE): New.
24307         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
24308         (SET_TYPE_ADA_SIZE): New.
24309         (SET_TYPE_ACTUAL_BOUNDS): New.
24310         (SET_DECL_CONST_CORRESPONDING_VAR): New.
24311         (SET_DECL_ORIGINAL_FIELD): New.
24312         (TREE_LOOP_ID): Correct typo.
24313         * decl.c: Use new macros.
24314         * utils.c: Include debug.h, use new macros.
24315         * utils2.c: Use new macros.
24317         * ada-tree.h: Update all macros for new tree description.
24318         (struct tree_loop_id): New.
24319         (union lang_tree_node): New.
24320         (struct lang_decl): New.
24321         (struct lang_type): New.
24322         * misc.c (gnat_mark_tree): Delete.
24323         (LANG_HOOKS_MARK_TREE): Delete.
24324         * trans.c (tree_transform): No longer any need to cast
24325         for TREE_LOOP_ID.
24327         * utils.c (struct language_function): New dummy structure.
24329         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
24330         (misc.o): Likewise.
24331         (utils.o): Likewise; also gtype-ada.h.
24332         * Make-lang.in (gnat1): Add dependency on s-gtype.
24333         (gnatbind): Add dependency on $(CONFIG_H).
24334         * utils.c: Correct last #include.
24335         (stuct e_stack): Remove unnecessary 'static'.
24336         (mark_e_stack): Remove unused prototype.
24338         * scn-nlit.adb: Remove whitespace after version number to
24339         keep lines under 80 chars.
24340         * snames.adb: Likewise.
24341         * treepr.ads: Likewise.
24343         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
24344         (misc.o): Likewise.
24345         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
24346         * config-lang.in (gtfiles): New.
24347         * decl.c: Use gengtype for roots.
24348         * gigi.h: Use gengtype for roots.
24349         * trans.c: Use gengtype for roots.
24350         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
24352 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
24354         * misc.c (gnat_init): Adjust setting of internal_error_function.
24356 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
24358         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
24359         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
24360         gnat_ug_wnt.texi: Regenerate.
24362 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
24364         * 5ntaprop.adb (with System.OS_Primitives): Remove.
24366         * cstreams.c (max_path_len): Move from here ...
24367         * adaint.c (__gnat_max_path_len): ... to here.
24368         * adaint.c (__gnat_max_path_len): Declare.
24369         * g-dirope.adb (Max_Path): Adjust.
24370         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
24371         * i-cstrea.ads (max_path_len): Adjust.
24372         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
24373         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
24375         * Makefile.in, Make-lang.in: Documentation is now built in
24376         Make-lang.in.  Store Info and generated Texinfo files in the
24377         source directory.
24378         * gnat_ug.texi: Remove CVS keywords, correct version number.
24379         Set file name correctly.
24381         * gnat_ug_*.texi: Add.
24382         * .cvsignore: Ignore generated Texinfo files.
24384 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
24386         * ada.h: Add MI guard macro.
24387         (SUBTYPE): Define constants with an anonymous enum, not static
24388         const variables.
24389         (IN): Cast constants to appropriate type before use.
24391 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
24393         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
24394         (experimental)".
24396 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
24398         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
24399         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
24400         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
24401         (ALL_ADA_CFLAGS): Likewise.
24402         (ADA_INCLUDES): Likewise.
24403         Adapt for new working dir.
24404         (GNATBIND): Use Makefile.in version.
24405         (.SUFFIXES): Copy from Makefile.in.
24406         (ada-warn): Define.
24407         (.adb.o, .ads.o): Copy from Makefile.in.
24408         Added $(OUTPUT_OPTION).
24409         (GNAT1_C_OBJS): Moved from Makefile.in.
24410         Prefix with ada subdir.
24411         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
24412         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
24413         Adapt for new working dir.
24414         (EXTRA_GNATBIND_OBJS): Likewise.
24415         (ADA_BACKEND): Moved from Makefile.in.
24416         Renamed to avoid conflict with global BACKEND.
24417         Use that one.
24418         (TARGET_ADA_SRCS): Moved from Makefile.in.
24419         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
24420         Use ADA_BACKEND.
24421         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
24422         (ada_extra_files): Moved from Makefile.in.
24423         Prefix with ada subdir.
24424         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
24425         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
24426         (ada/nmake.ads): Likewise.
24427         (update-sources): Moved from Makefile.in.
24428         Prefix with ada subdir.
24429         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
24430         (ADA_TREE_H): Likewise.
24431         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
24432         (ada/memtrack.o): Likewise.
24433         (ada/adadecode.o): Likewise.
24434         Update dependencies.
24435         (ada/adaint.o): New.
24436         (ada/argv.o): Moved from Makefile.in.
24437         Prefix with ada subdir.
24438         Update dependencies.
24439         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
24440         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
24441         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
24442         Prefix with ada subdir.
24443         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
24444         (GNAT DEPENDENCIES): Regenerate.
24445         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
24446         toplevel Makefile.in.
24447         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
24448         (TARGET_ADA_SRCS): Removed.
24449         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
24450         (GNATBIND_OBJS): Likewise.
24451         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
24452         (BACKEND): Removed.
24453         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
24454         (TREE_H): Likewise.
24455         (ada_extra_files): Likewise.
24456         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
24457         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
24458         (update-sources): Likewise.
24459         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
24460         (ADA_TREE_H): Likewise.
24461         (adadecoce.o): Likewise.
24462         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
24463         (GNAT DEPENDENCIES): Likewise.
24465 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
24467         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
24468         * Makefile.in: Likewise.
24470 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
24472         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
24473         Restore $(CONFIG_H) and prefix.o dependencies.
24474         (ada.stage[1-4]): Depend on stage?-start.
24476         * Makefile.in (b_gnatb.c): Depend on interfac.o.
24478 2002-05-02  Jim Wilson  <wilson@redhat.com>
24480         * utils.c (finish_record_type): Change record_size to record_type.
24482 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
24484         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
24485         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
24486         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
24488 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
24490         * misc.c (gnat_parse_file): Update.
24492 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
24494         * misc.c (gnat_init): Don't set lang_attribute_common.
24496 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
24498         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
24500 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
24502         * gnat_ug.texi: New file.
24504         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
24505         instead of gfdl.texi
24507         * xgnatug.adb, ug_words: New files.
24509         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
24510         gnat_rm and gnat-style manuals.
24512 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
24514         * gigi.h (incomplete_type_error): Remove.
24515         * utils.c (incomplete_type_error): Remove.
24517 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
24519         * trans.c (tree_transform): Add has_scope argument to
24520         expand_start_stmt_expr.
24522 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
24524         * gigi.h (truthvalue_conversion): Rename.
24525         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
24526         * trans.c (tree_transform): Update.
24527         * utils2.c (truthvalue_conversion): Rename, update.
24528         (build_binary_op, build_unary_op): Update.
24530 2002-04-04  Laurent Guerby  <guerby@acm.org>
24532         * make.adb: Implement -margs, remove restriction about file name placement.
24533         * makeusg.adb: Documentation update.
24534         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
24535         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
24537 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
24539         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
24540         (builtin_function): Similarly.
24542 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
24544         * decl.c (gnat_to_gnu_entity): Update.
24545         * gigi.h (mark_addressable): Rename.
24546         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
24547         * trans.c (tree_transform): Update.
24548         * utils.c (create_var_decl): Update.
24549         * util2.c (build_binary_op, build_unary_op,
24550         fill_vms_descriptor): Update.
24551         (mark_addressable): Rename, update.
24553 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
24555         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
24556         Rename.
24557         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
24558         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
24559         * trans.c (tree_transform, convert_with_check): Update.
24560         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
24561         Rename.
24563 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
24565         * gigi.h (finish_incomplete_decl): Rename.
24566         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
24567         * utils.c (gnat_init_decl_processing): Don't set hook.
24568         (finish_incomplete_decl): Rename.
24570 2002-03-29  Andreas Schwab  <schwab@suse.de>
24572         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
24573         directory.
24575 2001-03-28  Robert Dewar <dewar@gnat.com>
24577         * checks.ads:
24578         (Remove_Checks): New procedure
24580         * checks.adb:
24581         (Remove_Checks): New procedure
24583         * exp_util.adb:
24584         Use new Duplicate_Subexpr functions
24585         (Duplicate_Subexpr_No_Checks): New procedure
24586         (Duplicate_Subexpr_No_Checks_Orig): New procedure
24587         (Duplicate_Subexpr): Restore original form (checks duplicated)
24588         (Duplicate_Subexpr): Call Remove_Checks
24590         * exp_util.ads:
24591         (Duplicate_Subexpr_No_Checks): New procedure
24592         (Duplicate_Subexpr_No_Checks_Orig): New procedure
24593         Add 2002 to copyright notice
24595         * sem_util.adb: Use new Duplicate_Subexpr functions
24597         * sem_eval.adb:
24598         (Eval_Indexed_Component): This is the place to call
24599         Constant_Array_Ref and to replace the value. We simply merge
24600         the code of this function in here, since it is now no longer
24601         used elsewhere. This fixes the problem of the back end not
24602         realizing we were clever enough to see that this was
24603         constant.
24604         (Expr_Val): Remove call to Constant_Array_Ref
24605         (Expr_Rep_Val): Remove call to Constant_Array_Ref
24606         Minor reformatting
24607         (Constant_Array_Ref): Deal with string literals (patch
24608         suggested by Zack Weinberg on the gcc list)
24610 2001-03-28  Ed Schonberg <schonber@gnat.com>
24612         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
24613         Duplicate_Subexpr_Move_Checks.
24615         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
24616         Duplicate_Subexpr_Move_Checks.
24618         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
24619         value of array exists before retrieving it (it may a private
24620         protected component in a function).
24622 2002-03-28   Geert Bosch <bosch@gnat.com>
24624         * prj-pp.adb : New file.
24626         * prj-pp.ads : New file.
24628 2002-03-28  Andreas Jaeger  <aj@suse.de>
24630         * Makefile.in (stamp-sdefault): Fix path for Makefile.
24632 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
24634         * misc.c (gnat_expand_expr): Move prototype.
24636 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
24638         * misc.c (insert_default_attributes): Remove.
24640 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
24642         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
24643         (gnat_init): Don't set hook.
24644         (gnat_expand_expr): Fix prototype.
24646 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
24648         * misc.c (ggc_p): Remove.
24650 2002-03-27  Geert Bosch  <bosch@gnat.com>
24652         * prj-makr.ads, prj-makr.adb : New files.
24654 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
24656         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
24657         (lang_mark_tree): Make static, rename.
24659 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
24661         * misc.c (maybe_build_cleanup): Remove.
24663 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
24665         * gigi.h (yyparse): Remove.
24667 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
24669         * gnat_rm.texi: Sync with ACT version.
24670           (From Ben Brosgol <brosgol@gnat.com>)
24672 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
24674         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
24675         (gnat_init): Remove old hook.
24677 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
24679         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
24680         (yyparse): Rename gnat_parse_file.
24682 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
24684         Delete all lines containing "$Revision:".
24685         * xeinfo.adb: Don't look for revision numbers.
24686         * xnmake.adb: Likewise.
24687         * xsinfo.adb: Likewise.
24688         * xsnames.adb: Likewise.
24689         * xtreeprs.adb: Likewise.
24691 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24693         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
24694         gnat_tree_code_name): Delete.
24695         (tree_code_type, tree_code_length, tree_code_name): Define.
24696         (gnat_init): Don't try to copy into the various tree_code
24697         arrays.
24699 2002-03-11  Richard Henderson  <rth@redhat.com>
24701         * Makefile.in (.NOTPARALLEL): Add fake tag.
24703 2002-03-07  Geert Bosch  <bosch@gnat.com>
24705         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
24706         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
24707         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
24708         switch-m.adb, switch-m.ads : New files.
24710 2002-03-07  Geert Bosch  <bosch@gnat.com>
24712         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
24713         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
24714         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
24715         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
24716         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
24717         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
24718         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
24719         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
24720         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
24721         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
24722         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
24723         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
24724         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
24725         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
24726         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
24727         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
24728         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
24729         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
24730         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
24731         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
24732         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
24733         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
24734         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
24735         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
24736         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
24737         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
24738         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
24739         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
24740         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
24741         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
24742         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
24743         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
24744         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
24745         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
24746         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
24747         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
24748         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
24749         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
24750         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
24751         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
24752         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
24753         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
24754         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
24755         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
24756         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
24757         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
24758         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
24759         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
24760         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
24761         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
24762         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
24763         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
24764         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
24765         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
24766         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
24767         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
24768         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
24769         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
24770         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
24771         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
24772         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
24773         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
24774         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
24775         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
24776         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
24777         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
24778         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
24779         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
24780         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
24781         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
24782         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
24783         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
24784         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
24785         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
24786         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
24787         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
24788         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
24789         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
24790         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
24791         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
24792         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
24793         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
24794         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
24795         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
24796         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
24797         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
24798         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
24799         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
24800         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
24801         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
24802         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
24803         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
24804         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
24805         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
24806         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
24807         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
24808         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
24810         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
24811         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
24812         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
24813         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
24815         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
24816         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
24818         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
24819         to mdll-fil.ad[bs] and mdll-util.ad[bs]
24821         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
24822         from mdllfile.ad[bs] and mdlltool.ad[bs]
24824 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24826         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
24827         lieu of explicit sizeof/sizeof.
24829 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
24831         * misc.c (copy_lang_decl): Remove.
24833 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
24835         * misc.c: Delete traditional-mode-related code copied from the
24836         C front end but not used, or used only to permit the compiler
24837         to link.
24839 2002-02-07  Richard Henderson  <rth@redhat.com>
24841         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
24842         * adaint.h (__gnat_to_gm_time): Update prototype.
24844 2002-01-30  Richard Henderson  <rth@redhat.com>
24846         * trans.c (tree_transform) [N_Loop_Statement]: Use
24847         expand_exit_loop_top_cond.
24849 2001-12-23  Richard Henderson  <rth@redhat.com>
24851         * utils.c (end_subprog_body): Push GC context around
24852         rest_of_compilation for nested functions.
24854 2001-12-23  Richard Henderson  <rth@redhat.com>
24856         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
24858 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
24860         * gnat-style.texi (Declarations and Types): Remove ancient style
24861         rule which was mandated by code generation issues.
24863         * gnat-style.texi (header): Add @dircategory, @direntry.
24864         (title page): Remove date.
24865         (general) Add @./@: where approriate, and two spaces after the
24866         full stop at the end of a sentence.  Use @samp markup when
24867         referring concrete lexical entities (keywords, attribute names
24868         etc.), and @syntax for ARM grammar elements. Use @r for English
24869         text in comments.  Use @emph for emphasis.  Change "if-statements"
24870         etc. to "if statements" (without @samp). Break long lines.  Make
24871         casing of section names consistent.
24872         (Identifiers): Use @samp markup for variable names.
24873         (Comments): Use @samp markup for comment characters. Line-end
24874         comments may follow any Ada code, not just statements.  Fix
24875         misspelling of "Integer" as "integer".
24876         (Loop statements): Do not use variable name "I", use "J".
24877         (Subprogram Declarations): Document alignment.
24878         (Subprogram Bodies, Block statements): Document empty line before
24879         "begin".
24881 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
24883         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
24884         function approach did not work well because of a side effect (the
24885         function call could reallocate the table which was being indexed
24886         using its result). Fixes ada/4851.
24888 2001-12-19  Robert Dewar <dewar@gnat.com>
24890         * bindgen.adb: Minor reformatting
24892         * cstand.adb: Minor reformatting
24894         * fmap.adb: Minor reformatting
24895         Change name from Add for Add_To_File_Map (Add is much too generic)
24896         Change Path_Name_Of to Mapped_Path_Name
24897         Change File_Name_Of to Mapped_File_Name
24898         Fix copyright dates in header
24900         * fmap.ads:
24901         Change name from Add for Add_To_File_Map (Add is much too generic)
24902         Change Path_Name_Of to Mapped_Path_Name
24903         Change File_Name_Of to Mapped_File_Name
24904         Fix copyright dates in header
24906         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
24907         Add use clause for Fmap.
24909         * make.adb: Minor reformatting
24911         * osint.adb: Minor reformatting.  Change of names in Fmap.
24912         Add use clause for Fmap.
24914         * prj-env.adb: Minor reformatting
24916         * prj-env.ads: Minor reformatting
24918         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
24919         error found (there were odd exceptions to this general rule in
24920         -gnatec/-gnatem processing)
24922 2001-12-19  Olivier Hainque <hainque@gnat.com>
24924         * raise.c (__gnat_eh_personality): Exception handling personality
24925         routine for Ada.  Still in rough state, inspired from the C++ version
24926         and still containing a bunch of debugging artifacts.
24927         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
24928         inspired from the C++ library.
24930         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
24931         exception handling integration.
24933 2001-12-19  Arnaud Charlet <charlet@gnat.com>
24935         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
24936         (HIE_SOURCES): Add s-secsta.ad{s,b}.
24937         (HIE_OBJS): Add s-fat*.o
24938         (RAVEN_SOURCES): Remove files that are no longer required. Add
24939         interrupt handling files.
24940         (RAVEN_MOD): Removed, no longer needed.
24942 2001-12-19  Robert Dewar <dewar@gnat.com>
24944         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
24945         Add 2001 to copyright date
24947         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
24948         need to force universal inlining for these cases.
24950 2001-12-19  Arnaud Charlet <charlet@gnat.com>
24952         * s-taprob.adb: Minor clean ups so that this unit can be used in
24953         Ravenscar HI.
24955         * exp_ch7.adb: Allow use of secondary stack in HI mode.
24956         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
24958 2001-12-19  Vincent Celier <celier@gnat.com>
24960         * prj-tree.ads (Project_Node_Record): Add comments for components
24961         Pkg_Id and Case_Insensitive.
24963 2001-12-19  Pascal Obry <obry@gnat.com>
24965         * g-socket.adb: Minor reformatting. Found while reading code.
24967 2001-12-19  Robert Dewar <dewar@gnat.com>
24969         * prj-tree.ads: Minor reformatting
24971 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
24973         * config-lang.in (diff_excludes): Remove.
24975 2001-12-17  Ed Schonberg <schonber@gnat.com>
24977         * sem_res.adb (Resolve_Selected_Component): do not generate a
24978         discriminant check if the selected component is a component of
24979         the argument of an initialization procedure.
24981         * trans.c (tree_transform, case of arithmetic operators): If result
24982         type is private, the gnu_type is the base type of the full view,
24983         given that the full view itself may be a subtype.
24985 2001-12-17  Robert Dewar <dewar@gnat.com>
24987         * sem_res.adb: Minor reformatting
24989         * trans.c (tree_transform, case N_Real_Literal): Add missing third
24990         parameter in call to Machine (unknown horrible effects from this
24991         omission).
24993         * urealp.h: Add definition of Round_Even for call to Machine
24994         Add third parameter for Machine
24996 2001-12-17  Ed Schonberg <schonber@gnat.com>
24998         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
24999         predefined units in No_Run_Time mode.
25001 2001-12-17  Richard Kenner <kenner@gnat.com>
25003         * misc.c (insn-codes.h): Now include.
25005 2001-12-17  Olivier Hainque <hainque@gnat.com>
25007         * a-except.adb: Preparation work for future integration of the GCC 3
25008         exception handling mechanism
25009         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
25010         to factorize previous code sequences and make them externally callable,
25011         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
25012         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
25013         Use the new notification routines.
25015 2001-12-17  Emmanuel Briot <briot@gnat.com>
25017         * prj-tree.ads (First_Choice_Of): Document the when others case
25019 2001-12-17  Arnaud Charlet <charlet@gnat.com>
25021         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
25022         HI-E mode, in order to support Ravenscar profile properly.
25024         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
25025         mode on 32 bits targets.
25027 2001-12-17  Vincent Celier <celier@gnat.com>
25029         * fmap.adb: Initial version.
25031         * fmap.ads: Initial version.
25033         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
25034         If search is successfully done, add to mapping.
25036         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
25038         * make.adb:
25039         (Gnatmake): Add new local variable Mapping_File_Name.
25040          Create mapping file when using project file(s).
25041          Delete mapping file before exiting.
25043         * opt.ads (Mapping_File_Name): New variable
25045         * osint.adb (Find_File): Use path name found in mapping, if any.
25047         * prj-env.adb (Create_Mapping_File): New procedure
25049         * prj-env.ads (Create_Mapping_File): New procedure.
25051         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
25052         (Mapping_File)
25054         * usage.adb: Add entry for new switch -gnatem.
25056         * Makefile.in: Add dependencies for fmap.o.
25058 2001-12-17  Ed Schonberg <schonber@gnat.com>
25060         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
25061         is a package instantiation rewritten as a package body.
25062         (Install_Withed_Unit): Undo previous change, now redundant.
25064 2001-12-17  Gary Dismukes <dismukes@gnat.com>
25066         * layout.adb:
25067         (Compute_Length): Move conversion to Unsigned to callers.
25068         (Get_Max_Size): Convert Len expression to Unsigned after calls to
25069         Compute_Length and Determine_Range.
25070         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
25071         Compute_Length and Determine_Range.
25072         Above changes fix problem with length computation for supernull arrays
25073         where Max (Len, 0) wasn't getting applied due to the Unsigned
25074         conversion used by Compute_Length.
25076 2001-12-17  Arnaud Charlet <charlet@gnat.com>
25078         * rtsfind.ads:
25079         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
25080          System.Secondary_Stack.
25081         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
25082          in HI-E mode.
25083         Remove unused entity RE_Exception_Data.
25085         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
25087         * rident.ads (No_Secondary_Stack): New restriction.
25089 2001-12-17  Joel Brobecker <brobecke@gnat.com>
25091         * gnat_rm.texi: Fix minor typos. Found while reading the section
25092         regarding "Bit_Order Clauses" that was sent to a customer.
25093         Very interesting documentation!
25095 2001-12-17  Robert Dewar <dewar@gnat.com>
25097         * sem_case.adb (Choice_Image): Avoid creating improper character
25098         literal names by using the routine Set_Character_Literal_Name. This
25099         fixes bombs in certain error message cases.
25101 2001-12-17  Arnaud Charlet <charlet@gnat.com>
25103         * a-reatim.adb: Minor reformatting.
25105 2001-12-17  Ed Schonberg <schonber@gnat.com>
25107         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
25108         case where the formal is an extension of another formal in the current
25109         unit or in a parent generic unit.
25111 2001-12-17  Arnaud Charlet <charlet@gnat.com>
25113         * s-tposen.adb: Update comments.  Minor reformatting.
25114         Minor code clean up.
25116         * s-tarest.adb: Update comments.  Minor code reorganization.
25118 2001-12-17  Gary Dismukes <dismukes@gnat.com>
25120         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
25121         when Java_VM.
25123 2001-12-17  Robert Dewar <dewar@gnat.com>
25125         * exp_attr.adb: Minor reformatting
25127 2001-12-17  Ed Schonberg <schonber@gnat.com>
25129         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
25130         derivations nested within a child unit: verify that the parent
25131         type is declared in an outer scope.
25133 2001-12-17  Robert Dewar <dewar@gnat.com>
25135         * sem_ch12.adb: Minor reformatting
25137 2001-12-17  Ed Schonberg <schonber@gnat.com>
25139         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
25140         warning if current unit is a predefined one, from which bodies may
25141         have been deleted.
25143 2001-12-17  Robert Dewar <dewar@gnat.com>
25145         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
25146         Fix header format. Add 2001 to copyright date.
25148         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
25149         which caused CE during compilation if checks were enabled.
25151 2001-12-17  Vincent Celier <celier@gnat.com>
25153         * make.adb:
25154         (Switches_Of): New function
25155         (Test_If_Relative_Path): New procedure
25156         (Add_Switches): Use new function Switches_Of
25157         (Collect_Arguments_And_Compile): Use new function Switches_Of.
25158         When using a project file, test if there are any relative
25159         search path. Fail if there are any.
25160         (Gnatmake): Only add switches for the primary directory when not using
25161         a project file. When using a project file, change directory to the
25162         object directory of the main project file. When using a project file,
25163         test if there are any relative search path. Fail if there are any.
25164         When using a project file, fail if specified executable is relative
25165         path with directory information, and prepend executable, if not
25166         specified as an absolute path, with the exec directory.  Make sure
25167         that only one -o switch is transmitted to the linker.
25169         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
25171         * prj-nmsc.adb:
25172         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
25173         when using a non standard naming scheme.
25174         (Check_Ada_Naming_Scheme): Make sure that error messages
25175         do not raise exceptions.
25176         (Is_Illegal_Append): Return True if there is no dot in the suffix.
25177         (Language_Independent_Check): Check the exec directory.
25179         * prj.adb (Project_Empty): Add new component Exec_Directory
25181         * prj.ads:
25182         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
25183         (Project_Data): Add component Exec_Directory
25185         * snames.adb: Updated to match snames.ads revision 1.215
25187         * snames.ads: Added Exec_Dir
25189 2001-12-17  Robert Dewar <dewar@gnat.com>
25191         * make.adb: Minor reformatting
25193         * prj-nmsc.adb: Minor reformatting
25195         * snames.adb: Updated to match snames.ads
25197         * snames.ads: Alphebetize entries for project file
25199 2001-12-17  Ed Schonberg <schonber@gnat.com>
25201         * trans.c (process_freeze_entity): Do nothing if the entity is a
25202         subprogram that was already elaborated.
25204 2001-12-17  Richard Kenner <kenner@gnat.com>
25206         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
25207         and Esize if object is referenced via pointer.
25209 2001-12-17  Ed Schonberg <schonber@gnat.com>
25211         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
25212         is discrete before analyzing choices.
25214 2001-12-17  Joel Brobecker <brobecke@gnat.com>
25216         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
25217         containing the name of the Ada Main Program. This string is mainly
25218         intended for the debugger.
25219         (Gen_Output_File_C): Do the equivalent change when generating a C file.
25221 2001-12-17  Robert Dewar <dewar@gnat.com>
25223         * ali.adb: Set new Dummy_Entry field in dependency entry
25225         * ali.ads: Add Dummy_Entry field to source dependency table
25227         * bcheck.adb (Check_Consistency): Ignore dummy D lines
25229         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
25231         * lib-writ.ads: Document dummy D lines for missing files.
25233         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
25235 2001-12-17  Robert Dewar <dewar@gnat.com>
25237         * ali.adb: Type reference does not reset current file.
25239         * ali.adb: Recognize and scan renaming reference
25241         * ali.ads: Add spec for storing renaming references.
25243         * lib-xref.ads: Add documentation for handling of renaming references
25245         * lib-xref.adb: Implement output of renaming reference.
25247         * checks.adb:
25248         (Determine_Range): Document local variables
25249         (Determine_Range): Make sure Hbound is initialized. It looks as though
25250          there could be a real problem here with an uninitialized reference
25251          to Hbound, but no actual example of failure has been found.
25253 2001-12-17  Laurent Pautet <pautet@gnat.com>
25255         * g-socket.ads:
25256         Fix comment of Shutdown_Socket and Close_Socket. These functions
25257         should not fail silently because if they are called twice, this
25258         probably means that there is a race condition in the user program.
25259         Anyway, this behaviour is consistent with the rest of this unit.
25260         When an error occurs, an exception is raised with the error message
25261         as exception message.
25263 2001-12-17  Robert Dewar <dewar@gnat.com>
25265         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
25266         that it happens before modification of Sloc values for -gnatD.
25268         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
25269         so that it happens before modification of Sloc values for -gnatD.
25271         * switch.adb: Minor reformatting
25273 2001-12-15  Richard Henderson  <rth@redhat.com>
25275         * sem_ch7.adb: Wrap comment.
25277 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
25279         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
25280         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
25281         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
25282         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
25283         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
25284         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
25285         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
25286         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
25287         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
25288         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
25289         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
25290         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
25291         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
25292         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
25293         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
25294         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
25295         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
25296         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
25297         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
25298         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
25299         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
25300         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
25301         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
25302         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
25303         spelling errors.
25305 2001-12-14  Vincent Celier <celier@gnat.com>
25307         * osint.adb(Create_Debug_File): When an object file is specified,
25308         put the .dg file in the same directory as the object file.
25310 2001-12-14  Robert Dewar <dewar@gnat.com>
25312         * osint.adb: Minor reformatting
25314         * lib-xref.adb (Output_Instantiation): New procedure to generate
25315         instantiation references.
25317         * lib-xref.ads: Add documentation of handling of generic references.
25319         * ali.adb (Read_Instantiation_Ref): New procedure to read
25320         instantiation references
25322         * ali.ads: Add spec for storing instantiation references
25324         * bindusg.adb: Minor reformatting
25326         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
25328         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
25330         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
25332         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
25334         * csets.ads:
25335         Fix header format
25336         Add 2001 to copyright date
25337         Add entry for Latin-5 (Cyrillic ISO-8859-5)
25339 2001-12-14  Matt Gingell <gingell@gnat.com>
25341         * adaint.c: mktemp is a macro on Lynx and can not be used as an
25342         expression.
25344 2001-12-14  Richard Kenner <kenner@gnat.com>
25346         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
25347         if operand is CONSTRUCTOR.
25349 2001-12-14  Ed Schonberg <schonber@gnat.com>
25351         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
25352         before emiting check on right-hand side, so that exception information
25353         is correct.
25355 2001-12-14  Richard Kenner <kenner@gnat.com>
25357         * utils.c (create_var_decl): Throw away initializing expression
25358         if just annotating types and non-constant.
25360 2001-12-14  Vincent Celier <celier@gnat.com>
25362         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
25363         Default_Ada_...
25365         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
25366         Remove functions.
25367         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
25369         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
25370         Remove functions.
25371         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
25373 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
25375         * ChangeLog: Remove piece of diff output.
25377 2001-12-14  Geert Bosch <bosch@gnat.com>
25379         * config-lang.in: Update copyright notice
25381         * layout.adb: Remove commented out code.
25383         * mdllfile.ads: Update copyright notice. Fix header format.
25385         * sem_case.ads: Likewise.
25387         * sem_ch3.adb: Minor reformatting.
25389 2001-12-12  Geert Bosch <bosch@gnat.com>
25391         * freeze.ads: Update copyright date.
25393         * g-comlin.ads: Minor reformatting.
25395         * gnat-style.texi: Fix typo.
25397 2001-12-12  Geert Bosch <bosch@gnat.com>
25399         *  einfo.h: Regenerate.
25401 2001-12-12  Ed Schonberg <schonber@gnat.com>
25403         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
25404         on known node types, rather than untyped fields. Further cleanups.
25406 2001-12-12  Robert Dewar <dewar@gnat.com>
25408         * sem_ch12.adb:
25409         (Save_Entity_Descendant): Minor comment update.
25410         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
25411          of an N_Attribute_Reference node. As per note below, this does not
25412         eliminate need for Associated_Node in attribute ref nodes.
25413         (Associated_Node): Documentation explicitly mentions attribute
25414         reference nodes, since this field is used in such nodes.
25416         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
25418 2001-12-12  Robert Dewar <dewar@gnat.com>
25420         * s-stalib.adb: Add more comments on with statements being needed
25422         * par-ch12.adb: Minor reformatting
25424         * prj-dect.ads: Fix copyright header
25426         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
25427         inputs fit in 32 bits, but the result still overflows.
25429         * s-fatgen.ads: Minor comment improvement
25431 2001-12-12  Ed Schonberg <schonber@gnat.com>
25433         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
25434         formal derived type, look for an inherited component from the full
25435         view of the parent, if any.
25437 2001-12-12  Robert Dewar <dewar@gnat.com>
25439         * checks.ads (Apply_Alignment_Check): New procedure.
25441         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
25442         ensure that the alignment of objects with address clauses is
25443         appropriate, and raise PE if not.
25445         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
25446         Exp_Pakd.Known_Aligned_Enough
25448         * mdllfile.ads: Minor reformatting
25450         * mlib-fil.ads: Minor reformatting
25452 2001-12-12  Ed Schonberg <schonber@gnat.com>
25454         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
25455         fix to any component reference if enclosing record has non-standard
25456         representation.
25458 2001-12-12  Vincent Celier <celier@gnat.com>
25460         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
25461         Iteration
25463 2001-12-12  Ed Schonberg <schonber@gnat.com>
25465         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
25466         sem_attr.
25468 2001-12-12  Robert Dewar <dewar@gnat.com>
25470         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
25472 2001-12-12  Emmanuel Briot <briot@gnat.com>
25474         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
25475         and it adds dependencies to system.io.
25477 2001-12-12  Pascal Obry <obry@gnat.com>
25479         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
25480         variable name.
25482 2001-12-11  Ed Schonberg <schonber@gnat.com>
25484         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
25485         that is the parent of other generics, the instance body replaces the
25486         instance node.  Retrieve the instance of the spec, which is the one
25487         that is visible in clients and within the body.
25489 2001-12-11  Vincent Celier <celier@gnat.com>
25491         * gnatmain.adb: Initial version.
25493         * gnatmain.ads: Initial version.
25495         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
25497         * snames.adb: Updated to match snames.ads.
25499         * snames.ads: Added Gnatstub.
25501 2001-12-11  Vincent Celier <celier@gnat.com>
25503         * prj-attr.adb (Initialization_Data): Change name from
25504         Initialisation_Data.
25506 2001-12-11  Emmanuel Briot <briot@gnat.com>
25508         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
25509         + and * applied to backslashed expressions like \r.
25511 2001-12-11  Vasiliy Fofanov <fofanov@gnat.com>
25513         * g-os_lib.ads: String_List type added, Argument_List type is now
25514         subtype of String_List.
25516 2001-12-11  Robert Dewar <dewar@gnat.com>
25518         * g-os_lib.ads: Change copyright to FSF
25519         Add comments for String_List type
25521 2001-12-11  Vincent Celier <celier@gnat.com>
25523         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
25524         string to the buffer).
25526 2001-12-11  Ed Schonberg <schonber@gnat.com>
25528         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
25529         sem_attr.
25531         * sem_attr.adb: Simplify previous fix for Address.
25532         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
25533         to avoid anomalies where the bound of the type appears to raise
25534         constraint error.
25536 2001-12-11  Robert Dewar <dewar@gnat.com>
25538         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
25539         handled.
25541 2001-12-11  Ed Schonberg <schonber@gnat.com>
25543         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
25544         renamed unit before checking for recursive instantiations.
25546 2001-12-11  Emmanuel Briot <briot@gnat.com>
25548         * prj.ads: Add comments for some of the fields.
25550 2001-12-11  Robert Dewar <dewar@gnat.com>
25552         * lib-xref.adb (Output_Refs): Don't output type references outside
25553         the main unit if they are not otherwise referenced.
25555 2001-12-11  Ed Schonberg <schonber@gnat.com>
25557         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
25558         code and diagnose additional illegal uses
25560         * sem_util.adb (Is_Object_Reference): An indexed component is an
25561         object only if the prefix is.
25563 2001-12-11  Vincent Celier <celier@gnat.com>
25565         * g-diopit.adb: Initial version.
25567         * g-diopit.ads: Initial version.
25569         * g-dirope.adb:
25570         (Expand_Path): Avoid use of Unbounded_String
25571         (Find, Wildcard_Iterator): Moved to child package Iteration
25573         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
25575 2001-12-11  Robert Dewar <dewar@gnat.com>
25577         * sem_attr.adb: Minor reformatting
25579 2001-12-11  Ed Schonberg <schonber@gnat.com>
25581         * sem_ch3.adb: Clarify some ???.
25583 2001-12-11  Robert Dewar <dewar@gnat.com>
25585         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
25586         Exp_Pakd.Known_Aligned_Enough
25588         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
25589         version is moved to Exp_Ch13.
25591 2001-12-11  Robert Dewar <dewar@gnat.com>
25593         * einfo.ads: Minor reformatting
25595         * exp_ch5.adb: Add comment for previous.change
25597         * ali.adb: New interface for extended typeref stuff.
25599         * ali.ads: New interface for typeref stuff.
25601         * checks.adb (Apply_Alignment_Check): New procedure.
25603         * debug.adb: Add -gnatdM for modified ALI output
25605         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
25607         * lib-xref.adb: Extend generation of <..> notation to cover
25608         subtype/object types. Note that this is a complete rewrite,
25609         getting rid of the very nasty quadratic algorithm previously
25610         used for derived type output.
25612         * lib-xref.ads: Extend description of <..> notation to cover
25613         subtype/object types. Uses {..} for these other cases.
25614         Also use (..) for pointer types.
25616         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
25618         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
25619         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
25621 2001-12-11  Vincent Celier <celier@gnat.com>
25623         * gnatcmd.adb:
25624         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
25625         Changed /BIND_ONLY to /ACTIONS=BIND
25626         Changed /LINK_ONLY to /ACTIONS=LINK
25628 2001-12-11  Ed Schonberg  <schonber@gnat.com>
25630         * sem_ch8.adb (Find_Selected_Component): improved search for a
25631         candidate package in case of error.
25633         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
25634         chain back on scope stack before reinstalling use clauses.
25636         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
25637         is enabled, do not kill the code for the condition, to preserve
25638         warning.
25640 2001-12-11  Robert Dewar <dewar@gnat.com>
25642         * checks.adb (Insert_Valid_Check): Apply validity check to expression
25643         of conversion, not to result of conversion.
25645 2001-12-11  Ed Schonberg <schonber@gnat.com>
25647         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
25648         before freezing parent. If the declarations are mutually recursive,
25649         an access to the current record type may be frozen before the
25650         derivation is complete.
25652 2001-12-05  Vincent Celier <celier@gnat.com>
25654         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
25655         -c /COMPILE_ONLY, -l /LINK_ONLY
25657         * opt.ads:
25658         (Bind_Only): New Flag
25659         (Link_Only): New flag
25661         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
25662         and -l (Link_Only)
25664         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
25666         * make.adb:
25667         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
25668         (Gnatmake): Set the step flags. Only perform a step if the
25669         corresponding step flag is True.
25670         (Scan_Make_Arg): Reset the bind and link step flags when -u
25671         or -gnatc has been specified.
25673 2001-12-05  Ed Schonberg <schonber@gnat.com>
25675         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
25676         get bounds from right operand.
25678         * sem_eval.adb: Minor reformatting
25680         * exp_util.adb (Make_Literal_Range): use bound of literal rather
25681         than Index'First, its lower bound may be different from 1.
25683         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
25684         and C48009J
25686 2001-12-05  Vincent Celier <celier@gnat.com>
25688         * prj-nmsc.adb Minor reformatting
25690         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
25691         set and libraries are not supported.
25693 2001-12-05  Ed Schonberg <schonber@gnat.com>
25695         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
25696         private view explicitly, so the back-end can treat as a global
25697         when appropriate.
25699 2001-12-05  Ed Schonberg <schonber@gnat.com>
25701         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
25702          unit, always replace instance node with new body, for ASIS use.
25704 2001-12-05  Vincent Celier <celier@gnat.com>
25706         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
25707         libraries are not supported and both attributes Library_Name and
25708         Library_Dir are specified.
25710         * prj-proc.adb (Expression): Set location of Result to location of
25711         first term.
25713         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
25714         (prj-nmsc is now importing MLib.Tgt)
25716         * prj-proc.adb: Put the change indicated above that was forgotten.
25718 2001-12-05  Robert Dewar <dewar@gnat.com>
25720         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
25722 2001-12-05  Ed Schonberg <schonber@gnat.com>
25724         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
25725         constraint, introduce explicit subtype declaration and derive from it.
25727         * sem_ch3.adb: Minor reformatting
25729 2001-12-05  Robert Dewar <dewar@gnat.com>
25731         * checks.adb (Determine_Range): Increase cache size for checks.
25732         Minor reformatting
25734         * exp_ch6.adb: Minor reformatting
25735         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
25736         a parameter whose root type is System.Address, since treating such
25737         subprograms as pure in the code generator is almost surely a mistake
25738         that will lead to unexpected results.
25740         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
25741         change handling of conversions.
25743         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
25745 2001-12-05  Ed Schonberg <schonber@gnat.com>
25747         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
25748         aggregate with static wrong size, attach generated Raise node to
25749         declaration.
25751 2001-12-05  Robert Dewar <dewar@gnat.com>
25753         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
25754         Fixes compilation abandoned bomb in B24009B.
25756 2001-12-05  Ed Schonberg <schonber@gnat.com>
25758         * sem_ch12.adb:
25759         Document use of Associated_Node on Selected_Components.
25760         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
25761         to clarify use of untyped descendant fields.
25763 2001-12-05  Robert Dewar <dewar@gnat.com>
25765         * prj-dect.ads: Add ??? comment
25766         Add 2001 to copyright notice (was not done in after all)
25768         * prj-part.adb: Minor reformatting. Reword one awkward error message.
25770         * prj.ads: Minor reformatting throughout, and add some ??? comments
25772         * snames.ads: Minor reformatting
25774 2001-12-05  Geert Bosch <bosch@gnat.com>
25776         * snames.adb: Autoupdate
25778 2001-12-05  Vincent Celier <celier@gnat.com>
25780         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
25782         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
25784         * prj-env.adb: Minor comment changes (modifying -> extends).
25786         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
25788         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
25789         Tok_Extends.
25791         * prj.adb (Initialize): Change Modifying to Extends.
25793         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
25795         * prj.ads: Minor comment change (Modifying -> extending).
25797         * snames.ads: Change modifying to extends.
25799 2001-12-05  Robert Dewar <dewar@gnat.com>
25801         * sem_warn.adb: Remove stuff for conditionals, we are not going to
25802         do this after all.
25804         * sem_warn.ads: Remove stuff for conditionals, we are not going to
25805         do this after all.  Add 2001 to copyright notice
25807 2001-12-04  Geert Bosch <bosch@gnat.com>
25809         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
25811 2001-12-04  Robert Dewar <dewar@gnat.com>
25813         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
25814         location if we already have errors. Stops some cases of cascaded
25815         errors.
25817         * errout.adb: Improve comment.
25819 2001-12-04  Robert Dewar <dewar@gnat.com>
25821         * sem_ch12.adb:
25822         (Analyze_Formal_Type_Definition): Defend against Error.
25823         (Analyze_Formal_Subprogram): Defend against Error.
25825         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
25826         remove following semicolon if present. Removes cascaded error.
25828 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
25830         * bindgen.adb:
25831         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
25832          exceptions equals 0.
25833         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
25834         Fixes PIWG E tests (which have to be run with -gnatL).
25836 2001-12-04  Robert Dewar <dewar@gnat.com>
25838         * einfo.ads: Minor reformatting
25840 2001-12-04  Ed Schonberg <schonber@gnat.com>
25842         * einfo.ads: Block_Node points to the identifier of the block, not to
25843         the block node itself, to preserve the link when the block is
25844         rewritten, e.g. within an if-statement with a static condition.
25846         * inline.adb (Cleanup_Scopes): recover block statement from block
25847         entity using new meaning of Block_Node.
25849         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
25850         identifier of block node, rather than to node itself.
25852 2001-12-04  Gary Dismukes <dismukes@gnat.com>
25854         * layout.adb:
25855         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
25856         (Discrimify): Go back to setting the Etypes of the selected component
25857         because the Vname component does not exist at this point and will
25858         fail name resolution. Also set Analyzed.
25859         Remove with and use of Sem_Res.
25861 2001-12-04  Arnaud Charlet <charlet@gnat.com>
25863         * Makefile.in: (HIE_SOURCES): add s-fat*.
25865 2001-12-04  Robert Dewar <dewar@gnat.com>
25867         * sem_attr.adb:
25868         (Compile_Time_Known_Attribute): New procedure.
25869         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
25870          proper range check.
25872 2001-12-04  Ed Schonberg <schonber@gnat.com>
25874         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
25875         processing discriminants to diagnose illegal default values.
25877 2001-12-04  Ed Schonberg <schonber@gnat.com>
25879         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
25880         access discriminant within a type extension that constrains its
25881         parent discriminants.
25883 2001-12-04  Ed Schonberg <schonber@gnat.com>
25885         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
25886         is malformed, use instance of Any_Id to allow analysis to proceed.
25888         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
25889         type definition is illegal.
25890         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
25891         misplaced.
25893 2001-12-04  Ed Schonberg <schonber@gnat.com>
25895         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
25896         constants.
25898 2001-12-04  Robert Dewar <dewar@gnat.com>
25900         * errout.adb: Minor reformatting
25902 2001-12-04  Robert Dewar <dewar@gnat.com>
25904         * exp_util.adb: Minor reformatting from last change
25906         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
25907         which is a rewriting of an expression, traverse the original
25908         expression to remove warnings that may have been posted on it.
25910 2001-12-04  Ed Schonberg <schonber@gnat.com>
25912         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
25913         record that has other packed components.
25915 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
25917         * adaint.c: Minor cleanups.
25919 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
25921         * adaint.c: Do not use utime.h on vxworks.
25923 2001-12-04  Arnaud Charlet <charlet@gnat.com>
25925         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
25926         more confusion than it solves.
25928 2001-12-04  Geert bosch <bosch@gnat.com>
25930         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
25932 2001-12-04  Geert Bosch  <bosch@gnat.com>
25934         * Makefile.in (update-sources): New target.
25935         For use by gcc_release script.
25937 2001-12-04  Ed Schonberg <schonber@gnat.com>
25939         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
25940         a configuration pragma, it is now legal wherever a pragma can appear.
25942 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
25944         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
25945         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
25946         is now @CROSS@ -DIN_GCC; update comment.
25948 2001-12-04  Robert Dewar <dewar@gnat.com>
25950         * einfo.adb (Has_Pragma_Pure_Function): New flag.
25951         Fix problem that stopped ceinfo from working
25953         * einfo.ads (Has_Pragma_Pure_Function): New flag.
25955         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
25957 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
25959         * gnatchop.adb:
25960         (File_Time_Stamp): New procedure.
25961         (Preserve_Mode): New boolean.
25962         (Write_Unit): Pass time stamp.
25963         Implement -p switch (preserve time stamps).
25965         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
25967         * gnatchop.adb: Do usage info for -p switch
25969         * adaint.h (__gnat_set_file_time_name): New function
25971         * adaint.c (__gnat_set_file_time_name): Implement
25973         * adaint.h: Fix typo
25975 2001-12-03  Robert Dewar <dewar@gnat.com>
25977         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
25978         have Associated_Node.
25980 2001-12-03  Robert Dewar <dewar@gnat.com>
25982         * prj-proc.adb: Minor reformatting
25984         * make.adb: Minor reformatting
25986 2001-12-03  Geert Bosch <bosch@gnat.com>
25988         * make.adb: Minor reformatting.
25990 2001-12-03 Robert Dewar  <dewar@gnat.com>
25992         * sem_ch12.adb: Minor reformatting
25994 2001-12-03  Ed Schonberg <schonber@gnat.com>
25996         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
25997         push Standard on the stack before analyzing the instance body,
25998         in order to have a clean visibility environment.
26000         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
26002 2001-12-03  Ed Schonberg <schonber@gnat.com>
26004         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
26005         instantiation of a body that contains an inlined body.
26007 2001-12-03  Ed Schonberg <schonber@gnat.com>
26009         * sem_ch12.adb:
26010         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
26011         to prevent freezing within formal packages.
26012         (Freeze_Subprogram_Body): If body comes from another instance that
26013         appeared before its own body, place freeze node at end of current
26014         declarative part, to prevent a back-end crash.
26015         (Inline_Instance_Body): Handle properly a package instance within
26016         a subprogram instance that is a child unit.
26018 2001-12-01  Graham Stott  <grahams@redhat.com>
26020         * Makefile.in (misc.o): Add missing $(srcdir) prefix
26021         and add optabs.h dependency.
26023         * misc.c: Include optabs.h
26024         (gnat_tree_code_type): Make static and const.
26025         (gnat_tree_code_length): Likewise.
26026         (gnat_tree_code_name): Likewise.
26027         (update_setjmp_buf): Obtain operands mode from insn_data.
26029 2001-11-29  Richard Henderson  <rth@redhat.com>
26031         * init.c: Remove obsolete dwarf2 frame.h section.
26033 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
26035         * Make-lang.in (ada.generated-manpages): New dummy target.
26037 2001-11-29  Ed Schonberg <schonber@gnat.com>
26039         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
26040         into Command, an array conversion is illegal here. Uncovered by
26041         ACATS B460005.
26043 2001-11-28  Geert Bosch <bosch@gnat.com>
26045         * init.c: Minor whitespace changes.
26047 2001-11-28  Doug Rupp <rupp@gnat.com>
26049         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
26050         signal stack.
26052 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
26054         * misc.c (gnat_expand_constant): Move declaration above
26055         definition of lang_hooks.
26056         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
26057         (gnat_init): lang_expand_constant no longer exists.
26059         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
26060         always have vprintf.
26061         (gnat_init): Always call set_internal_error_function.
26063 2001-11-27  Andreas Jaeger  <aj@suse.de>
26065         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
26067 2001-11-27  Laurent Guerby  <guerby@acm.org>
26069         * Makefile.in: Regenerate Ada dependencies.
26071 2001-11-26  Richard Henderson  <rth@redhat.com>
26073         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
26074         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
26075         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
26077 2001-11-25  Laurent Guerby  <guerby@acm.org>
26079         * sysdep.c (rts_get_*): Fix style.
26081 2001-11-19  Laurent Guerby  <guerby@acm.org>
26083         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
26084         since it is of no apparent use and cause warnings.
26086 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
26088         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
26089         static too.
26090         (gnat_init): Don't return NULL.
26091         (finish_parse): Remove.
26093 2001-11-17  Laurent Guerby  <guerby@acm.org>
26095         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
26096         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
26097         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
26098         * lang-spec.h: Add missing struct field to silence warnings.
26099         * sysdep.c (rts_get_*): Provide K&R prototype.
26100         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
26101         * traceback.c (Unlock_Task, Lock_Task): Likewise.
26102         * tracebak.c (__gnat_backtrace): Remove unused variable.
26103         * utils.c (end_subprog_body): Move to K&R style.
26105 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26107         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
26109 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
26111         * misc.c (gnat_init): Change prototype.  Include the
26112         functionality of the old init_parse and init_decl_processing.
26113         (gnat_init_decl_processing): New prototype.
26114         (init_parse): Remove.
26115         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
26117 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
26119         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
26120         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
26121         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
26122         set_yydebug): Remove.
26124 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
26126         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
26127         (struct lang_hooks): Constify.
26128         (language_string, lang_identify): Remove.
26129         * utils.c (init_decl_processing): Update.
26131 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
26133         * misc.c: Include langhooks-def.h.
26134         * Makefile.in: Update.
26136 2001-10-30  Robert Dewar <dewar@gnat.com>
26138         * style.adb:
26139         (Check_Identifier): Rewrite circuit to be compatible with use of letters
26140         in the upper half of ASCII.
26141         (Check_Identifier): Minor reformatting
26143 2001-10-30  Geert Bosch <bosch@gnat.com>
26145         * (Associated_Node, Set_Associated_Node): Do not check for
26146         Freeze_Entity.
26148 2001-10-30  Robert Dewar <dewar@gnat.com>
26150         * a-reatim.ads: Minor reformatting
26152 2001-10-30  Robert Dewar <dewar@gnat.com>
26154         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
26155         undocumented declarations.
26157 2001-10-30  Pascal Obry <obry@gnat.com>
26159         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
26160         to the binder and linker.
26161         Minor style fix.
26163         * mdll.ads: Fix layout.  Update copyright notice.
26165         * mdll.adb: Fix layout.  Update copyright notice.
26167 2001-10-30  Robert Dewar <dewar@gnat.com>
26169         * usage.adb: Minor fix to output for -gnaty.
26171 2001-10-30  Ed Schonberg <schonber@gnat.com>
26173         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
26174         to accommodate all its possible values.
26176         * a-reatim.adb (Split): Special-case handling of Time_Span_First
26177         and of small absolute values of T.
26179 2001-10-30  Richard Kenner <kenner@gnat.com>
26181         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
26182         set_mem_attributes since not needed and wrong if RESULT if a REG;
26183         fixes ACATS failures.
26185 2001-10-30  Geert Bosch <bosch@gnat.com>
26187         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
26188         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
26190 2001-10-30  Robert Dewar <dewar@gnat.com>
26192         * bindusg.adb: Undocument -f switch.
26194         * gnatcmd.adb: Remove /FULL_ELABORATION.
26196         * opt.ads (Force_RM_Elaboration_Order): Document that this is
26197         obsolescent.
26199         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
26201         * gnatbind.adb: Minor update of warning msg.
26203 2001-10-30  Vincent Celier <celier@gnat.com>
26205         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
26206         for project file switches (-P (/PROJECT_FILE=),
26207          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
26208         or MEDIUM or HIGH)
26210 2001-10-30  Geert Bosch <bosch@gnat.com>
26212         * decl.c: Minor whitespace fixes.
26214 2001-10-30  Richard Kenner <kenner@gnat.com>
26216         * utils2.c (build_allocator): Test for SIZE overflow in array case too
26218 2001-10-30  Geert Bosch <bosch@gnat.com>
26220         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
26221         Found due to GCC 3.0 warning of using uninitialized value.
26223         * layout.adb:
26224         (Get_Max_Size): Use variant record for tracking value/expression.
26225          Makes logic clearer and prevents warnings for uninitialized variables.
26226         (Layout_Array_Type): Use variant record for tracking value/expression.
26227          Makes logic clearer and prevents warnings for uninitialized variables.
26229 2001-10-30  Robert Dewar <dewar@gnat.com>
26231         * lib.adb: Minor reformatting
26233         * s-taprop.ads: Minor reformatting
26235 2001-10-29  Laurent Guerby  <guerby@acm.org>
26237         * init.c:
26238         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
26239         const.
26240         (_gnat_error_handler): Make MSG const.
26242 2001-10-29  Richard Kenner <kenner@gnat.com>
26244         * sysdep.c: Fix localtime_r problem on LynxOS.
26245         Also remove #elif to avoid warnings.
26247         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
26248         used by this.
26250         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
26252 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
26254         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
26255         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
26256         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
26257         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
26258         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
26259         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
26260         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
26261         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
26262         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
26263         types.ads, urealp.adb: Fix spelling errors.
26265 2001-10-27  Laurent Guerby <guerby@acm.org>
26267         * trans.c (gigi): Fix non determinism leading to bootstrap
26268         comparison failures for debugging information.
26270 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
26272         * gnat_rm.texi: Use @./@: where appropriate.
26274 2001-10-26  Robert Dewar <dewar@gnat.com>
26276         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
26278 2001-10-26  Richard Kenner <kenner@gnat.com>
26280         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
26282 2001-10-26  Richard Kenner <kenner@gnat.com>
26284         * decl.c (validate_size): Modify message for bad size to avoid
26285         implication that compiler is modifying the size.
26287 2001-10-26  Robert Dewar <dewar@gnat.com>
26289         * prj-util.adb: Minor reformatting. Fix bad header format.
26291 2001-10-26  Robert Dewar <dewar@gnat.com>
26293         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
26295         * sinfo.ads: Clarify use of Associated_Node (documentation only).
26297         * sem_ch12.adb: Change Node4 to Associated_Node. Change
26298         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
26299         much more narrowly in places where needed. These are cleanups.
26301 2001-10-26  Joel Brobecker <brobecke@gnat.com>
26303         * 5zosinte.ads (null_pthread): new constant.
26305         * 5ztaprop.adb:
26306         (Initialize_TCB): Initialize thread ID to null, to be able to verify
26307          later that this field has been set.
26308         (Finalize_TCB): ditto.
26309         (Suspend_Task): Verify that the thread ID is not null before using it.
26310         (Resume_Task): ditto.
26312         * s-tasdeb.adb:
26313         (Resume_All_Tasks): Lock the tasks list before using it.
26314         (Suspend_All_Tasks): ditto.
26316 2001-10-26  Richard Kenner <kenner@gnat.com>
26318         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
26319         Make constant variant of designated type for Is_Access_Constant.
26320         Call update_pointer_to with main variant.
26322         * trans.c (process_freeze_entity, process_type):
26323         Call update_pointer_to on main variant.
26325         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
26326         If main variant, update all other variants.
26328         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
26329         TREE_STATIC.
26331 2001-10-26  Robert Dewar <dewar@gnat.com>
26333         * prj-util.adb: Minor reformatting
26335 2001-10-26  Robert Dewar <dewar@gnat.com>
26337         * prj-util.adb: Minor reformatting
26339 2001-10-26  Robert Dewar <dewar@gnat.com>
26341         * prj-attr.adb: Minor reformatting throughout
26343 2001-10-26  Robert Dewar <dewar@gnat.com>
26345         * prj-attr.ads: Minor reformatting
26346         Add ??? comment (this whole spec has almost no comments)
26348 2001-10-26  Vincent Celier <celier@gnat.com>
26350         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
26351         ("//") that precede the drive letter on Interix.
26353 2001-10-26  Geert Bosch <bosch@gnat.com>
26355         * gnat_rm.texi: Add GNAT Reference Manual.
26357 2001-10-25  Robert Dewar <dewar@gnat.com>
26359         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
26360         is Error. Similar change for other renaming cases.
26362 2001-10-25  Robert Dewar <dewar@gnat.com>
26364         * s-atacco.ads: Add pragma Inline_Always for functions.
26365         Fix header format. Add copyright 2001
26367 2001-10-25  Ed Schonberg <schonber@gnat.com>
26369         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
26370         return Error rather than Empty so that analysis can proceed.
26372 2001-10-25  Ed Schonberg <schonber@gnat.com>
26374         * sem_util.adb (Enter_Name): better handling of cascaded error
26375         messages when a unit appears in its own context.
26377 2001-10-25  Ed Schonberg <schonber@gnat.com>
26379         * sem_util.adb (Defining_Entity): in case of error, attach created
26380         entity to specification, so that semantic analysis can proceed.
26382 2001-10-25  Robert Dewar <dewar@gnat.com>
26384         * sem_util.adb
26385         (Defining_Entity): Deal with Error.
26386         (Process_End_Label): Deal with bad end label for.
26388 2001-10-25  Ed Schonberg <schonber@gnat.com>
26390         * sem_elab.adb (Check_A_Call): refine message when call is in an
26391         instance but callee is not declared in the generic unit.
26393 2001-10-25  Ed Schonberg <schonber@gnat.com>
26395         * sem_elab.adb (Check_A_Call): check for renaming before finding the
26396         enclosing unit, which may already be different from the calling unit.
26398 2001-10-25  Geert Bosch <bosch@gnat.com>
26400         * 4gintnam.ads: fix header format.
26402 2001-10-25  Ed Schonberg <schonber@gnat.com>
26404         * sem_res.adb (Resolve_Call): if the call is actually an indexing
26405         operation on the result of a parameterless call, perform elaboration
26406         check after the node has been properly rewritten.
26408         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
26409         inlined within the generic tree, the defining identifier is not a
26410         compilation_unit.
26412 2001-10-25  Ed Schonberg <schonber@gnat.com>
26414         * sem_res.adb (Resolve): special-case resolution of Null in an
26415          instance or an inlined body to avoid view conflicts.
26417         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
26418          compatibility by retrieving the access type of the generic copy.
26420 2001-10-25  Robert Dewar <dewar@gnat.com>
26422         * sem_ch3.adb:
26423         (Analyze_Number_Declaration): Handle error expression.
26424         (Signed_Integer_Type_Declaration): Handle error bound.
26425         (Analyze_Subtype_Indication): Handle error range.
26427         * sem_util.adb (Get_Index_Bounds): Check for Error.
26429 2001-10-25  Robert Dewar <dewar@gnat.com>
26431         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
26432         in no run time mode.
26434 2001-10-25  Pascal Obry <obry@gnat.com>
26436         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
26437         mode case for ALLOC case.
26439         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
26440         all platforms. Improvement of last change.
26442 2001-10-25  Robert Dewar <dewar@gnat.com>
26444         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
26446 2001-10-25  Geert Bosch  <bosch@gnat.com>
26448         * osint.adb (Is_Relative): Remove duplicate.
26450 2001-10-25  Pascal Obry <obry@gnat.com>
26452         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
26453         pathnames in UNIX and DOS style with drive letter.
26454         (Is_Relative): new routine.
26456         * osint.adb: Minor reformatting
26458         * osint.adb (Is_Relative): implementation using
26459         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
26461 2001-10-25  Pascal Obry <obry@gnat.com>
26463         * g-dirope.adb (Basename): correctly compute offset between the
26464         original Path and the translated one.
26466         * g-dirope.adb: (Base_Name): add some comments.
26468 2001-10-25  Robert Dewar <dewar@gnat.com>
26470         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
26471         in HIE mode, avoids compilation abandoned message
26473         * exp_imgv.adb: Correct typo in previous change
26475         * exp_imgv.adb: Correct typo in previous change (not my day!)
26477 2001-10-25  Robert Dewar <dewar@gnat.com>
26479         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
26481 2001-10-25  Pascal Obry <obry@gnat.com>
26483         * g-awk.ads: Move all pragma inlines next to the routine
26484          declarations. This is more uniform with other GNAT spec.
26486 2001-10-22  Geert Bosch  <bosch@gnat.com>
26488         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
26490 2001-10-19  Geert Bosch  <bosch@gnat.com>
26492         * Makefile.in (tools, gnattools): Remove gnatmem.
26494 2001-10-17  Richard Henderson  <rth@redhat.com>
26496         * Makefile.in (misc.o): Depend on langhooks.h.
26497         * misc.c: Include it.
26498         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
26499         (LANG_HOOKS_DECODE_OPTION): New.
26500         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
26502 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
26504         * trans.c (tree_transform): Adjust to recent change in
26505         expand_asm_operands to implement named asm operands.
26507 2001-10-11  Ed Schonberg  <schonber@gnat.com>
26509         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
26510         renaming of discriminant for mutable record type.
26512 2001-10-11  Robert Dewar  <dewar@gnat.com>
26514         * validsw.adb: Properly save -gnatVn status.
26516 2001-10-11  Robert Dewar <dewar@gnat.com>
26518         * usage.adb: Add lines for V switch.
26520         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
26521         (/VALIDITY_CHECKING).
26523 2001-10-11  Ed Schonberg <schonber@gnat.com>
26525         * sem_type.adb (Add_One_Interp): an operator for a type declared in
26526         an extension of System is known to be visible.
26528 2001-10-11  Ed Schonberg <schonber@gnat.com>
26530         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
26531         properly. Fixes regression on ACATS C34005G.
26533 2001-10-11  Robert Dewar <dewar@gnat.com>
26535         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
26536         loop in generic instance, since this is likely not very useful.
26538 2001-10-11  Robert Dewar <dewar@gnat.com>
26540         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
26541         the error message for high integrity mode.
26543         * rtsfind.adb (RTE): Give message if we try to find an entity that
26544         is not available in high integrity mode.
26546         * rtsfind.ads:
26547         (OK_To_Use_In_HIE_Mode): New array.
26548         (RTE): May return Empty in high integrity mode.
26550         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
26551         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
26553         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
26554         unit if not inlined always and in no runtime mode. Fixes problem
26555         caused by new Rtsfind changes.
26557         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
26558         body is deleted.
26560         * rtsfind.adb (RTE): Make sure we do not try to load unit after
26561         giving message for entity not available in high integrity mode.
26563 2001-10-11  Pascal Obry <obry@gnat.com>
26565         * impunit.adb: Add GNAT.CRC32.
26567 2001-10-11  Ed Schonberg <schonber@gnat.com>
26569         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
26570         properly the case where one universal operand in a non-static
26571         exponentiation of a real literal.
26573 2001-10-11  Ed Schonberg <schonber@gnat.com>
26575         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
26576         clause, return the gobal finalization list, for lack of anthing else.
26578 2001-10-11  Ed Schonberg <schonber@gnat.com>
26580         * exp_ch7.adb (Make_Transient_Block): if statement is within
26581         exception handler, always use new transient scope to place Clean
26582         procedure.
26584 2001-10-11  Pascal Obry <obry@gnat.com>
26586         * Makefile.in:
26587         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
26588         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
26589         (GNATLS_RTL_OBJS): add g-crc32.o
26590         (GNATMAKE_RTL_OBJS): add g-crc32.o
26592         * ali-util.adb:
26593         (CRC_Match): new function.
26594         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
26595         instead of the previous simple checksum algorithm.
26596         (Time_Stamp_Mismatch): use CRC_Match for comparison.
26597         (Set_Source_Table): idem.
26599         * ali-util.ads:
26600         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
26601         instead of simple checksum.
26602         (CRC_Match): new function.
26603         (CRC_Error): new constant.
26605         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
26606         a CRC now and not a simple checksum. A CRC uses lower-case hex
26607         letters, fixes ambiguity in parsing.
26609         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
26610         is what this variable will store.
26612         * bcheck.adb: Change reference to chechsum in comments by CRC.
26613         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
26614         rename All_Checksum_Match to All_CRC_Match. Change due to API
26615         renaming since now GNAT does not use a simple checksum but a
26616         CRC using GNAT.CRC32.
26618         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
26619         now and not anymore a simple checksum.
26621         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
26622         places.
26624         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
26626         * scans.adb:
26627         (Restore_Scan_State): rename Checksum to CRC.
26628         (Save_Scan_State): idem.
26630         * scans.ads:
26631         With GNAT.CRC32.
26632         (Checksum): rename to CRC.
26633         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
26635         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
26636         GNAT.CRC32).  Update copyright notice.
26638         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
26639         GNAT.CRC32).  Update copyright notice.
26641         * scn.adb:
26642         (Accumulate_Checksum): removed.
26643         (Update): new procedure. Add a wide-character into the CRC.
26645         * sinput-l.adb:
26646         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
26647         (Load_File): fix initialization of S (change Source_Checksum to
26648         Source_CRC)
26650         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
26651         Source_CRC in S initialization.
26653         * sinput.adb (Source_Checksum): renamed to Source_CRC.
26655         * sinput.ads (Source_Checksum): renamed to Source_CRC.
26656         Update comments for the CRC.
26658         * types.adb (Hex): Use lowercase for the letter part.
26660         * types.ads (Get_Hex_String): Returns the hexadecimal representation
26661         for a word. This is currently used only for CRC. In previous version,
26662         the checksum was using a representation with all letter being
26663         upper-case. With the new implementation (using CRC) we do not remove
26664         the 32th bit of the CRC, so we can have an upper-case starting letter
26665         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
26666         It is ambigous since the CRC was optional and could be followed by
26667         options like EB, EE. So now this routines uses lower-case letter for
26668         the hexadecimal representation. Strange enough only lower case letters
26669         where checked in Scan_ALI (even if this was not a possible case).
26671         * gnatvsn.ads (Library_Version): changed to 3.15a.
26673         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
26674         for the compiler.
26676         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
26677         for the compiler.
26679         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
26680         Add 2001 to copyright notice
26681         (Accumulate_Checksum): Modify to use System.CRC32.
26683         * ali-util.ads: Redo changes of previous revision to continue to use
26684         the word Checksum. Add 2001 to copyright notice.
26686         * ali.adb: Undo some of previous changes, not needed.
26687         Keep the change for lower case letters in the checksum.
26689         * ali.ads: Undo previous change not needed.
26691         * bcheck.adb: Undo most of previous change, not needed.
26692         But do use Checksums_Match for checksum comparison.
26694         * gnatls.adb: Undo most of previous change, not needed.
26695         But do use Checksums_Match for comparing checksums.
26697         * lib-load.adb: Undo previous change, not needed.
26699         * lib-writ.adb: Undo previous change, not needed.
26701         * lib-writ.ads: Document that checksums use lower case,
26702         not upper case letters.
26704         * scans.adb: Undo previous change, not needed
26706         * scans.ads: Undo previous change, not needed.
26708         * scn-nlit.adb: Undo previous changes, not needed.
26710         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
26712         * scn.adb:
26713         (Accumulate_Checksum): Use System.CRC32.
26714         (Initialize_Checksum): New procedure.
26715         Remove other changes of previous revision.
26717         * sinput-p.adb: Undo previous change, not needed.
26719         * sinput.adb: Undo previous change, not needed.
26721         * sinput-l.adb: Undo previous change, not needed.
26723         * sinput.ads: Undo previous change, not needed.  Keep only comment
26724         on new checksum algorithm
26726         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
26727         Also remove a-tags and a-stream from GNAT sources.
26729         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
26731         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
26733 2001-10-11  Geert Bosch  <bosch@gnat.com>
26735         * einfo.h: Regenerate.
26737         * nmake.ads: Regenerate.
26739         * nmake.adb: Regenerate.
26741         * sinfo.h: Regenerate.
26743         * treeprs.adb: Regenerate.
26745 2001-10-10  Geert Bosch  <bosch@gnat.com>
26747         * gnat-style.texi: New file describing coding guidelines for Ada.
26749 2001-10-10  Ed Schonberg <schonber@gnat.com>
26751         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
26752         is Flag174.
26754 2001-10-10  Geert Bosch  <bosch@gnat.com>
26756         * snames.ads: Add new names for project facility.
26758         * snames.adb: Update to reflect snames.ads changes.
26760         * snames.h: Update to reflect snames.ads changes.
26762 2001-10-10  Vincent Celier <celier@gnat.com>
26764         * make.adb:
26765         (Add_Switches): reflect the changes for the switches attributes
26766         Default_Switches indexed by the programming language,
26767         Switches indexed by the file name.
26768         (Collect_Arguments_And_Compile): Idem.
26769         Reflect the attribute name changes.
26771         * prj-attr.adb:
26772         (Initialisation_Data): Change the names of some packages and
26773         attributes.
26774         (Initialize): process case insensitive associative arrays.
26776         * prj-attr.ads:
26777         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
26779         * prj-dect.adb:
26780         (Parse_Attribute_Declaration): For case insensitive associative
26781          arrays, set the index string to lower case.
26783         * prj-env.adb:
26784         Reflect the changes of the project attributes.
26786         * prj-nmsc.adb:
26787         Replace Check_Naming_Scheme by Ada_Check and
26788         Language_Independent_Check.
26790         * prj-nmsc.ads:
26791         Replaced Check_Naming_Scheme by 2 procedures:
26792         Ada_Check and Language_Independent_Check.
26794         * prj-proc.adb:
26795         (Process_Declarative_Items): For case-insensitive associative
26796         arrays, set the index string to lower case.
26797         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
26798         Prj.Nmsc.Check_Naming_Scheme.
26800         * prj-tree.adb:
26801         (Case_Insensitive): New function
26802         (Set_Case_Insensitive): New procedure
26804         * prj-tree.ads:
26805         (Case_Insensitive): New function
26806         (Set_Case_Insensitive): New procedure
26807         (Project_Node_Record): New flag Case_Insensitive.
26809         * prj-util.adb:
26810         (Value_Of): new function to get the string value of a single
26811         string variable or attribute.
26813         * prj-util.ads:
26814         (Value_Of): new function to get the string value of a single
26815         string variable or attribute.
26817         * prj.adb:
26818         (Ada_Default_Spec_Suffix): New function
26819         (Ada_Default_Impl_Suffix): New function
26820         Change definitions of several constants to reflect
26821         new components of record types.
26823         * prj.ads:
26824         (Naming_Data): Change several components to reflect new
26825         elements of naming schemes.
26826         (Project_Data): New flags Sources_Present and
26827         Language_Independent_Checked.
26828         (Ada_Default_Spec_Suffix): New function.
26829         (Ada_Default_Impl_Suffix): New function.
26831         * snames.ads:
26832         Modification of predefined names for project manager: added
26833         Implementation, Specification_Exceptions, Implementation_Exceptions,
26834         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
26835         Default_Switches, _Languages, Builder, Cross_Reference,
26836         Finder. Removed Body_Part, Specification_Append, Body_Append,
26837         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
26838         Gnatlink.
26840         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
26841         Add comments.
26843         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
26844         not that it is Nil_Variable_Value.
26846         * prj.ads: Add ??? for uncommented declarations
26848 2001-10-10  Ed Schonberg <schonber@gnat.com>
26850         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
26851         constant, do not indicate possible modification, so that gigi can
26852         treat it as a bona fide constant.
26854 2001-10-10  Robert Dewar <dewar@gnat.com>
26856         * sem_prag.adb: Add processing for pragma External.
26858         * snames.ads: Add entry for pragma External.
26860         * par-prag.adb: Add pragma External.
26862         * snames.adb: Updated to match snames.ads.
26864 2001-10-10  Ed Schonberg <schonber@gnat.com>
26866         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
26867         a dynamic task if the allocator appears in an indexed assignment
26868         or selected component assignment.
26870         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
26871         For a dynamic task in an assignment statement, use target of
26872         assignment to generate meaningful name.
26874 2001-10-10  Ed Schonberg <schonber@gnat.com>
26876         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
26877         a generic package.
26879         * einfo.ads: Body_Entity is also defined for generic package.
26880         Documentation change only
26882         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
26883         others_choice for a discriminated component initialization,
26884         convert discriminant references into the corresponding discriminals.
26886         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
26887         only if original type is private and expression has to be wrapped
26888         in a conversion.
26890         * checks.adb:
26891         (Apply_Constraint_Check): Do not perform length check
26892         if expression is an aggregate with only an others_choice.
26893         (Length_N_Cond): two references to the same in_parameter
26894         (typically the discriminal in an init_proc) denote the same value.
26895         Two useful optimization uncovered by bugfixes above.
26897 2001-10-10  Robert Dewar <dewar@gnat.com>
26899         * xeinfo.adb: Change int to char in translation of enumeration types.
26900         This fixes a problem in the C representation of component alignment.
26901         Add 2001 to copyright notice
26903 2001-10-10  Richard Kenner <kenner@gnat.com>
26905         * decl.c: (validate_size): Do check size of object of integral type
26906         if it is a packed array type.
26908 2001-10-10  Richard Kenner <kenner@gnat.com>
26910         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
26911         VAR_DECL for constant if not Is_Public but -O0.
26913 2001-10-10  Richard Kenner  <kenner@gnat.com>
26915         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
26917 2001-10-10  Geert Bosch  <bosch@gnat.com>
26919         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
26920         use '/' as switch character, allowing for absolute file names.
26922 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
26924         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
26925         FSF address.
26927 2001-10-08  Geert Bosch  <bosch@gnat.com>
26929         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
26930         Automatically build utilities when files need to be regenerated.
26932 2001-10-08  Geert Bosch  <bosch@gnat.com>
26934         * xsnames.adb: New utility for updating snames.ads and snames.adb
26936 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
26938         * Make-lang.in (ADAFLAGS): Add -W -Wall.
26939         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
26940         (gnat1): Also depend on attribs.o.
26941         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
26942         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
26943         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
26944         (ADAFLAGS): Add -W -Wall.
26945         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
26946         take out CFLAGS.
26948         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
26949         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
26950         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
26951         Use $(ADAC), not $(CC), as compilation command.
26953         (gnattools): Depend directly on tools to build, don't use
26954         recursive make.
26955         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
26957         * einfo.h, sinfo.h: New files (autogenerated).
26959 2001-10-08  Richard Henderson  <rth@redhat.com>
26961         * comperr.adb (Abort_In_Progress): New.
26962         (Compiler_Abort): Use it to prevent recursion.
26964 2001-10-08  Robert Dewar <dewar@gnat.com>
26966         * atree.adb: Set Error_Posted in Error node, helps error recovery.
26968         * par-endh.adb (Output_End_Expected): We should also not test
26969         Error_Posted on the Error node, since now it is always set.
26971         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
26972         to help error recovery. Part of general work on 9407-004.
26974         * par.adb: Add ??? for misuse of error
26976         * sem_res.adb:
26977         (Resolve): Defend against Error, fixes 9407-003.
26978         (Resolve_Discrete_Subtype_Indication): Defend against Error.
26980         * sinfo.ads (N_Error): Now has Etype field (which will be set
26981         to Any_Type to help error recovery).
26983 2001-10-08  Richard Kenner (kenner@gnat.com)
26985         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
26986         Consistently set MEM attributes from expression; fixes
26987         bootstrap failure on x86.
26989 2001-10-08  Geert Bosch  (bosch@gnat.com)
26991         * 5oosinte.adb: Add 2001 to copyright notice.
26993 2001-10-08  Geert Bosch  (bosch@gnat.com)
26995         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
26997         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
26999 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
27001         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
27003 2001-10-05  Geert Bosch  (bosch@gnat.com)
27005         * adaint.h: Small formatting fix.
27007 2001-10-04  Geert Bosch  <bosch@gnat.com>
27009         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
27010         Arg is int, not FILE *, in dummy version of functions.
27012         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
27013         Arg is int, not FILE *.
27015 2001-10-04  Geert Bosch  <bosch@gnat.com>
27017         * 3lsoccon.ads: Added file, missed with initial check ins.
27019         * 4lintnam.ads: Fix header format.
27020         Change Linux to GNU/Linux.
27022         * 5iosinte.adb: Change Linux to GNU/Linux.
27024         * 5iosinte.ads: Change Linux to GNU/Linux.
27026         * 5itaprop.adb: Change Linux to GNU/Linux.
27028         * 5itaspri.ads: Change Linux to GNU/Linux.
27029         Update copyright notice.
27031         * 5lintman.adb: Change Linux to GNU/Linux.
27033         * 5lml-tgt.adb: Change Linux to GNU/Linux.
27035         * 5losinte.ads: Change Linux to GNU/Linux.
27037         * 5lsystem.ads: Change Linux to GNU/Linux.
27039         * 5qosinte.adb: Change Linux to GNU/Linux.
27041         * 5qosinte.ads: Change Linux to GNU/Linux.
27043         * 5qparame.ads: Change Linux to GNU/Linux.
27045         * 5qtaprop.adb: Change Linux to GNU/Linux.
27047         * 5qtaspri.ads: Change Linux to GNU/Linux.
27048         Add 2001 to copyright notice.
27050         * 5vintman.ads: Change Linux to GNU/Linux.
27051         Fix header format.  Add 2001 to copyright notice.
27053         * g-soccon.ads: Change Linux to GNU/Linux.
27055         * g-trasym.ads: Change Linux to GNU/Linux.
27056         Add 2001 to copyright notice.
27058         * memtrack.adb: Change Linux to GNU/Linux.
27060         * s-intman.ads: Change Linux to GNU/Linux.
27061         Add 2001 to copyright notice.  Fix header format.
27063         * s-stache.adb: Change Linux to GNU/Linux.
27065         * adaint.c: Change Linux to GNU/Linux.
27067         * cio.c: Change Linux to GNU/Linux.
27069         * cstreams.c: Change Linux to GNU/Linux.
27071         * init.c: Change Linux to GNU/Linux.
27073         * gmem.c: Change Linux to GNU/Linux.
27075         * tracebak.c: Change Linux to GNU/Linux.
27078 2001-10-02  Geert Bosch  <bosch@gnat.com>
27080         * misc.c (insert_default_attributes): Add dummy version.