gcc/
[official-gcc.git] / gcc / ada / ChangeLog
blobd86bfeb22eb3a8c18158f8565022e2c53a7bd241
1 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
3         PR ada/22255
4         * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
6 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
8         PR ada/34799
9         * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
10         that underlying type is present.
12 2008-02-26  Tom Tromey  <tromey@redhat.com>
14         * misc.c (internal_error_function): Remove test of
15         USE_MAPPED_LOCATION.
16         * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
17         (Sloc_to_locus): Remove old location code.
19 2008-02-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21         * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
22         `i.e.' by adding comma or `@:' as appropriate.
23         * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
24         plain characters `C', use `@samp{C}'.
25         * gnat_ugn.texi (File Naming Rules, About gnatkr)
26         (Krunching Method): Likewise.
28         * gnat_ugn.texi (Conventions): List environment variables and
29         metasyntactic variables.
30         (Compiling Programs): Fix notation of metasyntactic variables.
31         Add @file where appropriate.  Use @file for file extensions,
32         @samp for strings.
33         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
34         instead of @file, @env instead of @code.
36 2008-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38         PR documentation/15479
39         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
40         and `...' with `@dots{}' or `@enddots{}'.
42         PR documentation/15479
43         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
44         use @command instead of @code, @option instead of @samp or @code,
45         @code instead of @var, @samp instead of @file.
47         PR documentation/15479
48         * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
49         in Makefile rules, by using `&&' rather than `;'.
51 2008-02-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53         PR documentation/15479
54         * gnat_ugn.texi: In non-code, avoid space before colon.
55         (Regular Expressions in gnatfind and gnatxref): Fix indentation.
56         (Examples of gnatxref Usage): Use @command{vi} instead of
57         @file{vi}.
58         (Character Set Control): Do not use @code for UTF-8.
59         (Validity Checking): Fix typo "NaNs" instead of "NaN's".  Do not
60         use @code for IEEE.
61         * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
62         sample.
63         * gnat_rm.texi, gnat_ugn.texi: Fix typos.  Bump copyright years.
65 2008-02-11  Joel Sherrill <joel.sherrill@oarcorp.com>
67         PR ada/35143
68         * env.c: Add __rtems__ to if defined.
69         * s-osinte-rtems.adb: Add To_Target_Priority.  Fix formatting.
70         * s-osinte-rtems.ads: Add To_Target_Priority prototype and
71         PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants.  Add
72         pragma Convention as required.
73         * gsocket.h: Make compile in and out of RTS.
74         * Makefile.in: Add system-rtems.ads.  Build DEC extensions.
75         Use g-soccon-rtems.ads.
76         * g-soccon-rtems.ads, system-rtems.ads: New files.
78 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
80         PR other/35107
81         * Make-lang.in (gnat1): Add $(GMPLIBS).
83 2008-01-26  Eric Botcazou  <ebotcazou@adacore.com>
85         * decl.c (components_to_record): Improve comment.
87 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
89         * decl.c (components_to_record): Do not reuse the empty union type
90         if there is a representation clause on the record.
91         * trans.c (addressable_p): Return true for INTEGER_CST.
93 2008-01-21  Eric Botcazou  <ebotcazou@adacore.com>
95         * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
96         in pointer arithmetics.
97         * utils2.c (build_allocator): Likewise.
99 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
101         * utils.c (build_function_stub): Properly build the call expression.
103 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
105         * decl.c (gnat_to_gnu_entity) <object>: Process renamings
106         before converting the expression to the type of the object.
107         * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
108         Stabilize constructors for special wrapping types.
110 2008-01-13  Eric Botcazou  <ebotcazou@adacore.com>
112         * trans.c (call_to_gnu):Invoke the addressable_p predicate only
113         when necessary.  Merge some conditional statements.  Update comments.
114         Rename unchecked_convert_p local variable to suppress_type_conversion.
115         Do not suppress conversions in the In case.
116         (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
117         into account on non strict-alignment platforms.
119 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
121         * utils.c (aggregate_type_contains_array_p): New predicate.
122         (create_field_decl): In a packed record, force byte alignment
123         for fields without specified position that contain an array.
125 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
127         * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
129 2008-01-10  John David Anglin  <dave.anglin.@nrc-cnrc.gc.ca>
131         PR ada/34466
132         * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
133         sysconf call.
134         (bit_field): New packed boolean type used by cpu_set_t.
135         (cpu_set_t): New type corresponding to the C type with
136         the same name. Note that on the Ada side we use a bit
137         field array for the affinity mask. There is not need
138         for the C macro for setting individual bit.
139         (pthread_setaffinity_np): New imported routine.
141 2008-01-03  Tero Koskinen <tero.koskinen@iki.fi>
143         PR ada/34647
144         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
145         on OpenBSD as is done on other BSD systems.
147         PR ada/34645
148         * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
149         getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
150         I/O.
152         PR ada/34644
153         * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
154         clearenv().
156         PR ada/34646
157         * init.c (__gnat_error_handler, __gnat_install_handler,
158         __gnat_init_float): Define for OpenBSD.
160         * initialize.c (__gnat_initialize): Define for OpenBSD.
162 2007-12-27  Samuel Tardieu  <sam@rfc1149.net>
164         PR ada/34553
165         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
166         instead of mktemp() or tmpnam() on NetBSD.
168 2007-12-23  Eric Botcazou  <ebotcazou@adacore.com>
170         * trans.c (call_to_gnu): Make the temporary for non-addressable
171         In parameters passed by reference.
172         (addressable_p): Return true for STRING_CST and CALL_EXPR.
174 2007-12-19  Robert Dewar  <dewar@adacore.com>
176         * g-expect-vms.adb, g-expect.adb, s-poosiz.adb: 
177         Add pragma Warnings (Off) for unassigned IN OUT arguments
179         * sem_warn.adb (Output_Reference): Suppress messages for internal names
180         (Check_References): Extensive changes to tune up warnings
181         (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
182         (Has_Pragma_Unmodifed_Check_Spec): New function
183         (Check_References): Implement pragma Unmodified
184         (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
186         * par-prag.adb: Dummy entry for pragma Unmodified
188         * sem_prag.adb: Implement pragma Unmodified
190         * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
191         (Proc_Next_Component_Or_Discriminant): Fix typo.
192         Update comments.
194         * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
195         Unmodified.
196         (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
197         because the former already takes care of discarding the result.
198         (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
199         Add comment.
201         * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
203 2007-12-19  Eric Botcazou  <ebotcazou@adacore.com>
205         * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
206         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
207         system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
208         system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
209         system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
210         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
211         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
212         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
213         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
214         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
215         (Dynamic_Trampolines_Used): Delete.
217         * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
218         Turn on stack probing mechanism on LynxOS.
220 2007-12-19  Bob Duff  <duff@adacore.com>
222         * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
223         the resulting tail recursion by hand. This prevents running out of
224         memory on deeply nested concatenations, since Field2 is where the left
225         operand of concatenations is stored.
226         Fix bug (was returning OK_Orig in some cases). Fix return subtype to
227         clarify that it can only return OK or Abandon.
229         * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
230         operand by iteration, in order to avoid running out of memory on
231         deeply-nested concatenations. Use the Parent pointer to get back up the
232         tree.
233         (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
234          Resolve_Op_Concat_Rest): New procedures split out of
235         Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
236         clearer.
238         * checks.adb (Remove_Checks): Use Traverse_Proc instead of
239         Traverse_Func, because the former already takes care of discarding the
240         result.
242         * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
243         because the former already takes care of discarding the result.
244         (Remove_Warning_Messages): Use appropriate subtype for Status and
245         Discard 
247 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
249         * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
250         discriminants forces expansion of the aggregate into assignments.
251         (Init_Record_Controller):  If the type of the aggregate is untagged and
252         is not inherently limited, the record controller is not limited either.
254 2007-12-19  Robert Dewar  <dewar@adacore.com>
256         * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
257         handling compile time known size of record or array (case of front end
258         layout active, e.g. in GNAAMP).
260 2007-12-19  Javier Miranda  <miranda@adacore.com>
262         * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
263         that forces the construction of static dispatch tables in case of
264         record subtypes.
266 2007-12-19  Robert Dewar  <dewar@adacore.com>
268         * exp_ch9.adb (Null_Statements): Moved to library level
269         (Trivial_Accept_OK): New function
270         (Expand_Accept_Declaration): Use Trivial_Accept_OK
271         (Expand_N_Accept_Statement): Use Trivial_Accept_OK
273 2007-12-19  Robert Dewar  <dewar@adacore.com>
275         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
276         in complex case where array is Volatile.
278 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
280         * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
281         properly the Ada2005 rules concerning when the current instance of a
282         record type is aliased.
284 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
286         * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
287         mangled declaration
288         (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
289         declarations.
290         (P_Variant_Part): Cleaner patch for parenthesized discriminant
292 2007-12-19  Vincent Celier  <celier@adacore.com>
294         * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
295         package is not known
297         * prj-attr.ads (Unknown_Package): New constant
298         Do not crash when an unknown package is in several projects
300         * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
301         ignored
303         * prj-nmsc.adb (Check): Remove obsolete code related to no longer
304         existing package Language_Processing.
306 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
307             Gary Dismukes  <dismukes@adacore.com>
308             Samuel Tardieu  <sam@rfc1149.net>
310         PR ada/15803, ada/15805
311         * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
312         illegal access subtypes when there is a constrained partial view.
313         (Check_For_Premature_Usage): New procedure inside
314         Access_Subprogram_Declaration for checking that an access-to-subprogram
315         type doesn't reference its own name within any formal parameters or
316         result type (including within nested anonymous access types).
317         (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
318         (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
319         context is an access_to_variable, the expression cannot be an
320         access_to_constant.
322 2007-12-19  Bob Duff  <duff@adacore.com>
324         * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
325         (Analyze_Concatenation): Use iteration instead of recursion in order
326         to avoid running out of stack space for deeply nested concatenations.
328 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
329             Gary Dismukes  <dismukes@adacore.com>
331         * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
332         whose renamed entity is a subprogram that requires overriding.
333         (Premature_Usage): Test for the case of N_Full_Type_Declaration when
334         issuing an error for premature usage and issue a message that says
335         'type' rather than 'object'.
337 2007-12-19  Gary Dismukes  <dismukes@adacore.com>
339         PR ada/34149
340         * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
341         presence of a statically tagged operand (Present (Static_Tag)) with
342         test for Indeterm_Ancestor_Call when determining whether to propagate
343         the static tag to tag-indeterminate operands (which forces dispatching
344         on such calls).
345         (Check_Controlling_Formals): Ada2005, access parameters can have
346         defaults.
347         (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
348         not insert subprogram in list of primitive operations if already there.
350 2007-12-19  Tristan Gingold  <gingold@adacore.com>
352         * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
353         global variable.
355 2007-12-19  Thomas Quinot  <quinot@adacore.com>
357         Part of PR ada/33688
358         * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
359         datagram info on Linux.
361 2007-12-19  Vincent Celier  <celier@adacore.com>
363         * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
364         that the source path name is always found in the dependencies.
366 2007-12-19  Robert Dewar  <dewar@adacore.com>
368         * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
369         Fix name of Wide_Wide_Latin_1/9 file names
370         Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
371         Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
372         Add missing documentation for Ada.Command_Line.Response_File
373         Update list of warning letters for Warnings pragma
374         Add documentation for pragma Unmodified
376 2007-12-19  Samuel Tardieu  <sam@rfc1149.net>
378         * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
380 2007-12-17  Arnaud Charlet  <charlet@adacore.com>
382         * s-vxwork-alpha.ads: Removed, no longer used.
384 2007-12-15  Jakub Jelinek  <jakub@redhat.com>
386         * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
388 2007-12-13  Samuel Tardieu  <sam@rfc1149.net>
390         PR ada/34360
391         * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
392         mlib-tgt-specific.adb.
394 2007-12-13  Bob Duff  <duff@adacore.com>
396         * trans.c (Attribute_to_gnu): Check for violations of the
397         No_Implicit_Dynamic_Code restriction. This checking used to be done in
398         the front end, but is moved here so we can make it more accurate.
400 2007-12-13  Pascal Obry  <obry@adacore.com>
402         * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
403          version is provided for older GNU/Linux distribution not
404          supporting thread affinity sets.
405         
406         * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
407         call.
408         (bit_field): New packed boolean type used by cpu_set_t.
409         (cpu_set_t): New type corresponding to the C type with
410         the same name. Note that on the Ada side we use a bit
411         field array for the affinity mask. There is not need
412         for the C macro for setting individual bit.
413         (pthread_setaffinity_np): New imported routine.
414         
415         * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
416         no null.
417         (Create_Task): Set the processor affinity mask if information
418         is present.
419         
420         * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
421         
422 2007-12-13  Robert Dewar  <dewar@adacore.com>
424         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads, 
425         s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads, 
426         s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads, 
427         s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
428         s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
429         s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads, 
430         s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads, 
431         i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
432         for subprogram pointers.
434         * g-ctrl_c.adb: New file.
436         * g-ctrl_c.ads (Install_Handler): New body.
438         * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
439         instead of obsolete function Is_Always_Inlined.
440         (Freeze_Entity): check for tagged type in imported C subprogram
441         (Freeze_Entity): check for 8-bit boolean in imported C subprogram
442         (Freeze_Entity): check for convention Ada subprogram pointer in
443         imported C subprogram.
444         (Freeze_Fixed_Point_Type): In the case of a base type where the low
445         bound would be chopped off and go from negative to zero, force
446         Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
447         bound) so that the size computation for the base type will take
448         negative values into account.
450 2007-12-13  Eric Botcazou  <ebotcazou@adacore.com>
451             Bob Duff  <duff@adacore.com>
452             Tristan Gingold  <gingold@adacore.com>
454         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
455         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads, 
456         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
457         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
458         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads, 
459         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
460         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
461         system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
462         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
463         system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
464         system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
465         (Always_Compatible_Rep): New flag to control trampolines globally.
466         (Dynamic_Trampolines_Used): New flag for implementing the
467         No_Implicit_Dynamic_Code restriction more correctly (not yet used,
468         and not yet set correctly for some targets).
470         * s-taprop-vxworks.adb: Use stack limit method of stack checking.
471         Simply indirectly call s-stchop when a task is created.
473         * ali.ads: 
474         New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
475         appears as an argument (entries A) in an ALI file.
477         * fe.h (Stack_Check_Limits): Declare new target parameter.
478         (Check_Implicit_Dynamic_Code_Allowed): New procedure.
480         * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
481         This variable is declared in C to be sure not subject to elaboration
482         code.
483         (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
484         Storage_Error.
486         * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
487         (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
489         * s-stchop.ads: Add comments.
491         * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
492         limit method of stack checking.
494         * s-stchop-limit.ads: New file.
496 2007-12-13  Robert Dewar  <dewar@adacore.com>
498         * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb, 
499         a-cihama.adb, g-awk.adb, 
500         s-inmaop-posix.adb: Update handling of assigned value/unreferenced
501         warnings
503         * exp_smem.adb: Update handling of assigned value/unreferenced warnings
505         * sem.adb: Update handling of assigned value/unreferenced warnings
507         * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
509         * lib-xref.ads: Improve documentation for k xref type
511         * lib-xref.adb: 
512         Update handling of assigned value/unreferenced warnings
513         (Generate_Reference): Warning for reference to entity for which a
514         pragma Unreferenced has been given should be unconditional.
515         If the entity is a discriminal, mark the original
516         discriminant as referenced.
518         * sem_warn.ads, sem_warn.adb
519         (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
520         no entities referenced in package
521         (Check_One_Unit): Don't give message about no entities referenced in
522         a package if a pragma Unreferenced has appeared.
523         Handle new warning flag -gnatw.a/-gnatw.A
524         Update handling of assigned value/unreferenced warnings
526         * atree.h: Add flags up to Flag247
527         (Flag231): New macro.
529 2007-12-13  Jose Ruiz  <ruiz@adacore.com>
531         * adaint.h: (__gnat_plist_init): Not defined for RTX.
533         * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
534         RTX systems.
536         * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
537         (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
538         EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
539         GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
541         * mingw32.h: 
542         Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
544         * sysdep.c (winflush_function for RTX): Procedure that does nothing
545         since we only have problems with Windows 95/98, which are not
546         supported by RTX.
547         (__gnat_ttyname): Return the empty string on Nucleus, just as
548         done on vxworks.
550 2007-12-13  Robert Dewar  <dewar@adacore.com>
552         * a-textio.adb, a-textio.ads: 
553         Extensive changes to private part for wide character encoding
555         * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
556         (Look_Ahead): Fix mishandling of encoded sequences
557         Move declaration of Wch_Con to private part (should not be visible)
559         * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
560         UTF-8. Probably this is never used, but if it is, brackets is
561         clearly correct.
563         * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
564         setting wide character encoding for no main program case and when
565         encoding is specified using -W?
566         Initialize stack limit of environment task if stack limit method of
567         stack checking is enabled.
568         (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
569         (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
570         (Get_Main_Unit_Name): New function.
571         (Gen_Adainit_Ada): Add call to main program for .NET when needed.
572         (Gen_Output_File): Set Bind_Main_Program to True for .NET
574         * bindusg.adb: Add line for -Wx switch
576         * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
577         Add comments
578         Add new useful constant WC_Longest_Sequences
580         * switch-b.adb: Clean up handling of -Wx switch
581         For -gnatWx, set Wide_Character_Encoding_Method_Specified
583         * switch-c.adb: -gnatg activates warning on assertion errors
584         For -gnatWx, set Wide_Character_Encoding_Method_Specified
586         * s-wchcon.adb: (Is_Start_Of_Encoding): New function
588 2007-12-13  Robert Dewar  <dewar@adacore.com>
589             Ed Schonberg  <schonberg@adacore.com>
591         * a-ngcoty.adb: New pragma Fast_Math
593         * opt.adb: New pragma Fast_Math
595         * par-prag.adb: 
596         Add Implemented_By_Entry to the list of pragmas which do not require any
597         special processing.
598         (Favor_Top_Level): New pragma.
599         New pragma Fast_Math
601         * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
602         (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
603         Expand_Allocator_Expression): Take into account VM_Target
604         (Expand_Attribute, case 'Identity):  Handle properly the case where
605         the prefix is a task interface.
606         New pragma Fast_Math
608         * par.adb (Next_Token_Is): New function
609         (P_Pragma): Add Skipping parameter
610         (U_Left_Paren): New procedure
611         (U_Right_Paren): New procedure
612         New pragma Fast_Math
614         * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
615         subunit
616         New pragma Fast_Math
618         * sem_prag.adb: Add significance value to table Sig_Flag for pragma
619         Implemented_By_Entry.
620         (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
621         (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
622         items, since it can apply to more than one overloadable entity. Set
623         new flag Has_Pragma_Inline_Always for Inline_Always case.
624         (Analyze_Pragma, case Complex_Representation): Improve error message.
625         (Analyze_Pragma, case Assert): When assertions are disabled build the
626         rewritten code with Sloc of expression rather than pragma, so new
627         warning about failing is not deleted.
628         (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
629         protected types and update error message to reflect that. Test whether
630         the protected type is allowed for the pragma (an error is issued if the
631         type has any entries, or components that do not have preelaborable
632         initialization).
633         New pragma Fast_Math
634         (Analyze_Pragma, case No_Return): Handle generic instance
636         * snames.h, snames.ads, snames.adb: 
637         Add new predefined name for interface primitive _Disp_Requeue.
638         New pragma Fast_Math
640         * a-tags.ads, a-tags.adb: New calling sequence for
641         String_To_Wide_[Wide_]String
642         (Secondary_Tag): New subprogram.
644         * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
645         from Exp_Attr
646         New calling sequence for String_To_Wide_[Wide_]String
647         (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
648         the use of the secondary stack for image routines.
650         * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
651         calling sequence for String_To_Wide_[Wide_]String
653         * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
654         Ada 95 mode
655         (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
656         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
658         * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
659         (P_Formal_Part): Use Skipping parameter in P_Pragma call
660         to improve error recovery
662         * par-util.adb (Next_Token_Is): New function
663         (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
665         * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
666         semicolon if missing
667         (P_Pragma): Implement new Skipping parameter
668         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
669         Fix location of flag for unrecognized pragma message
671         * par-tchk.adb (U_Left_Paren): New procedure
672         (U_Right_Paren): New procedure
674 2007-12-13  Geert Bosch  <bosch@adacore.com>
676         * a-tifiio.adb: 
677         (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
678         the second or later Scaled_Divide would omit leading zeroes,
679         resulting in too few digits produced and a Layout_Error as result.
680         (Put): Initialize Pos.
682 2007-12-13  Robert Dewar  <dewar@adacore.com>
684         atree.ads, atree.adb (Flag231..Flag247): New functions
685         (Set_Flag231..Set_Flag247): New procedures
686         (Basic_Set_Convention): Rename Set_Convention to be
687         Basic_Set_Convention
688         (Nkind_In): New functions
689         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
691         * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
692         instead
693          of obsolete function Is_Always_Inlined
694         (Register_Predefined_DT_Entry): Initialize slots of the second
695         secondary dispatch table.
696         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
697         (Expand_N_Function_Call): Remove special provision for stack checking.
699         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
700         Include _Disp_Requeue in the list of predefined operations.
701         (Find_Interface_ADT): Modified to fulfill the new specification.
702         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
704         * par-ch4.adb, nlists.ads, nlists.adb: 
705         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
707         * sinfo.ads, sinfo.adb: (Nkind_In): New functions
708         Fix location of flag for unrecognized pragma message
710         * sem_ch7.adb: Use Nkind_In
712 2007-12-13  Vincent Celier  <celier@adacore.com>
714         * opt.ads: 
715         Indicate what flags are used by the Project Manager, gprbuild and
716         gprclean.
717         (Opt.Follow_Links_For_Dirs): New flag
718         (Warn_On_Assertion_Failure): New flag
719         (Wide_Character_Encoding_Method_Specified): New flag
720         (Suppress_All_Inlining): New switch set by -fno-inline
721         (Real_VMS_Target): New flag
722         New pragma Fast_Math
724 2007-12-13  Robert Dewar  <dewar@adacore.com>
726         * back_end.adb: Recognize -fno-inline
728 2007-12-13  Robert Dewar  <dewar@adacore.com>
730         * checks.adb: Fix optimization problem with short-circuited form
732 2007-12-13  Bob Duff  <duff@adacore.com>
734         * clean.adb (Usage): Add line for -aP
735         (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
736         with a parameter "procedure Usage", instead of passing a pointer to a
737         procedure. This is to eliminate trampolines (since the Usage procedure
738         is often nested in a main procedure, and it would be inconvenient to
739         unnest it).
741         * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
742         to be generic, with a parameter "procedure Callback (...)", instead of
743         passing a pointer to a procedure. This is to eliminate trampolines
744         (since the Callback procedure is usually nested).
746         * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb, 
747         gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
748         (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
750         * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
751         Use the generic Heap_Sort_G instead of Heap_Sort_A.
753 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
755         * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
756         (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
757         (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
758         (Renamed_In_Spec): New flag
759         (Has_Pragma_Inline_Always): New flag
760         Add missing doc for pragma Obsolescent_Warning
761         Add missing doc for 17 additional unused flags (230-247)
762         (Is_Derived_Type): Remove condition "not Is_Generic_Type".
763         Alphabetize with clauses.
764         Separate Is_Thunk and Has_Thunks flags
765         (Write_Entity_Flags): Add forgotten entry for Has_Thunks
766         (Related_Interface): Renamed to Related_Type.
767         (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
768         (Set_Is_Flag): Restrict the assertion.
770 2007-12-13  Vincent Celier  <celier@adacore.com>
772         * errout.adb (Output_Source_Line): Do not keep a trailing space after
773         the source line number if the source line is empty.
775 2007-12-13  Geert Bosch  <bosch@adacore.com>
777         * eval_fat.adb (Decompose_Int): Handle argument of zero.
778         (Compose): Remove special casing of zero.
779         (Exponent): Likewise.
780         (Fraction): Likewise.
781         (Machine): Likewise.
782         (Decompose): Update comment.
784 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
786         * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
787         limited ancestor part, initialize controllers of enclosing record
788         before expanding ancestor aggregate.
789         (Gen_Assign): If a component of the aggregate is box-initialized, add
790         code to call Initialize if the component is controlled, and explicit
791         assignment of null if the component is an access type.
793         Handle properly aggregates for limited types that appear in object
794         declarations when the aggregate contains controlled values such as
795         protected types.
796         When expanding limited aggregates into individual components, do not
797         call Adjust on controlled components that are limited.
799 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
801         * expander.adb: Take into account N_Subprogram_Renaming_Declaration
803 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
805         * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
806         predefined primitive _Disp_Requeue.
807         (Make_Predefined_Primitive_Specs): Create the spec for predefined
808         primitive _Disp_Requeue.
809         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
810         type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
811         (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
812         an interface type. In case of limited interfaces we now declare all the
813         predefined primitives associated with synchronized interfaces as
814         abstract.
815         (Predef_Spec_Or_Body): For interface types generate abstract subprogram
816         declarations.
817         (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
818         tagged type is an interface type and there is no user-defined equality
819         function.
820         Add also bodies of predefined primitives associated with synchronized
821         interfaces.
822         (Freeze_Record_Type): Do not build bodies of predefined primitives of
823         interface types because they are now defined abstract.
824         Add missing documentation.
825         (Expand_Record_Controller): Update occurrence of Related_Interface
826         to Related_Type.
827         (Build_Offset_To_Top_Functions): Do nothing in case of VM.
828         (Expand_N_Object_Declaration): Take into account VM_Target when handling
829         class wide interface object declaration.
830         (Expand_Previous_Access_Type): Do not create a duplicate master entity
831         if the access type already has one.
832         (Expand_N_Object_Declaration): Defend against attempt to validity check
833         generic types. Noticed for -gnatVcf specified with previous errors.
835 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
837         * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
838         Expand_Allocator_Expression): Take into account VM_Target
840         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
841         secondary stack when VM_Target /= No_VM
843 2007-12-13  Javier Miranda  <miranda@adacore.com>
844             Ed Schonberg  <schonberg@adacore.com>
846         * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
847         Is_Complation_Unit by Is_Library_Level_Entity in the code
848         that decides if the static dispatch tables need to be built.
849         (Wrap_Transient_Declaration): Do not generate a finalization call if
850         this is a renaming declaration and the renamed object is a component
851         of a controlled type.
853 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
855         * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
856         In the case where the renamed subprogram is a dereference, call
857         Force_Evaluation on the prefix.
859 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
860             Ed Schonberg  <schonberg@adacore.com>
862         * exp_ch9.adb (Expand_N_Asynchronous_Select,
863         Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
864         comment reformatting.
865         (Set_Privals): Inherit aliased flag from formal. From code reading.
866         (Build_Simple_Entry_Call): Out parameters of an access type are passed
867         by copy and initialized from the actual. This includes entry parameters.
868         (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
869         and Ada 2005 models of requeue.
870         (Null_Statements): Still connsider do-end block null if it contains
871         Unreferenced and Warnings pragmas.
872         (Expand_N_Accept_Statement): Do not optimize away null do end if
873         dispatching policy is other than defaulted.
874         (Expand_N_Timed_Entry_Call): When the triggering statement is a
875         dispatching call, manually analyze the delay statement.
876         (Find_Parameter_Type): Move subprogram to Sem_Util.
878 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
879             Javier Miranda  <miranda@adacore.com>
881         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
882         _Disp_Requeue occupies dispatch table slot number 15. Move
883         _Disp_Timed_Select to slot 16.
884         (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
885         generate the spec and body of _Disp_Reqeueue.
886         (Make_DT): Build and initialize the second dispatch table.
887         Handle initialization of RC_Offset when the parent
888         is a private type with variable size components.
889         (Make_Secondary_DT): Complete documentation. Add support to
890         initialize the second dispatch table.
891         (Make_Tags): Generate the tag of the second dispatch table.
892         (Register_Primitive): Add support to register primitives in the
893         second dispatch table.
895 2007-12-13  Pascal Obry  <obry@adacore.com>
897         * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
898         Windows. This signal is used by gnatmake to kill child processes for
899         example.
901 2007-12-13  Javier Miranda  <miranda@adacore.com>
903         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
904         support for generic dispatching constructor calls in which we need to
905         locate the tag of a secondary dispatch table associated with an
906         interface type to properly dispatch the call.
907         (Expand_N_Attribute_Reference [case Address],
908         Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
909         handling of VM targets.
911 2007-12-13  Robert Dewar  <dewar@adacore.com>
912             Ed Schonberg  <schonberg@adacore.com>
914         * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
915         assert fail
917         * ug_words: Add entries for -gnatw.a -gnatw.A
919         * sem_res.adb (Set_String_Literal_Subtype): If the context of the
920         literal is a subtype with non-static constraints, use the base type of
921         the context as the base of the string subtype, to prevent type
922         mismatches in gigi.
923         (Resolve_Actuals): If the actual is an entity name, generate a
924         reference before the actual is resolved and expanded, to prevent
925         spurious warnings on formals of enclosing protected operations.
926         (Analyze_Overloaded_Selected_Component): If type of prefix if
927         class-wide, use visible components of base type.
928         (Resolve_Selected_Component): Ditto.
929         (Resolve_Short_Circuit): Detect case of pragma Assert argument
930         evaluating to False, and issue warning message.
932         * usage.adb: Add lines for -gnatw.a and -gnatw.A
934 2007-12-13  Emmanuel Briot  <briot@adacore.com>
936         * g-calend.ads (No_Time): New constant, to represent an uninitialized
937         time value
939         * g-catiio.ads, g-catiio.adb (Value): Added support for more date
940         formats.
941         (Month_Name_To_Number): New subprogram
943         * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
944         letter to upper-case.
946 2007-12-13  Robert Dewar  <dewar@adacore.com>
947             Ed Schonberg  <schonberg@adacore.com>
949         * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
951         * layout.adb (Resolve_Attribute, case 'Access): If designated type of
952         context is a limited view, use non-limited view when available. If the
953         non-limited view is an unconstrained array, this enforces consistency
954         requirements in 3.10.2 (27).
955         (Layout_Type): For an access type whose designated type is a limited
956         view, examine its declaration to determine if it is an unconstrained
957         array, and size the access type accordingly.
958         (Layout_Type): Do not force 32-bits for convention c subprogram
959         pointers in -gnatdm mode, only if real vms target.
961         * sem_attr.adb (Analyze_Access_Attribute): Use new flag
962         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
963         (Analyze_Access_Attribute,Attribute_Address): Remove checks for
964         violations of the No_Implicit_Dynamic_Code restriction.
965         (Resolve_Attribute, case 'Access): If designated type of context is a
966         limited view, use non-limited view when available. If the non-limited
967         view is an unconstrained array, this enforces consistency requirements
968         in 3.10.2 (27).
969         (Layout_Type): For an access type whose designated type is a limited
970         view, examine its declaration to determine if it is an unconstrained
971         array, and size the access type accordingly.
973 2007-12-13  Vincent Celier  <celier@adacore.com>
975         * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
976         object directory of main project does not exist.
977         On VMS, correctly set then environment variable for the source
978         directories.
980 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
982         * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
983         set to True this procedure will create the value of type REG_EXPAND_SZ.
984         It was only possible to create REG_SZ values before.
986 2007-12-13  Robert Dewar  <dewar@adacore.com>
988         * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
989         g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
990         namet-sp.adb, namet-sp.ads: New files.
992         * g-speche.adb: Use generic routine in g-spchge
994         * s-wchcnv.ads, s-wchcnv.adb: 
995         Minor code cleanup (make formal type consistent with spec)
997         * namet.adb: Update comments.
999         * par-endh.adb (Evaluate_End_Entry): Use new
1000         Namet.Sp.Is_Bad_Spelling_Of function
1002         * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
1004         * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
1005         ancestor is an access type initialized with a box, set its type
1006         explicitly, for use in subsequent expansion.
1007         (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
1008         function
1010 2007-12-13  Robert Dewar  <dewar@adacore.com>
1012         * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
1013         access Vstring)
1015 2007-12-13  Robert Dewar  <dewar@adacore.com>
1017         * inline.adb (Back_End_Cannot_Inline): Use new flag
1018         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
1020         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
1021         Has_Pragma_Inline_Always instead.
1022         of obsolete function Is_Always_Inlined
1023         (Build_Body_To_Inline): Same change
1024         (Cannot_Inline): Same change
1025         Do not give warning on exception raise in No_Return function
1027         * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
1028         component has two inconsistent component clauses in the same record
1029         representation clause, favor the message that complains about
1030         duplication rather than inconsistency.
1031         Update comments.
1032         (Record_Representation_Clause): Do not warn on missing component
1033         clauses for inherited components of a type extension.
1034         (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
1035         an overloadable item if it is a pragma that can apply to multiple
1036         overloadable entities (e.g. Inline) because a pragma cannot be on
1037         more than one chain at a time.
1038         (Validate_Unchecked_Conversion): Add code to warn on unchecked
1039         conversion where one of the operands is Ada.Calendar.Time.
1040         (Analyze_Attribute_Definition_Clause): Fix typo in error message.
1041         For now, ignore Component_Size clause on VM targets, as done for
1042         pragma Pack.
1044 2007-12-13  Emmanuel Briot  <briot@adacore.com>
1045             Vincent Celier  <celier@adacore.com>
1047         * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
1048         string
1049         (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
1050         prj.ads
1051         (Hash): Move instantiation of System.HTable.Hash from spec to body
1052         (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
1053         systems, since we do not need to recompute the Name_Id for the canonical
1054         file name.
1055         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
1056         as a parameter. This parameter is in fact always "ada" in all calls, and
1057         we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
1058         while loading a project with 40000 files
1060         * prj-attr.adb: Fix name of attribute Dependency_Driver
1061         Change the kind of indexing for attribute Root
1063         * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
1064         variables already declared, in case constructions.
1066         * prj-env.adb (Initialize): Reset Current_Source_Path_File and
1067         Current_Object_Path_File to No_Path.
1069         * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
1070         ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
1072         * prj-makr.adb: new parameter Current_Dir
1074         * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
1075         Ada sources when language is not Ada.
1076         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
1077         (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
1078         (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
1079         (Locate_Directory): Always resolve links when computing Canonical_Path
1080         (Look_For_Sources): Make sure that Name_Buffer contains the file name
1081         in Source_Files before checking for the presence of a directory
1082         separator.
1083         Optimize calls to Name_Find when on case sensitive systems.
1084         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
1085         as a parameter.
1086         (Prj.Nmsc.Check): new parameter Current_Dir
1087         (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
1088         cannot be empty and the spec suffix cannot be the same as the body or
1089         separate suffix.
1090         (Get_Unit): When a file name can be of several unit kinds (spec, body or
1091         subunit), always consider the longest suffix.
1092         (Check_Configuration): Do not issue an error if there is no compiler
1093         for a language. Just issue a warning and ignore the sources for the
1094         language.
1095         (Check_Library_Attributes): Only check Library_Dir if Library_Name is
1096         not empty.
1097         (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
1098         (Unit_Exceptions): New hash table
1099         (Check_Naming_Schemes): Check if a file that could be a unit because of
1100         the naming scheme is not in fact a source because there is an exception
1101         for the unit.
1102         (Look_For_Sources): Put the unit exceptions in hash table
1103         Unit_Exceptions
1104         (Get_Unit_Exceptions): Give initial value No_Source to local variable
1105         Other_Part to avoid exception when code is compiled with validity
1106         checking.
1107         (Get_Sources_From_File): Check that there is no directory information
1108         in the file names.
1109         (Look_For_Sources): Check that there is no directory information in the
1110         list of file names in Source_Files.
1111         (Look_For_Sources): In multi-language mode, do not allow exception file
1112         names that are excluded.
1113         (Excluded_Sources_Htable): New hash table
1114         (Search_Directories.Check_File): New procedure to simplify
1115         Search_Directories.
1116         (Search_Directories): Do not consider excluded sources
1117         (Look_For_Sources): Populate Excluded_Sources_Htable before calling
1118         Search_Directories.
1119         (Get_Exceptions): Set component Lang_Kind of Source_Data
1120         (Get_Unit_Exceptions): Ditto
1121         (Search_Directories): Ditto
1123         * prj-pars.adb: new parameter Current_Dir
1125         * prj-part.ads, prj-part.adb: 
1126         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
1127         (Opt.Follow_Links_For_Dirs): New flag
1128         (Project_Path_Name_Of): Cache information returned by this routine as
1129         Locate_Regular_File is a costly routine. The code to output a log
1130         information and the effective call to Locate_Regular_File is now
1131         factorized into a routine (code clean-up).
1132         (Parse, Parse_Single_Project): new parameter Current_Dir
1133         When main project file cannot be found, indicate in the error
1134         message the project path that was used to do the search.
1136         * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
1137         (Prj.Proc.Process*): new parameter Current_Dir
1139         * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
1141 2007-12-13  Bob Duff  <duff@adacore.com>
1143         * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
1144         procedure to be called from the back end to check the
1145         No_Implicit_Dynamic_Code restriction.
1147 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
1149         * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
1150         Fixes another case where RTE_Available_Call was ignored instead of being
1151         taken into account.
1152         (Load_Fail): Ditto.
1154         * rtsfind.ads: Add new entries.
1156 2007-12-13  Robert Dewar  <dewar@adacore.com>
1158         * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
1159         g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
1161         * scn.adb: Implement BOM recognition
1163 2007-12-13  Thomas Quinot  <quinot@adacore.com>
1164             Ed Schonberg  <schonberg@adacore.com>
1166         * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
1167         subprogram body that acts as its own spec may not have a non-private
1168         WITH clause on a private sibling.
1169         (Build_Unit_Name): If the parent unit in the name in a with_clause on a
1170         child unit is a renaming, create an implicit with_clause on that
1171         parent, and not on the unit it renames, to prevent visibility errors
1172         in the current unit.
1174 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
1176         * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
1177         renaming declaration, use the Slocs of the formal parameters from the
1178         declaration of the formal subprogram when creating the formal parameter
1179         entities in the renaming declaration.
1180         (Analyze_Formal_Type_Declaration): Change the placement of the error
1181         message concerning illegal known discriminants. It is now posted on the
1182         type rather than on the first discriminant. This change ensures early
1183         error report.
1184         (Freeze_Subprogram_Body): If the generic subprogram is nested within
1185         the package body that contains the instance, do not generate an
1186         out-of-place freeze node for the enclosing package.
1187         (Collect_Previous_Instantiations): Ignore internal instantiations
1188         generated for formal packages.
1189         (Validate_Derived_Type_Instance): Add a check that when a formal
1190         derived type is Known_To_Have_Preelab_Init then the actual type must
1191         have preelaborable initialization, and issue an error when this
1192         condition is violated.
1194 2007-12-13  Robert Dewar  <dewar@adacore.com>
1196         * s-imenne.adb, s-imenne.ads: New files.
1198         * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb, 
1199         s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb, 
1200         s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads, 
1201         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb, 
1202         s-imgwch.ads: New calling sequence for Image routines to avoid sec
1203         stack usage.
1205 2007-12-13  Javier Miranda  <miranda@adacore.com>
1206             Ed Schonberg  <schonberg@adacore.com>
1208         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
1209         generation of spurious error if parent is an interface type; caused
1210         because predefined primitive bodies will be generated later by
1211         Freeze_Record_Type.
1212         (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
1213         flag.
1214         (Derive_Subprograms): Handle derivations of predefined primitives
1215         after all the user-defined primitives to ensure that they are
1216         found in proper order in instantiations.
1217         (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
1218         of Related_Interface to Related_Type.
1219         (Record_Type_Declaration): Minor reordering of calls to decorate the
1220         Tag component because the entity must have set its Ekind attribute
1221         before setting its Is_Tag attribute.
1222         (Analyze_Subtype_Declaration): In the case of subtypes with
1223         Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
1225 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
1226             Ed Schonberg  <schonberg@adacore.com>
1228         * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
1229         statement to the list of contexts where a selected component with a
1230         concurrent tagged type prefix should yield a primitive operation.
1231         (Find_Primitive_Operation): Handle case of class-wide types.
1232         (Analyze_Overloaded_Selected_Component): If type of prefix is
1233         class-wide, use visible components of base type.
1234         (Resolve_Selected_Component): Ditto.
1235         (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
1236         formal of a generic subprogram. find candidate interpretations by
1237         scanning the list of generic formal declarations.:
1238         (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
1239         type from a limited_with_clause, and the full view is available, use it
1240         for subsequent semantic checks.
1241         (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
1242         (Find_Primitive_Operation): New function.
1243         (Analyze_Overloaded_Selected_Component): insert explicit dereference
1244         only once if several interpretations of the prefix yield an access type.
1245         (Try_Object_Operation): Code and comment cleanup.
1246         (Analyze_Selected_Component): Reorder local variables. Minot comment and
1247         code reformatting. When the type of the prefix is tagged concurrent, a
1248         correct interpretation might be available in the primitive and
1249         class-wide operations of the type.
1251 2007-12-13  Robert Dewar  <dewar@adacore.com>
1252             Ed Schonberg  <schonberg@adacore.com>
1254         * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
1255         renaming entry as subprogram using rename-as-body if subprogram spec
1256         frozen.
1257         (Use_One_Type): The clause is legal on an access type whose designated
1258         type has a limited view.
1259         (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
1260         (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
1261         (Analyze_Renamed_Primitive_Operation): new procedure to determine the
1262         operation denoted by a selected component.
1263         (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
1264         it can be an expression, possibly overloaded, that returns a task or
1265         an access to one.
1267 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
1268             Gary Dismukes  <dismukes@adacore.com>
1270         * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
1271         requeue statement is dispatching. Do not emit an error when the name is
1272         not an entry and the context is a dispatching select. Add code to
1273         perform subtype conformance between the formals of the current entry
1274         and those of the target interface primitive.
1275         (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
1276         Timed_Entry_Call): Analyze the triggering statement as the first step of
1277         the processing. If this is a dispatching select, postpone the analysis
1278         of all select statements until the Expander transforms the select. This
1279         approach avoids generating duplicate identifiers after the Expander has
1280         replicated some of the select statements. In case the Expander is
1281         disabled, perform regular analysis.
1282         (Check_Triggering_Statement): New routine.
1283         (Analyze_Requeue): Exclude any interpretations that are not entries when
1284         checking overloaded names in a requeue. Also test type conformance for
1285         matching interpretations rather than requiring subtype conformance at
1286         that point to conform with the RM's resolution rule for requeues.
1288 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
1290         * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
1291         inherited operation is a defaulted tag-indeterminate call, and there is
1292         a statically tagged actual, use the static tag as a controlling actual
1293         for the defaulted actual.
1295 2007-12-13  Geert Bosch  <bosch@adacore.com>
1297         * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
1298         context, so do not call Check_Non_Static_Context.
1300 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
1302         * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
1303         whether formal E is an entity which may have parameters.
1305 2007-12-13  Bob Duff  <duff@adacore.com>
1306             Javier Miranda  <miranda@adacore.com>
1307             Robert Dewar  <dewar@adacore.com>
1309         * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
1310         (Set_Convention): New procedure to set the Convention flag, and in
1311         addition make sure the Favor_Top_Level flag is kept in sync (all
1312         foreign-language conventions require Favor_Top_Level = True).
1313         (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
1314         to Related_Type.
1315         (Collect_Interfaces_Info): Minor update to handle the two secondary
1316         dispatch tables. Update occurrence of Related_Interface to Related_Type.
1317         (Generate_Parent_Ref): Add parameter to specify entity to check
1318         (Is_Preelaborable_Expression): Allow the name of a discriminant to
1319         initialize a component of a type with preelaborable initialization.
1320         This includes the case of a discriminal used in such a context.
1321         (Is_Dependent_Component_Of_Mutable_Object): Take into account the
1322         latest Ada 2005 rules about renaming and 'Access of
1323         discriminant-dependent components.
1324         (Check_Nested_Access): Add handling when there are no enclosing
1325         subprograms (e.g. case of a package body).
1326         (Find_Parameter_Type): Factor routine from several other compiler files.
1327         Remove routine from Find_Overridden_Synchronized_Primitive.
1329 2007-12-13  Thomas Quinot  <quinot@adacore.com>
1331         * sinput.adb (Get_Source_File_Index): Add assertion to guard against
1332         an invalid access to an uninitialized slot in the
1333         Source_File_Index_Table.
1335 2007-12-13  Thomas Quinot  <quinot@adacore.com>
1337         * sinput-l.adb (Load_File): Disable style checks when preprocessing.
1339 2007-12-13  Bob Duff  <duff@adacore.com>
1341         * s-soflin.ads: Apply new pragma Favor_Top_Level to all
1342         access-to-subprogram types in this package.
1344 2007-12-13  Olivier Hainque  <hainque@adacore.com>
1346         * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
1347         with Stack_Grows_Down in System.Parameters. Rename Array_Address into
1348         Stack_Overlay_Address and document that we are using an internal
1349         abstraction.
1350         (Byte_Size, Unsigned_32_Size): Remove, now useless.
1351         (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
1352         consistently throughout the various implementation pieces.
1354         * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
1355         overlay we are using to fill the stack area with patterns.
1356         (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
1357         (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
1358         (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
1360 2007-12-13  Robert Dewar  <dewar@adacore.com>
1362         * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
1364 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
1366         * s-tassta.adb: 
1367         (Create_Task): Take into account tasks created by foreign threads.
1368         Code clean up: use constants instead of hard coded values.
1370 2007-12-13  Robert Dewar  <dewar@adacore.com>
1372         * styleg.adb (Check_Comment): More liberal rules for comment placement
1374 2007-12-13  Olivier Hainque  <hainque@adacore.com>
1376         * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
1377         of Procedure Value instead of Frame Pointer as the invocation
1378         identifier associated with the instruction pointer in each traceback
1379         entry.
1381         * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
1382         TB_Entry_For): Revert back to use of Procedure Value instead of Frame
1383         Pointer as the invocation identifier passed to tbk$symbolize.
1385         * s-traent-vms.ads, s-traent-vms.adb
1386         (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
1387         Procedure Value instead of Frame Pointer as the invocation identifier
1388         passed to tbk$symbolize.
1390 2007-12-13  Robert Dewar  <dewar@adacore.com>
1392         * tbuild.ads, tbuild.adb: 
1393         Fix location of flag for unrecognized pragma message
1395 2007-12-13  Robert Dewar  <dewar@adacore.com>
1397         * treepr.ads, treepr.adb: (pl): implement use of positive value
1398         shorthands
1400 2007-12-13  Robert Dewar  <dewar@adacore.com>
1402         * xeinfo.adb: Remove warnings
1403         * xnmake.adb: Remove warnings
1404         * xsinfo.adb: Remove warnings
1405         * xtreeprs.adb: Remove warnings
1406         * xsnames.adb: Remove warnings
1408         * a-ngcoar.adb: Fix typo.
1409         * s-interr.adb: Minor reformatting
1410         * env.c: Minor reformatting.
1411         * g-bytswa.adb: Minor reformatting.
1412         * g-rannum.ads: Minor documentation improvements
1413         * s-tasinf-mingw.adb: Minor header fix
1414         * a-clrefi.adb: Minor reformatting
1415         * g-sttsne.ads: Minor documentation improvement
1416         * g-sttsne-locking.ads: Minor documentation improvement
1417         * g-soliop-solaris.ads: Minor documentation improvement
1418         * g-soliop-mingw.ads: Minor documentation improvement
1419         * g-soliop.ads: Minor documentation improvement
1420         * exp_aggr.ads: Minor reformatting
1421         * debug.adb: Add documentation for the gprbuild debug flags
1422         * exp_ch2.adb: Use Nkind_In to simplify code throughout
1423         * exp_pakd.adb: Minor reformatting
1425         * g-altive.ads, g-alleve.adb: Remove assertions.
1426         Add comment about minor differences between targets regarding
1427         floating-point operations.
1429         * g-thread.adb: Remove pragma unreferenced.
1430         * lib.ads: Minor reformatting
1431         * par-ch9.adb: Minor reformatting of error messages
1432         * sem_case.adb: Minor reformatting
1433         * s-fileio.adb: Minor reformattinng
1434         * s-vmexta.ads: Minor typo
1435         * vxaddr2line.adb: 
1436         Take into account 'Success' value as per new GNAT warning.
1438 2007-12-13  Vincent Celier  <celier@adacore.com>
1440         * a-direct.adb (Create_Path): Always take '/' as a directory separator,
1441         even on Windows
1443 2007-12-13  Robert Dewar  <dewar@adacore.com>
1444             Bob Duff  <duff@adacore.com>
1446         * gnat_ugn.texi: Dcoument new rules for style check comment alignment
1447         Document that suffixes may be terminations of each others
1448         Add doc for -gnatw.a and -gnatw.A
1449         Document gnatbind -Wx switch
1450         Document BOM recognition
1451         Document pragma Implemented_By_Entry.
1452         Document new units.
1454         * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
1455         Add doc for pragma Unreferenced suppressing no entities referenced msg
1456         Add documentation of GNAT.Directory_Operations.Iteration
1457         Add documentation of GNAT.Random_Numbers
1458         Add documentation for pragma Shared.
1459         Correct documentation for Bit_Order
1460         Add documentation for the Pool_Address attribute.
1461         Fix and improve documentation of pragma machine_attribute.
1462         New pragma Fast_Math
1463         Document BOM recognition
1465         * vms_data.ads: Add entries for -gnatw.a -gnatw.A
1466         Add /Wide_Character_Encoding for binder
1467         Add qualifier for the new gnatpp option --no-separate-loop-then
1469 2007-12-13  Matthew Heaney  <heaney@adacore.com>
1471         * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
1472         which generic formal operations are called for each operation.
1474 2007-12-13  Olivier Hainque  <hainque@adacore.com>
1476         * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
1477         (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
1479 2007-12-13  Emmanuel Briot  <briot@adacore.com>
1481         * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
1482         Reference_Dir unless we actually need it.
1484 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
1485             Tristan Gingold  <gingold@adacore.com>
1487         * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
1489         * s-osprim-vms.adb,
1490         a-calend-vms.adb: Remove pragma warning off and add pragma
1491         unreferenced.
1493 2007-12-13  Robert Dewar  <dewar@adacore.com>
1495         * impunit.adb: Add entries for missing units
1497         * Makefile.rtl: Add new run-time units.
1499         * Make-lang.in:  Update dependencies.
1501 2007-12-13  Bob Duff  <duff@adacore.com>
1503         * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
1504         types, set Can_Use_Internal_Rep appropriately, based on
1505         Always_Compatible_Rep_On_Target.
1507 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
1508             Arnaud Charlet  <charlet@adacore.com>
1510         * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
1511         it to the front end and setting the aamp_target environment variable
1512         to the switch's argument to ensure that gnaampbind and gnaamplink will
1513         take the specified library into account.
1514         (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
1515         target, since the CIL compiler supports an "object" file (.il files).
1517 2007-12-13  Vincent Celier  <celier@adacore.com>
1519         * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
1520         (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
1522 2007-12-13  Geert Bosch  <bosch@adacore.com>
1524         * s-parame-vxworks.adb: 
1525         Update comments to reflect usage of this package by Nucleus.
1527 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
1529         * i-vxwork.ads: Kill new warning on Convention C, since changing the
1530         spec would break code.
1532         * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
1534         * system-vxworks-alpha.ads: Removed.
1536 2007-12-10  Eric Botcazou  <ebotcazou@adacore.com>
1538         * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
1540 2007-12-09  Samuel Tardieu  <sam@rfc1149.net>
1542         PR ada/34366
1543         * sem_ch3.adb (Designates_T): New function.
1544         (Mentions_T): Factor reusable part of the logic into Designates_T.
1545         Consider non-access parameters and access and non-access result.
1546         (Check_Anonymous_Access_Components): Set ekind of anonymous access to
1547         E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
1549         * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
1551 2007-12-07  Ludovic Brenta  <ludovic@ludovic-brenta.org>
1553         PR ada/34361
1554         * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
1555         the new implementation of target-specific calls.
1557 2007-12-07  Olivier Hainque  <hainque@adacore.com>
1559         * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
1560         the designated full view, only follow a second level Full_View link
1561         for Non_Limited_Views of from_limited_with references.
1562         
1563 2007-12-07  Samuel Tardieu  <sam@rfc1149.net>
1565         PR ada/15805
1566         * sem_ch6.adb (Process_Formals): Prevent an access type formal
1567         to be initialized with an access to constant object.
1569         * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
1570         when an access to constant is used to initialize an access
1571         value.
1573         PR ada/21346
1574         * a-direct.adb (Compose): Containing_Directory can be an empty string.
1576 2007-12-07  Olivier Hainque  <hainque@adacore.com>
1578         PR ada/34173
1579         * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
1580         the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
1581         this is from an alignment clause on the GNAT entity.
1582         * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
1583         to distinguish the case where we set it from the type's alignment.
1584         When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
1585         whether this alignment was set from an explicit alignment clause.
1587 2007-12-06  Eric Botcazou  <ebotcazou@adacore.com>
1589         * decl.c (make_packable_type): Revert last change.
1590         (gnat_to_gnu_field): Avoid setting size and position multiple times.
1591         * utils.c (finish_record_type): Retrieve the real name of the type.
1593 2007-12-05  Eric Botcazou  <ebotcazou@adacore.com>
1595         * trans.c (lvalue_required_p): Take base node directly instead
1596         of its parent.  Rename second parameter to 'gnu_type'.
1597         <N_Indexed_Component>: Return 0 if the node isn't the prefix.
1598         <N_Slice>: Likewise.
1599         (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
1600         Adjust calls to lvalue_required_p.
1602 2007-12-05  Samuel Tardieu  <sam@rfc1149.net>
1604         PR ada/21489
1605         * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
1606         parameters of an entry call.
1608 2007-12-03  Robert Dewar <dewar@adacore.com>
1609             Samuel Tardieu  <sam@rfc1149.net>
1611         PR ada/34287
1612         * sem_util.adb (Safe_To_Capture_Value): Do not capture values
1613         of variables declared in a library-level package.
1614     
1615 2007-12-02  Samuel Tardieu  <sam@rfc1149.net>
1617         * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
1618         of Empty_String'Unchecked_Access.
1620         * Makefile.in: Add support for sh4-linux.
1622         * system-linux-sh4.ads: New file.
1624 2007-12-01  Kostik Belousov  <kostikbel@ukr.net>
1626         PR ada/33722
1627         * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
1628         and its argument must not be free()ed.
1630 2007-11-29  Eric Botcazou  <ebotcazou@adacore.com>
1632         * decl.c (make_packable_type): Retrieve the real name of the type.
1633         (maybe_pad_type): Simplify similar code.
1635 2007-11-28  Samuel Tardieu  <sam@rfc1149.net>
1637         PR ada/15804
1638         * par-ch3.adb (P_Variant_Part): Signal an error when anything other
1639         than an identifier is used after "case" in a variant_part.
1641         PR ada/17318
1642         * par-ch4.adb (Is_Parameterless_Attribute): New map.
1643         (P_Name, Scan_Apostrophe block): Parse left parenthesis following
1644         attribute name or not depending on the new map.
1646         * sem-attr.adb (Analyze_Attribute): Parameterless attributes
1647         returning a string or a type will not be called with improper
1648         arguments.
1650         * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
1652         * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
1654         PR ada/32792
1655         * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
1656         Signal an error when attribute argument is a fixed-point value of
1657         an unknown type.
1659         PR ada/22559
1660         * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
1661         a derived ordinary fixed point type.
1663         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
1664         RM_Size when a Small clause is found.
1666 2007-11-26  Andreas Krebbel  <krebbel1@de.ibm.com>
1668         PR 34081/C++
1669         * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
1670         Pass 'false' for the new allocate_struct_function parameter.
1671         * utils.c (build_function_stub): Likewise.
1673 2007-11-25  Richard Guenther  <rguenther@suse.de>
1675         * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
1676         (gnat_poplevel): Likewise.
1678 2007-11-25  Eric Botcazou  <ebotcazou@adacore.com>
1680         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
1681         strict alignment, no alignment clause and a known static size, cap
1682         the type alignment to the greatest power of 2 factor of the size.
1683         (gnat_to_gnu_field): If the field has a component clause, is aliased
1684         or of a type with strict alignment, require that its size be equal to
1685         that of the type.
1686         (validate_size): Use the type size as the minimum size for a type with
1687         strict alignment.
1689 2007-11-23  Samuel Tardieu  <sam@rfc1149.net>
1691         * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
1692         s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
1693         s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
1694         Use 'Access instead of 'Unchecked_Access in second and third
1695         arguments of pthread_sigmask.
1697 2007-11-23  Eric Botcazou  <ebotcazou@adacore.com>
1699         * decl.c (ceil_alignment): New function.
1700         (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
1701         (make_packable_type): Likewise.
1703 2007-11-22  Olivier Hainque  <hainque@adacore.com>
1705         * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
1706         to fit in 80 columns.
1708 2007-11-21  Aurelien Jarno <aurelien@aurel32.net>
1710         * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
1711         * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
1713 2007-11-19  Eric Botcazou  <ebotcazou@adacore.com>
1715         PR ada/34098
1716         * misc.c (gnat_adjust_rli): Delete.
1717         (gnat_init): Do not initialize the translation code here.
1718         Do not call set_lang_adjust_rli.
1719         * trans.c (init_code_table): Make static.
1720         (gnat_init_stmt_group): Delete.
1721         (gigi): Initialize the translation code entirely here.
1722         Emit debug info for the common types here instead of...
1723         * utils.c (gnat_init_decl_processing): ...here.
1724         * gigi.h (init_code_table): Delete.
1725         (gnat_init_stmt_group): Likewise.
1727 2007-11-16  Olivier Hainque  <hainque@adacore.com>
1729         * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
1730         retrieving an allocator return value from a super-aligned address from
1731         here to ...
1732         * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
1733         expect a super-aligned address for a fat or thin pointer.
1734         
1735 2007-11-14  Eric Botcazou  <ebotcazou@adacore.com>
1737         * trans.c (call_to_gnu): Always set the source location on the call
1738         expression.  If the function returns-by-target, also set it on the
1739         address expression.
1741 2007-11-14  Samuel Tardieu  <sam@rfc1149.net>
1743         * adaint.c, init.c, initialize.c, link.c: Remove system-specific
1744         sections of non-supported Interix target.
1746         * s-osinte-interix.ads: Removed.
1748         * i-cstrin.ads (chars_ptr): Make it a C convention type.
1750 2007-11-13  Samuel Tardieu  <sam@rfc1149.net>
1752         * a-tasatt.adb: Add a comment at the beginning of the package
1753         explaining why in general 'Unchecked_Access must be used instead
1754         of 'Access.
1756         * sem_prag.adb (Process_Convention): Move the test for the
1757         entity on which the Convention pragma applies down to also
1758         forbid pragma Convention on enumeration literals reached
1759         through renamings.
1761 2007-11-10  Samuel Tardieu  <sam@rfc1149.net>
1763         * a-tasatt.adb: Revert previous change for this file as it will
1764         generate an error when this package is instantiated from a
1765         local context.
1767 2007-11-07  Samuel Tardieu  <sam@rfc1149.net>
1769         * a-tasatt.adb: Type Wrapper should be declared in comment instead
1770         of already declared type Node_Access.
1771         Use 'Access instead of 'Unchecked_Access when applicable. Local
1772         lifetime is the one of the package.
1773         (Set_Value): W is allocated on the heap.
1775         * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
1776         applicable.
1777         (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
1778         access type.
1779         (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
1780         access type.
1782         * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
1783         applicable.
1784         (elaboration code): Timer_Queue lifetime is the one of the
1785         package.
1787         * tracebak.c (i386 alternative): Remove useless comparaison
1788         which is always false; LOWEST_ADDRESS is 0 and is never greater
1789         than an unsigned integer.
1791         * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
1792         embedded check for "Ada_Version >= Ada_05".
1794 2007-11-07  Olivier Hainque  <hainque@adacore.com>
1796         * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
1797         craft and expand comment.
1799 2007-11-01  Eric Botcazou  <ebotcazou@adacore.com>
1801         * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
1803 2007-10-23  Eric Botcazou  <ebotcazou@adacore.com>
1805         * misc.c (gnat_handle_option): Replace call to abort with
1806         call to gcc_unreachable.
1807         (gnat_init): Likewise.
1808         (gnat_expand_expr): Likewise.
1809         (fp_prec_to_size): Likewise.
1810         (fp_size_to_prec): Likewise.
1812 2007-10-23  Richard Guenther  <rguenther@suse.de>
1814         PR bootstrap/33608
1815         * tracebak.c: #undef abort after including system.h.
1817 2007-10-20  Danny Smith <dannysmith@users.sourceforge.net>
1819         * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
1820         s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
1821         for win32 targets.
1822         (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
1824 2007-10-15  Eric Botcazou  <ebotcazou@adacore.com>
1826         * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
1827         Set the protection status of the guard page based on the value of On.
1829         * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
1831         * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
1832         (Exit_Task): Pass False to Hide_Yellow_Zone.
1834 2007-10-15  Robert Dewar  <dewar@adacore.com>
1836         * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
1837         s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
1838         a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb, 
1839         checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb, 
1840         freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb, 
1841         gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb, 
1842         mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb, 
1843         prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb, 
1844         sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb, 
1845         s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
1846         uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb, 
1847         a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb, 
1848         a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb, 
1849         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb, 
1850         a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb, 
1851         a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
1852         Minor reformatting.
1853         Add Unreferenced and Warnings (Off) pragmas for cases of
1854         variables modified calls where they are IN OUT or OUT parameters and
1855         the resulting values are not subsequently referenced. In a few cases,
1856         we also remove redundant code found by the new warnings.
1858         * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads, 
1859         sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
1860         sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
1861         sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
1862         warning controlled by -gnatw.o that warns on cases of out parameter
1863         values being ignored.
1865 2007-10-15  Geert Bosch  <bosch@adacore.com>
1867         * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
1869         * expect.c: Initial port to arm-mentor-nucleus.
1870         Use kill for __gnat_kill() on VMS.
1872 2007-10-15  Emmanuel Briot  <briot@adacore.com>
1874         * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
1875         value.
1876         (Xref_Record): Change type for Line, since in the case of a reference to
1877         a predefined entity (as happens for array index types), the line is set
1878         to 0.
1879         Add support for parsing multiple array index types info, or
1880         multiple inherited interfaces info. This information cannot be stored
1881         in Xref_Entity_Record, which only supports a single instance of Tref_*,
1882         and is therefore stored in the list of references instead. It has a
1883         special treatement later on in tools that use this information.
1885 2007-10-15  Tristan Gingold  <gingold@adacore.com>
1887         * debug.adb: Document use of -gnatd.a and -gnatd.I
1889         * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
1891 2007-10-15  Javier Miranda  <miranda@adacore.com>
1893         * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
1894         Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
1895         care of access to class-wide interface types plus removal of bizarre
1896         conversion of tagged object to access type (reported by Gary
1897         Dismukes). After this patch there is no need to perform any
1898         additional management on these nodes in Expand_Interface_Actuals.
1900         * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
1901         that handles use of 'Access and 'Unchecked_Access applied to
1902         actuals covering interface types. Such code is now
1903         centralized in Expand_N_Attribute_Reference.
1905 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
1907         * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
1908         of tagged types whose ultimate ancestor is a CPP type.
1909         (Freeze_Array_Type): For a packed array type, generate an initialization
1910         procedure if the type is public, to handle properly a client that
1911         specifies Normalize_Scalars.
1913 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
1915         * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
1916         inside a generic body, retrieve the full view of the entry family
1917         discrete subtype if available.
1919 2007-10-15  Thomas Quinot  <quinot@adacore.com>
1921         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
1922         attempt to generate stubs for hidden primitive operations.
1924 2007-10-15  Vincent Celier  <celier@adacore.com>
1926         * mlib-tgt-specific.adb (Support_For_Libraries): New function,
1927         returning None, used when there is no platform specific body for
1928         MLib.Tgt.Specific.
1930 2007-10-15  Bob Duff  <duff@adacore.com>
1932         * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
1933         (passing'Unrestricted_Access of nested subprograms to Sort) with use of
1934         the generic Heap_Sort_G, in order to avoid trampolines.
1936 2007-10-15  Vasiliy Fofanov  <fofanov@adacore.com>
1937             Jose Ruiz  <ruiz@adacore.com>
1939         * vx_stack_info.c: New file.
1941         * i-forbla-unimplemented.ads: New file.
1943         * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
1944         for unsupported configurations; use it on VMS targets instead of the
1945         real one.
1946         (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
1947         vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
1948         used by VxWorks targets to have access to task-specific data and be
1949         able to extract the stack boundaries for stack checking.
1950         Use system-vms-ia64.ads on ivms.
1952         * Make-lang.in: Update dependencies.
1954         * sysdep.c (__gnat_get_stack_info): Move to a standalone file
1955         (vx_stack_info.c).
1957 2007-10-15  Vincent Celier  <celier@adacore.com>
1959         * snames.adb, snames.ads: Add new standard name runtime_library_dir
1961         * prj.ads (Language_Config): Add new component Runtime_Library_Dir
1963         * prj-attr.adb: Add project level attribute Runtime_Library_Dir
1965         * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
1966         the source is unknown.
1968         * prj-ext.adb: Spelling error fix
1970         * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
1971         95 reserved word in its name.
1972         (Process_Project_Level_Array_Attributes): Process new attribute
1973         Runtime_Library_Dir.
1975         * prj-part.adb (Parse_Single_Project): Do not check the name of the
1976         config project against the user project names.
1978         * prj-proc.adb (Expression): In multi-language mode, indexes that do
1979         not include a dot are always case insensitive.
1980         (Process_Declarative_Items): Ditto
1981         (Process_Project_Tree_Phase_1): Set Success to False in case an error is
1982         detected.
1984         * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
1985         True, compare both indexes in lower case.
1987 2007-10-15  Robert Dewar  <dewar@adacore.com>
1989         * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
1991 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
1993         * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
1994         association for an access component, add an association with null as
1995         the expression. Remove testing for array subtypes and the setting in
1996         that case of Ctyp to the array component type, which prevented proper
1997         inclusion of an association for null-initialized arrays. Collapse
1998         condition that tests for array subtypes into just a test of
1999         Is_Partially_Initialized_Type (which already covers arrays anyway).
2001 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
2003         * sem_ch12.adb: Minor code reformatting.
2004         (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
2005         find the parent package which may have been hidden by local
2006         declarations.
2008 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
2010         * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
2011         flag of derived concurrent types, taking into account the flag setting
2012         on the parent subtype and any new set of discriminants.
2014 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
2016         * sem_ch4.adb: Minor code and comment reformatting.
2017         (Analyze_Allocator): When the designated type of an unconstrained
2018         allocator is a record with unknown discriminants or an array with
2019         unknown range bounds, emit a detailed error message depending on the
2020         compilation mode and whether the designated type is limited.
2022 2007-10-15  Tristan Gingold  <gingold@adacore.com>
2024         * system-vms-ia64.ads: New file.
2026         * system-vms_64.ads: Minor comment fix.
2028 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
2030         * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
2031         body generated for a function with a controlling result that is a null
2032         extension, discard the generated body in favor of the current explicit
2033         one.
2035 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
2037         * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
2038         examining its original form, to handle properly operator calls that
2039         have been rewritten.
2041 2007-10-15  Olivier Hainque  <hainque@adacore.com>
2043         * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
2044         instead of a procedure value in each traceback entry.
2046         * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
2047         instead of procedure value to TBK$SYMBOLIZE.
2049         * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
2050         field.
2051         (TB_Entry_For): Account for the PV/FP renaming.
2053         * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
2054         add comment.
2055         (Null_TB_Entry): Account for change of component name.
2056         (PV_For): Rename as FP_For.
2058 2007-10-15  Tristan Gingold  <gingold@adacore.com>
2060         * trans.c (gnat_to_gnu): Remove the padding structure more often.
2061         This optimize assignment to over-aligned record.
2063 2007-10-15  Emmanuel Briot  <briot@adacore.com>
2065         * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
2066         interfaces.
2068         * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
2069         type, for dispatching calls.
2071 2007-10-15  Vincent Celier  <celier@adacore.com>
2072             Robert Dewar  <dewar@adacore.com>
2074         * gnat_ugn.texi: Add documentation for switches --version and --help
2075         for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
2076         gnatxref, gnatfind, gnatls, and gnatclean.
2077         Document -gnatw.o.
2078         Mention attribute Excluded_Source_Dirs
2079         Replace obsolescent attribute Locally_Removed_Files with attribute
2080         Excluded_Source_Files.
2081         Improve documentation of -u (gnatbind)
2082         Document how to do reliable stack checking for the environmental task
2083         on iVMS.
2085         * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
2086         Document attribute Excluded_Source_Files and indicate that attribute
2087         Locally_Removed_Files is obsolescent.
2089 2007-10-15  Thomas Quinot  <quinot@adacore.com>
2091         * g-soccon-vms.ads: Fix value of MSG_WAITALL.
2093         * gen-soccon.c: 
2094         Update documentation to note that OpenVMS 8.3 or later must be used
2095         to generate g-soccon-vms.ads.
2097         * atree.adb: Add ??? comment
2099         * exp_util.adb: Minor reformatting.
2100         Add ??? comment in Kill_Dead_Code.
2102 2007-10-15  Robert Dewar  <dewar@adacore.com>
2104         * errout.ads: Comment clarification
2106         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
2107         (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
2109         * lib.ads: Comment update
2111         * init.c: Minor reformatting.
2113         * sem_attr.adb: Minor formatting
2115         * osint-b.ads: Minor reformatting
2117         * sem_ch9.adb: Implement -gnatd.I switch
2119         * g-comlin.adb: (Start): Fix handling of empty command line.
2121         * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
2122         even when -rules follows the -cargs section.
2124 2007-10-08  Ollie Wild  <aaw@google.com>
2126         * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
2127         gnat_return_tree.
2128         (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
2129         gnat_return_tree.
2130         (gnat_eh_runtime_type): Removed.
2131         (gnat_return_tree): New function.
2133 2007-10-08  Ben Elliston  <bje@au.ibm.com>
2135         PR ada/33454
2136         Revert:
2137         2007-08-31  Ben Elliston  <bje@au.ibm.com>
2139         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
2140         when compiling for powerpc64-*-linux.
2141         * system-linux-ppc64.ads: New file.
2143 2007-09-27  Eric Botcazou  <ebotcazou@adacore.com>
2145         Mapped location support
2146         * back_end.adb (Call_Back_End): Pass information about source
2147         files instead of units to gigi.
2148         * gigi.h (struct File_Info_Type): New.
2149         (gigi): Rename and change type of number_units parameter, change
2150         type of file_info_ptr parameter.
2151         * trans.c (number_files): New global variable.
2152         (gigi): Rename and change type of number_units parameter, change
2153         type of file_info_ptr parameter.
2154         If mapped location support is enabled, create the isomorphic mapping
2155         between source files and line maps.
2156         (Sloc_to_locus): If mapped location support is enabled, translate
2157         source location into mapped location.
2158         (annotate_with_node): Rename into set_expr_location_from_node.
2159         Call set_expr_location instead of annotate_with_locus.
2160         (Pragma_to_gnu): Adjust for above change.
2161         (Loop_Statement_to_gnu): Likewise.
2162         (call_to_gnu): Likewise.
2163         (Handled_Sequence_Of_Statements_to_gnu): Likewise.
2164         (gnat_to_gnu): Likewise.
2165         (add_stmt_with_node): Likewise.
2166         (add_cleanup): Likewise.
2167         * utils.c (gnat_init_decl_processing): Do not set input_line.
2169 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
2171         * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
2172         (Applicable_Use): Emit a warning when a package tries to use itself.
2173         (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
2174         is already in use or the package where it is declared is in use or is
2175         declared in the current package.
2176         (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
2178         * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
2179         s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
2180         s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
2182 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
2184         * a-calend-vms.adb, a-calend.adb: 
2185         Add a section on leap seconds control along with two entities used to
2186         enable and disable leap seconds support. The array Leap_Second_Times is
2187         now constant and contains hard time values pre-generated. Remove
2188         all elaboration code used to populate the table of leap seconds.
2190         * bindgen.adb: 
2191         Add entity Leap_Seconds_Support to the list of global run-time variables
2192         along with a comment on its usage and values.
2193         (Gen_Adainit_Ada): Add code to generate the declaration and import of
2194         Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
2195         or one (enabled) depending on the presence of binder switch "-y".
2196         (Gen_Adainit_C): Add code to generate the declaration of external int
2197         __gl_leap_seconds_support. Set is value to zero (disabled) or one
2198         (enabled) depending on the presence of binder switch "-y".
2200         * init.c: Add __gl_leap_seconds_support to the list of global values
2201         computed by the binder.
2203 2007-09-26  Jerome Guitton  <guitton@adacore.com>
2205         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
2206         s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
2207          s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
2208         s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
2210         * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
2212         * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
2213         function which can be called by the debugger to interrupt the tasks of
2214         an Ada application asynchronously, as needed on VxWorks.
2215         (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
2217         * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
2218         renamed from Stop_All_Tasks. Update comments.
2219         (Stop_All_tasks): New function declaration.
2221 2007-09-26  Olivier Hainque  <hainque@adacore.com>
2223         * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
2224         #include <utime.h> and #define GCC_RESOURCE_H before
2225         #include <sys/wait.h>.
2226         Add more protections in __gnat_translate_vms.
2228         * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
2229         #include <sys/wait.h>.
2231 2007-09-26  Thomas Quinot  <quinot@adacore.com>
2232             Sergey Rybin  <rybin@adacore.com>
2234         * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
2236         * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
2237         where it belongs.
2239         * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
2241         * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
2242         where it belongs.
2244         * sem_dist.ads: Minor comment fix
2246         * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
2248 2007-09-26  Javier Miranda  <miranda@adacore.com>
2249             Eric Botcazou  <ebotcazou@adacore.com>
2251         * a-tags.adb: 
2252         (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
2253          indirection added to the HT_Link component of the TSD. This is required
2254          to statically allocate the TSD.
2256         * a-tags.ads: 
2257         Minor reordering of the declarations in the private part. Required to
2258         add a level of indirection to the contents of the TSD component HT_Link.
2259         This is required to statically allocate the TSD.
2261         * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
2262         Is_Statically_Allocated set from constant objects.
2263         Do not make exported constants created by the compiler volatile.
2264         (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
2265         as read-only.
2267         * trans.c (Identifier_to_gnu): For constants, unshare initializers
2268         before returning them.
2270         * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
2271         public part of the package.
2272         (Make_DT): Move HT_Link component out of the TSD record. For this
2273         purpose Make_DT now declares a separate object that stores the
2274         HT_Link value, and initializes the TSD component with the address
2275         of this new object. The addition of this level of indirection is
2276         required to statically allocate the TSD because the TSD cannot
2277         have variable components.
2278         (Expand_Interface_Conversion): Improve the expanded code.
2279         (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
2281         * sem_disp.adb (Check_Dispatching_Operation): In case of a body
2282         declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
2283         if we are building static dispatch tables then we must not generate
2284         extra code to register the primitive because the dispatch table will
2285         be built at the end of the library package; otherwise we notify that
2286         we cannot build the static dispatch table.
2288 2007-09-26  Robert Dewar  <dewar@adacore.com>
2290         * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
2291         overlays.
2293         * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
2294         (Analyze_Record_Representation_Clause): Suppress junk warning for
2295         missing component clause.
2296         (Analyze_Attribute_Definition_Clause, case Address): Apply the special
2297         tests for controlled type overlay to composites with controlled
2298         components.
2299         (Analyze_Record_Representation_Clause): Add reference for component name
2301 2007-09-26  Javier Miranda  <miranda@adacore.com>
2302             Gary Dismukes  <dismukes@adacore.com>
2304         * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
2305         for thunks associated with interface types.
2307         * einfo.ads: Improve documentatation of Is_Internal
2308         (Is_Thunk): New attribute applicable to subprograms. True for thunks
2309         associated with interface types.
2310         Extensive comment fixes regarding flags that appear in all entities. The
2311         documentation is now consistent for all such flags (there were a number
2312         of errors in the documentation in this regard).
2314         * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
2316         * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
2317         of these procedures are passed a function call that already has
2318         build-in-place actuals (testing new flag
2319         Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
2320         the case where processing continues.
2321         (Expand_Call): If the call is generated from a thunk body then we
2322         propagate the extra actuals associated with the accessibility
2323         level of the access type actuals.
2325         * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
2326         of each extra formal of a protected operation to reference the
2327         corresponding extra formal of the subprogram denoted by the
2328         operation's Protected_Body_Subprogram.
2329         
2330         * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
2331         N_Function_Call nodes.
2333 2007-09-26  Robert Dewar  <dewar@adacore.com>
2335         * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
2337         * debug.adb: Add d.s flag.
2339 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
2341         * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
2342         debug variable so that it won't be initialized when pragma
2343         Initialize_Scalars is in effect.
2345 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
2347         * freeze.adb (Freeze_Entity): Remove check for preelaborable
2348         initialization of a full view. This is moved to
2349         Analyze_Package_Specification.
2351         * sem_ch7.adb (Analyze_Package_Specification): Add check for
2352         preelaborable initialization of a full view in entity loop.
2353         (Uninstall_Declarations): If entity is a use-visible compilation unit,
2354         its child units are use-visible only if they are visible child units.
2356         * sem_util.adb (Is_Preelaborable_Expression): New function to determine
2357         whether an expression can be used within a type declaration that
2358         requires preelaborable init.
2359         (Check_Components): Replace inline code that does partial checking for
2360         preelaborable default expressions with call to
2361         Is_Preelaborable_Expression.
2362         (Has_Preelaborable_Initialization): In the case of a generic actual
2363         subtype, (that is, Is_Generic_Actual is True), return the result of
2364         applying Has_Preelaborable_Initialization to the generic actual's base
2365         type.
2367 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
2369         * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
2370         call to Jan_1_Day _Of_Week to optimize its performance.
2371         (Is_Leap): Move the routine to the scope of Week_In_Year.
2372         (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
2373         weekday on which January 1 falls of Year - 1 and Year + 1. This function
2374         avoids calling Time_Of and Split, thus making it more efficent.
2375         (Week_In_Year): Reimplemented in oder to follow ISO 8601.
2377         * g-calend.ads (Week_In_Year): Change comment to reflect new
2378         implementation.
2380 2007-09-26  Emmanuel Briot  <briot@adacore.com>
2382         * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
2383         Command_Line): New types
2384         (Define_Alias, Define_Prefix, Free): New subprograms. These provide
2385         support for defining how switches can be grouped on a command line (as
2386         is the case for -gnatw... for GNAT), and how simple switches can be
2387         used as aliases for more complex switches (-gnatwa is same as
2388         -gnatwbcef...)
2389         (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
2390         (Start, Current_*): New subprograms
2391         Added support for parsing an array of strings in addition to the real
2392         command line.
2393         (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
2394          be moved from the body to the private part of the spec.
2395         (*): All subprograms now have an extra parameter with default value to
2396         specify which parser should be used. For backward compatibility, it
2397         defaults to parsing the command line of the application. They were also
2398         modified to properly handle cases where each of the argument does not
2399         start at index 1 (which is always true for Ada.Command_Line, but not
2400         when processing any Argument_List).
2401         (Free): New subprogram
2402         (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
2403         Argument): New subprograms
2404         (Switch_Parameter_Type): New enum, which clarifies the code. The extra
2405         special characters like ':', '=',... are now handled in a single place,
2406         which makes the code more extensible eventually.
2407         (Getopt, Full_Switch): When the switch was returned as part of the
2408         special character '*', make sure it is prepended by the switch character
2409         ('-' in general), so that the application knows whether "foo" or "-foo"
2410         was specified on the command line.
2412 2007-09-26  Florian Villoing  <villoing@adacore.com>
2414         * g-dirope.adb (Remove_Dir): In case we are removing directories
2415         recursively, make sure that if an exception is raised during the
2416         processing, the current working directory is reset to its initial
2417         value before propagating the exception.
2419 2007-09-26  Vincent Celier  <celier@adacore.com>
2421         * gnatbind.adb: If there are several ALI files specified and there is
2422         a main program to bind, the first ALI is expected to contain the main
2423         subprogram and the names of the binder generated files will be derived
2424         from the first ALI file name.
2425         (Gnatbind): Fix insertion character in invocation of Error_Msg
2427 2007-09-26  Vincent Celier  <celier@adacore.com>
2429         * gnatcmd.adb (Check_Files): Do not include sources that have been
2430         removed by attributes Exclude_Source_Files or Locally_Removed_Files.
2432 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
2434         * lib-xref.ads, lib-xref.adb: The entry for array types now carries
2435         information about each of its index types, following the type
2436         reference for its component type.
2438 2007-09-26  Vincent Celier  <celier@adacore.com>
2440         * make.adb: (Kill): New procedure (__gnat_kill imported)
2441         (Running_Compile, Outstanding_Compiles): Global variables that
2442         were previously local to procedure Compile_Sources.
2443         (Sigint_Intercepted): Send signal SIGINT to all outstanding
2444         compilation processes.
2446         (Gnatmake): If project files are used, create the mapping of all the
2447         sources, so that the correct paths will be found.
2449         * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
2451 2007-09-26  Vincent Celier  <celier@adacore.com>
2453         * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
2455         * prj.ads, prj.adb (Default_Language): Remove function, no longer used
2456         Replace components Compiler_Min_Options and Binder_Min_Options with
2457         Compiler_Required_Switches and Binder_Required_Switches in record
2458         Language_Config.
2459         Remove components Default_Language and Config in Project_Tree_Data,
2460         no longer used.
2462         * prj-attr.adb: New attributes Required_Switches (<language>) in
2463         packages Compiler and Binder.
2465         * prj-nmsc.adb: Major rewrite of the processing of configuration
2466         attributes for gprbuild. No impact on GNAT tools.
2468         * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
2469         process configuration attributes: this is done in Prj.Nmsc.Check.
2470         (Recursive_Process): Make a full copy of packages inherited from project
2471         being extended, instead of a shallow copy.
2472         (Process_Project_Tree_Phase_1): New procedure
2473         (Process_Project_Tree_Phase_1): New procedure
2474         (Process): Implementation now uses the two new procedures
2476         * prj-util.adb (Executable_Of): Get the suffix and the default suffix
2477         from the project config, not the tree config that no longer exists.
2479 2007-09-26  Vincent Celier  <celier@adacore.com>
2481         * Make-lang.in: Update dependencies..
2483 2007-09-26  Vincent Celier  <celier@adacore.com>
2485         * osint.adb, osint.ads: Minor reformatting
2487         * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
2489 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
2491         * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
2492         message to cite use of <> in aggregate component associations rather
2493         than wrongly indicating use of limited aggregates.
2495 2007-09-26  Robert Dewar  <dewar@adacore.com>
2497         * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
2498         Address_Taken.
2500 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
2502         * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
2503         ancestor of the derived type, the operations are inherited from the
2504         primary dispatch table of the parent.
2505         (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
2506         when the context is an explicit type conversion.
2508 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
2510         * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
2511         rule for qualified expressions properly, to detect improper conversions
2512         and resolve some cases of overloading.
2514 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
2516         * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
2517         proper kind of reference to the primitive operation, for better source
2518         navigation.
2519         (Valid_Conversion): A tagged conversion is legal if both operands are
2520         tagged.
2522 2007-09-26  Robert Dewar  <dewar@adacore.com>
2524         * sem_warn.adb (Check_References): Catch more cases of unreferenced
2525         packages.
2527 2007-09-26  Vincent Celier  <celier@adacore.com>
2529         * snames.adb, snames.ads: Change Include_Option to Include_Switches
2531 2007-09-26  Robert Dewar  <dewar@adacore.com>
2533         * s-wchstw.adb: provide messages for run time unit exceptions
2535         * a-witeio.adb: Minor reformatting
2537         * exp_ch13.adb: Minor reformatting
2539 2007-09-26  Sergey Rybin  <rybin@adacore.com>
2541         * vms_data.ads: Revise gnatmetric qualifiers.
2542         Add qualified for the new gnatbind option '-y'
2544         * gnat_ugn.texi: Revise the gnatmetric section.
2545         Add entry for new gnatbind option '-y'.
2547         * gnat_rm.texi: Minor spelling correction.
2548         Document restriction on overlaying controlled types
2550 2007-09-26  Vincent Celier  <celier@adacore.com>
2552         * makegpr.adb (Link_Executables): Do not fail when the root project has
2553         no sources, but is an extending project.
2555 2007-09-25  Eric Botcazou  <ebotcazou@adacore.com>
2557         * trans.c: Fix misplaced #define.
2559 2007-09-22  Eric Botcazou  <ebotcazou@adacore.com>
2561         * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
2562         the TYPE_REF_CAN_ALIAS_ALL flag to the result.
2564 2007-09-21  Olivier Hainque  <hainque@adacore.com>
2566         * utils.c (type_for_nonaliased_component_p): Return false for
2567         all AGGREGATE_TYPEs.
2569 2007-09-17  Eric Botcazou  <ebotcazou@adacore.com>
2571         * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
2572         object covered by 13.3(19) volatile.
2574 2007-09-12  Eric Botcazou  <ebotcazou@adacore.com>
2576         PR ada/26797
2577         PR ada/32407
2578         * utils.c (unchecked_convert): Use a subtype as the intermediate type
2579         in the special VIEW_CONVERT_EXPR case.
2581 2007-09-12  Robert Dewar  <dewar@adacore.com>
2583         * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
2585         * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
2586         lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
2587         s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
2588         s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
2589         s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
2590         s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
2591         s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
2592         s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
2593         a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads, 
2594         g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads, 
2595         s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb, 
2596         s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb, 
2597         snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads, 
2598         s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads, 
2599         s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads, 
2600         s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads, 
2601         s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
2602         pragma Compiler_Unit and adds it to relevant library units.
2604 2007-09-12  Ed Schonberg  <schonberg@adacore.com>
2606         * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
2607         a box need not correspond to any component.
2609 2007-09-12  Robert Dewar  <dewar@adacore.com>
2611         * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
2612         the tasking version of the Ada run time when foreign threads are
2613         present and there are no explicit Ada tasks or tasking constructs.
2615         * gnat_rm.texi: Clarify documentation of GNAT.Threads.
2617 2007-09-12  Hristian Kirtchev  <kirtchev@adacore.com>
2619         * bindusg.adb (Display): Correct comment for switch -X. Add a line for
2620         the usage of switch -y.
2622         * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
2623         when switch -y is present.
2625         * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
2626         leap seconds in Ada.Calendar and its children.
2628 2007-09-12  Jose Ruiz  <ruiz@adacore.com>
2630         * a-extiti.ads (Timer): The discriminant is a "not null access
2631         constant" in the Reference Manual.
2632         (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
2634 2007-09-12  Robert Dewar  <dewar@adacore.com>
2636         * a-swuwha.adb: Remove junk RM header
2638 2007-09-12  Vincent Celier  <celier@adacore.com>
2640         * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
2641         indicator
2643         * g-bytswa.ads: Minor reformatting
2645 2007-09-12  Thomas Quinot  <quinot@adacore.com>
2647         * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads: 
2648         Add new constant Thread_Blocking_IO, always True by default, set False
2649         on a per-runtime basis.
2650         (Need_Netdb_Buffer): New constant.
2652 2007-09-12  Arnaud Charlet  <charlet@adacore.com>
2654         * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
2655         Added renames for corresponding functions in System.Partition_Interface.
2657 2007-09-12  Doug Rupp  <rupp@adacore.com>
2659         * Makefile.in: Remove VMS specific System.CRTL packages which are no
2660         longer needed.
2662         * s-crtl-vms64.ads: Removed.
2664 2007-09-12  Olivier Hainque  <hainque@adacore.com>
2666         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
2667         with discriminant constraints, generalize the code for BIT_FIELDs
2668         to PACKED fields of constant size and propagate DECL_PACKED.
2670 2007-09-11  Eric Botcazou  <ebotcazou@adacore.com>
2672         * decl.c (array_type_has_nonaliased_component): New predicate.
2673         (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
2674         set the TYPE_NONALIASED_COMPONENT flag on the type.
2675         <E_Array_Subtype>: Likewise.
2676         * gigi.h (type_for_nonaliased_component_p): Declare.
2677         * utils.c (type_for_nonaliased_component_p): New predicate.
2678         (create_field_decl): Invoke the above predicate to set the
2679         DECL_NONADDRESSABLE_P flag on the field.
2681 2007-09-11  Javier Miranda  <miranda@adacore.com>
2683         * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
2684         in library level record type entities if we are generating statically
2685         allocated dispatch tables.
2687         * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
2688         importing/exporting the _tag declaration by new code
2689         importing/exporting the dispatch table wrapper. This change allows us
2690         to statically allocate of the TSD.
2691         (Make_DT.Export_DT): New procedure.
2692         (Build_Static_DT): New function.
2693         (Has_DT): New function.
2695         * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
2696         True_Constant and Current_Value. Required to statically
2697         allocate the dispatch tables.
2698         (Check_Allocator): Make function iterative instead of recursive.
2699         Also return inner allocator node, when present, so that we do not have
2700         to look for that node again in the caller.
2702 2007-09-11  Jan Hubicka <jh@suse.cz>
2704         * misc.c (gnat_expand_body): Kill.
2705         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
2707 2007-09-10  Robert Dewar  <dewar@adacore.com>
2709         * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
2710         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
2711         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
2712         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
2713         ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
2714         bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
2715         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
2716         butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
2717         comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
2718         elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
2719         err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
2720         exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
2721         exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
2722         exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
2723         exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
2724         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
2725         exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
2726         exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
2727         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
2728         exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
2729         exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
2730         exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
2731         fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
2732         get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
2733         gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
2734         gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
2735         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
2736         gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
2737         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
2738         gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
2739         inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
2740         lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
2741         lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
2742         make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
2743         mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
2744         mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
2745         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
2746         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
2747         osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
2748         osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
2749         par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
2750         par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
2751         par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
2752         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
2753         par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
2754         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
2755         prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
2756         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
2757         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
2758         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
2759         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
2760         prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
2761         rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
2762         scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
2763         sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
2764         sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
2765         sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
2766         sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
2767         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
2768         sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
2769         sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
2770         sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
2771         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
2772         sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
2773         sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
2774         sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
2775         sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
2776         sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
2777         stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
2778         styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
2779         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
2780         switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
2781         tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
2782         treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
2783         types.h, uintp.h, urealp.h, usage.adb, usage.ads,
2784         validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
2785         xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
2786         xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
2787         gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
2788         mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
2789         symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
2790         mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
2791         mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
2793 2007-09-10  Emmanuel Briot  <briot@adacore.com>
2795         * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
2796         classes ("[]").
2798 2007-09-10  Vasiliy Fofanov  <fofanov@adacore.com>
2800         * adaint.c (__gnat_translate_vms): new function.
2802 2007-09-10  Gary Dismukes  <dismukes@adacore.com>
2803             Thomas Quinot  <quinot@adacore.com>
2805         * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
2806         create an abstract subprogram in the case of 'Input. For 'Output we now
2807         create a real spec/body when the type is abstract, since it can
2808         potentially be called.
2809         (Predefined_Primitive_Bodies): Now allow the creation of a predefined
2810         body for 'Output when the type is abstract (only the creation of the
2811         body for 'Input is excluded when the type is abstract).
2812         (Stream_Operation_OK): Add an additional condition in the return
2813         statement, so that False will be returned for TTS_Stream_Input if the
2814         associated tagged type is an abstract extension. Add comments for
2815         return statement.
2816         (Expand_N_Object_Declaration): For the case of a shared passive
2817         variable, insert init proc call only after the shared variable
2818         procedures have been processed, because the IP call needs to undergo
2819         shared passive variable reference expansion, which requires these
2820         procedures to be available (and elaborated).
2822 2007-09-10  Vincent Celier  <celier@adacore.com>
2824         * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
2825         parameter Runtime_Project.
2827 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
2829         * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
2830         given a box association, the type of the component is discriminated,
2831         and the value of the discriminant is the discriminant of the enclosing
2832         type, retrieve its value from the aggregate itself, where it must have
2833         been supplied.
2835         * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
2836         to remove other spurious ambiguities on arithmetic operations involving
2837         literals and addresses, on systems where Address is a visible integer
2838         type, when the operator is called in functional notation.
2839         (Try_Primitive_Operation): Within an instance, a call in prefixed form
2840         is legal when the types match, even if the operation is currently
2841         hidden.
2843 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
2845         * sem_ch12.adb (Build_Local_Package): A formal package with no
2846         associations is legal if all formals have defaults. It is not
2847         equivalent to a formal declared with a box.
2849 2007-09-10  Sergey Rybin  <rybin@adacore.com>
2851         * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
2853 2007-09-10  Sergey Rybin  <rybin@adacore.com>
2855         * gnat_ugn.texi: Add description of the new '-lratio' option
2856         Update 7.3.1 section about availability of the feature.
2858 2007-09-10  Thomas Quinot  <quinot@adacore.com>
2860         * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
2861         inserted node.
2863 2007-09-10  Olivier Hainque  <hainque@adacore.com>
2865         * Makefile.in: (mips-irix section): Activate build of libgmem.
2867 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
2869         * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
2870         x87 registers.
2872 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
2874         * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
2875         a debug renaming declaration specially.
2877 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
2879         * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
2880         which a constant renaming is treated as a normal object declaration.
2881         * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
2882         the N_Indexed_Component case.
2883         <N_Indexed_Component>: Fall through to above case.
2884         <N_Object_Renaming_Declaration>: Return true for all composite types.
2886 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
2888         * decl.c (make_packable_type): If the new type has been given BLKmode,
2889         try again to get an integral mode for it.
2891 2007-09-07  Eric Botcazou  <ebotcazou@adacore.com>
2893         Re-apply accidentally reverted change:
2895         2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
2897         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
2898         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
2899         and _Unwind_SWord with _sleb128_t.
2901 2007-09-06  Eric Botcazou  <ebotcazou@adacore.com>
2903         * trans.c (convert_with_check): Update call to real_2expN.
2905 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
2907         * trans.c (Compilation_unit_to_gnu): Use set_cfun.
2908         * utils.c (end_subprog_body): Likewise.
2910 2007-09-03  Nick Clifton  <nickc@redhat.com>
2912         * Make-lang.in: Change copyright header to refer to version 3 of
2913         the GNU General Public License and to point readers at the
2914         COPYING3 file and the FSF's license web page.
2915         * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
2916         Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
2917         namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
2918         treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
2919         Likewise.
2921 2007-08-31  Vincent Celier  <celier@adacore.com>
2923         PR ada/4720
2925         * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb, 
2926         gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
2927         (Check_Version_And_Help): New procedure in package Switch to process
2928         switches --version and --help.
2929         Use Check_Version_And_Help in GNAT tools
2931         * make.adb:  Ditto.
2932         (Compile_Sources): Make sure that sources that are "excluded" are not
2933         compiled.
2934         (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
2935         project file is used.
2936         (Version_Switch): Remove, moved to Switch
2937         (Help_Switch): Remove, moved to Switch
2938         (Display_Version): Remove, moved to Switch
2940         * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
2941         package Switch to process switches --version and --help.
2942         (Display_Version): New procedure
2944         * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
2946 2007-08-31  Javier Miranda  <miranda@adacore.com>
2948         * a-tags.adb (Internal_Tag): Protect the run-time against wrong
2949         internal tags.
2951 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
2953         * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
2954         (Mark_Non_Null): If the node for which we just generated an access check
2955         is a reference to an *in* parameter and the reference appears in the
2956         declarative part of a subprogram body, mark the node as known non null.
2958 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
2960         * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
2961         structure of E_Exception to reflect the new flag.
2962         (Is_Raised, Set_Is_Raised): New inlined routines.
2963         Update the usage of available flag to reflect the addition of Is_Raised.
2964         (Is_Raised, Set_Is_Raised): Bodies of new routines.
2965         (Write_Entity_Flags): Write the status of flag Is_Raised.
2966         (Is_Descendent_Of_Address): New entity flag, to simplify handling of
2967         spurious ambiguities when integer literals appear in the context of an
2968         address type that is a visible integer type.
2970         * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
2971         exceptions never being raised.
2972         (Analyze_Raise_Statement): When analyzing an exception, mark it as being
2973         explicitly raised.
2975 2007-08-31  Javier Miranda  <miranda@adacore.com>
2977         * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
2978         statement when compiling under restriction No_Exceptions_Proparation.
2980 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
2982         * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
2983         initialization aggregate for the type, generate itype references for
2984         thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
2986 2007-08-31  Gary Dismukes  <dismukes@adacore.com>
2988         * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
2989         library-level package renaming, pass the declaration associated with
2990         the renaming's special debug variable to Qualify_Entity_Names to ensure
2991         that its encoded name is properly qualified.
2993         * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
2994         occurring in the list of entities to qualify, and do not attempt to
2995         traverse an entity list in that case. Variables associated with
2996 `       library-level package renamings can now occur in the table.
2998         * exp_dbug.ads: Revise documentation of the encoding for renaming
2999         declarations.
3001 2007-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3003         * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
3004         access type points to an unconstrained array.
3006 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
3008         * restrict.adb, namet.adb, par-util.adb: Remove redundant type
3009         conversion.
3011         * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
3012         simple redundant qualifications. The check is performed whenever the
3013         expression is a non-overloaded identifier.
3014         (Resolve_Type_Conversion): Enchance the redundant type conversion check
3015         to include loop parameters.
3016         (Valid_Conversion): Avoid generation of spurious error message.
3018 2007-08-31  Bob Duff  <duff@adacore.com>
3020         * par-ch4.adb (P_Simple_Expression): Fold long sequences of
3021         concatenations of string literals into a single literal, in order to
3022         avoid very deep recursion in the front end, which was causing stack
3023         overflow.
3025         * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
3026         string, and the right operand is a string literal (the case of "" &
3027         "..."), optimize by avoiding copying the right operand -- just use the
3028         value of the right operand directly.
3030         * stringt.adb (Store_String_Chars): Optimize by growing the
3031         String_Chars table all at once, rather than appending characters one by
3032         one.
3033         (Write_String_Table_Entry): If the string to be printed is very long,
3034         just print the first few characters, followed by the length. Otherwise,
3035         doing "pn(n)" in the debugger can take an extremely long time.
3037         * sem_prag.adb (Process_Interface_Name): Replace loop doing
3038         Store_String_Char with Store_String_Chars.
3040 2007-08-31  Vincent Celier  <celier@adacore.com>
3042         * prj-attr.adb: Add new attribute Excluded_Source_Files
3044         * prj-nmsc.adb: Use attribute Excluded_Source_Files before
3045         Locally_Removed_Files.
3047         * snames.ads, snames.adb: New standard name Excluded_Source_Files
3049 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
3051         * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
3052         clauses of subunits, ignore limited_with_clauses that are illegal and
3053         have not been fully analyzed.
3055 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
3057         * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
3058         flag, for effiency. It is called when analyzing arithmetic operators
3059         and also for actuals in calls that are universal_integers. The flag is
3060         set for the predefined type address, and for any type or subtype
3061         derived from it.
3063         * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
3064         Universal_Integer, when the formal is a descendent of address and the
3065         call appears in user code.
3066         (Analyze_Selected_Component): if the prefix is a private extension, the
3067         tag component is visible.
3069         * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
3070         entity flag.
3072 2007-08-31  Robert Dewar  <dewar@adacore.com>
3074         * s-fileio.adb (Open): Normalize file name to lower case in non-case
3075         sensitive file name systems to avoid unexpected mismatch in Vista.
3077 2007-08-31  Vincent Celier  <celier@adacore.com>
3079         * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
3081 2007-08-31  Vincent Celier  <celier@adacore.com>
3083         * symbols-vms.adb (Initialize): Read symbol files with continuation
3084         lines
3085         (Finalize): If symbol is long, split the line
3087 2007-08-31  Vincent Celier  <celier@adacore.com>
3089         * fmap.ads: Minor comment updates
3091 2007-08-31  GNAT Script  <nobody@adacore.com>
3093         * Make-lang.in: Makefile automatically updated
3095 2007-08-31  Bob Duff  <duff@adacore.com>
3097         * sinfo.ads: Minor comment fix.
3099 2007-08-31  Thomas Quinot  <quinot@adacore.com>
3101         * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
3102         with implementation.
3103         Documentation cleanup only.
3105 2007-08-31  Sergey Rybin  <rybin@adacore.com>
3107         * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
3108         gnatpp '--separate-stmt-name' option.
3109         Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
3110         option.
3112         * gnat_ugn.texi: Add description for the new gnatpp
3113         '--separate-stmt-name' and '--use-on-new-line' options.
3115 2007-08-31  Ben Elliston  <bje@au.ibm.com>
3117         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
3118         when compiling for powerpc64-*-linux.
3119         * system-linux-ppc64.ads: New file.
3121 2007-08-22  Krister Walfridsson  <cato@df.lth.se>
3123         * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
3124         NetBSD.
3126 2007-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3128         * misc.c (gnat_type_max_size): Constify.
3130 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
3132         * cstand.adb (Create_Standard): Create an entity for a zero-sized type
3133         associated with Standard_Debug_Renaming_Type, to be used as the type of
3134         the special variables whose names provide debugger encodings for
3135         renaming declarations.
3137         * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
3138         (Set_Debug_Renaming_Link): Change to set Node25.
3139         (Write_Field13_Name): Remove case for E_Enumeration_Literal.
3140         (Write_Field25_Name): Add case for E_Variable to output
3141         "Debug_Renaming_Link".
3142         (Write_Field23_Name): Correct the output string for "Limited_View".
3144         * exp_dbug.adb: Add with and use of Tbuild.
3145         (Debug_Renaming_Declaration): Replace creation of an enumeration type
3146         and literal with creation of a variable of type
3147         Standard_Debug_Renaming_Type whose name encodes both the renamed object
3148         and the entity of the renaming declaration.
3149         (Qualify_Entity_Name): Add the delayed qualification of the entity name
3150         part of the name of a variable that has a Debug_Renaming_Link.
3152         * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
3153         special type to be associated with variables that provide debugger
3154         encodings for renaming declarations.
3156 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
3157             Ed Schonberg  <schonberg@adacore.com>
3158             Javier Miranda  <miranda@adacore.com>
3160         * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
3161         ancestor part given by an aggregate to test for an unchecked conversion,
3162         since this can occur in some cases when the ancestor part is a function
3163         call, and we don't want to fall into the recursive call to this
3164         procedure in that case.
3166         * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
3167         stream attributes on limited types to account for user-specified
3168         attributes as well as whether Input (resp. Output) becomes available
3169         due to Read (resp. Write) being available for the type. Change Boolean
3170         variable to the more accurate name
3171         Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
3172         double-"not" predicate at beginning of return statement to more
3173         understandable form.
3175         * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
3176         return has an associated N_Handled_Sequence_Of_Statements, then wrap it
3177         in a block statement and use that as the first statement of the
3178         expanded return rather than incorrectly using the handled sequence as
3179         the first statement.
3181         * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
3182         operation, generate an explicit freeze node for it rather than
3183         generating extra formals, to ensure that gigi has the proper order of
3184         elaboration for anonymous subtypes in the signature of the subprograms.
3185         (Build_In_Place_Formal): Move assertion to beginning of loop.
3186         (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
3187         applied to a function call (occurs for some cases of 'Input).
3188         (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
3189         applied to a function call (occurs for some cases of 'Input).
3191         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
3192         2005, generate an extended return statement enclosing the result object
3193         and 'Read call.
3195         * freeze.adb (Freeze_Record_Type): Extend the current management of
3196         components that are access type with an allocator as default value: add
3197         missing support to the use of qualified expressions of the
3198         allocator (which also cause freezing of the designated type!)
3199         (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
3200         dispatching operation, since extra formals may be needed by calls to
3201         build-in-place functions (such as stream 'Input).
3203         * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
3204         formals for 'Constrained and accessibility level in the case of a
3205         predefined dispatching operation.
3207         * exp_util.adb (Insert_Actions): A protected body is a valid insertion
3208         point, no need to find the parent node.
3210 2007-08-16  Javier Miranda  <miranda@adacore.com>
3212         * exp_attr.adb (Attribute_Priority): Add missing support for entries
3213         and entry barriers.
3215 2007-08-16  Javier Miranda  <miranda@adacore.com>
3217         * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
3218         is not really required and can introduce regression with the debugger.
3219         The original problem is fixed with the patch written for checks.adb.
3221 2007-08-16  Thomas Quinot  <quinot@adacore.com>
3223         * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
3224         Range_Check on Allocated_Table.
3226 2007-08-16  Vincent Celier  <celier@adacore.com>
3228         * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
3229         Including_Non_Switch set to False.
3230         (Gnatmake): For the compiler, call Test_If_Relative_Path with
3231         Including_Non_Switch set to False.
3233         * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
3234         parameter Including_Non_Switch, defaulted to True. When
3235         Including_Non_Switch is False, options that are not switches and
3236         appear as relative path are not converted to absolute paths.
3238 2007-08-16  Nicolas Roche  <roche@adacore.com>
3240         * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
3241         makefiles
3243         * Make-lang.in: Update dependencies
3245 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
3247         * sem_ch10.adb (Has_With_Clause): If the name of the with clause
3248         currently inspected is a selected component, retrieve the entity of
3249         its selector.
3250         (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
3251         from the immediate ancestor of Main_Unit_Entity.
3252         (Install_Limited_Withed_Unit): Do not install the limited view of
3253         package P if P is reachable through an ancestor chain from package C
3254         and C also has a with clause for P in its body.
3255         (Has_Limited_With_Clause): New routine.
3256         (Has_With_Clause): New routine.
3258 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
3260         * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
3261         generic for an enclosing instance is a global reference, even though
3262         its scope is the enclosing instance.
3264 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
3265             Javier Miranda  <miranda@adacore.com>
3267         * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
3268         initialize a limited object.
3269         (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
3270         13/2 and 14/2.
3271         Make sure Has_Complex_Representation is inherited by derived type.
3273 2007-08-16  Robert Dewar  <dewar@adacore.com>
3275         * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
3276         exception case
3278 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
3280         * sem_disp.adb (Check_Dispatching_Operation): If the operation
3281         implements an operation inherited from a progenitor interface, verify
3282         that they are subtype-conformant.
3284 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
3285             Bob Duff  <duff@adacore.com>
3286             Nicolas Setton  <setton@adacore.com>
3288         * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
3289         (Resolve): Alphabetize local variables. Add new variable From_Lib. When
3290         the statement which is being resolved comes from a predefined library
3291         unit, all non-predefined library interpretations are skipped.
3292         (Resolve_Op_Concat): If string concatenation was folded in the parser,
3293         but the "&" is user defined, give an error, because the folding would
3294         be wrong.
3296         * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
3297         the parser has folded a long sequence of concatenations of string
3298         literals.
3300         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
3301         and "JMP_BUF" variables as artificial.
3302         (N_String_Literal): Do not use alloca for very long string literals. Use
3303         xmalloc/free instead. Otherwise the stack might overflow.
3305         * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
3306         compiler.
3308 2007-08-16  Vincent Celier  <celier@adacore.com>
3310         * vms_conv.adb (Process_Argument): Ensure that project related options
3311         are not put in the -cargs section when using GNAT COMPILE.
3313 2007-08-16  Robert Dewar  <dewar@adacore.com>
3315         * gnat_ugn.texi: Add note on preprocessing (output file not written)
3317 2007-08-16  Thomas Quinot  <quinot@adacore.com>
3319         * a-tags.adb: Minor reformatting.
3321 2007-08-16  Bob Duff  <duff@adacore.com>
3323         * sem_type.ads, sem_ch4.adb: Minor reformatting.
3325 2007-08-14  Thomas Quinot  <quinot@adacore.com>
3327         * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads, 
3328         s-osinte-interix.ads, system-interix.ads: Removed.
3330 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
3332         * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
3333         calls to Check_Within_Time_Bounds.
3334         ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
3335         (Difference): Account for possible rounding of the resulting difference
3337 2007-08-14  Robert Dewar  <dewar@adacore.com>
3339         * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
3340         par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
3341         s-osinte-solaris.adb, s-osinte-solaris.ads,
3342         s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
3344         * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
3345         switch -gnatyS. Enable -gnatyS in GNAT style check mode
3347 2007-08-14  Robert Dewar  <dewar@adacore.com>
3348             Ed Schonberg  <schonberg@adacore.com>
3350         * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads: 
3351         Suppress unmodified in-out parameter warning in some cases
3352         This patch is a also fairly significant change to the way suppressible
3353         checks are handled.
3355         * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
3356         needed for access to concurrent record types generated by the expander.
3357         (Generate_Range_Check): When generating a temporary to capture the
3358         value of a conversion that requires a range check, set the type of the
3359         temporary before rewriting the node, so that the type is always
3360         properly placed for back-end use.
3361         (Apply_Float_Conversion_Check): Handle case where the conversion is
3362         truncating.
3363         (Get_Discriminal): Code reformatting. Climb the scope stack looking
3364         for a protected type in order to examine its discriminants.
3366 2007-08-14  Robert Dewar  <dewar@adacore.com>
3367             Gary Dismukes  <dismukes@adacore.com>
3368             Ed Schonberg  <schonberg@adacore.com>
3369             Thomas Quinot  <quinot@adacore.com>
3371         * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb, 
3372         a-stwisu.adb, a-strsup.adb: Fix warnings for range
3373         tests optimized out.
3375         * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
3376         (Get_Allocator_Final_List): For the case of an anonymous access type
3377         that has a specified Associated_Final_Chain, do not go up to the
3378         enclosing scope.
3379         (Expand_N_Type_Conversion): Test for the case of renamings of access
3380         parameters when deciding whether to apply a run-time accessibility
3381         check.
3382         (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
3383         aggregate code before allocator, and ahead of declaration for
3384         temporary, to prevent access before elaboration when the allocator is
3385         an actual for an access parameter.
3386         (Expand_N_Type_Conversion): On an access type conversion involving an
3387         access parameter, do not apply an accessibility check when the
3388         operand's original node was an attribute other than 'Access. We now
3389         create access conversions for the expansion of 'Unchecked_Access and
3390         'Unrestricted_Access in certain cases and clearly accessibility should
3391         not be checked for those.
3393         * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
3394         includes a type conversion of a packed component that has been expanded,
3395         recover the original expression for the object, and use this expression
3396         in the post-call assignment statement, so that the assignment is made
3397         to the object and not to a back-end temporary.
3398         (Freeze_Subprogram): In case of primitives of tagged types not defined
3399         at the library level force generation of code to register the primitive
3400         in the dispatch table. In addition some code reorganization has been
3401         done to leave the implementation clear.
3402         (Expand_Call): When expanding an inherited implicit conversion,
3403         preserve the type of the inherited function after the intrinsic
3404         operation has been expanded.
3406         * exp_ch2.ads, exp_ch2.adb
3407         (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
3408         of an entry formal appearing in an assignment statement does not assign
3409         to the formal.
3410         (Expand_Current_Value): Instead of calling a routine to determine
3411         whether the prefix of an attribute reference should be optimized or
3412         not, prevent the optimization of such prefixes all together.
3414         * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
3415         component whose prefix is known to be of an access type is an implicit
3416         dereference and does not assign to the prefix.
3418 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
3419             Robert Dewar  <dewar@adacore.com>
3421         * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
3422         itype is visited, make an entry into table to link associated node and
3423         new itype.
3424         Add comments and correct harmless error in Build_NCT_Hash_Tables
3425         (Array_Aggr_Subtype): Associate each itype created for an index type to
3426         the corresponding range construct, and not to the aggregate itself. to
3427         maintain a one-to-one correspondence between itype and its associated
3428         node, to prevent errors when complex expression is copied.
3429         Fix mishandling of multiple levels of parens
3431         * sem_aggr.adb: Create a limited view of an incomplete type, to make
3432         treatment of limited views uniform for all visible declarations in a
3433         limited_withed package.
3434         (New_Copy_Tree): If hash table is being used and itype is visited,
3435         make an entry into table to link associated node and new itype.
3436         (Resolve_Record_Aggregate): Do not add an others box association for a
3437         discriminated record component that has only discriminants, when there
3438         is a box association for the component itself.
3440         * par-ch4.adb: Fix mishandling of multiple levels of parens
3442 2007-08-14  Robert Dewar  <dewar@adacore.com>
3444         * comperr.adb: Fix problem with suppressing warning messages from gigi
3446         * erroutc.ads, erroutc.adb, errout.ads, 
3447         errout.adb (Write_Eol): Remove trailing spaces before writing the line
3448         (Write_Eol_Keep_Blanks): New procedure to write a line, including
3449         possible trailing spaces.
3450         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
3451         Fix problem with suppressing warning messages from back end
3452         Improve handling of deleted warnings
3454         * gnat1drv.adb: 
3455         Fix problem with suppressing warning messages from back end
3456         Handle setting of Static_Dispatch_Tables flag.
3458         * prepcomp.adb: 
3459         Fix problem with suppressing warning messages from back end
3461         * exp_intr.adb: Improve handling of deleted warnings
3463 2007-08-14  Robert Dewar  <dewar@adacore.com>
3465         * debug.adb: Improve -gnatdI to cover all cases of serialization
3466         Add documentation of dZ, d.t
3468         * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
3469         serialization.
3470         (Sprint_Node_Actual): Generate new output associated with implicit
3471         importation and implicit exportation of object declarations.
3473 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
3474             Robert Dewar  <dewar@adacore.com>
3475             Javier Miranda  <miranda@adacore.com>
3476             Gary Dismukes  <dismukes@adacore.com>
3478         * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
3479         to make treatment of limited views uniform for all visible declarations
3480         in a limited_withed package.
3481         Improve warnings for in out parameters
3482         (Set_Related_Interaface/Related_Interface): Allow the use of this
3483         attribute with constants.
3484         (Write_Field26_Name): Handle attribute Related_Interface in constants.
3485         Warn on duplicate pragma Preelaborable_Initialialization
3487         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
3488         generation of a freezing node to ensure proper management of null
3489         excluding access types in the backend.
3490         (Create_Extra_Formals): Test base type of the formal when checking for
3491         the need to add an extra accessibility-level formal. Pass the entity E
3492         on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
3493         originally being done in a couple of cases), to ensure that the
3494         Extra_Formals list gets set on the entity E when the first entity is
3495         added.
3496         (Conforming_Types): Add missing calls to Base_Type to the code that
3497         handles anonymous access types. This is required to handle the
3498         general case because Process_Formals builds internal subtype entities
3499         to handle null-excluding access types.
3500         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
3501         functions that need it, even when not marked Requires_Overriding.
3502         Improve warnings for in out parameters
3503         (Analyze_Function_Return): Warn for disallowed null return
3504         Warn on return from procedure with unset out parameter
3505         Ensure consistent use of # in error messages
3506         (Check_Overriding_Indicator): Add in parameter Is_Primitive.
3507         (Analyze_Function_Return): Move call to Apply_Constraint_Check before
3508         the implicit conversion of the expression done for anonymous access
3509         types. This is required to generate the code of the null excluding
3510         check (if required).
3512         * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
3513         A formal parameter is never publicly referenceable outside of its body.
3514         (Check_References): For an unreferenced formal parameter in an accept
3515         statement, use the same warning circuitry as for subprogram formal
3516         parameters.
3517         (Warn_On_Unreferenced_Entity): New subprogram, taken from
3518         Output_Unreferenced_Messages, containing the part of that routine that
3519         is now reused for entry formals as described above.
3520         (Goto_Spec_Entity): New function
3521         (Check_References): Do not give IN OUT warning for dispatching operation
3522         Improve warnings for in out parameters
3523         (Test_Ref): Check that the entity is not undefinite before calling
3524         Scope_Within, in order to avoid infinite loops.
3525         Warn on return from procedure with unset out parameter
3526         Improved warnings for unused variables
3528 2007-08-14  Robert Dewar  <dewar@adacore.com>
3529             Javier Miranda  <miranda@adacore.com>
3530             Gary Dismukes  <dismukes@adacore.com>
3532         * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
3533         (Expand_N_Attribute_Reference): Further unify the handling of the
3534         three forms of access attributes, using common code now for all three
3535         cases. Add a test for the case of applying an access attribute to
3536         an explicit dereference when the context is an access-to-interface
3537         type. In that case we need to apply the conversion to the prefix
3538         of the explicit dereference rather than the prefix of the attribute.
3539         (Attribute_Version, UET_Address): Set entity as internal to ensure
3540         proper dg output of implicit importation.
3541         (Expand_Access_To_Type): Removed.
3542         (Expand_N_Attribute_Reference): Merge the code from the three cases
3543         of access attributes, since the processing is largely identical for
3544         these cases. The substantive fix here is to process the case of a
3545         type name prefix (current instance case) before handling the case
3546         of interface prefixes.
3548 2007-08-14  Thomas Quinot  <quinot@adacore.com>
3549             Ed Schonberg  <schonberg@adacore.com>
3550             Javier Miranda  <miranda@adacore.com>
3551             Robert Dewar  <dewar@adacore.com>
3553         * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
3554         (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
3555         type that is an anonymous access to controlled object, establish
3556         an associated finalization chain to avoid corrupting the global
3557         finalization list when a dynamically allocated object designated
3558         by such a component is deallocated.
3559         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
3560         functions that need it, even when not marked Requires_Overriding.
3561         (Initialize_Tag): Replace call to has_discriminants by call to
3562         Is_Variable_Size_Record in the circuitry that handles the
3563         initialization of secondary tags.
3564         (Is_Variable_Size_Record): New implementation.
3565         (Expand_N_Object_Declaration): Suppress call to init proc if there is a
3566         Suppress_Initialization pragma for a derived type.
3567         (Is_Variable_Size_Record): New subprogram.
3568         (Build_Offset_To_Top_Functions): New implementation that simplifies the
3569         initial version of this routine and also fixes problems causing
3570         incomplete initialization of the table of interfaces.
3571         (Build_Init_Procedure): Improve the generation of code to initialize the
3572         the tag components of secondary dispatch tables.
3573         (Init_Secondary_Tags): New implementation that simplifies the previous
3574         version of this routine.
3575         (Make_DT): Add parameter to indicate when type has been frozen by an
3576         object declaration, for diagnostic purposes.
3577         (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
3578         diagnose attemps to freeze a subprogram when some untagged type of its
3579         profile is a private type whose full view has not been analyzed yet.
3580         (Freeze_Array_Type): Generate init proc for packed array if either
3581         Initialize or Normalize_Scalars is set.
3582         (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
3583         constructing the new profile, copy the null_exclusion indicator for each
3584         parameter, to ensure full conformance of the new body with the spec.
3586         * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
3587         Create wrappers for constructor functions that need it, even when not
3588         marked Requires_Overriding.
3589         (Covers): Handle properly designated types of anonymous access types,
3590         whose non-limited views are themselves incomplete types.
3591         (Add_Entry): Use an entity to store the abstract operation which hides
3592         an interpretation.
3593         (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
3594         (Collect_Interps): Use Empty as an actual for Abstract_Op in the
3595         initialization aggregate.
3596         (Function_Interp_May_Be_Hidden): Rename to
3597         Function_Interp_Has_Abstract_Op.
3598         (Has_Compatible_Type): Remove machinery that skips interpretations if
3599         they are labeled as potentially hidden by an abstract operator.
3600         (Has_Hidden_Interp): Rename to Has_Abstract_Op.
3601         (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
3602         (Write_Overloads): Output the abstract operator if present.
3603         (Add_Entry): Before inserting a new entry into the interpretation table
3604         for a node, determine whether the entry will be disabled by an abstract
3605         operator.
3606         (Binary_Op_Interp_May_Be_Hidden): New routine.
3607         (Collect_Interps): Add value for flag May_Be_Hidden in initialization
3608         aggregate.
3609         (Function_Interp_May_Be_Hidden): New routine.
3610         (Has_Compatible_Type): Do not consider interpretations hidden by
3611         abstract operators when trying to determine whether two types are
3612         compatible.
3613         (Has_Hidden_Interp): New routine.
3614         (Set_May_Be_Hidden_Interp): New routine.
3615         (Write_Overloads): Write the status of flag May_Be_Hidden.
3617 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
3618             Javier Miranda  <miranda@adacore.com>
3620         * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
3621         types declared in the declarative part of a nested package body or in
3622         the proper body of a stub.
3623         (Set_All_DT_Position): Add missing check to avoid wrong assignation
3624         of the same dispatch table slot to renamed primitives.
3625         (Make_Select_Specific_Data_Table): Handle private types.
3626         (Tagged_Kind): Handle private types.
3627         (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
3628         output of implicit importation and exportation.
3629         (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
3630         first formal of the thunk is always associated with the controlling
3631         type. In addition perform the following code cleanup: remove formal
3632         Thunk_Alias which is no longer required, cleanup evaluation of the
3633         the controlling type, and update the documentation.
3634         Replace occurrence of Default_Prim_Op_Count by
3635         Max_Predef_Prims. Addition of compile-time check to verify
3636         that the value of Max_Predef_Prims is correct.
3637         (Check_Premature_Freezing): Apply check in Ada95 mode as well.
3638         (Make_DT): Add parameter to indicate when type has been frozen by an
3639         object declaration, for diagnostic purposes.
3640         (Build_Static_Dispatch_Tables): New subprogram that takes care of the
3641         construction of statically allocated dispatch tables.
3642         (Make_DT): In case of library-level tagged types export the declaration
3643         of the primary tag. Remove generation of tags (now done by Make_Tags).
3644         Additional modifications to handle non-static generation of dispatch
3645         tables. Take care of building tables for asynchronous interface types
3646         (Make_Tags): New subprogram that generates the entities associated with
3647         the primary and secondary tags of Typ and fills the contents of Access_
3648         Disp_Table. In case of library-level tagged types imports the forward
3649         declaration of the primary tag that will be declared later by Make_DT.
3650         (Expand_Interface_Conversion): In case of access types to interfaces
3651         replace an itype declaration by an explicit type declaration to avoid
3652         problems associated with the scope of such itype in transient blocks.
3654 2007-08-14  Robert Dewar  <dewar@adacore.com>
3655             Ed Schonberg  <schonberg@adacore.com>
3656             Javier Miranda  <miranda@adacore.com>
3658         * exp_util.ads, exp_util.adb: 
3659         This patch replaces a number of occurrences of explicit tests for N_Null
3660         with calls to Known_Null. This improves tracking of null values, since
3661         Known_Null also catches null constants, and variables currently known to
3662         be null, so we get better tracking.
3663         (Ensure_Defined): create an itype reference only in the scope of the
3664         itype.
3665         (Side_Effect_Free): A selected component of an access type that
3666         denotes a component with a rep clause must be treated as not
3667         side-effect free, because if it is part of a linked structure its
3668         value may be affected by a renaming.
3669         (Expand_Subtype_From_Expr): For limited objects initialized with build
3670         in place function calls, do nothing; otherwise we prematurely introduce
3671         an N_Reference node in the expression initializing the object, which
3672         breaks the circuitry that detects and adds the additional arguments to
3673         the called function. Bug found working in the new patch for statically
3674         allocated dispatch tables.
3675         (Is_Library_Level_Tagged_Type): New subprogram.
3676         (Remove_Side_Effects): If the expression of an elementary type is an
3677         operator treat as a function call.
3678         (Make_Literal_Range): If the index type of the array is not integer, use
3679         attributes properly to compute the constraint on the resulting aggregate
3680         which is a string.
3682         * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
3683         class-wide type whose base type is an incomplete private type, leave
3684         class-wide type unfrozen so that freeze nodes can be generated
3685         properly at a later point.
3686         (Freeze_Entity, array case): Handle case of pragma Pack and component
3687         size attributre clause for same array.
3689 2007-08-14  Vincent Celier  <celier@adacore.com>
3691         * prj.ads, prj.adb: Update Project Manager to new attribute names for
3692         gprbuild.
3693         Allow all valid declarations in configuration project files
3694         (Reset): Initialize all tables and hash tables in the project tree data
3695         Major update of the Project Manager and of the project aware tools,
3696         including gprmake, so that the same sources in the GNAT repository
3697         can be used by gprbuild.
3698         (Slash_Id): Change type to be Path_Name_Type
3699         (Slash): Return a Path_Name_Type instead of a File_Name_Type
3701         * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
3702         gprbuild.
3703         Update Project Manager to new attribute names for ghprbuild
3704         Allow all valid declarations in configuration project files
3705         Major update of the Project Manager and of the project aware tools,
3706         including gprmake, so that the same sources in the GNAT repository
3707         can be used by gprbuild.
3709         * prj-com.ads: 
3710         Major update of the Project Manager and of the project aware tools,
3711         including gprmake, so that the same sources in the GNAT repository
3712         can be used by gprbuild.
3714         * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
3715         insensitive flag for attributes with optional index.
3716         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
3717         array attribute, put the index in lower case.
3718         Update Project Manager to new attribute names for ghprbuild
3719         Allow all valid declarations in configuration project files
3720         Major update of the Project Manager and of the project aware tools,
3721         including gprmake, so that the same sources in the GNAT repository
3722         can be used by gprbuild.
3724         * prj-env.ads, prj-env.adb: 
3725         Major update of the Project Manager and of the project aware tools,
3726         including gprmake, so that the same sources in the GNAT repository
3727         can be used by gprbuild.
3728         (Get_Reference): Change type of parameter Path to Path_Name_Type
3730         * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
3731         removing '-' from the path to start with the first character of the
3732         next directory.
3733         Major update of the Project Manager and of the project aware tools,
3734         including gprmake, so that the same sources in the GNAT repository
3735         can be used by gprbuild.
3736         Major update of the Project Manager and of the project aware tools,
3737         including gprmake, so that the same sources in the GNAT repository
3738         can be used by gprbuild.
3740         * prj-nmsc.ads, prj-nmsc.adb: 
3741         Update Project Manager to new attribute names for ghprbuild
3742         Allow all valid declarations in configuration project files
3743         (Search_Directories): Detect subunits that are specified with an
3744         attribute Body in package Naming. Do not replace a source/unit in the
3745         same project when the order of the source dirs are known. Detect
3746         duplicate sources/units in the same project when the order of the
3747         source dirs are not known.
3748         (Check_Ada_Name): Allow all identifiers that are not reserved words
3749         in Ada 95.
3750         Major update of the Project Manager and of the project aware tools,
3751         including gprmake, so that the same sources in the GNAT repository
3752         can be used by gprbuild.
3753         (Look_For_Sources): If the list of sources is empty, set the object
3754         directory of non extending project to nil.
3755         Change type of path name variables to be Path_Name_Type
3756         (Locate_Directory): Make sure that on Windows '/' is converted to '\',
3757         otherwise creating missing directories will fail.
3759         * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb, 
3760         prj-part.ads, prj-part.adb:
3761         Major update of the Project Manager and of the project aware tools,
3762         including gprmake, so that the same sources in the GNAT repository
3763         can be used by gprbuild.
3765         * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
3766         insensitive flag for attributes with optional index.
3767         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
3768         array attribute, put the index in lower case.
3769         (Parse_Variable_Reference): Allow the current project name to be used in
3770         the prefix of an attribute reference.
3772         * prj-util.ads, prj-util.adb
3773         (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
3774         defaulted to False. When True, always check against indexes in lower
3775         case.
3777         * snames.ads, snames.h, snames.adb: 
3778         Update Project Manager to new attribute names for gprbuild
3779         Allow all valid declarations in configuration project files
3781 2007-08-14  Robert Dewar  <dewar@adacore.com>
3782             Ed Schonberg  <schonberg@adacore.com>
3784         * opt.ads: Warning for non-local exception propagation now off by
3785         default
3786         New switch -gnatI to disable representation clauses
3787         Implement new pragma Implicit_Packing
3789         * usage.adb: 
3790         Warning for non-local exception propagation now off by default
3791         Add warning for unchecked conversion of pointers wi different
3792         conventions.
3793         New switch -gnatI to disable representation clauses
3795         * usage.adb: new switch -gnatyS
3797         * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
3798         note that aggregates of anonymous array types are not flagged.
3799         -gnatwc now includes membership tests optimized away
3800         -gnatw.x warnings are now off by default
3801         Added conditional compilation Appendix
3802         Add documentation of -gnatI
3803         Add documentation for new -gnatyS style check
3804         Update documentation about SAL and auto-init on Windows.
3806         * gnat_rm.texi: 
3807         Add documentation for pragma Check_Name and 'Enabled attribute
3808         Document that Eliminate on dispatching operation is ignored
3809         Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
3810         Document pragma Main
3811         Document pragma Implicit_Packing
3813         * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
3814         different conventions
3815         New switch -gnatI to disable representation clauses
3817         * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
3818         recognized, report the invalid characters including "-gnat" instead of
3819         just the first character in the switch.
3820         New switch -gnatI to disable representation clauses
3821         Set Warn_On_Object_Renames_Function true for -gnatg
3823         * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
3824         Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
3825         Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
3826         to switch -aP (add directory to project search dir).
3828         * par-prag.adb: Implement new pragma Implicit_Packing
3830         * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
3831         type as having a non-standard representation, to force expansion on
3832         conversion to related types.
3833         (Analyze_Pragma): Warn on misspelled pragma
3834         (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
3835         Ensure consistent use of # in error messages
3836         Implement pragma Implicit_Packing
3838 2007-08-14  Olivier Hainque  <hainque@adacore.com>
3839             Eric Botcazou  <ebotcazou@adacore.com>
3841         * targtyps.c (get_target_maximum_default_alignment): New function.
3842         Maximum alignment
3843         that the compiler might choose by default for a type or object.
3844         (get_target_default_allocator_alignment): New function. Alignment known
3845         to be honored by the target default allocator.
3846         (get_target_maximum_allowed_alignment): New function. Maximum alignment
3847         we might accept for any type or object on the target.
3848         (get_target_maximum_alignment): Now synonym of maximum_default_alignment
3850         * gigi.h (get_target_maximum_default_alignment): Declare new function.
3851         (get_target_default_allocator_alignment): Likewise.
3852         (get_target_maximum_allowed_alignment): Likewise.
3854         PR ada/19037
3855         * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
3856         result of a function call, first try to use a stabilized reference for
3857         a constant renaming too.
3858         (validate_alignment): Use target_maximum_allowed_alignment instead of
3859         MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
3860         (gnat_to_gnu_entity): Use common nodes directly.
3861         (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
3862         alignment and size for the object.
3863         (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
3864         and N_Procedure_Call_Statement.
3865         (takes_address): Rename to lvalue_required_p, add third parameter
3866         'aliased' and adjust recursive calls.
3867         <N_Indexed_Component>: Update 'aliased' from the array type.
3868         <N_Selected_Component>: New case.
3869         <N_Object_Renaming_Declaration>: New Likewise.
3870         (Identifier_to_gnu): Adjust for above changes.
3871         (maybe_stabilize_reference) <CONST_DECL>: New case.
3873         * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
3874         between type variants.
3875         (build_simple_component_ref): Likewise.
3876         (build_call_alloc_dealloc): Use target_default_allocator_alignment
3877         instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
3878         aligning type circuitry for allocations from the default storage pool.
3879         (build_allocator): Likewise.
3880         (build_simple_component_ref): Manually fold the reference for a
3881         constructor if the record type contains a template.
3883         * utils.c (value_zerop): Delete.
3884         (gnat_init_decl_processing): Emit debug info for common types.
3885         (rest_of_record_type_compilation): If a union contains a field
3886         with a non-constant qualifier, treat it as variable-sized.
3887         (finish_record_type): Give the stub TYPE_DECL a name.
3888         (rest_of_record_type_compilation): Likewise.
3889         (convert) <CONSTRUCTOR>: New case.  Build a new constructor if
3890         types are equivalent array types.
3891         (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
3892         even if the type is not passed by reference.
3893         (static_ctors, static_dtors): Delete.
3894         (end_subprog_body): Do not record constructors and destructors.
3895         (build_global_cdtor): Delete.
3896         (gnat_write_global_declarations): Do not call build_global_cdtor.
3898         * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
3899         -fRTS=rtp is specified.
3900         If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
3901         specified.
3903         * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
3904         of the personality function with SJLJ exceptions.
3906         * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
3907         the name of the personality function with SJLJ exceptions.
3909 2007-08-14  Robert Dewar  <dewar@adacore.com>
3910             Ed Schonberg  <schonberg@adacore.com>
3912         * par.ads, par.adb: Improve handling of extra right parens.
3913         (Par): Remove flag From_Limited_With_Clause.
3915         * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
3916         Improve handling of extra right parens.
3918 2007-08-14  Robert Dewar  <dewar@adacore.com>
3920         * par-tchk.adb (TF_Semicolon): Improve error recovery
3922 2007-08-14  Robert Dewar  <dewar@adacore.com>
3923             Ed Schonberg  <schonberg@adacore.com>
3925         * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
3926         enumeration type, mark all literals as referenced.
3927         (Eval_Attribute, case 'Image): If the argument is an enumeration
3928         literal and names are available, constant-fold but mark nevertheless as
3929         non-static.
3930         Clean up function names.
3931         (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
3932         comment.
3933         (Requires_Simple_Name_Prefix): Removed.
3935 2007-08-14  Robert Dewar  <dewar@adacore.com>
3936             Ed Schonberg  <schonberg@adacore.com>
3938         * sem_ch11.adb: Improved warnings for unused variables
3940         * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
3941         is a synchronized interface, the derived type is limited.
3942         (Analyze_Object_Declaration): Mark the potential coextensions in the
3943         definition and expression of an object declaration node.
3944         (Build_Derived_Type): For the completion of a private type declaration
3945         with a derived type declaration, chain the parent type's representation
3946         items to the last representation item of the derived type (not the
3947         first one) if they are not present already.
3948         (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
3949         object declaration of forward references to tags.
3950         (Access_Subprogram_Declaration): In Ada2005, anonymous access to
3951         subprogram types can appear as access discriminants of synchronized
3952         types.
3953         (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
3954         given in prefixed form as a selected component.
3955         (Process_Discriminants): If not all discriminants have defaults, place
3956         error message on a default that is present.
3957         (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
3958         extend a synchronized tagged type.
3959         Improved warnings for unused variables
3960         (Is_Visible_Component): Fix a visibility hole on a component inherited
3961         by a private extension when parent is itself declared as a private
3962         extension, and the derivation is in a child unit.
3963         (Find_Hidden_Interface): Move spec from the package body.
3965 2007-08-14  Robert Dewar  <dewar@adacore.com>
3966             Ed Schonberg  <schonberg@adacore.com>
3968         * sem_ch5.adb: Improve warnings on redundant assignments
3970         * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
3971         parameter
3972         (Is_Synchronized_Tagged_Type): New subprogram that returns true
3973         in case of synchronized tagged types (AARM 3.9.4 (6/2)).
3974         (Safe_To_Capture_Value): Can now return True for constants, even if Cond
3975         is set to False. Improves handling of Known_[Not_]Null.
3976         (Wrong_Type): Special case address arithmetic attempt
3977         (Collect_Abstract_Interfaces): Add new formal to allow collecting
3978         abstract interfaces just using the partial view of private types.
3979         (Has_Abstract_Interfaces): Add new formal to allow checking types
3980         covering interfaces using the partial view of private types.
3981         (Is_Fully_Initialized_Type): Special VM case for uTag component. This
3982         component still needs to be defined in this case, but is never
3983         initialized as VMs are using other dispatching mechanisms.
3984         (Abstract_Interface_List): For a protected type, use base type to get
3985         proper declaration.
3986         Improve warnings on redundant assignments
3987         (Is_Variable): Handle properly an implicit dereference of a prefixed
3988         function call.
3989         (Build_Actual_Subtype): If this is an actual subtype for an
3990         unconstrained formal parameter, use the sloc of the body for the new
3991         declaration, to prevent anomalises in the debugger.
3993 2007-08-14  Robert Dewar  <dewar@adacore.com>
3995         * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
3996         dispatching operation
3998 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
3999             Gary Dismukes  <dismukes@adacore.com>
4001         * exp_aggr.ads, 
4002         exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
4003         expanded aggregate code before allocator, and ahead of declaration for
4004         temporary, to prevent access before elaboration when the allocator is
4005         an actual for an access parameter.
4006         (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
4007         the TSD and the table of interfaces.
4008         (Convert_To_Assignments): Augment the test for delaying aggregate
4009         expansion for limited return statements to include the case of extended
4010         returns, to prevent creation of an unwanted transient scope.
4011         (Is_Static_Dispatch_Table_Aggregate): New subprogram.
4012         (Expand_Array_Aggregate): Handle aggregates associated with
4013         statically allocated dispatch tables.
4014         (Expand_Record_Aggregate): Handle aggregates associated with
4015         statically allocated dispatch tables.
4016         (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
4017         of anonymous access type.
4019 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
4021         * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
4022         is a variable that renames a slice, use the variable itself in the
4023         expannsion when the renamed expression itself may be modified between
4024         the declaration of the renaming and the array assignment.
4026 2007-08-14  Jerome Guitton  <guitton@adacore.com>
4028         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb, 
4029         s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb, 
4030         s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
4031         New functions; dummy implementations.
4033         * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
4034         functions, used to implement the multi-tasks mode routines on VxWorks.
4036         * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
4037         New functions, thin
4038         binding to the VxWorks routines which have changed between VxWorks 5
4039         and 6.
4040         (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
4041         which are not callable from a RTP.
4043         * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
4044         implemented for the multi-tasks mode on VxWorks 5 and 6.
4046         * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
4048         * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
4049         functions.
4051 2007-08-14  Vincent Celier  <celier@adacore.com>
4053         * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb, 
4054         gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
4055         mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb, 
4056         mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb, 
4057         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, 
4058         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
4059         mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
4060         procedure.
4061         (Major_Id_Name): New function.
4062         mlib-tgt.ads/mlib.tgt.adb:
4063         (Library_Major_Minor_Id_Supported): New function, default returns True
4064         Most mlib-tgt-*.adb that support shared libraries and symbolic links:
4065         (Build_Dynamic_Library): Add support for major/minor ids for shared libs
4066         Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
4067         Implementation of Library_Major_Minor_Id_Supported returns False
4068         clean.adb:
4069         (Clean_Library_Directory): If major/minor ids are supported, clean all
4070         library files.
4071         Major update of the Project Manager and of the project aware tools,
4072         including gprmake, so that the same sources in the GNAT repository
4073         can be used by gprbuild.
4075 2007-08-14  Olivier Hainque  <hainque@adacore.com>
4077         * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
4078         (GCC_ZCX_Support): Switch to True.
4079         
4080         * s-intman-solaris.adb (Notify_Exception): Call
4081         Adjust_Context_For_Raise before raising, as expected for signal
4082         handlers in general.
4083         
4084         * s-intman-posix.adb (Notify_Exception): Remove declaration of
4085         Adjust_Context_For_Raise, moved to the spec of this unit to be visible
4086         to other implementation bodies.
4087         
4088         * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
4089         be visible by multiple implementation bodies.
4090         
4091         * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
4092         only for conditions coming from hardware.
4093         [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
4094         adjustments to signal context prior to exception raise from signal
4095         handler.
4096         (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
4097         mode.
4098         Solaris section: (__gnat_adjust_context_for_raise): New function.
4099         Implementation of the machine context adjustments to perform prior to
4100         raise from a signal handler. Version for both sparc and x86.
4101         (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
4102         (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
4103         prior to raising as expected for any handler, before possible nested
4104         faults to make sure all the contexts in a chain have been adjusted by
4105         the time we propagate.
4107 2007-08-14  Pascal Obry  <obry@adacore.com>
4109         * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
4110         (SYSTEM_INFO): New record.
4111         (SetThreadIdealProcessor): New imported routine needed for supporting
4112         task_info pragma on Windows.
4114         * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
4115         info can be applied to the current host.
4116         (Create_Task): Set the ideal processor if information is present.
4118         * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
4119         a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
4121 2007-08-14  Olivier Hainque  <hainque@adacore.com>
4123         * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
4124         stack size and initial stack pointer value for a given task.
4125         (Enter_Task): Get the stack attributes of the task we are entering and
4126         let the stack checking engine know about them.
4128         * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
4129         Let the stack-checking engine know about the initial sp value and stack
4130         size associated with the current task.
4131         (Set_Stack_Info): If a stack base has been notified for the current
4132         task, honor it. Fallback to the previous less accurate method otherwise.
4134         * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
4136 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
4138         * sem_ch10.adb: Create a limited view of an incomplete type, to make
4139         treatment of limited views uniform for all visible declarations in a
4140         limited_withed package.
4141         Set flag indicating that a subprogram body for a child unit has a
4142         generated spec.
4143         (Analyze_Compilation_Unit): If unit is a subprogram body that has no
4144         separate declaration, remove the unit name from visibility after
4145         compilation, so that environment is clean for subsequent compilations.
4146         (Install_Limited_Context_Clauses): Do not install a
4147         limited_private_with_clause unless the current unit is a body or a
4148         private child unit.
4149         (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
4150         in the same fashion.
4151         (Install_Limited_Withed_Unit): Do not install a limited with clause if
4152         it applies to the declaration of the current package body.
4153         (Remove_Private_With_Clauses): If there is a regular with_clause for
4154         the unit, delete Private_With_Clause from context, to prevent improper
4155         hiding when processing subsequent nested packages and instantiations.
4157 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
4159         * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
4160         dir/file, device:/dir/file, and device:drive_letter:/dir/file as
4161         representing absolute path names.
4162         __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
4164         * cstreams.c (__gnat_full_name for VxWorks): Use
4165         __gnat_is_absolute_path to detect whether we need to add the current
4166         directory to normalize the path.
4168 2007-08-14  Javier Miranda  <miranda@adacore.com>
4170         * a-tags.ads, 
4171         a-tags.adb (Displace): Associate a message with the raised CE
4172         exception.
4173         (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
4174         To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
4175         To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
4176         spec.
4177         (Default_Prim_Op_Count): Removed.
4178         (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
4179         Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
4180         Remove pragma Inline_Always.
4182         * rtsfind.ads (Default_Prim_Op_Count): Removed
4183         (Max_Predef_Prims): New entity
4184         (RE_Expanded_Name): Removed
4185         (RE_HT_Link): Removed
4186         (RE_Iface_Tag): Remmoved
4187         (RE_Ifaces_Table): Removed
4188         (RE_Interfaces_Array): Removed
4189         (RE_Interface_Data_Element): Removed
4190         (RE_Nb_Ifaces): Removed
4191         (RE_RC_Offset): Removed
4192         (RE_Static_Offset_To_Top): Removed
4194         * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
4195         formal.
4196         (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
4197         Prim_Op_Count by Max_Predef_Prims.
4199 2007-08-14  Thomas Quinot  <quinot@adacore.com>
4200             Vincent Celier  <celier@adacore.com>
4202         * binde.adb (Elab_All_Links): Remove unnecessary call to
4203         Generic_Separately_Compiled (if a unit satisfies this predicate, there
4204         won't be an associated Afile).
4205         (Elab_All_Links): Fail if a referenced unit cannot be found
4207         * bindgen.adb: 
4208         Fix comments in bindgen regarding consistency checks done in Bcheck:
4209         the checks are made across units within a partition, not across several
4210         partitions.
4211         Fix generation of C binder file for VxWorks.
4213         * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
4214         Generic_May_Lack_ALI, more descriptive of the current use of the
4215         predicate, and update documentation.
4217         * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
4218         reorganization and documentation update for the case of predefined
4219         library generics (for which we do not reference an Afile).
4221 2007-08-14  Robert Dewar  <dewar@adacore.com>
4223         * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
4224         s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
4225         s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
4226         s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
4227         s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
4228         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
4229         s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
4230         s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
4231         exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
4232         s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
4233         s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
4234         a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
4235         s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
4236         g-altcon.adb: Minor reformatting
4238         ada-tree.h: Delete empty line.
4240         ali.ads: Minor reformatting
4241         Clarification of comments.
4242         Minor spelling correction
4244         * exp_dbug.adb: Add Warnings Off to suppress new warning
4246         * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
4247         formal
4249         * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
4250         value
4252         * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
4254         * a-textio.ads: Reorder the standard input/output/error declarations
4255         for consistency.
4257         * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
4259         * par-ch2.adb: Recognize RM specially in errout
4260         Change 'R'M to RM in all error messages
4262         * scng.adb: Recognize RM specially in errout
4264         * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
4265         N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
4267         * s-direio.adb: Add missing routine header box.
4269         * sem_attr.ads: Add ??? comments
4271         * sem_eval.adb: Recognize RM specially in errout
4272         Change 'R'M to RM in all error messages
4274         * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
4276         * s-tasinf.ads: Fix minor comment typo.
4278         * a-cihama.adb: Minor comment addition
4280         * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
4281         formal
4283         * s-tasinf-tru64.ads: Fix minor comment typo.
4285         * itypes.ads: Comment update.
4287         * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
4288         anymore.
4290         * argv.c: Added protection against null gnat_argv and gnat_envp.
4292         * bcheck.adb (Check_Consistency): Use correct markup character ({) in
4293         warning message when Tolerate_Consistency_Errors is True.
4295         * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
4296         Any_Id, as this subprogram is only applicable to *type* entities (it
4297         sets RM_Size). Instead initialize just Esize and Alignment.
4299 2007-08-14  Bob Duff  <duff@adacore.com>
4301         * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads, 
4302         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
4303         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads, 
4304         a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
4305         a-coorse.ads (Next): Applied pragma Inline.
4306         Make all Containers packages Remote_Types (unless they are already
4307         Pure).
4308         (Previous): applied pragma Inline
4309         (Elements_Type): is now a record instead of an array
4311 2007-08-14  Thomas Quinot  <quinot@adacore.com>
4313         * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
4314         of Set_Item.
4315         (Set_Item): When the new item is an element of the currently allocated
4316         table passed by reference, save a copy on the stack if we're going
4317         to reallocate. Also, in Table.Set_Item, make sure we test the proper
4318         variable to determine whether to call Set_Last.
4320         * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
4321         symbols-vms.adb, symbols-processing-vms-alpha.adb,
4322         symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
4323         some occurrences of the pattern
4324            T.Increment_Last;
4325            T.Table (T.Last) := Value;
4326         with a cleaner call to
4327            T.Append (Value);
4329 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
4330             Gary Dismukes  <dismukes@adacore.com>
4331             Thomas Quinot  <quinot@adacore.com>
4333         * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
4334         derived type with interface progenitors use the analyzed formal as the
4335         parent of the actual, to create renamings for all the inherited
4336         operations in Derive_Subprograms.
4337         (Collect_Previous_Instances): new procedure within of
4338         Load_Parent_Of_Generic, to instantiate all bodies in the compilation
4339         unit being loaded, to ensure that the generation of global symbols is
4340         consistent in different compilation modes.
4341         (Is_Tagged_Ancestor): New function testing the ancestor relation that
4342         takes progenitor types into account.
4343         (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
4344         traversing over the primitives of the formal and actual types to locate
4345         any abstract subprograms of the actual type that correspond to a
4346         nonabstract subprogram of the formal type's ancestor type(s), and issue
4347         an error if such is found.
4348         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
4349         Instantiate_Package_Body, Instantiate_Subprogram_Body):
4350         Remove bogus guard around calls to Inherit_Context.
4351         (Reset_Entity): If the entity is the selector of a selected component
4352         that denotes a named number, propagate constant-folding to the generic
4353         template only if the named number is global to the generic unit.
4354         (Set_Instance_Env): Only reset the compilation switches when compiling
4355         a predefined or internal unit.
4357 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
4359         * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
4360         parameter to determine whether operation applies to the prefix.
4361         (Complete_Object_Operation): If actual has an access type and
4362         controlling formal is not an in_parameter, reject the actual if it is
4363         an access_to_constant type.
4364         (Try_Primitive_Operation): If the type of the prefix is a formal tagged
4365         type, the candidate operations are found in the scope of declaration of
4366         the type, because the type has no primitive subprograms.
4367         (Analyze_Selected_Component): If prefix is class-wide, and root type is
4368         a private extension, only examine visible components before trying to
4369         analyze as a prefixed call.
4370         Change Entity_List to Type_To_Use, for better readability.
4371         (Has_Fixed_Op): Use base type when checking whether the type of an
4372         operator has a user-defined multiplication/division
4373         (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
4374         user-defined operators are available for fixed-point types.
4376 2007-08-14  Thomas Quinot  <quinot@adacore.com>
4377             Ed Schonberg  <schonberg@adacore.com>
4379         * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
4380         formal At_Any_Place indicating, when True, that we want to test for
4381         availability of the stream attribute at any place (as opposed to the
4382         current visibility context only).
4383         (Missing_Read_Write_Attributes): A stream attribute is missing for the
4384         purpose of enforcing E.2.2(8) only if it is not available at any place.
4385         Take into account the Ada2005 pragma Has_Preelaborable_Initialization
4386         when checking the legality of an extension aggregate in a preelaborable
4387         package. Treat the literal null as a valid default expression in a
4388         component declaration for a type with preelaborable initialization.
4389         A limited interface is a legal progenitor for the designated type of a
4390         remote access to class-wide type.
4392 2007-08-14  Thomas Quinot  <quinot@adacore.com>
4393             Ed Schonberg  <schonberg@adacore.com>
4395         * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
4396         reference): Use correct entity as denoted entity for the selector of
4397         the rewritten node.
4398         (Find_Direct_Name): Add comment about Generate_Reference incorrectly
4399         setting the Referenced_As_LHS flag for entities that are implicitly
4400         dereferenced.
4401         (Find_Type): If the type is an internally generated incomplete type,
4402         mark the full view as referenced, to prevent spurious warnings.
4403         (Find_Selected_Component, Has_Components): Handle properly non-limited
4404         views that are themselves incomplete types.
4405         Handle interfaces visible through limited-with clauses.
4406         (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
4407         subprogram generic actual for which we have generated a renaming.
4408         Warn when the renaming introduces a homonym of
4409         the renamed entity, and the renamed entity is directly visible.
4411 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
4412             Hristian Kirtchev  <kirtchev@adacore.com>
4414         * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
4415         appear in the subtree to the current allocator if it is not a static
4416         coextension.
4417         (Resolve_Allocator): Perform cleanup if resolution has determined that
4418         the allocator is not a coextension.
4419         (Resolve): Skip an interpretation hidden by an abstract operator only
4420         when the type of the interpretation matches that of the context.
4421         (Resolve): When looping through all possible interpretations of a node,
4422         do not consider those that are hidden by abstract operators.
4423         (Resolve_Actuals): When verifying that an access to class-wide object
4424         is an actual  for a controlling formal, ignore anonymous access to
4425         subprograms whose return type is an access to class_wide type.
4426         (Resolve_Slice): If the prefix of the slice is a selected component
4427         whose type depends on discriminants, build its actual subtype before
4428         applying range checks on the bounds of the slice.
4429         (Valid_Conversion): In an instance or inlined body, compare root types,
4430         to prevent anomalies between private and public views.
4431         (Resolve): Improve error message for ambiguous fixed multiplication
4432         expressions that involve universal_fixed multiplying operations.
4434 2007-08-14  Javier Miranda  <miranda@adacore.com>
4435             Hristian Kirtchev  <kirtchev@adacore.com>
4437         * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
4438         location to allow the correct generation of errors in case of
4439         restrictions applied to the expanded code.
4440         (Expand_Entry_Barrier): Remove all generated renamings for a barrier
4441         function if the condition does not reference them.
4442         (Expand_Entry_Body_Declarations): Mark the index constant as having a
4443         valid value.
4445 2007-08-14  Thomas Quinot  <quinot@adacore.com>
4447         * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
4448         typecode parameters for a union (in a variant record), remove
4449         extraneous layer of Any wrapping for member label.
4450         (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
4451         elabration statements, register the package with the name server
4452         at the beginning, not at the end, of the elaboration statements so
4453         that they can create remote access to subprogram values that designate
4454         remote subprograms from the package.
4456 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
4458         * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
4459         values to compute the number of seconds since the Unix Epoc in order to
4460         account for Daylight Savings Time. Perform special processing for dates
4461         that are earlier than the Unix Epoc to obtain a negative number.
4463 2007-08-14  Emmanuel Briot  <briot@adacore.com>
4465         * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
4466         switches.
4468 2007-08-14  Eric Botcazou  <ebotcazou@adacore.com>
4470         * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
4471         binder-generated file is not in Ada.
4472         Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
4473         recorded in the ALI file.
4474         Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
4476 2007-08-14  Vincent Celier  <celier@adacore.com>
4478         * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
4479         (Output_Source): Do nothing if parameter is No_Sdep_Id
4481         * make.adb (Gnatmake): Do not rebuild an archive simply because a
4482         shared library it imports has a later time stamp.
4483         (Check): Resolve the symbolic links in the path name of the object
4484         directory.
4485         Check that the ALI file is in the correct object directory
4486         Check if a file name does not correspond to the mapping of units
4487         to file names.
4488         (Display_Version): New procedure
4489         (Initialize): Process switches --version and --help
4490         Use type Path_Name_Type for path name
4492 2007-08-14  Paul Hilfinger  <hilfinger@adacore.com>
4494         * impunit.adb: Re-organize System.Random_Numbers and
4495         GNAT.Random_Numbers and add to builds.
4497         * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
4499         * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
4501         * a-assert.ads, a-assert.adb: New files.
4503 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
4505         * layout.adb (Layout_Type): In the case of access-to-subprogram types,
4506         if AAMP_On_Target is True, then the size of the type encompasses two
4507         addresses (a static link and a subprogram address), except in the case
4508         of library-level access types.
4510 2007-08-14  Vincent Celier  <celier@adacore.com>
4512         * output.ads, output.adb (Write_Eol): Remove trailing spaces before
4513         writing the line.
4514         (Write_Eol_Keep_Blanks): New procedure to write a line, including
4515         possible trailing spaces.
4516         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
4518 2007-08-14  Javier Miranda  <miranda@adacore.com>
4520         * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
4521         null-excluding access types.
4523 2007-08-14  Javier Miranda  <miranda@adacore.com>
4525         * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
4526         that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
4527         of private types add missing check on matching interfaces in the
4528         partial and full declarations.
4529         (Analyze_Protected_Type): Code cleanup.
4530         (Analyze_Task_Type): Code cleanup.
4532 2007-08-14  Javier Miranda  <miranda@adacore.com>
4534         * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
4535         generated interface thunk.
4537 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
4539         * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
4540         obsolescent warning on application of 'Class to an incomplete type.
4542         * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
4543         prevent obsolescent warning on application of 'Class to an incomplete
4544         type.
4546 2007-08-14  Pascal Obry  <obry@adacore.com>
4548         * s-fileio.adb (Is_Open): Add check for usability of the underlying
4549         file stream.
4551 2007-08-14  Cyrille Comar  <comar@adacore.com>
4553         * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
4554         since it is potentially used in cases implying double finalization of
4555         the same object.
4557 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
4559         * s-tasini.adb (Get_Stack_Info): Move this function to
4560         System.Soft_Links.Tasking because it is common to the full and the
4561         restricted run times.
4562         (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
4563         in SSL.Tasking.Init_Tasking_Soft_Links.
4565         * s-solita.adb (Get_Stack_Info): Function moved from
4566         System.Tasking.Initialization because it is common to the full and the
4567         restricted run times.
4568         (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
4570 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
4572         * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
4573         s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
4574         (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
4575         parameter.
4577         * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
4578         guard to 12K.
4580 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
4582         * s-veboop.adb (SU): New named number initialized to
4583         System.Storage_Unit.
4584         (True_Val): The initialization expression is revised to use SU (=
4585         Storage_Unit) rather than assuming 8 for the component size of an
4586         unpacked Boolean array.
4588 2007-08-14  Tristan Gingold  <gingold@adacore.com>
4590         * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
4592         * tb-ivms.c: New file.
4594         * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
4596 2007-08-14  Geert Bosch  <bosch@adacore.com>
4598         * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
4599         s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
4600         Add required linker pragmas for automatically linking with the gnalasup
4601         linear algebra support library, and the systems math library.
4602         Rename cdot to cdotu and zdot to zdotu.
4603         Update header comment to describe purpose of package.
4605 2007-08-14  Thomas Quinot  <quinot@adacore.com>
4607         * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
4608         an explicitly specified Associated_Final_Chain, use that list.
4609         (Expand_N_Package_Body): Build dispatch tables of library level tagged
4610         types.
4611         (Expand_N_Package_Declaration): Build dispatch tables of library level
4612         tagged types. Minor code cleanup.
4614 2007-08-14  Vincent Celier  <celier@adacore.com>
4616         * gnatchop.adb (Terminate_Program): Remove exception and use
4617         Types.Terminate_Program instead.
4619         * osint.ads, osint.adb (Current_Exit_Status): New global variable
4620         (Find_Program_Name): Added protection against empty name.
4621         (OS_Exit_Through_Exception): New procedure
4623         * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
4624         (OS_Exit_Default): New procedure that contains the previous
4625         implementation of procedure OS_Exit.
4626         (Final_Value): Remove obsolete Interix stuff.
4628 2007-08-14  Thomas Quinot  <quinot@adacore.com>
4630         * g-socket.ads: Reorganize example code so that it also works on
4631         Windows XP.
4633 2007-08-14  Tristan Gingold  <gingold@adacore.com>
4635         * g-trasym.ads: AIX now supports symbolic backtraces.
4637 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
4639         * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
4640         units being loaded to detect circularities. A circularity may be
4641         present even if the current chain of pending units to load starts from
4642         a limited_with_clause.
4644         * lib-load.ads: Change profile of Load_Unit to use a with_clause
4645         rather than a boolean flag, in order to detect circularities in
4646         with_clauses.
4648         * par-load.adb: Use current with_clause in calls to Load_Unit, rather
4649         than propagating the From_Limited_With flag, in order to handle
4650         properly circularities involving with_clauses.
4652 2007-08-14  Nicolas Setton  <setton@adacore.com>
4654         * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
4655         warnings.
4657 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
4659         * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
4660         to build for libgnala.
4661         libgnat: Add rules to build libgnala.a
4662         (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
4663         target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
4664         Add s-osinte-vxworks-kernel.adb to the target pairs of the
4665         kernel run-time lib for VxWorks 6, which would provide a different
4666         implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
4667         x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
4668         running ZCX by default.
4669         Add g-sttsne-locking to LynxOS version.
4670         Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
4671         On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
4673         * system-darwin-x86.ads: New file.
4675         * Make-lang.in: Delete files before copying onto them, so if they are
4676         read-only, the copy won't fail.
4677         Update dependencies
4679 2007-08-14  Pascal Obry  <obry@adacore.com>
4681         * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
4682         naming scheme.
4684 2007-08-14  Vincent Celier  <celier@adacore.com>
4686         * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
4687         (Gcc): Initialize Gcc_Name at the first call
4689 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
4691         * sem_ch7.adb (Analyze_Package_Specification): Do not install private
4692         with_clauses of the enclosing unit when analyzing the package
4693         specification of a nested instance.
4695 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
4697         * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
4698         (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
4699         Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
4700         layout of N_Allocator.
4702 2007-08-14  Thomas Quinot  <quinot@adacore.com>
4704         * rtsfind.adb (Check_RPC): Add PCS version check.
4706         * gnatvsn.ads, gnatvsn.adb: Add PCS version.
4707         (Gnat_Free_Software): New function.
4709         * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
4710         the PCS_Version value from s-parint, used to check that it is consistent
4711         with what exp_dist expects.
4713         * s-parint.ads (PCS_Version): New entity for checking consistency
4714         between exp_dist and PCS.
4716         * gen-soccon.c: (SO_REUSEPORT): New constant.
4718 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
4720         * a-calfor.adb (Image (Duration; Boolean)): Change type of local
4721         variable Sub_Second to Duration in order to accomodate a larger range
4722         of arithmetic operations.
4724 2007-08-14  Bob Duff  <duff@adacore.com>
4726         * g-sttsne-locking.ads: Move comments from spec to body.
4727         * g-sttsne-locking.adb: Move comments from spec to body.
4728         * g-sttsne-vxworks.ads: Removed.
4729         * g-sttsne-vxworks.adb: Removed.
4731 2007-08-11  Ian Lance Taylor  <iant@google.com>
4733         * misc.c (gnat_get_alias_set): Change return type to
4734         alias_set_type.
4736 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4738         * decl.c, utils2.c: Fix whitespace in last change.
4740 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4742         * decl.c (compare_field_bitpos): Constify.
4743         * utils2.c (compare_elmt_bitpos): Likewise.
4745 2007-07-27  Aurelien Jarno  <aurelien@aurel32.net>
4747         * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by 
4748         anonymous access type.
4749         (pthread_sigmask): Now take an access sigset_t.
4751 2007-07-05  Joel Sherrill <joel.sherrill@oarcorp.com>
4753         * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
4754         
4755 2007-06-21  Eric Botcazou  <ebotcazou@adacore.com>
4757         PR tree-optimization/25737
4758         * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
4760 2007-06-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4762         * trans.c (Attribute_to_gnu): When subtracting an
4763         offset from a pointer, use POINTER_PLUS_EXPR with
4764         NEGATE_EXPR instead of MINUS_EXPR.
4765         (gnat_to_gnu): Likewise.
4766         * utils.c (convert): When converting between
4767         thin pointers, use POINTER_PLUS_EXPR and sizetype
4768         for the offset.
4769         * utils2.c (known_alignment): POINTER_PLUS_EXPR
4770         have the same semantics as PLUS_EXPR for alignment.
4771         (build_binary_op): Add support for the semantics of
4772         POINTER_PLUS_EXPR's operands.
4773         When adding an offset to a pointer, use POINTER_PLUS_EXPR.
4775 2007-06-11  Rafael Avila de Espindola  <espindola@google.com>
4777         * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
4778         of get_signed_or_unsigned_type.
4779         * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
4781 2007-06-11  Bob Duff  <duff@adacore.com>
4782             Thomas Quinot  <quinot@adacore.com>
4784         * g-stsifd-sockets.adb (Create): Work around strange behavior of
4785         'bind' on windows that causes 'connect' to fail intermittently, by
4786         retrying the 'bind'.
4787         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
4789 2007-06-10  Duncan Sands  <baldrick@free.fr>
4791         * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
4792         than to void, for the fields when making a new fat pointer type.
4793         (gnat_substitute_in_type): Now substitute_in_type.
4794         * gigi.h (gnat_substitute_in_type): Likewise.  Adjust recursive calls.
4795         * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
4796         * utils.c (update_pointer_to): Update fat pointers by updating the
4797         dummy node pointers used for the fields.
4799 2007-06-06  Thomas Quinot  <quinot@adacore.com>
4800             Bob Duff  <duff@adacore.com>
4802         * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
4803         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads, 
4804         g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads:  Add new
4805         constant Thread_Blocking_IO, always True by default, set False
4806         on a per-runtime basis.
4807         (Need_Netdb_Buffer): New constant.
4809         * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
4810         g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
4811         files.
4813         * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
4814         g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
4815         Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
4816         child package Task_Safe_NetDB
4817         (Host_Error_Messages): Add stub body.
4818         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
4820         * g-soccon-mingw.ads: Add Windows-specific constants.
4821         (Need_Netdb_Buffer): New constant.
4822         (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
4823         wrapper and import inet_addr(3) from the standard sockets library
4824         directly instead.
4825         (In_Addr): Add alignment clause.
4826         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
4828 2007-06-06  Robert Dewar  <dewar@adacore.com>
4830         * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
4831         s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
4832         s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
4833         s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
4834         s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
4835         s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
4836         a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
4837         a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
4838         a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
4839         g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
4840         g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
4841         i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
4842         s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
4843         s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
4844         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
4845         s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
4846         s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
4847         s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
4848         s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
4849         s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
4850         s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
4851         s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
4852         s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
4853         s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
4854         s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
4855         s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
4856         s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
4857         s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
4858         s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
4859         s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
4860         s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
4861         a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
4862         Unchecked_* by Ada.Unchecked_*
4864 2007-06-06  Robert Dewar  <dewar@adacore.com>
4866         * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
4867         s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
4868         g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
4869         output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
4870         g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
4871         a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
4873         * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
4874         s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
4875         s-tasloc.adb, s-tasloc.ads: New files.
4877 2007-06-06  Bob Duff  <duff@adacore.com>
4879         * g-expect-vms.adb: 
4880         (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
4881         * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
4882         (Send_Signal, Close): Raise Invalid_Process if the process id is
4883         invalid.
4884         (Pattern_Matcher_Access): Is now a general access type to be able to
4885         use aliased string.
4887 2007-06-06  Thomas Quinot  <quinot@adacore.com>
4888             Arnaud Charlet  <charlet@adacore.com>
4890         * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
4891         (SIGEMT is now used instead of SIGTERM on AIX).
4893         * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
4894         (Time_Slice_Supported): Set to True.
4895         Use SIGEMT instead of SIGTERM as SIGADAABORT.
4897 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
4899         * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
4900         (Time, Time)): Use To_Relative_Time rather than manual calculation to
4901         express the bounds of Duration as Time. Raise Time_Error when the
4902         result is greater or equal to the higher bound of Duration (on the
4903         margin case).
4904         ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
4905         Ada_High_And_Leaps.
4906         ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
4907         Ada_High_And_Leaps.
4908         ("-" (Time, Time)): Reorder code.
4909         (All_Leap_Seconds): Removed.
4910         (Arithmetic_Operations.Add): Remove sign related kludge.
4911         (Arithmetic_Operations.Difference): Control the leaps seconds processing
4912         with flag Leap_Support.
4913         (Arithmetic_Operations.Subtract): Remove sign related kludge.
4914         (Check_Within_Time_Bounds): New procedure.
4915         (Clock): Control the leap seconds processing with flag Leap_Support.
4916         (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
4917         (Formatting_Operations.Split): Control the leap seconds processing with
4918         flag Leap_Support.
4919         (Formatting_Operations.Time_Of): Control the leaps seconds processing
4920         with flag Leap_Support. Adjust the year, month and day (if applicable)
4921         when the value of day seconds designates a new day.
4922         (Split): Use parameter associations for better readability. Integrate
4923         flag Is_Ada_05.
4924         (Time_Of): Use parameter associations for better readability. Integrate
4925         flag Is_Ada_05.
4927         * a-calfor.adb (Split): Use parameter associations for better
4928         readability. Integrate flag Is_Ada_05.
4929         (Time_Of): Remove flag Leap_Checks. Use parameter associations for
4930         better readability. Integrate flag Is_Ada_05.
4932 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
4934         * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb, 
4935         s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb, 
4936         s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb, 
4937         s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads, 
4938         s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb, 
4939         s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb, 
4940         s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads, 
4941         s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads, 
4942         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads, 
4943         s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
4944         s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
4945         time when entering this routine to detect a backward clock setting
4946         (manual setting or DST adjustment), to avoid waiting for a longer delay
4947         than needed.
4948         (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
4949         Remove handling of deferred priority change, and replace by setting the
4950         task priority directly, as required by AI-188.
4951         Update comments.
4952         (Max_Task_Image_Length): New constant.
4953         Replace Warnings (Off) by Unreferenced pragma, cleaner.
4954         (Dynamic_Priority_Support): Removed, no longer needed.
4955         (Poll_Base_Priority_Change): Ditto.
4956         (Set_Ceiling): Add this procedure to change the ceiling priority
4957         associated to a lock. This is a dummy implementation because dynamic
4958         priority ceilings are not supported by the underlying system.
4960         * a-dynpri.adb (Set_Priority): Take into account case where Target is
4961         accepting a RV with its priority boosted.
4962         Remove handling of deferred priority change, and replace by setting the
4963         task priority directly, as required by AI-188.
4965         * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
4966         Succeeded = True.
4967         Remove handling of deferred priority change, and replace by setting the
4968         task priority directly, as required by AI-188.
4969         (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
4970         of Self_Id earlier.
4972         * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
4973         (Poll_Base_Priority_Change): Removed.
4974         Code clean up: use SSL.Current_Target_Exception.
4976         * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
4977         to run as this is a potentially dispatching point.
4978         (Call_Synchronous): Use Local_Defer_Abort.
4979         (Callable): Relax assertion.
4980         (Selective_Wait): Relax assertion in case abort is not allowed.
4981         Remove handling of deferred priority change, and replace by setting the
4982         task priority directly, as required by AI-188.
4984         * s-tasuti.adb (Make_Passive): Adjust assertions.
4985         Remove handling of deferred priority change, and replace by setting the
4986         task priority directly, as required by AI-188.
4988 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
4990         * system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
4991         system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
4992         system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads, 
4993         system-vxworks-mips.ads, system-vxworks-alpha.ads, 
4994         system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads, 
4995         system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads, 
4996         system-interix.ads, system-linux-hppa.ads, system-tru64.ads, 
4997         system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads, 
4998         system-solaris-sparcv9.ads, system-vms.ads, system.ads,
4999         system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
5000         system-linux-ia64.ads: Document mapping between Ada and OS priorities.
5001         This patch changes the largest non-binary modulus from 2**31-1 to
5002         2**32-1.
5003         (Compiler_System_Version): Removed, no longer used.
5004         Clean up system files by removing flags only used on a single target.
5005         Also remove obsolete flags, only used during bootstrap from system.ads
5006         (Address): Add a pragma Preelaborable_Initialization.
5008         * system-aix.ads:  Ditto.
5009         (GCC_ZCX_Support): Set to true.
5010         Update priority range on AIX and map Ada priorities to target
5011         priorities appropriately for different scheduling policies.
5013         * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
5015 2007-06-06  Vincent Celier  <celier@adacore.com>
5017         * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
5018         mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
5020         * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb, 
5021         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb, 
5022         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, 
5023         mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb, 
5024         mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
5025         MLib.Tgt, containing the default versions of the exported subprograms.
5026         For each platform, create a specific version of the body of new child
5027         package MLib.Tgt.Specific that contains only the body of subprograms
5028         that are different from the default.
5029         (Archive_Builder_Append_Options): New function.
5031 2007-06-06  Matthew Gingell  <gingell@adacore.com>
5033         * s-osinte-aix.adb: Map Ada priorities to target priorities
5034         appropriately for different scheduling policies.
5036 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
5038         * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
5039         its C counterpart.
5040         Remove references to Unchecked_Conversion, and use Ada.xxx instead.
5041         Replace Unchecked_Conversion by Ada.Unchecked_Conversion. 
5043 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
5045         * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
5046         Noop on VMS, added for interface commonality.
5048 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
5049             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5050             Olivier Hainque  <hainque@adacore.com>
5052         * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
5053         renamed expression of a full renaming at toplevel.
5054         (gnat_to_gnu_entity, case object): If not defining, do not look inside
5055         the values the constant is initialized to if it is an N_Allocator.
5056         (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
5057         TYPE_SIZE_UNIT of inner types after the stride is elaborated.
5058         (make_aligning_type): Accept an extra ROOM argument for storage to be
5059         made available before the aligned field, and an extra BASE_ALIGN
5060         argument for callers to pass the alignment guaranteed to be honored for
5061         the whole aligning object. Avoid call to finish_record_type, which only
5062         interferes with the sizes we want to set.
5063         (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
5064         make_aligning_type for super-aligned objects on stack.
5065         (components_to_record): Pass the adjusted size of the type when creating
5066         fields in the qualified union for the variant part.
5067         (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
5068         (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
5069         packed array type.
5070         (maybe_pad_type): Set TYPE_USER_ALIGN.
5071         (make_aligning_type): Likewise.
5072         ALIGN argument is unsigned int.
5073         (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
5074         (gnat_to_gnu_param): Likewise, for parameters.
5075         (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
5076         if it is constant and stems from a function call.
5077         (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
5078         of the record is specified.  Adjust accordingly.
5079         (adjust_packed): New static function.
5080         (gnat_to_gnu_field): Use it to adjust the packedness setting.
5081         (components_to_record): Likewise.
5082         (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
5083         side-effects if the object is deemed constant.
5084         (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
5085         type instead of merely finalizing it.  Tidy.
5086         <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
5087         <E_Access_Type>: Likewise.
5088         (defer_debug_incomplete_list): Rename to defer_finalize_list.
5089         (defer_debug_level): Delete.
5090         (gnat_to_gnu_entity) <debug_deferred>: Likewise
5091         <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
5092         type.
5093         <E_Record_Type>: Do not explicitly defer finalizing the type.
5094         Adjust for write_record_type_debug_info renaming.
5095         <E_Subprogram_Type>: Likewise.
5096         Finalize deferred types right after deferred incomplete types are
5097         expanded.
5098         (rest_of_type_decl_compilation): New global function.
5099         (components_to_record): Rename defer_debug parameter to do_not_finalize.
5100         (components_to_record): Propagate the packedness to the fields of the
5101         qualified union type if there is a variant part.
5102         (gnat_to_gnu_entity) <E_Array_Type>: Use new function
5103         instead of inline code to adjust the XUT field offsets.
5104         (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
5105         <E_Record_Subtype>: Do not let finish_record_type compute the sizes
5106         and write the debug info if the type derives from a discriminated one.
5107         (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
5108         <E_Array_Subtype>: Likewise.
5109         <E_String_Literal_Subtype>: Likewise.
5110         (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
5111         an alignment clause.
5112         (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
5113         before giving warning.
5114         (prepend_one_attribute_to): New function, helper to prepend an attribute
5115         to an attribute list.
5116         (gnat_to_gnu_entity) <E_Procedure>: Use it.
5117         (prepend_attributes): Likewise.
5118         (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
5119         <E_Array_Type>: Declare the padding type for the element type, if any.
5120         <E_Array_Subtype>: Likewise.
5121         (defer_limited_with): New variable.
5122         (Gigi_Equivalent_Type): New function.
5123         (gnat_to_gnu_entity): Use it at start and use result throughout.
5124         (gnat_to_gnu_entity, case E_Access_Type): Rework to use
5125         Gigi_Equivalent_Type, support Limited_With, allow two levels of
5126         indirection, precompute if unconstrained array to simplify logic, and
5127         use defer_limited_with to defer elaboration of some types from limited
5128         with.
5129         (finalize_from_with_types): New function.
5131 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
5132             Eric Botcazou  <ebotcazou@adacore.com>
5133             Tristan Gingold  <gingold@adacore.com>
5134             Olivier Hainque  <hainque@adacore.com>
5136         * trans.c (Identifier_to_gnu): Change test for deferred constant by
5137         adding guard that the entity is an E_Constant before testing presence
5138         of Full_view (and remove unnecessary test that entity is not a type).
5139         For a CONST_DECL used by reference, manually retrieve
5140         the DECL_INITIAL.  Do not invoke fold in the other DECL_P cases either.
5141         (struct language_function): Move from utils.c to here.
5142         (struct parm_attr): New structure.
5143         (parm_attr, parm_attr vector, parm_attr GC vector): New types.
5144         (f_parm_attr_cache): New macro.
5145         (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
5146         expressions for the 'First, 'Last and 'Length attributes of the
5147         unconstrained array IN parameters.
5148         (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
5149         Allocate the information structure for the function earlier, as well
5150         as the language-specific part.
5151         If the parameter attributes cache has been populated, evaluate the
5152         cached expressions on entry.
5153         (takes_address): Add OPERAND_TYPE parameter.  Handle N_Function_Call,
5154         N_Procedure_Call_Statement and N_Indexed_Component.
5155         (Pragma_to_gnu): Translate inspection_point to an asm statement
5156         containaing a comment and a reference to the object (either its address
5157         for BLKmode or its value).
5158         (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
5159         to go to DECL_INITIAL. Together with the size constraint relaxation
5160         in create_var_decl, enlarges the set of situations in which an
5161         identifier may be used as an initializer without implying elaboration
5162         code.
5163         (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
5164         DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
5165         node.
5166         (maybe_stabilize_reference): Remove lvalues_only parameter.
5167         (gnat_stabilize_reference): Adjust for above change.
5168         (gnat_to_gnu): Do not set location information on the result
5169         if it is a reference.
5170         (add_cleanup): Add gnat_node parameter and set the location of the
5171         cleanup to it.
5172         (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
5173         (Exception_Handler_to_gnu_zcx): Likewise.
5174         (gigi): Remove the cgraph node if the elaboration procedure is empty.
5175         (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
5176         the former right after the latter.
5177         (start_stmt_group): Make global.
5178         (end_stmt_group): Likewise.
5179         (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
5180         vars.
5181         (gnu_program_error_label_stack): Likewise.
5182         (gigi): Initialize them.
5183         (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
5184         (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
5185         New cases.
5186         (push_exception_label_stack): New function.
5187         (takes_address): New function.
5189         * utils.c (struct language_function): Move to trans.c from here.
5190         (unchecked_convert): Do not wrap up integer constants in
5191         VIEW_CONVERT_EXPRs.
5192         (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
5193         the latter for aggregate types, unexpected by later passes, and relax an
5194         arbitrary size constraint on the former.
5195         (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
5196         to compare the sizes.
5197         (convert_vms_descriptor): When converting to a fat pointer type, be
5198         prepared for a S descriptor at runtime in spite of a SB specification.
5199         (shift_unc_components_for_thin_pointers): New function.
5200         (write_record_type_debug_info): For variable-sized fields, cap the
5201         alignment of the pointer to the computed alignment.
5202         (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
5203         If REP_LEVEL is 2, do not compute the sizes.
5204         (build_vms_descriptor): Adjust for new prototype of finish_record_type.
5205         (build_unc_object_type): Likewise.
5206         (declare_debug_type): New function.
5208         * ada-tree.def: USE_STMT: removed (not emitted anymore).
5210         * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
5211         no statement is expandable anymore.
5212         (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
5213         (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
5214         when the user requested it explicitely.
5215         (gnat_post_options): By default, set flag_eliminate_unused_debug_types
5216         to 0 for Ada.
5217         (get_alias_set): Return alias set 0 for a type if
5218         TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
5220         * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
5221         (DECL_FUNCTION_STUB): New accessor macro.
5222         (SET_DECL_FUNCTION_STUB): New setter macro.
5224         * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
5226         * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
5227         declarations.
5229 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
5231         * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
5232         Rename to Abort_Task_Interrupt to be able to keep the same interface
5233         as the rest of the targets.
5235         * s-osinte-vxworks.ads s-osinte-vxworks.adb
5236         (To_VxWorks_Priority): Remove explicit "in" mode indicator
5238         * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
5239         New files.
5241 2007-06-06  Robert Dewar  <dewar@adacore.com>
5243         * a-chahan.ads: Remove obsolescent pragmas
5245         * a-chlat1.ads: Minor reformatting
5247 2007-06-06  Robert Dewar  <dewar@adacore.com>
5249         * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
5250         for Errout
5252         * errout.adb: New Finalize/Compilation_Errors/Output_Messages
5253         implementation
5255         * errout.ads (Finalize): Changed interface
5256         (Output_Messages): New procedure
5257         (Compilation_Errors): New Interface
5259         * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
5260         Finalize/Output_Messages interface for Errout
5261         (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
5262         Errout.
5264 2007-06-06  Thomas Quinot  <quinot@adacore.com>
5265             Olivier Hainque  <hainque@adacore.com>
5266             Robert Dewar  <dewar@adacore.com>
5268         * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
5269         check.
5270         (Raise_Current_Excep): Call Debug_Raise_Exception just before
5271         propagation starts, to let debuggers know about the event in a reliable
5272         fashion.
5273         (Local_Raise): Moved to System.Exceptions
5274         More convenient to have this as a separate unit
5276         * s-except.adb, s-except.ads: New files.
5278         * a-exextr.adb (Unhandled_Exception): Delete - replaced by
5279         Debug_Unhandled_Exception in System.Exceptions where it belongs
5280         together with a couple of other debug helpers.
5281         (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
5282         the former Unhandled_Exception.
5284         * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
5285         (Warn_No_Exception_Propagation): New procedure
5286         (Warn_If_No_Propagation): Rewritten for new warning generation
5287         (Expand_Exception_Handlers): New warning generation
5288         (Expand_N_Raise_xxx_Error): Rewritten for new warnings
5289         (Add_Exception_Label): Use Special_Exception_Package_Used for test
5290         instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
5291         (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
5292         even if restriction is set (makes life easier in Check_Returns)
5293         (Expand_Local_Exception_Handlers): Follow renamed entity chain when
5294         checking exception identities.
5295         (Expand_Local_Exception_Handlers): Do not optimize when all others case
5296         (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
5297         block for handler (used by Check_Returns)
5298         (Expand_Local_Exception_Handlers): Local_Raise now takes an address
5299         (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
5300         remove all exception handlers when optimizing local raise statements.
5301         (Find_Local_Handler): Use Get_Renamed_Entity
5302         (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
5303         marked analyzed after expanding exception handlers, do not generate
5304         redundant cleanup actions, because they have been constructed already.
5306 2007-06-06  Thomas Quinot  <quinot@adacore.com>
5308         * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
5309         presence of this categorization pragma is mandated by the language.
5310         (Limited_Controlled): Add missing pragma Preelaborable_Initialization
5311         for this type.
5313 2007-06-06  Vincent Celier  <celier@adacore.com>
5314             Robert Dewar  <dewar@adacore.com>
5316         * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb, 
5317         butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads, 
5318         err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads, 
5319         fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads, 
5320         lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads, 
5321         makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb, 
5322         par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb, 
5323         prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads, 
5324         prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb, 
5325         sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb, 
5326         uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
5327         ali.ads, ali.adb: 
5328         Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
5329         package Namet. Make File_Name_Type and Unit_Name_Type types derived from
5330         Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
5331         Use variables of types File_Name_Type and Unit_Name_Type in error
5332         messages.
5333         (Get_Name): Add parameter Ignore_Special, and set it reading file name
5334         (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
5335         here.
5336         Define flags Flag217-Flag230 with associated subprograms
5337         (Flag_Word5): New record type.
5338         (Flag_Word5_Ptr): New access type.
5339         (To_Flag_Word5): New unchecked conversion.
5340         (To_Flag_Word5_Ptr): Likewise.
5341         (Flag216): New function.
5342         (Set_Flag216): New procedure.
5344 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
5346         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
5347         instead of 'Size.
5349         * a-stwifi.ads, a-stzfix.ads: Minor reformatting
5351 2007-06-06  Javier Miranda  <miranda@adacore.com>
5353         * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
5354         the package.
5355         (Object_Specific_Data_Array): This is now internal to the package.
5356         (Object_Specific_Data): This is now internal to the package.
5357         (Select_Specific_Data_Element): This is now internal to the package.
5358         (Select_Specific_Data_Array): This is now internal to the package.
5359         (Select_Specific_Data): This is now internal to the package.
5360         (Offset_To_Top_Function_Ptr): This is now public.
5361         (To_Offset_To_Top_Function_Ptr): Removed.
5362         (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
5363          local to subprogram Offset_To_Top.
5364         (Predefined_DT): Removed.
5365         (Typeinfo_Ptr): Removed.
5366         (OSD): This function is now internal to this package.
5367         (SSD): This function is now internal to this package.
5368         (DT): New function that displaces the pointer to the table of primitives
5369          to get access to the enclosing wrapper record.
5370         (IW_Membership): Code cleanup.
5371         (Offset_To_Top): Code cleanup.
5372         (Predefined_DT): Removed.
5373         (Register_Interface_Tag): Removed.
5374         (Set_Interface_Table): Removed.
5375         (Set_Offset_Index): Removed.
5376         (Set_Offset_To_Top): Code cleanup.
5377         (Set_OSD): Removed.
5378         (Set_Signature): Removed.
5379         (Set_SSD): Removed.
5380         (Set_Tagged_Kind): Removed.
5381         (Typeinfo_Ptr): Removed.
5382         (TSD): Removed.
5383         (Displace): Add missing check on null actual.
5385         * exp_disp.ads, exp_disp.adb
5386         (Select_Expansion_Utilities): Removed.
5387         (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
5388         (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
5389         the interface requires a new parameter.
5390         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
5391         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
5392         calls to subprograms Build_T, Build_S, etc. by the corresponding code.
5393         Done to remove package Select_Expansion_Utilities.
5394         (Make_DT): New implementation for statically allocated dispatch tables.
5395         (Make_Secondary_DT): Moved to the scope of Make_DT.
5396         (Register_Primitive): Code cleanup plus incoporate the use of the new
5397         function DT_Address_Attribute.
5398         (Expand_Interface_Thunk): The profile of this subprogram has been
5399         changed to return the Thunk_Id and the corresponding code.
5400         (Fill_DT_Entry): Removed. Its functionality is now provided by
5401         subprogram Register_Primitive.
5402         (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
5403         subprogram Register_Primitive.
5404         (Register_Primitive): New subprogram that incorporates the previous
5405         functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
5406         (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
5407         was only required to call Make_DT_Access_Action, which is now removed.
5408         (Ada_Actions): Removed
5409         (Action_Is_Proc): Removed
5410         (Action_Nb_Arg): Removed
5411         Replace all the calls to Make_DT_Access_Action by direct calls to
5412         Make_Procedure_Call_Statement or Make_Function_Call.
5413         (Set_DTC_Entity_Value): New subprogram.
5414         (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
5415         (Expand_Interface_Thunk): Add missing support for primitives that are
5416         functions with a controlling result (case in which there is no need
5417         to generate the thunk).
5419         * exp_atag.ads, exp_atag.adb
5420         (Build_DT): New subprogram that displaces the pointer to reference the
5421         base of the wrapper record.
5422         (Build_Typeinfo_Offset): Removed.
5423         (RTE_Tag_Node): Removed.
5424         (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
5425         (Build_Get_RC_Offset): Removed.
5426         (Build_Inherit_Predefined_Prims): Removed.
5427         (Build_Inherit_TSD: Removed.
5428         (Build_New_TSD): Removed.
5429         (Build_Set_External_Tag): Removed.
5430         (Build_Set_Predefined_Prim_Op_Address): Add documentation.
5431         (Build_Set_Prim_Op_Address): Add documentation.
5432         (Build_Set_TSD): Removed.
5434         * rtsfind.ads, rtsfind.adb
5435         (Load_Fail): If load fails and we are not in configurable run-time
5436         mode, then raise Unrecoverable_Error.
5437         (Text_IO_Kludge): Generate an error message if a run-time library is
5438         not available in a given run-time (ie. zfp run-time).
5439         (RTE_Record_Component): Add code to check that the component we search
5440         for is not found in two records in the given run-time package.
5441         (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
5442         (RE_DT_Predef_Prims_Offset): New entity
5443         (RE_Static_Offset_To_Top): New entity
5444         (RE_HT_Link): New entity.
5445         (System_Address_Image): Addition of this run-time package.
5446         (RE_Address_Image): New entity.
5447         (RE_Abstract_Interface): Removed.
5448         (RE_Default_Prim_Op_Count): Removed.
5449         (RE_DT_Entry_Size): Removed.
5450         (RE_DT_Min_Prologue_Size): Removed.
5451         (RE_DT_Prologue_Size): Removed.
5452         (RE_Ifaces_Table_Ptr): Removed.
5453         (RE_Interface_Data_Ptr): Removed.
5454         (RE_Type_Specific_Data): Removed.
5455         (RE_Primary_DT): Removed.
5456         (RE_Register_Interface_Tag): Removed.
5457         (RE_Set_Offset_Index): Removed.
5458         (RE_Set_OSD): Removed.
5459         (RE_Set_SSD): Removed.
5460         (RE_Set_Signature): Removed.
5461         (RE_Set_Tagged_Kind): Removed.
5462         (RE_Address_Array): New entity.
5463         (RE_DT): New entity.
5464         (RE_Iface_Tag): New entity.
5465         (RE_Interfaces_Table): New entity.
5466         (RE_No_Dispatch_Table): New entity.
5467         (RE_NDT_Prims_Ptr): New entity.
5468         (RE_NDT_TSD): New entity.
5469         (RE_Num_Prims): New entity.
5470         (RE_Offset_To_Top_Function_Ptr): New entity.
5471         (RE_OSD_Table): New entity.
5472         (RE_OSD_Num_Prims): New entity.
5473         (RE_Predef_Prims): New entity
5474         (RE_Predef_Prims_Table_Ptr): New entity.
5475         (RE_Primary_DT): New entity.
5476         (RE_Signature): New entity.
5477         (RE_SSD): New entity.
5478         (RE_TSD): New entity.
5479         (RE_Type_Specific_Data): New entity.
5480         (RE_Tag_Kind): New entity.
5482 2007-06-06  Thomas Quinot  <quinot@adacore.com>
5484         * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
5485         C imported variable.
5486         (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
5487         on entry.
5489 2007-06-06  Robert Dewar  <dewar@adacore.com>
5491         * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
5492         character
5494 2007-06-06  Vincent Celier  <celier@adacore.com>
5496         * a-tifiio.adb (Put, internal): For negative numbers, check that there
5497         is room for at least one digit and the minus sign.
5498         (Put.Put_Character): Never put a character outside of the range of
5499         string To.
5501 2007-06-06  Olivier Hainque  <hainque@adacore.com>
5502             Eric Botcazou  <ebotcazou@adacore.com>
5504         * utils2.c (build_allocator): Provide the extra arguments to
5505         make_aligning_type for super-aligned objects allocated from the default
5506         pool. Leave enough room for a pointer before the aligning field, and
5507         store the system's allocator return value there.
5508         (build_call_alloc_dealloc): When releasing a super-aligned object,
5509         retrieve the system's allocator return value from where build_allocator
5510         has stored it, just ahead of the adjusted address we are passed.
5511         (build_call_raise): Handle properly the generation of line numbers when
5512         the node is marked No_Location.
5513         (compare_elmt_bitpos): Use tree_int_cst_compare.  Stabilize the sort
5514         by using DECL_UID on ties.
5515         (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
5516         main variant.
5517         (build_call_raise): Handle converting exception into goto; support new
5518         argument KIND.
5519         (build_component_ref): Add new arg to build_call_raise.
5521 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
5523         * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
5524         "." in the case of nnn.xxx when nnn terminates with an underscore.
5525         Parse the remaining "#" or ":" in the case of nnn#.xxx#
5527 2007-06-06  Robert Dewar  <dewar@adacore.com>
5529         * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
5531 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
5532             Vincent Celier  <celier@adacore.com>
5533             Robert Dewar  <dewar@adacore.com>
5535         * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
5536         needed.
5537         (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
5538         ((destructor)) for adafinal, even when switch -a is used.
5539         Do not issue pragma Linker_Destructor for adafinal when switch -a is
5540         used.
5541         (Gen_Object_Files_Options): Add formatting of Linker Options, when
5542         Output_Linker_Option_List is set. Suppress this formatting when
5543         Zero_Formatting is set.
5544         Add case for CLI_Target.
5545         (System_Restrictions_Used): New flag, used to avoid generating with of
5546         System_Restrictions and initialization of the data unless there is
5547         some use of System.Restrictions in the partition.
5548         (Check_System_Restrictions_Used): New procedure
5550         * s-stalib.adb: Remove with of System.Restrictions. No longer needed
5551         since we only with this unit in the binder file if it is used elsewhere
5552         in the partition.
5554 2007-06-06  Vincent Celier  <celier@adacore.com>
5556         * bindusg.adb: Add line for @<response file>
5557         Add lines for new switches -R and -Z
5559         * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
5560         hierarchy in the list of files of the closure when -R is used
5561         (Gnatbind): Accept arguments starting with '@' to indicate response
5562         files and take the arguments from the response files.
5563         If List_Closure is set, display the referenced files
5565 2007-06-06  Javier Miranda  <miranda@adacore.com>
5566             Robert Dewar  <dewar@adacore.com>
5567             Ed Schonberg  <schonberg@adacore.com>
5569         * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
5570         which the address-clause is applied to in-mode actuals (allowed by
5571         13.1(22)).
5572         (Apply_Discriminant_Check): Do not generate a check if the type is
5573         constrained by a current instance.
5574         (Activate_Division_Check): New procedure
5575         (Activate_Overflow_Check): New procedure
5576         (Activate_Range_Check): New procedure
5577         Call these new Activate procedures instead of setting flags directly
5578         (Apply_Array_Size_Check): Removed, no longer needed.
5579         Code clean up: remove obsolete code related to GCC 2.
5580         (Get_E_Length): Protect against bomb in case scope is standard
5581         (Selected_Range_Checks): If the node to be checked is a conversion to
5582         an unconstrained array type, and the expression is a slice, use the
5583         bounds of the slice to construct the required constraint checks.
5584         Improve NOT NULL error messages
5585         (Apply_Constraint_Check): If the context is a null-excluding access
5586         type, diagnose properly the literal null.
5588 2007-06-06  Pascal Obry  <obry@adacore.com>
5590         * clean.adb (Clean_Archive): Use untouched casing for the archive name
5591         and the corresponding .deps file.
5592         (Clean_Interface_Copy_Directory): Use untouched casing for the library
5593         src directory. Minor code-clean-up. Use untouched casing for files
5594         read into the library src dir.
5595         (Clean_Library_Directory): Idem.
5596         (Parse_Cmd_Line): Accept new switch -aP
5598 2007-06-06  Javier Miranda  <miranda@adacore.com>
5599             Ed Schonberg  <schonberg@adacore.com>
5600             Robert Dewar  <dewar@adacore.com>
5601             Eric Botcazou  <ebotcazou@adacore.com>
5602             Arnaud Charlet  <charlet@adacore.com>
5604         * einfo.ads, einfo.adb (Available_View): New synthesized attribute
5605         applicable to types that have the With_Type flag set. Returns the
5606         non-limited view of the type, if available, otherwise the type itself.
5607         For class-wide types, there is no direct link in the tree, so we have
5608         to retrieve the class-wide type of the non-limited view of the Etype.
5609         New attributes Static_Initialization and Static_Elaboration_Desired.
5610         Remove the pragma Thread_Body, and the associated flag
5611         Is_Thread_Body in entities, and all related code.
5612         (Suppress_Value_Tracking_On_Call): New flag
5613         E_Exception has Esize and Alignment fields
5614         (Universal_Aliasing): New function.
5615         (Set_Universal_Aliasing): New procedure.
5616         (Write_Entity_Flags): Deal with Universal_Aliasing flag.
5617         (Check_Nested_Access): New procedure.
5618         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
5619         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
5620         (Related_Interface): New attribute. Present in dispatch table pointer
5621         components of records. Set to point to the entity of the corresponding
5622         interface type.
5623         (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
5624         (Original_Access_Type): Remove, not needed.
5625         (Root_Type): Handle properly subtypes of class-wide-types.
5626         Update comments.
5628         * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
5629         class-wide types visible through limited-with clauses.
5630         (Try_Primitive_Operation): When examining all primitive operations of a
5631         tagged type, do not consider subprograms labeled as hidden unless they
5632         belong to a private generic type with a tagged parent.
5633         (Try_Object_Operation): Extensive rewriting, to handle properly various
5634         overloading cases, when several ancestors may have class-wide operations
5635         that are possible candidates, and when the overloaded functions return
5636         array types and have defaulted parameters so that the call may be
5637         interpreted as an indexing.
5638         (Analyze_Allocator): Remove Mark_Allocator and its invocation.
5639         (Process_Function_Call): use Next, rather than Next_Actual, to analyze
5640         successive actuals before analyzing the call itself.
5641         (Try_Primitive_Operation): A primitive operation is compatible with the
5642         prefix if the prefix has a synchronized type and the type of the formal
5643         is its corresponding record, as can be the case when the primitive
5644         operation is declared outside of the body of the type.
5645         (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
5646         perform homonym traversal, looking for class-wide operation matches
5647         (formerly done in statements of Try_Class_Wide_Operation). Matches on
5648         access parameters are now restricted to anonymous access types.
5649         (Mark_Allocator): An allocator with a discriminant association parent is
5650         a coextension.
5651         (Try_One_Prefix_Interpretation): If the type of the object is
5652         incomplete, as can be happen when it is a limited view obtained through
5653         a limited_with_clause, the selected component is not part of a prefixed
5654         call.
5655         (Complete_Object_Operation): Diagnose properly an object that is not
5656         aliased when the corresponding controlling formal is an access
5657         parameter.
5658         (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
5659         ambiguous calls in prefixed notation, where two primitives differ only
5660         in that the controlling argument of one is an access parameter.
5662         * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
5663         whether a function that returns an unconstrained type can be inlined.
5664         (Process_Formals): Diagnose properly the illegal use of an incomplete
5665         type in the profile of an access_to_subprogram declaration.
5666         (Check_Synchronized_Overriding): Nothing check for concurrent types, the
5667         operations are attached to the corresponding record.
5668         (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
5669         When processing a primitive of a concurrent type which implements an
5670         interface change the type of all controlling formals to that of the
5671         corresponding record type.
5672         (Check_Synchronized_Overriding): Relax the conditional logic when trying
5673         to determine the tagged type to which a primitive belongs.
5674         (Check_Conventions): Capture condition to ignore a primitive operation
5675         (which is shared between the loop in Check_Conventions and the one in
5676         Check_Convention) in a new local function Skip_Check.
5677         (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
5678         confusion with Check_Conventions' own Prim_Op local variable.
5679         (Create_Extra_Formals): Test for a tagged result type rather than a
5680         controlling result when determining whether to add a BIP_Alloc_Form
5681         formal and a BIP_Final_List formal to the function.
5682         (Check_Conformance); For parameters that are anonymous access types,
5683         subtype conformance requires that the not null and the constant
5684         indicators must match
5685         (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
5686         to retrieve the appropriate type when processing a concurrent type
5687         declared within a generic. Minor comment reformatting. Change invocation
5688         of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
5689         mitive.
5690         (Analyze_Subprogram_Body): If the return type of a function is an
5691         anonymous access to the limited view of a class-wide type, and the
5692         non-limited view of the type is available, update the type of the
5693         function so that code can be generated.
5694         (Process_Formals): In case of access-subtype itype whose designated
5695         type is also an itype (situation that happens now with access to
5696         subprograms) we mark the access-type itype with the Has_Delayed_Freeze
5697         attribute to avoid backend problems.
5698         (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
5699         init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
5700         anonymous types' designated types are same before testing
5701         Subtypes_Statically_Match.
5702         (Create_Extra_Formals): Test for a named access parameter that is a
5703         controlling formal as an additional condition for adding an
5704         accessibility level formal. This can occur in the subp type created for
5705         dispatching calls in Expand_Dispatching_Call, and allows calling
5706         Create_Extra_Formals from that procedure rather than special-casing the
5707         extra formals there.
5708         (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
5709         when the function has a controlling result.
5710         (Check_Returns): Add much more knowledge of the optimization of local
5711         raise statements to gotos, to retain proper warnings in this case.
5712         (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
5713         nodes when looking for last statement.
5715         * sem_type.ads, sem_type.adb (Specific_Type): Add support for
5716         class-wide types visible through limited with clauses.
5717         (Add_One_Interp): If the operands are anonymous access types, the
5718         predefined operator on universal_access is immediately visibles
5719         (Find_Unique_Type): Handle anonymous access to subprogram types just as
5720         other anonymous access types.
5721         (Disambiguate): Take into account CIL convention.
5722         (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
5724 2007-06-06  Robert Dewar  <dewar@adacore.com>
5726         * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
5727         sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
5728         elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
5729         Fix lower bound of tables.
5730         Add rep clauses.
5732         * nlists.adb: Ditto.
5733         (Prev_Node, Next_Node): Change index type to Int so that it properly
5734         covers the range First_Node_Id - 1 up.
5736 2007-06-06  Javier Miranda  <miranda@adacore.com>
5737             Ed Schonberg  <schonberg@adacore.com>
5738             Bob Duff  <duff@adacore.com>
5739             Hristian Kirtchev  <kirtchev@adacore.com>
5741         * exp_aggr.ads, exp_aggr.adb: 
5742         (Build_Record_Aggr_Code): Add missing initialization of secondary tags
5743         in extension aggregates.
5744         (Flatten): Other conditions being met, an aggregate is static if the
5745         low bound given by component associations is different from the low
5746         bound of the base index type.
5747         (Packed_Array_Aggregate_Handled): If the component type is itself a
5748         packed array or record, the front-end must expand into assignments.
5749         (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
5750         Init_Pr, instead of Ancestor_Is_Expression.
5751         (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
5752         coextension chain root, either generate a list controller or use the
5753         already existing one.
5754         (Static_Array_Aggregate): New procedure to construct a positional
5755         aggregate that can be handled by the backend, when all bounds and
5756         components are compile-time known constants.
5757         (Expand_Record_Aggregate): Force conversion of aggregates of tagged
5758         types covering interface types into assignments.
5759         (Replace_Type): move to Build_Record_Aggr_Code.
5760         (Expand_Record_Aggr_Code): if the target of the aggregate is an
5761         interface type, convert to the definite type of the aggregate itself,
5762         so that needed components are visible.
5763         (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
5764         components and the context is an extended return statement do not
5765         create a transient block for it, to prevent premature finalization
5766         before the return is executed.
5767         (Gen_Assign): Do not generate a call to deep adjust routine if the
5768         component type is itself an array of controlled (sub)-components
5769         initialized with an inner aggregate.
5770         (Component_Check): New name for Static_Check. This name is now more
5771         appropriate, and documentation is added which was missing.
5772         (Component_Check): Add test for bit aligned component value
5773         (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
5774         Tagged_Comps, name is more appropriate given added function below.
5775         (Component_Not_OK_For_Backend): Check for bit aligned component ref.
5777 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
5778             Javier Miranda  <miranda@adacore.com>
5779             Robert Dewar  <dewar@adacore.com>
5781         * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
5782         Terminated: Add unchecked type conversion from System.Address to
5783         System.Tasking.Task_Id when calling the predefined primitive
5784         _disp_get_task_id.
5785         Disable new Ada 05 accessibility check for JVM.NET targets, which
5786         cannot be implemented in a practical way.
5787         (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
5788         the sources always references the tag of the actual object. Therefore,
5789         if 'Tag is applied in the sources to class-wide interface objects we
5790         generate code that displaces "this" to reference the base of the object.
5791         (Expand_N_Attribute_Reference, case Size): Return specified size if
5792         known to front end.
5793         (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
5794         has code that displaces the pointer of the object to manage interface
5795         types. However this code must not be executed when the prefix is a
5796         subprogram. This bug caused the wrong expansion of the internally
5797         generated assignment that fills the dispatch table when the primitive
5798         is a function returning a class-wide interface type.
5799         (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
5800         Set_Attribute_Name for Name_Unaligned_Valid.
5802 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
5803             Gary Dismukes  <dismukes@adacore.com>
5805         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
5806         If the initialization is the equivalent aggregate of the initialization
5807         procedure of the type, do not remove it.
5808         (Expand_N_Attribute_Definition_Clause): Exclude access variables
5809         initialized to null from having their expression reset to empty and
5810         note this exception in the comment.
5812 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
5813             Robert Dewar  <dewar@adacore.com>
5814             Ed Schonberg  <schonberg@adacore.com>
5815             Gary Dismukes  <dismukes@adacore.com>
5817         * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
5818         Add "with" and "use" clauses for Sem_Attr.
5819         (Expand_Current_Value): Do not replace occurences of attribute
5820         references where the prefix must be a simple name.
5822         * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
5823         Namet. Add new arrays Attribute_Name_Modifies_Prefix and
5824         Attribute_Requires_Simple_Name_Prefix.
5825         (Name_Modifies_Prefix): Body of new function.
5826         (Requires_Simple_Name_Prefix): Body of new function.
5827         (Resolve_Attribute, case Access): Improve error message for case of
5828         mismatched conventions.
5829         (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
5830         incomplete type.
5831         (Analyze_Attribute, case 'Access): If the type of the prefix is a
5832         constrained subtype for a nominal unconstrained type, use its base type
5833         to check for conformance with the context.
5834         (Resolve_Attribute): Remove test of the access type being associated
5835         with a return statement from condition for performing accessibility
5836         checks on access attributes, since this case is now captured by
5837         Is_Local_Anonymous_Access.
5838         (Analyze_Access_Attribute): Set Address_Taken on entity
5839         (Analyze_Attribute, case Address): Set Address_Taken on entity
5840         (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
5841         validating an access attribute whose prefix is a current instance.
5842         (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
5843         applied to dispatching operations, if freezing is required then we set
5844         the attribute Has_Delayed_Freeze in the prefix's entity.
5845         (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
5846         current scope if access of local subprogram taken
5847         (Analyze_Access_Attribute): Check legality of self-reference even if the
5848         expression comes from source, as when a single component association in
5849         an aggregate has a box association.
5850         (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
5851         the prefix if it is a protected operation and the attribute is
5852         Unrestricted_Access.
5853         (Resolve_Attribute, case 'Access): Set the Etype of the attribute
5854         reference to the base type of the context, to force a constraint check
5855         when the context is an access subtype with an explicit constraint.
5856         (Analyze_Attribute, case 'Class): If the prefix is an interface and the
5857         node is rewritten as an interface conversion. leave unanalyzed after
5858         resolution, to ensure that type checking against the context will take
5859         place.
5861 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
5862             Javier Miranda  <miranda@adacore.com>
5863             Robert Dewar  <dewar@adacore.com>
5865         * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
5866         wrapper when the full view of the controlling type of an inherited
5867         function that dispatches on result implements interfaces.
5868         (Expand_N_Object_Declaration): In cases where the type of the
5869         declaration is anonymous access, create finalization list for it.
5870         (Expand_N_Object_Declaration): Generate a persistent_bss directive only
5871         if the object has no explicit initialization, to match description of
5872         functionality of pragam Persistent_BSS.
5873         (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
5874         new function to build static aggregates, to replace initialization call
5875         when static initialization is desired.
5876         (Freeze_Type): Generate a list controller for an access type whenever
5877         its designated type has controlled anonymous access discriminants.
5878         (Build_Equivalent_Aggregate): New procedure to compute a static
5879         aggregate to be used as default initialization for composite types,
5880         instead of a generating a call to the initialization procedure for the
5881         type.
5882         (Build_Initialization_Call): When available, replace a call to the
5883         initialization procedure with a copy of the equivalent static aggregate
5884         for the type.
5885         (Expand_N_Object_Declaration):  Use New_Occurrence_Of in generated
5886         declarations for objects of a class-wide interface type, rather than
5887         just identifiers, to prevent visibility problems.
5888         (Expand_N_Object_Declaration): When expanding the declaration for an
5889         object of a class-wide interface type, preserve the homonym chain of
5890         the original entity before exchanging it with that of the generated
5891         renaming declaration.
5892         (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
5893         active, because there is no way to handle the exception.
5894         (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
5895         to do a minimum decoration of the Access_Disp_Table list.
5896         (Expand_Record_Controller): Avoid the addition of the controller between
5897         the component containing the tag of a secondary dispatch table and its
5898         adjacent component that stores the offset to the base of the object.
5899         This latter component is only generated when the parent type has
5900         discriminants ---documented in Add_Interface_Tag_Components).
5901         (Apply_Array_Size_Check): Removed, no longer needed.
5902         (Expand_N_Full_Type_Declaration): If the type has anonymous access
5903         components, create a Master_Entity for it only if it contains tasks.
5904         (Build_Init_Procedure): Suppress the tag assignment compiling under
5905         no run-time mode.
5906         (Freeze_Record_Type): Remove code associated with creation of dispatch
5907         table.
5908         (Init_Secondary_Tags): Update type of actuals when generating calls to
5909         Ada.Tags.Set_Offset_To_Top
5910         (Stream_Operation_OK): Disable use of streams compiling under no
5911         run-time mode
5912         (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
5913         if Has_Init_Expression set.
5914         (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
5915         Register_Primitive, which provides the same functionality.
5916         (Requires_Init_Proc): Return false in case of interface types.
5917         (Add_Secondary_Tables): Use the new attribute Related_Interface to
5918         cleanup the code.
5919         (Predefined_Primitive_Freeze): Do not assume that an internal entity
5920         is always associated with a predefined primitive because the internal
5921         entities associated with interface types are not predefined primitives.
5922         Therefore, the call to Is_Internal is replaced by a call to the
5923         function Is_Predefined_Dispatching_Operation.
5924         (Make_Eq_If): When generating the list of comparisons for the
5925         components of a given variant, omit the controller component that is
5926         present if the variant has controlled components.
5928 2007-06-06  Javier Miranda  <miranda@adacore.com>
5929             Hristian Kirtchev  <kirtchev@adacore.com>
5930             Bob Duff  <duff@adacore.com>
5932         * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
5933         handle the creation of finalization lists and calls for nested
5934         coextensions when the root of the chains is part of a return statement.
5935         (Inside_A_Return_Statement): New function inside Complete_Coextension_
5936         Finalization.
5937         (Expand_Record_Equality): Skip components that are interface types.
5938         (Displace_Allocator_Pointer): Add missing support for interface subtypes
5939         (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
5940         with Rewrite_Coextension. Change the condition for detecting coextension
5941         root nodes.
5942         (Is_Local_Access_Discriminant): Removed.
5943         (Rewrite_Coextension): New routine which rewrites a static coextension
5944         as a temporary and uses its unrestricted access in the construction of
5945         the outer object.
5946         (Complete_Coextension_Finalization): New routine. Generate finalization
5947         attachment calls to all delayed coextensions.
5948         (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
5949         the allocator is not a coextension itself and has delayed coextensions.
5950         If the current allocator is controlled, but also a coextension, delay
5951         the generation of the finalization attachment call.
5952         Rename local variable "Node" to "Nod" in order to avoid confusion with
5953         "Elists.Node".
5954         (Expand_Allocator_Expression): Call Adjust for initialized allocators of
5955         limited types that are not inherently limited. Such an allocator is
5956         illegal, but is generated by the expander for a return statement, to
5957         copy the result onto the secondary stack. This is the only case where a
5958         limited object can be copied. Generate code to displace the pointer
5959         to the object if the qualified expression is a class-wide interface
5960         object. Such displacement was missing and hence the copy of the object
5961         was wrong.
5962         (Apply_Accessibility_Check): Handle allocated objects initialized in
5963         place.
5964         (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
5965         and Expand_Allocator_Expression. Allocating class-wide interface objects
5966         this routine displaces the pointer to the allocated object to reference
5967         the component referencing the corresponding secondary dispatch table.
5968         Expand_Allocator_Expression): Add missing support to allocate class-wide
5969         interface objects initialized with a qualified expression.
5970         (Get_Allocator_Final_List): Test for an anonymous access type that is a
5971         function result type, and use the finalization list associated with the
5972         function scope in that case (such an anonymous type should not be
5973         treated like an access parameter's type).
5975 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
5976             Gary Dismukes  <dismukes@adacore.com>
5977             Javier Miranda  <miranda@adacore.com>
5979         * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
5980         controlled type, use Make_Handler_For_Ctrl_Operation to construct the
5981         required exception handler.
5982         (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
5983         properly the case of a function whose return type is a limited
5984         class-wide interface type. Modify the code of the accessibility
5985         check to handle class-wide interface objects. In this case we need to
5986         displace "this" to reference the primary dispatch table to get access
5987         to the TSD of the object (to evaluate its accessibility level).
5988         (Expand_N_Extended_Return_Statement): Test for a tagged result type
5989         rather than a controlling result as one of the conditions for
5990         generating tests of the implicit BIP_Alloc_Form formal. The
5991         initialization assignment is also handled according to whether the
5992         result is tagged instead of controlling.
5993         In the case where the init assignment is inserted in the "then" part of
5994         the allocation conditional, rewrite the target to be a dereference of
5995         the implicit BIP_Object_Access formal.
5996         If the returned value is unconstrained and created on the secondary
5997         stack, mark the enclosing block and function so that the secondary
5998         stack is not reclaimed on return.
5999         Treat returns from functions with controlling results similarly to
6000         returns from functions with unconstrained result subtypes.
6001         If the object returned is unconstrained, and an allocator must be
6002         created for it, analyze the allocator once the block for the extended
6003         return is installed, to ensure that finalizable components
6004         of the expression use the proper finalization list. Guard the call to
6005         Move_Final_List with a check that there is something to finalize.
6006         (Make_Tag_Ctrl_Assignment): Use "old" handling
6007         of controlled type assignment for virtual machines, since new code uses
6008         unsupported features (such as direct access to bytes in memory).
6010 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
6011             Ed Schonberg  <schonberg@adacore.com>
6013         * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
6014         accessibility actual, check for the case of an aliased object that has
6015         been rewritten as an Access attribute, and assign Prev to Prev_Orig so
6016         we fall into processing for the attribute rather than the name of the
6017         object.
6018         (Expand_Inline_Call): If an actual is a literal, and the corresponding
6019         formal has its address taken in the body, create a temporary to capture
6020         value.  If the return type is a limited interface, do not treat the
6021         return value as Controlled.
6022         (Is_In_Place_Function):  If the return type is a limited interface,
6023         treat as returning in place. The actual returned object may not always
6024         be limited, but the caller has to assume that it is returned in place.
6025         (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
6026         context of an allocator, use the correct finalization chain (that is,
6027         the chain belonging to the access type, rather than the chain belonging
6028         to the current scope).
6029         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
6030         result type rather than a controlling result as a precondition for
6031         adding an allocation form actual to a build-in-place call.
6032         (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
6033         (Freeze_Subprogram): Code cleanup. Remove all the code that register the
6034         primitive in the dispatch tables. This work is now done by Make_DT when
6035         the type is frozen.
6036         (Register_Predefined_DT_Entry): Removed.
6037         (Add_Return): If end label is not present, use sloc of last statement
6038         for generated return statement in procedure, for better gdb behavior
6039         on expanded code.
6040         (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
6041         object address nodes to ensure proper processing by routines like
6042         Insert_After*.
6043         (Expand_Call): Fix generation of validity check for parameter
6044         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
6045         the allocation form parameter if the result subtype is constrained,
6046         except when the function has a controlling result.
6047         (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
6048         rather than Is_Controlled and Has_Controlled_Component, since we want to
6049         include class-wide result types in this treatment. Also test for a
6050         controlling result, since that also requires passing a finalization
6051         list.
6052         (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
6053         even when the result subtype is constrained, to handle calls involving
6054         controlling results.
6055         (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
6056         is now called even when the result subtype is constrained, to handle
6057         calls involving controlling results.
6058         (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
6059         on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
6060         now performs the test).
6061         (Make_Build_In_Place_Call_In_Object_Declaration):
6062         Add_Alloc_Form_Actual_* is now called even when the result subtype is
6063         constrained, to handle calls involving controlling results.
6064         (Add_Return): Accomodate rewritten pattern from local raise to goto
6065         transformation, so that we still recognize an transfer statement
6066         and do the right thing here in that case.
6067         (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
6068         and end of subprogram code.
6069         (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
6070         support for primitives that are functions (without formals) with a
6071         controlling result.
6072         (Inherited_From_Formal): If the actual subtype has not generic parent
6073         type, it is not an actual for a formal derived type, and there is no
6074         operation to inherit from the formal.
6076 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
6077             Thomas Quinot  <quinot@adacore.com>
6079         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
6080         inserted cleanup code appropriately for GDB use.
6081         (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
6082         exception handler for Deep_Adjust or Deep_Finalize.
6083         (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
6084         Raise_From_Controlled_Operation is available, use a call to that
6085         subprogram instead of a plain "raise Program_Error" node to raise
6086         Program_Error if an exception is propagated from an Adjust or Finalize
6087         operation.
6088         (Insert_Actions_In_Scope_Around): If the statement to be wrapped
6089         appears in the optional statement list of a triggering alternative, the
6090         scope actions can be inserted directly there, and not in the list that
6091         includes the asynchronous select itself.
6093 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
6094             Robert Dewar  <dewar@adacore.com>
6095             Hristian Kirtchev  <kirtchev@adacore.com>
6097         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
6098         generated exception handler appropriately when debugging generated code.
6099         Deal properly with No_Exception_Propagation restriction mode.
6100         (Expand_N_Abort_Statement): Add an unchecked type conversion from
6101         System.Address to System.Tasking.Task_Id when processing the result of
6102         the predefined primitive _disp_get_task_id.
6103         (Expand_N_Asynchronous_Select): Clarify comment.
6104         (Expand_N_Protected_Type_Declaration): Minor code cleanup.
6105         (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
6106         (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
6107         (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
6108         privals and for generated call to Complete_Entry_Body, for better gdb
6109         behavior.
6110         (Copy_Result_Type): Utility to construct a parameter and result profile
6111         for protected functions whose return type is an anonymous access to
6112         subprogram.
6113         (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
6114         call the above.
6115         (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
6116         point when the local-raise-to-goto transformation has taken place.
6118 2007-06-06  Javier Miranda  <miranda@adacore.com>
6119             Nicolas Setton  <setton@adacore.com>
6121         * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
6122         functionality when the backend is generating code.
6123         Otherwise any serious error
6124         reported by the backend calling the frontend routine Error_Msg
6125         changes the Compilation_Mode to Check_Semantics, disables the
6126         functionality of this routine and causes the generation of
6127         spureous additional errors.
6129         * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
6130         debugging information now generated by the compiler for fat-pointer
6131         types.
6132         Document the contents of DW_AT_producer in the GNAT Vendor extensions to
6133         DWARF2/3.
6134         Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
6136 2007-06-06  Thomas Quinot  <quinot@adacore.com>
6138         * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
6139         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
6140         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
6141         For a remote call to a function with a classwide return type, apply an
6142         E.4(18) check to the returned value.
6143         (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
6144         stream attributes of the designated type of an RACW, as they are not
6145         dispatching primitive operations.
6147 2007-06-06  Geert Bosch  <bosch@adacore.com>
6149         * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
6150         negative literal
6151         (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
6152         positive
6153         (Do_Divide_Fixed_Universal): Handle case of negative Frac.
6154         (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
6155         positive
6156         (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
6158 2007-06-06  Javier Miranda  <miranda@adacore.com>
6160         * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
6161         attribute compiling package Ada.Tags under No_Run_Time_Mode.
6163 2007-06-06  Javier Miranda  <miranda@adacore.com>
6165         * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
6166         deallocation of class-wide interface objects.
6167         (Expand_Dispatching_Constructor_Call): Take into account that if the
6168         result of the dispatching constructor is an interface type, the
6169         function returns a class-wide interface type; otherwise the returned
6170         object would be actual. The frontend previously accepted returning
6171         interface types because Expand_Interface_Actuals silently performed
6172         the management of the returned type "as if" it were a class-wide
6173         interface type.
6174         (Expand_Dispatching_Constructor_Call): Replace call to
6175         Make_DT_Access_Action by direct call to Make_Function_Call.
6177 2007-06-06  Robert Dewar  <dewar@adacore.com>
6178             Ed Schonberg  <schonberg@adacore.com>
6180         * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
6181         compute masking constant, since we now set Esize properly to the
6182         underlying size.
6183         (Create_Packed_Array_Type): Set proper Esize value adjusted as required
6184         to match the alignment.
6185         (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
6186         packed arrays of 8 bits or less.
6188         * freeze.adb (Freeze_Entity): When freezing the formals of a
6189         subprogram, freeze the designated type of a parameter of an access type
6190         only if it is an access parameter.
6191         Increase size of C convention enumeration object
6192         (Freeze_Entity, array type case): Make sure Esize value is properly
6193         adjusted for the alignment if it is known.
6194         (Freeze_Entity, array type case): When checking bit packed arrays for
6195         the size being incorrect, check RM_Size, not Esize.
6196         (Freeze_Record_Type): Check for bad discriminated record convention
6197         (In_Exp_Body): Return true if the body is generated for a subprogram
6198         renaming, either an attribute renaming or a renaming as body.
6199         (Check_Itype): If the designated type of an anonymous access component
6200         is a non-protected subprogram type, indicate that it is frozen, to
6201         prevent out-of-scope freeze node at some subsequent call.
6202         (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
6203         only if the subprogram is neither imported nor exported, as well as the
6204         NCA descriptor class if the subprogram is exported.
6206 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
6207             Arnaud Charlet  <charlet@adacore.com>
6208             Robert Dewar  <dewar@adacore.com>
6209             Gary Dismukes  <dismukes@adacore.com>
6211         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
6212         default initialization on an imported object, when there is no
6213         initialization call generated for it.
6214         (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
6215         restriction
6217         * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
6218         Static_Elaboration_Desired.
6219         Remove pragma Thread_Body.
6220         Implement a new pragma No_Body
6221         Removes the Explicit_Overriding pragma
6222         Remove Optional_Overriding pragma
6223         (Prag): Deal with Universal_Aliasing.
6224         (Name_CIL, Name_CIL_Constructor, Convention_CIL,
6225         Pragma_CIL_Constructor): New names.
6227         * sem_cat.adb (Validate_Object_Declaration): An initialization that
6228         uses the equivalent aggregate of a type must be treated as an implicit
6229         initialization.
6230         (Get_Categorization): Check a unit for pragma Preelaborate only if it
6231         has none of the other categories.
6232         (Process_Import_Or_Interface_Pragma): Report an error for an attempt
6233         to apply Import to an object renaming declaration.
6235         * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
6236         from a C++ class should be declared as limited and that it will be
6237         considererd limited.
6238         (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
6239         should be declared as limited and that it will be considererd limited.
6240         (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
6241         (Analyze_Pragma, case Export): Diagnose export of enumeration literal
6242         (Analyze_Pragma): Deal with Universal_Aliasing.
6243         (Sig_Flags): Likewise.
6244         (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
6245         (Overflow_Checks_Unsuppressed): New flag.
6246         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
6247         (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
6248         case of JVM or .NET targets, and compiling user code.
6249         Add debugging convenience routine rv
6251 2007-06-06  Robert Dewar  <dewar@adacore.com>
6253         * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
6254         are interface type.
6255         (Build_Elementary_Input_Call): For floating-point use right type in the
6256         absence of strange size or stream size clauses.
6257         (Build_Elementary_Write_Call): Same fix
6258         (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
6259         set to value that does not match base type size.
6261 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
6263         * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
6264         object of a limited type can be initialized with a call to a function
6265         that returns in place. If the limited type has unknown discriminants,
6266         and the underlying type is a constrained composite type, build an actual
6267         subtype from the function call, as is done for private types.
6268         (Side_Effect_Free): An expression that is the renaming of an object or
6269         whose prefix is the renaming of a object, is not side-effect free
6270         because it may be assigned through the renaming and its value must be
6271         captured in a temporary.
6272         (Has_Controlled_Coextensions): New routine.
6273         (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
6274         as is done for other limited types.
6275         (Non_Limited_Designated_Type): new predicate.
6276         (Make_CW_Equivalent_Type): Modified to handle class-wide interface
6277         objects.
6278         Remove all handling of with_type clauses.
6280         * par-ch10.adb: Remove all handling of with_type clauses.
6282         * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
6283         checksum if the main source could not be parsed.
6284         (Loat_Unit): When processing a child unit, determine properly whether
6285         the parent unit is a renaming when the parent is itself a child unit.
6286         Remove handling of with_type clauses.
6288         * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
6289         (Set_Is_Static_Coextension): New procedure.
6290         (Has_Local_Raise): New function
6291         (Set_Has_Local_Raise): New procedure
6292         (Renaming_Exception): New field
6293         (Has_Init_Expression): New flag
6294         (Delay_Finalize_Attach): Remove because flag is obsolete.
6295         (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
6296         Remove all handling of with_type clauses.
6297         (Exception_Junk): Can now be set in N_Block_Statement
6299 2007-06-06  Vincent Celier  <celier@adacore.com>
6300             Robert Dewar  <dewar@adacore.com>
6302         * frontend.adb (Frontend): Return immediately if the main source could
6303         not be parsed, because of preprocessing errors.
6305         * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
6306         (Gnat1drv): Exit with errors if the main source could not be parsed,
6307         because of preprocessing errors.
6308         (Check_Rep_Info): New procedure
6310 2007-06-06  Robert Dewar  <dewar@adacore.com>
6312         * g-hesorg.ads, g-heasor.ads,
6313         g-busorg.ads, g-bubsor.ads: Update documentation
6314         GNAT.Heap/Bubble_Sort_G is now pure
6316 2007-06-06  Robert Dewar  <dewar@adacore.com>
6318         * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
6320 2007-06-06  Robert Dewar  <dewar@adacore.com>
6321             Ed Schonberg  <schonberg@adacore.com>
6323         * g-comlin.ads, g-comlin.adb: 
6324         Add new warning for renaming of function return objects
6326         * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
6327         (Tree_Read): Use size of object instead of type'object_size, since the
6328         latter is incorrect for packed array types.
6329         (Tree_Write): Same fix
6331         * opt.ads: Add new warning for renaming of function return objects
6332         (Generating_Code): New boolean variable used to indicate that the
6333         frontend as finished its work and has called the backend to process
6334         the tree and generate the object file.
6335         (GCC_Version): Is now private
6336         (Static_Dispatch_Tables): New constant declaration.
6337         (Overflow_Checks_Unsuppressed): New flag.
6338         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
6339         (List_Closure): New flag for gnatbind (-R)
6340         Zero_Formatting: New flag for gnatbind (-Z)
6341         (Special_Exception_Package_Used): New flag.
6342         (Warn_On_Unrepped_Components): New flag.
6344         * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
6345         unit is a compilation unit, rather than relying on its scope, so that
6346         Standard can be renamed.
6347         (Analyze_Object_Renaming): Add new warning for renaming of function
6348         return objects.
6349         Also reject attempt to rename function return object in Ada 83 mode.
6350         (Attribute_Renaming): In case of tagged types, add the body of the
6351         generated function to the freezing actions of the type.
6352         (Find_Type): A protected type is visible right after the reserved word
6353         "is" is encountered in its type declaration. Set the entity and type
6354         rather than emitting an error message.
6355         (New_Scope): Properly propagate Discard_Names to inner scopes
6356         (Check_Nested_Access): New procedure.
6357         (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
6358         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
6360         * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
6361         Add new warning for renaming of function return objects
6362         (Check_References): Suppress warnings for objects whose type or
6363         base type has Warnings suppressed.
6364         (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
6365         (Set_Warning_Switch): Include new -gnatwc in -gnatwa
6367 2007-06-06  Vincent Celier  <celier@adacore.com>
6368             Emmanuel Briot  <briot@adacore.com>
6369             Olivier Hainque  <hainque@adacore.com>
6371         * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
6372         absolute value of Header.Block_Size when displaying the freed physical
6373         memory in traces.
6374         (Allocate): Compute Storage_Address using Integer_Address, not
6375         Storage_Offset, because the range of Storage_Offset may not be large
6376         enough.
6377         (Configure): New parameter Low_Level_Traces
6378         (Allocate, Deallocation, Free_Physically): Added low-level traces
6379         (Configure): new parameter Errors_To_Stdout.
6380         (Output_File): new subprogram
6381         (Deallocate, Dereference): Send error messages to the proper stream
6382         (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
6383         documented. Previous code would send it to the current output file
6384         defined in GNAT.IO, which might not be stdout
6385         (Is_Valid): Adjust comment to mention that a positive reply means that
6386         Header_Of may be used to retrieve the allocation header associated with
6387         the subprogram Storage address argument. Return False early if this
6388         address argument is misaligned.
6390 2007-06-06  Vincent Celier  <celier@adacore.com>
6392         * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
6393         switch -P
6394         (ASIS_Main): New global variable
6395         (Get_Closure): New procedure
6396         (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
6397         check, metric or pretty. Call Get_Closure in this case.
6398         (Check_Files): For GNAT LIST, check all sources of all projects when
6399         All_Projects is True.
6400         (GNATCmd): Accept -U for GNAT LIST
6402 2007-06-06  Vincent Celier  <celier@adacore.com>
6404         * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
6405         has been specified
6406         Correct error message when invocation of the linker fails
6407         Add explicit size clause for the C imported variables
6408         Object_List_File_Supported and Using_GNU_Linker to emphasize that
6409         we expect char size.
6410         Read target parameters earlier, since this is needed to set
6411         Target_VM properly. Also do not use -static/shared-libgcc for non GCC
6412         targets.
6414 2007-06-06  Vincent Celier  <celier@adacore.com>
6416         * gnatls.adb: 
6417         Add 3 spaces before the default project directory when displaying
6418         the project search path.
6419         Add new command line switch '-l' to display license information.
6421 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
6423         * gmem.c: Add support for timestamps on memory operations.
6425         * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
6426         operations (not used currently, just foundation for future
6427         enhancements). Add possibility to perform full dump of gmem.out file.
6428         (Print_Back_Traces): Declare accesses to root arrays constants since
6429         they aren't modified.
6430         (Print_Back_Traces): allocate root arrays on the heap rather than stack.
6432 2007-06-06  Vincent Celier  <celier@adacore.com>
6434         * gnatsym.adb: Update Copyright notice
6435         (Parse_Cmd_Line): Accept new switch -D
6436         (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
6437          file.
6439         * prj.ads (Policy): New policy Direct
6440         (Yes_No_Unknown): New enumeration type
6441         (Project_Data): New component Libgnarl_Needed
6443         * prj-nmsc.adb (Check_For_Source): When recording a source file make
6444         use the untouched pathname casing.
6445         (Get_Directories): Ensure that the Display_Exec_Directory is using the
6446         proper casing on non case-sensitive platforms like Windows.
6447         (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
6448         on all platforms, as it is not possible to know which one is allowed
6449         before processing the project files.
6450         (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
6451         specified when symbol policy is Direct. Check that when there is a
6452         symbol file defined (either by default or with attribute
6453         Library_Symbol_File) it is not the same as the reference symbol file.
6454         (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
6455         (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
6456         extending projects.
6457         (Record_Ada_Source): Record a source that has been locally removed in an
6458         imported project.
6460         * symbols.ads (Policy): New policy Direct
6462         * symbols-vms.adb (Initialize): Take new policy Direct in case
6463         statement
6465 2007-06-06  Vincent Celier  <celier@adacore.com>
6467         * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
6468         Correct obvious bug (return Dir; instead of return Directory;).
6469         (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
6471 2007-06-06  Thomas Quinot  <quinot@adacore.com>
6473         * g-pehage.adb (Produce): Open output files in Binary mode, so that
6474         they have UNIX line endings (LF only) even on Windows, and thus pass
6475         all GNAT style checks.
6477 2007-06-06  Emmanuel Briot  <briot@adacore.com>
6479         * g-regpat.adb (Quote): Fix improper quoting of '.'
6481 2007-06-06  Thomas Quinot  <quinot@adacore.com>
6483         * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
6484         default, set False on a per-runtime basis.
6485         (Need_Netdb_Buffer): New constant.
6487         * g-socket.ads, g-socket.adb: Import new package
6488         GNAT.Sockets.Thin.Task_Safe_NetDB.
6489         (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
6490         binding to obtain proper message.
6491         (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
6492         Replace various occurrences of Arry (Arry'First)'Address with the
6493         equivalent Arry'Address (GNAT always follows implementation advice from
6494         13.3(14)).
6495         (Get_Host_By_Address, Get_Host_By_Name,
6496         Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
6497         instead, rely on platform-specific task safe netdb operations provided
6498         by g-socthi.
6500         * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
6501         parameter Process_Blocking_IO.
6502         (Host_Error_Messages): Add stub body.
6503         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
6504         (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
6505         Safe_Getservbyport): Move functions into new child package
6506         Task_Safe_NetDB.
6507         (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
6508         Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
6509         (In_Addr): Add alignment clause.
6511 2007-06-06  Robert Dewar  <dewar@adacore.com>
6513         * g-trasym.ads, g-traceb.ads: Update list of supported targets
6514         Add note about symbolic traceback
6516 2007-06-06  Pascal Obry  <obry@adacore.com>
6518         * hostparm.ads (Normalized_CWD): Use the host directory separator
6519         instead of the hardcoded forward slash which is not the proper
6520         character on Windows for example.
6521         (Java_VM): Removed.
6523 2007-06-06  Vincent Celier  <celier@adacore.com>
6524             Arnaud Charlet  <charlet@adacore.com>
6526         * a-clrefi.adb, a-clrefi.ads: New files
6528         * impunit.adb: Add s-os_lib in the list of user visible units.
6529         (Non_Imp_File_Names_95): Add a-clrefi to this list
6530         Remove obsolete run-time entries.
6531         (Non_Imp_File_Names_05): Add Ada 2005 entries for:
6532          "a-exetim" -- Ada.Execution_Time
6533          "a-extiti" -- Ada.Execution_Time.Timers
6535         * mlib-prj.ads, mlib-prj.adb
6536         (Build_Library): Use untouched object dir and library dir. At the
6537         same time makes sure that the checks are done using the canonical
6538         form. Removes hard-coded directory separator and use the proper host
6539         one instead.
6540         (Process_Project): Do not look in object directory to check if libgnarl
6541         is needed for a library, if there is no object directory.
6542         (Build_Library): Scan the ALI files to decide if libgnarl is needed for
6543         linking.
6544         (Build_Library): When invoking gnatbind, use a response file if the
6545         total size of the arguments is too large.
6547         * Makefile.rtl: (g-sttsne): New object file.
6548         Add entry for a-clrefi, s-utf_32, System.Exceptions
6550         * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
6551         (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
6552         (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
6553         Change g-string to s-string, g-os_lib to s-os_lib
6554         Change all g-utf_32 references to s-utf_32
6556 2007-06-06  Tristan Gingold  <gingold@adacore.com>
6557             Olivier Hainque  <hainque@adacore.com>
6559         * init.c: Do not adjust IP of an imported VMS exception of ia64.
6560         LIB$STOP is called to raise an exception and the IP of the exception
6561         is the instruction right after the call.
6562         (__gnat_adjust_context_for_raise, AIX): Implement.
6563         (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
6564          adjust_context_for_raise before Raise_From_Signal_Hanler.
6565         (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
6566         siginfo is passed to the handler, necessary to let the zcx propagation
6567         engine unwind past it.
6569 2007-06-06  Olivier Hainque  <hainque@adacore.com>
6571         * initialize.c (__gnat_initialize for vxworks):  Update documentation
6572         on the ZCX support, using different sets of crtstuff objects than with
6573         GCC 3.4.
6575 2007-06-06  Robert Dewar  <dewar@adacore.com>
6577         * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
6578         spec from body
6579         (Layout_Type): Fix recomputation of size from alignment.
6581 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
6582             Javier Miranda  <miranda@adacore.com>
6584         * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
6585         association in an instance.
6586         (Copy_Generic_Node): If the node is a string literal, no need to copy
6587         its descendants.
6588         (Is_Generic_Formal): For a formal subprogram, the declaration is the
6589         grandparent of the entity.
6590         (Analyze_Formal_Interface_Type): Transform into a full type declaration,
6591         to simplify handling of formal interfaces that derive from other formal
6592         interfaces.
6593         (Instantiate_Subprogram_Body): The defining unit name of the body of
6594         the instance should be a defining identifier.
6595         (Install_Formal_Packages): make global to the package, for use in
6596         instantiations of child units.
6597         (Analyze_Package_Instantiation): Do not attempt to set information on an
6598         enclosing master of an entry when expansion is disabled.
6599         (Instantiate_Type): If the actual is a tagged synchronized type and the
6600         generic ancestor is an interface, create a generic actual for the
6601         corresponding record.
6602         (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
6603         declaration, to ensure that the interface list is processed correctly.
6604         (Inline_Instance_Body): If enclosing scope is an instance body, remove
6605         its entities from visibiility as well.
6606         (Pre_Analyze_Actuals): if the actual is an allocator with  constraints
6607         given with a named association, analyze the expression only, not the
6608         discriminant association itself.
6609         (Reset_Entity): If the analysis of a selected component is transformed
6610         into an expanded name in the prefix of a call with parameters, do not
6611         transform the original node into an expanded name, to prevent visibility
6612         errors in the case of nested generics.
6613         (Check_Private_View): For an array type, check whether the index types
6614         may need exchanging.
6616 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
6617             Vincent Celier  <celier@adacore.com>
6619         * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
6620         since both are separated.
6621         Add support for imported CIL packages.
6622         Add further special handling of "value_type" for CIL.
6623         Add special handling of pragma Import for CIL.
6625         * make.ads, make.adb: When switch -eS is used, direct all outputs to
6626         standard output instead of standard error, except errors.
6627         (Absolute_Path): Use untouched casing for the parent directory.
6628         (Add_Library_Search_Dir): Use the untouched directory name.
6629         (Add_Source_Search_Dir): Idem.
6630         (Change_To_Object_Directory): Update output to use proper casing.
6631         (Create_Binder_Mapping_File): Use the untouched filename to set
6632         ALI_Name.
6633         (Gnatmake): Use untouched library and executable directory names.
6634         (Insert_Project_Sources): Use untouched filename for spec and body.
6635         (Is_In_Object_Directory): Use untouched object directory.
6636         (Mark_Directory): Idem.
6637         (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
6638         contains the non-canonical filename in all cases.
6639         (Change_To_Object_Directory): In verbose mode, display the name of the
6640         object directory we're changing to.
6641         (Compile_Sources): Make sure, when a project file is used, to compile
6642         the body of the unit, when there is one, even when only the spec is
6643         recorded in an ALI file.
6644         (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
6645         spec to the body.
6646         (Report_Compilation_Failed): New procedure
6647         (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
6648         procedures moved from the spec to the body.
6649         (Extract_Failure): Removed, not used
6650         Replace explicit raises of exception Bind_Failed and Link_Failed with
6651         calls to Make_Failed with the proper message.
6652         Replace explicit raises of exception Compilation_Failed with calls to
6653         procedure Report_Compilation_Failed.
6654         (Initialize): Create mapping files unconditionally when using project
6655         files.
6657         * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
6658         Pragma_CIL_Constructor): New names.
6660         * targparm.ads, targparm.adb
6661         (Compiler_System_Version): Removed, no longer used.
6662         (Get_Target_Parameters): Relax checks on system.ads validity. Add
6663         handling of two new system flags: JVM and CLI.
6665 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
6666             Arnaud Charlet  <charlet@adacore.com>
6668         * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
6669         time, use the default s-interr body that provides interrupt support
6670         based on signals.
6671         (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
6672         a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
6673         g-soccon.ads, and s-taprop.adb for the marte run time.
6674         (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
6675         timers are supported on marte.
6676         (EH_MECHANISM for marte): Do not use ZCX.
6677         (THREADSLIB for marte): Use -lmarte.
6678         Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
6679         Add mlib-tgt-specific.o to gnatmake objects
6680         mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
6681         longer of MLib.Tgt.
6682         (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
6683         6, either kernel or rtp, use a specialized version of s-osinte.ads.
6685 2007-06-06  Pascal Obry  <obry@adacore.com>
6687         * mkdir.c (__gnat_mkdir): Add support for UTF-8.
6689 2007-06-06  Vincent Celier  <celier@adacore.com>
6691         * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
6692         separator, use instead the proper host directory separator.
6693         (Copy_ALI_Files): Make sure that an already existing ALI file in the
6694         ALI copy dir is writable, before doing the copy.
6696         * mlib-utl.ads, mlib-utl.adb: 
6697         (Gcc): If length of command line is too long, put the list of object
6698         files in a response file, if this is supported by the platform.
6699         (Ar): If invocation of the archive builder is allowed to be done in
6700         chunks and building it in one shot would go above an OS dependent
6701         limit on the number of characters on the command line, build the archive
6702         in chunks.
6704 2007-06-06  Vincent Celier  <celier@adacore.com>
6706         * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
6707         of specified object file is not equal to base name of source.
6709 2007-06-06  Javier Miranda  <miranda@adacore.com>
6710             Hristian Kirtchev  <kirtchev@adacore.com>
6711             Ed Schonberg  <schonberg@adacore.com>
6713         * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
6714         the full type declaration.
6715         (Analyze_Component_Declaration): Add local variable E to capture the
6716         initialization expression of the declaration. Replace the occurences of
6717         Expression (N) with E.
6718         (OK_For_Limited_Init_In_05): Allow initialization of class-wide
6719         limited interface object with a function call.
6720         (Array_Type_Declaration): If the declaration lacks subtype marks for
6721         indices, create a simple index list to prevent cascaded errors.
6722         (Is_Null_Extension): Ignore internal components created for secondary
6723         tags when checking whether a record extension is a null extension.
6724         (Check_Abstract_Interfaces): Add missing support for interface subtypes
6725         and generic formals.
6726         (Derived_Type_Declaration): Add missing support for interface subtypes
6727         and generic formals.
6728         (Analyze_Object_Declaration): If an initialization expression is
6729         present, traverse its subtree and mark all allocators as static
6730         coextensions.
6731         (Add_Interface_Tag_Component): When looking for components that may be
6732         secondary tags, ignore pragmas that can appear within a record
6733         declaration.
6734         (Check_Abstract_Overriding): an inherited function that dispatches on
6735         result does not need to be overriden if the controlling type is a null
6736         extension.
6737         (Mentions_T): Handle properly a 'class attribute in an anonymous access
6738         component declaration, when the prefix is an expanded name.
6739         (Inherit_Component): If the derivation is for a private extension,
6740         inherited components remain visible and their ekind should not be set
6741         to Void.
6742         (Find_Type_Of_Object): In the case of an access definition, always set
6743         Is_Local_Anonymous_Access. We were previously not marking the anonymous
6744         access type of a return object as a local anonymous type.
6745         (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
6746         range with character literal bounds.
6747         (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
6748         (Access_Subprogram_Declaration): Indicate that the type declaration
6749         depends on an incomplete type only if the incomplete type is declared
6750         in an open scope.
6751         (Analyze_Subtype_Declaration): Handle properly subtypes of
6752         synchronized types that are tagged, and that may appear as generic
6753         actuals.
6754         (Access_Subprogram_Declaration): An anonymous access to subprogram can
6755         appear as an access discriminant in a private type declaration.
6756         (Add_Interface_Tag_Components): Complete decoration of the component
6757         containing the tag of a secondary dispatch table and the component
6758         containing the offset to the base of the object (this latter component
6759         is only generated when the parent type has discriminants --as documented
6760         in this routine).
6761         (Inherit_Components): Use the new decoration of the tag components to
6762         improve the condition that avoids inheriting the components associated
6763         with secondary tags of the parent.
6764         (Build_Discriminanted_Subtype): Indicate to the backend that the
6765         size of record types associated with dispatch tables is known at
6766         compile time.
6767         (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
6768         (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
6769         to include task, protected, and synchronized interfaces as limited
6770         interfaces.
6771         (Process_Discriminants): Remove the setting of
6772         Is_Local_Anonymous_Access on the type of (anonymous) access
6773         discriminants of nonlimited types.
6774         (Analyze_Interface_Type_Declaration): Complete the decoration of the
6775         class-wide entity it is is already present. This situation occurs if
6776         the limited-view has been previously built.
6777         (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
6778         field.
6779         (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
6780         Related_Interface.
6782 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
6784         * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
6785         of the type that specify the position of interface tags when the type
6786         inherits discriminated array components from the parent type.
6787         If a component is initialized with a box, check for the presence of a
6788         default expression in its declaration before using its default
6789         initialization procedure.
6790         (Resolve_Record_Aggregate): If a component is box-initialized, and the
6791         component type has a discriminants, create a partial aggregate for it
6792         by copying the discriminants of the component subtype.
6793         Reject attempt to initialize a discriminant with a box.
6794         (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
6795         associated with dispatch tables is known at compile time.
6796         (Get_Value): If an association in a record aggregate has a box
6797         association, and the corresponding record component has a default
6798         expression, always copy the default expression, even when the
6799         association has a single choice, in order to create a proper
6800         association for the expanded aggregate.
6802 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
6803             Robert Dewar  <dewar@adacore.com>
6805         * par-ch12.adb (P_Generic_Associations): The source position of an
6806         Others association is that of the others keyword, not that of the token
6807         that follows the box.
6808         (P_Formal_Type_Definition): Handle formal access types that carry a
6809         not null indicator.
6811         * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
6812         multiple identifier are present, save Scan_State before scanning the
6813         colon, to ensure that separate trees are constructed for each
6814         declaration.
6815         (P_Identifier_Declarations): For object declaration, set new flag
6816         Has_Init_Expression if initialization expression present.
6817         (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
6818         Improve NOT NULL error messages
6820 2007-06-06  Robert Dewar  <dewar@adacore.com>
6822         * par-ch4.adb: (P_Name): Recover from literal used as name
6824 2007-06-06  Vincent Celier  <celier@adacore.com>
6826         * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
6827         defaulted to False.
6828         In the "not" case, recursive call with Complemented set to True.
6829         Do not allow "or" or "and" operators when Complemented is True.
6831 2007-06-06  Vincent Celier  <celier@adacore.com>
6833         * prj.adb (Project_Empty): Gives default value for new component
6834         Libgnarl_Needed
6836         * prj-attr.ads: Minor reformatting
6838         * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
6839         directory using the untouched casing.
6840         (For_All_Source_Dirs): Idem.
6842         * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
6843         directories specified with switches -aP.
6844         (Add_Search_Project_Directory): New procedure
6845         (Initialize_Project_Path): Put the directories in table
6846         Search_Directories in the project search path.
6847         (Initialize_Project_Path): For VMS, transform into canonical form the
6848         project path.
6850 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
6852         * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
6853         true if configurable run-time or No_Run_Time is set.
6854         (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
6855         processing an unit which is not the one being compiled.
6857 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
6859         * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
6860         Replace UC by Ada.UC
6862         * s-bitops.adb: Get rid of System.Pure_Exceptions.
6863         Replace UC by Ada.UC
6865 2007-06-06  Robert Dewar  <dewar@adacore.com>
6867         * scng.adb: (Check_End_Of_Line): Deal with very long lines
6869 2007-06-06  Robert Dewar  <dewar@adacore.com>
6871         * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
6872         Remove no longer used nodes.
6874 2007-06-06  Javier Miranda  <miranda@adacore.com>
6875             Ed Schonberg  <schonberg@adacore.com>
6876             Robert Dewar  <dewar@adacore.com>
6878         * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
6879         on obsolescent withed unit in case of limited-withed units.
6880         (Analyze_Compilation_Unit): Add guard to code that removed an
6881         instantiation from visibility, to prevent compiler aborts when
6882         instantiation is abandoned early on.
6883         (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
6884         current unit being analyzed, and Distinguish local incomplete types
6885         from limited views of types declared elsewhere.
6886         (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
6887         to state that the class-wide entity is shared by the limited-view
6888         and the full-view.
6889         (Analyze_With_Clause): Improve placement of flag for case of
6890         unimplemented unit.
6891         (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
6892         manner similar to GNAT.Current_Exception. This is a violation of
6893         restriction (No_Exception_Propagation), and also inhibits the
6894         optimization of local raise to goto.
6895         (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
6896         and if so set Most_Recent_Exception_Used flag in Opt, and also check
6897         for violation of restriction No_Exception_Propagation.
6899 2007-06-06  Javier Miranda  <miranda@adacore.com>
6900             Hristian Kirtchev  <kirtchev@adacore.com>
6901             Gary Dismukes  <dismukes@adacore.com>
6903         * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
6904         use of entity Exception_Occurrence if it is not available in the
6905         target run-time.
6907         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
6908         concurrent types are declared within an Ada 2005 generic, build their
6909         corresponding record types since they are needed for overriding-related
6910         semantic checks.
6911         (Analyze_Protected_Type): Rearrange and simplify code for testing that a
6912         protected type does not implement a task interface or a nonlimited
6913         interface.
6914         (Analyze_Task_Type): Rearrange and simplify code for testing that a task
6915         type does not implement a protected interface or a nonlimited interface.
6916         (Single_Task_Declaration, Single_Protected_Declaration): use original
6917         entity for variable declaration, to ensure that debugging information
6918         is correcty generated.
6919         (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
6920         routines if the expander is not active.
6921         (Analyze_Task_Body): Mark all handlers to stop optimization of local
6922         raise, since special things happen for task exception handlers.
6924         * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
6925         concurrent types declared within a generic.
6926         (Check_Dispatching_Operation): Do not emit warning about late interface
6927         operations in the context of an instance.
6928         (Check_Dispatching_Call): Remove restriction against calling a
6929         dispatching operation with a limited controlling result.
6930         (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
6931         Register_Interface_DT_Entry by calls to Register_Primitive.
6932         (Check_Dispatching_Formals): Handle properly a function with a
6933         controlling access result.
6935 2007-06-06  Robert Dewar  <dewar@adacore.com>
6936             Arnaud Charlet  <charlet@adacore.com>
6938         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
6939         Check for restriction No_Implementation_Attributes if in Ada 95 mode.
6940         (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
6941         (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
6942         message when using a VM, since this attribute is not supported.
6943         (Analyze_Record_Representation_Clause): Give unrepped component warnings
6945         * usage.adb: Add new warning for renaming of function return objects
6946         Indicate that -gnatwp and -gnatwP concern front-end inlining
6947         Add line for -gnatyg
6948         Add usage information for -gnatw.c/C
6950 2007-06-06  Robert Dewar  <dewar@adacore.com>
6951             Ed Schonberg  <schonberg@adacore.com>
6953         * sem_ch5.adb
6954         (Find_Var): Do not consider function call in test for infinite loop
6955         warning if warnings set off for function entity.
6956         (One_Bound): Do not create a temporary for a loop bound if it is a
6957         character literal.
6958         (Analyze_Assignment): Traverse the right hand side of an assignment and
6959         mark all allocators as static coextensions.
6960         (Analyze_Assignment): Exempt assignments involving a dispatching call
6961         to a function with a controlling access result from the check requiring
6962         the target to be class-wide.
6964 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
6965             Ed Schonberg  <schonberg@adacore.com>
6966             Robert Dewar  <dewar@adacore.com>
6967             Javier Miranda  <miranda@adacore.com>
6969         * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
6970         chain of coextensions when an allocator serves as the root of such a
6971         chain.
6972         (Propagate_Coextensions): Remove the test for the root being an
6973         allocator.
6974         (Resolve_Allocator): Add condition to ensure that all future decoration
6975         occurs on an allocator node. Add processing and cleanup for static
6976         coextensions.
6977         (Valid_Conversion): If the operand type is the limited view of a
6978         class-wide type, use the non-limited view is available to determine
6979         legality of operation.
6980         (Ambiguous_Character): move to spec, for use elsewhere.
6981         (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
6982         (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
6983         character literals.
6984         (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
6985         Do_Division_Check flag explicitly.
6986         (Resolve_Actuals): If the actual is of a synchronized type, and the
6987         formal is of the corresponding record type, this is a call to a
6988         primitive operation of the type, that is declared outside of the type;
6989         the actual must be unchecked-converted to the type of the actual
6990         (Resolve_Call): Kill all current values for any subprogram call if
6991         flag Suppress_Value_Tracking_On_Call is set.
6992         (Resolve_Type_Conversion): Generate error message the the operand
6993         or target of interface conversions come from a limited view.
6994         (Check_Infinite_Recursion): Ignore generated calls
6995         (Check_Allocator_Discrim_Accessibility): New procedure for checking
6996         that an expression that constrains an access discriminant in an
6997         allocator does not denote an object with a deeper level than the
6998         allocator's access type.
6999         (Resolve_Allocator): In the case of an allocator initialized by an
7000         aggregate of a discriminated type, check that associations for any
7001         access discriminants satisfy accessibility requirements by calling
7002         Check_Allocator_Discrim_Accessibility.
7003         (Resolve_Equality_Op): Handle comparisons of anonymous access to
7004         subprogram types in the same fashion as other anonymous access types.
7005         (Resolve_Concatenation_Arg): Remove initial character '\' in an error
7006         message that is not a continuation message.
7007         (Resolve_Type_Conversion): Add missing support for conversion to
7008         interface type.
7009         (Resolve_Actuals): Introduce a transient scope around the call if an
7010         actual is a call to a function returning a limited type, because the
7011         resulting value must be finalized after the call.
7012         (Resolve_Actuals): If the call was given in prefix notations, check
7013         whether an implicit 'Access reference or implicit dereference must be
7014         added to make the actual conform to the controlling formal.
7016 2007-06-06  Robert Dewar  <dewar@adacore.com>
7017             Javier Miranda  <miranda@adacore.com>
7019         * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
7020         (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
7021         overriding of an inherited private subprogram now there is no need to
7022         inherit its dispatching slot and reduce the size of the dispatch table.
7023         Set_All_DT_Position now ensures that the same slot is now assigned to
7024         both entities. This is required to statically build the dispatch table.
7025         (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
7026         of calling Set_All_DT_Position to re-evaluate the position of the
7027         entries in the dispatch table. Such reevaluation is not desired if
7028         the tagged type is already frozen.
7030 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
7031             Gary Dismukes  <dismukes@adacore.com>
7032             Robert Dewar  <dewar@adacore.com>
7033             Javier Miranda  <miranda@adacore.com>
7035         * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
7036         reference acts as an lvalue when the attribute name modifies the prefix
7037         (Is_Coextension_Root): New routine.
7038         (Mark_Static_Coextensions): New routine.
7039         (Type_Access_Level): Revise code for checking the level of the
7040         anonymous access type of a return object.
7041         (Safe_To_Capture_Value): Not safe to capture if Address_Taken
7042         (Matches_Prefixed_View_Profile): Remove the no longer necessary
7043         retrieval of the corresponding controlling record type.
7044         (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
7045         concurrent types declared within a generic as well as class wide types.
7046         Emit a mode incompatibility error whenever a protected entry or routine
7047         override an interface routine whose first parameter is not of mode
7048         "out", "in out" or access to variable.
7049         (Overrides_Synchronized_Primitive): Rename to
7050         Find_Overridden_Synchronized_Primitive.
7051         (Collect_Interface_Components): New subprogram that collects all the
7052         components of a tagged record containing tags of secondary dispatch
7053         tables.
7054         (Add_Global_Declaration): New procedure
7055         (Abstract_Interface_List): Handle properly the case of a subtype of a
7056         private extension.
7057         (Type_Access_Level): In the case of a type whose parent scope is a
7058         return statement, call Type_Access_Level recursively on the enclosing
7059         function's result type to determine the level of the return object's
7060         type.
7061         (Build_Elaboration_Entity): Build name of elaboration entity from the
7062         scope chain of the entity, rather than the unit name of the file name.
7063         (Check_Nested_Access): New procedure.
7064         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
7065         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
7066         (Get_Renamed_Entity): Utility routine for performing common operation
7067         of chasing the Renamed_Entity field of an entity.
7069 2007-06-06  Robert Dewar  <dewar@adacore.com>
7071         * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
7072         elaboration model
7073         (Check_A_Call): Add check for entry call which was causing blowup
7075 2007-06-06  Olivier Hainque  <hainque@adacore.com>
7077         * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
7078         special code on ia64-vms to handle major incompatibilities between the
7079         GCC unwinding ABI and the VMS Condition Handling Facility, both calling
7080         this routine with a very different set of arguments and expectations on
7081         the return value.
7083 2007-06-06  Thomas Quinot  <quinot@adacore.com>
7085         * socket.c (__gnat_close_signalling_fd): New function.
7086         (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
7087         __gnat_safe_getservbyname, __gnat_safe_getservbyport):
7088         New supporting functions for task safe Netdb operations.
7090 2007-06-06  Thomas Quinot  <quinot@adacore.com>
7091             Olivier Hainque  <hainque@adacore.com>
7093         * a-except-2005.ads, a-except-2005.adb
7094         (Raise_From_Controlled_Operation): New procedure in
7095         (private part of) Ada.Exceptions (standard runtime version). Used to
7096         provide informational exception message when Program_Error is raised as
7097         a result of an Adjust or Finalize operation propagating an exception.
7098         (Rmsg_28): Fix description for E.4(18) check.
7099         (Raise_Current_Excep): Call Debug_Raise_Exception just before
7100         propagation starts, to let debuggers know about the event in a reliable
7101         fashion.
7102         Take the address of E and dereference to make sure it is homed on stack
7103         and prevent the stores from being deleted, necessary for proper
7104         debugger behavior on "break exception" hits.
7105         (Local_Raise): Moved to System.Exceptions
7107         * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
7108         exception message from the current occurrence and raise Program_Error
7109         has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
7111 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
7112             Arnaud Charlet  <charlet@adacore.com>
7114         * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
7115         lock, if needed.
7117         * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
7118         priority associated to a lock.
7120         * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
7121         assertion to take into account case of no abort restriction.
7122         (Initialize_Protection_Entries): Add initialization for the field
7123         New_Ceiling associated to the protected object.
7124         (Unlock_Entries): Change the ceiling priority of the underlying lock, if
7125         needed.
7127         * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
7128         since this function needs to be set consistently with Update_Exception.
7130         * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
7131         since this function needs to be set consistently with Update_Exception.
7133         * s-taskin.ads: Update comments on
7134         Interrupt_Server_Blocked_On_Event_Flag.
7135         (Unbind_Handler): Fix handling of server_task wakeup
7136         (Server_Task): Set self's state so that Unbind_Handler can take
7137         appropriate actions.
7138         (Common_ATCB): Now use a constant from System.Parameters to determine
7139         the max size of the Task_Image field.
7141         * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
7142         Initialize_Analyzer function.
7143         ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
7144         take into account case of no abort restriction.
7145         ([Vulnerable_]Complete_Master): Modify assertion.
7147         * s-tataat.adb (Finalize): Use the nestable versions of
7148         Defer/Undefer_Abort.
7150         * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
7152         * s-tpobop.ads: Update comments.
7154         * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
7155         of locking the object manually, to avoid inconsistencies between
7156         Lock/Unlock_Entry assertions.
7158         * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
7159         terminating
7160         application and System.Parameters.No_Abort is True.
7161         Update comments on Interrupt_Server_Blocked_On_Event_Flag.
7162         (Unbind_Handler): Fix handling of server_task wakeup
7163         (Server_Task): Set self's state so that Unbind_Handler can take
7164         appropriate actions.
7166 2007-06-06  Thomas Quinot  <quinot@adacore.com>
7168         * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
7169         declarations instead of an explicit null body, for conciseness.
7171 2007-06-06  Robert Dewar  <dewar@adacore.com>
7173         * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
7174         illegal aggregate and the type is still Any_Composite.
7175         (Subtypes_Statically_Match): Fix problem of empty discriminant list
7177 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
7179         * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
7180         to prevent subsequent expansion.
7182 2007-06-06  Robert Dewar  <dewar@adacore.com>
7184         * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
7186 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
7187             Robert Dewar  <dewar@adacore.com>
7189         * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
7190         exceptions.
7191         (Write_Itype): Handle case of string literal subtype, which
7192         comes up in this context.
7193         (Update_Itype): when debugging expanded code, update sloc of itypes
7194         associated with defining_identifiers and ranges, for gdb use.
7195         (Sprint_Node_Actual): Add static keyword to object or exception
7196         declaration output if Is_Statically_Allocated is True.
7197         (Sprint_End_Label): Set entity of end marker for a subprogram, package,
7198         or task body, so that the tree carries the proper Sloc information for
7199         debugging use.
7200         (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
7202 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
7204         * s-secsta.adb (Chunk): Ensure this object has a static size known at
7205         compile time, to avoid dynamic memory allocation
7206         (Elaboration code): Only use dynamic memory allocation when needed.
7208 2007-06-06  Quentin Ochem  <ochem@adacore.com>
7210         * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
7211         "Overflow_Guard".
7212         (Stack_Analyzer): Added field "Overflow_Guard"
7213         (Task_Result): Added field "Overflow_Guard".
7214         (Index_Str): New constant.
7215         (Task_Name_Str): New constant.
7216         (Actual_Size_Str): New constant.
7217         (Pattern_Array_Element_Size): New constant.
7218         (Get_Usage_Range): New subprogram.
7219         (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
7220         Now align the output.
7221         Added comments.
7222         (Initialize): Added value for Overflow_Guard.
7223         (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
7224         Update the value of the overflow guard according to the actual
7225         beginning of the pattern array.
7226         (Initialize_Analyzer): Added parameter Overflow_Guard.
7227         Take this parameter into accound when computing the max size.
7228         (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
7229         (Report_Result): Removed extra useless procedure.
7230         Updated call to Output_Result.
7231         Moved full computation of the Task_Result here.
7233 2007-06-06  Thomas Quinot  <quinot@adacore.com>
7235         * g-soccon-darwin.ads, gen-soccon.c: Add new constant
7236         Thread_Blocking_IO, always True by default, set False on a per-runtime
7237         basis.
7238         Add Windows-specific constants
7239         Add new constant Need_Netdb_Buffer.
7240         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
7241         not, whether to use getXXXbyYYY_r.
7243         * gsocket.h: Add new constant Need_Netdb_Buffer.
7244         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
7245         not, whether to use getXXXbyYYY_r.
7247 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
7249         * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
7250         than their first call.
7251         Add type Dummy_Communication_Block used in the generation of the pre-
7252         defined dispatching primitive _disp_asynchronous_select.
7253         (Storage_Element): Put Pragma Universal_Aliasing on it.
7255 2007-06-06  Vincent Celier  <celier@adacore.com>
7257         * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
7258         function.
7260         * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
7261         letter if it is not followed by a '/' or a '\'.
7262         (Windows): New Boolean function
7264         * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
7265         Ada 2005.
7266         (Containing_Directory): On Windows, keep at least one '/' or '\' after a
7267         drive letter.
7268         (Containing_Directory): Raise Use_Error when the directory is a root
7269         directory.
7270         (Extension): When returning the result, use a conversion to Result_Type,
7271         not a qualification.
7273 2007-06-06  Robert Dewar  <dewar@adacore.com>
7275         * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
7276         (Set_Style_Check_Options): Recognize new -gnatyg style switch
7278         * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
7279         Warn_On_Non_Local_Exception to False, to turn off warnings for
7280         No_Exception_Propagation in ZFP runtime.
7281         (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
7282         back-ends.
7283         (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
7285 2007-06-06  Vincent Celier  <celier@adacore.com>
7287         * switch-b.adb (Scan_Binder_Switches): Add processing for new
7288         switches -R and -Z
7290         * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
7291         (Scan_Make_Switches): Recognize new switch -aP
7293 2007-06-06  Matthew Gingell  <gingell@adacore.com>
7294             Jose Ruiz  <ruiz@adacore.com>
7296         * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
7297         VxWorks task descriptor in the Ada run time, call a C subprogram
7298         (__gnat_get_stack_info) that extracts the required information.
7300         * sysdep.c: Back out temporary lynxos workaround.
7301         (__gnat_get_stack_info): Add this procedure that passes to the Ada run
7302         time the stack information associated to the currently executing task.
7303         Only VxWorks systems require this function.
7305 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
7307         * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
7308         add the stack bias if the offset is computed from a frame address.
7309         (__gnat_backtrace): Adjust for above change.
7311 2007-06-06  Thomas Quinot  <quinot@adacore.com>
7313         * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
7314         PE_Non_Transportable_Actual.
7315         (By_Descriptor_Last): New constant.
7316         (By_Copy_Return): Likewise.
7318 2007-06-06  Vincent Celier  <celier@adacore.com>
7320         * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
7321         is.
7323         * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
7324         /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
7325         /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
7326         Add missing comment for /OPTIMIZE=SPACE
7327         Add entry for OPTIMIZE=SPACE
7328         Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
7329         Add documentation for new qualifiers corresponding to -gnatw.c/.C
7331 2007-06-06  Vincent Celier  <celier@adacore.com>
7332             Robert Dewar  <dewar@adacore.com>
7334         * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
7335         -gnatw.C)
7337         * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
7338         Document gnatbind switch -a
7339         (case Constructions): Document that variables declarations are allowed
7340         for previously declared variables.
7341         Fix external lib project example
7342         -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
7343         Indicate that "#if not X or Y then" is not allowed in input files to
7344         gnatprep.
7345         Document gnatw.x and gnatw.X warning flags
7346         Mention -Winline switch to activate warnings when back-end inlining is
7347         ineffective.
7348         Add gnatcheck rule descriptions
7349         Describe how to use the GNAT driver to call a tool on a closure.
7350         Describe how to run project-wide checks or metrics.
7351         Document gnatbind's -R option
7352         Updated to account for Ada 2005 support
7354         * gnat_rm.texi (Case Construction): Allow variable declarations for
7355         previously declared variables.
7356         (Representation Clauses and Pragmas): Lift restriction on alignment
7357         clauses for record types.
7358         (Ada.Characters.*): Fix typo in reference to A.3.3(27).
7359         Document No_Exception_Propagation restriction
7360         Document No_Body pragma
7361         Updated to account for Ada 2005 support; corrected some typos
7362         (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
7364         * gnat-style.texi: Make it clear that we never use mode IN for
7365         procedures or functions
7367         * ug_words: Add entries for -gnatw.x and -gnatw.X
7368         Add entries for -gnatw.c/.C
7370 2007-06-06  Pascal Obry  <obry@adacore.com>
7371             Vincent Celier  <celier@adacore.com>
7373         * makegpr.adb (Add_Archive_Path): Use untouched object and library
7374         dirs and library name.
7375         (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
7376         comments.
7377         (Build_Library): Idem.
7378         (Compile_Individual_Sources): Idem.
7379         (Compile_Link_With_Gnatmake): Idem.
7380         (Compile_Sources): Idem.
7381         (Get_Imported_Directories): Idem.
7382         (Link_Executables): Idem. Same change for the executable dir.
7383         (Check_Compilation_Needed): C_Source_Path new variable containing
7384         the canonical form of Source_Path to check against the source names
7385         in the dependency file.
7386         (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
7387         verbose mode, display the name of the object directory we're changing
7388         to.
7389         (Saved_Switches): New name of table X_Switches
7390         (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
7391         (Usage): New line for switch -aP
7392         (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
7393         testing if a directory should be added to the search path.
7395 2007-06-06  Javier Miranda  <miranda@adacore.com>
7397         * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads, 
7398         a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
7399         declaration after freezing point of all its associated tagged types;
7400         otherwise such types are frozen too early.
7402 2007-06-06  Robert Dewar  <dewar@adacore.com>
7404         * a-reatim.adb: Documentation addition
7406         * g-cgideb.adb: Minor code reorganization
7408         * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
7409         mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
7410         s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
7412         * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
7413         function.  Change name New_Scope to Push_Scope
7414         (Get_Debug_Flag_K): Remove unused obsolete function.
7416         * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
7417         Push_Scope.
7419         * makeusg.adb: Update Copyright notice
7420         Add line for switch -aP
7422         * makeusg.adb: Fix wording of some usage messages
7424         * s-assert.adb (Raise_Assert_Failure): Add call to
7425         Debug_Raise_Assert_Failure.
7427         * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
7428         (2, Standard'Alignment) for compatibility with AAMP (where alignment
7429         is restricted to 1).
7431         * s-wchjis.adb: Remove use of System.Pure_Exceptions
7433         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
7434         node location to No_Location when we're not debugging the expanded
7435         code.
7437 2007-05-22  Alexandre Oliva  <aoliva@redhat.com>
7439         * misc.c (enumerate_modes): Consider log2_b to always be one.
7441 2007-05-14  Rafael Avila de Espindola  <espindola@google.com>
7443         * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
7445 2007-05-02  Pascal Obry  <obry@adacore.com>
7447         * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
7448         to use Stream_IO.File_Type. This is needed to make use of the UTF-8
7449         encoding support of Stream_IO.
7450         (Write_Unit): Idem.
7452         * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
7453         filename and corresponding encoding to match the OS requirement.
7454         (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
7455         routine will fail on specific devices like CON: AUX: ...
7457         PR ada/29856: Add missing braces
7459 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7461         PR ada/31660
7462         * ada-tree.h (lang_tree_node): Fix typo in chain_next.
7464 2007-04-21  Jan Hubicka  <jh@suse.cz>
7466         * misc.c (gnat_expand_body): Don't call target for destructors,
7467         avoid redundant check on syntax errors.
7469 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7471         * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
7472         instead of checking GIMPLE_STMT_P in chain_next.
7474 2007-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
7476         PR ada/31576
7477         * system-linux-alpha.ads: Disable constant condition warning for the
7478         Default_Bit_Order variable.
7479         * system-linux-s390.ads: Likewise.
7480         * system-linux-s390x.ads: Likewise.
7481         * system-linux-sparc.ads: Likewise.
7483 2007-04-06  Javier Miranda  <miranda@adacore.com>
7484             Matt Heaney  <heaney@adacore.com>
7485             Robert Dewar  <dewar@adacore.com>
7487         a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
7488         a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
7489         a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
7490         a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
7491         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
7492         a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
7493         a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
7494         a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
7495         a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
7496         a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
7497         a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
7498         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
7499         a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
7500         a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
7501         a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
7502         a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
7503         a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
7504         i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
7505         unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
7506         a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
7507         a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
7508         a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
7509         expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
7510         s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
7511         s-taprop-tru64.adb, s-taprop-irix.adb,
7512         s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
7513         s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
7514         s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
7515         s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb, 
7516         s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads, 
7517         a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb, 
7518         a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads, 
7519         g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads, 
7520         s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb, 
7521         s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads, 
7522         s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb, 
7523         s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, 
7524         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb, 
7525         s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb, 
7526         a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads, 
7527         a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads, 
7528         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb, 
7529         a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
7530         a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads, 
7531         a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
7532         access types.
7533         Update documentation.
7534         Minor rewording.
7536 2007-04-06  Robert Dewar  <dewar@adacore.com>
7538         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
7539         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7540         system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
7541         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
7542         system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
7543         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7544         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
7545         system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
7546         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
7547         system-hpux-ia64.ads, targparm.adb,
7548         targparm.ads (Functions_Return_By_DSP_On_Target): Removed
7550         * system.ads: Move Functions_Return_By_DSP to obsolete section,
7551         kept for bootstrap purposes only.
7553 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
7555         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
7556         s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
7557         s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
7558         (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
7560 2007-04-06  Robert Dewar  <dewar@adacore.com>
7562         * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
7563         (Local_Raise): New dummy procedure called when a raise is converted
7564         to a local goto. Used for debugger to detect that the exception
7565         is raised.
7567         * debug.adb: Document new d.g flag (expand local raise statements to
7568         gotos even if pragma Restriction (No_Exception_Propagation) is not set)
7570         * exp_sel.adb: Use Make_Implicit_Exception_Handler
7572         * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
7573         suppress warnings for unused handlers.
7574         (Warn_If_No_Propagation):  Use new flag -gnatw.x to suppress
7575         warnings for raise statements not handled locally.
7576         (Get_RT_Exception_Entity): New function
7577         (Get_Local_Call_Entity): New function
7578         (Find_Local_Handler): New function
7579         (Warn_If_No_Propagation): New procedure
7580         (Expand_At_End_Handler): Call Make_Implicit_Handler
7581         (Expand_Exception_Handlers): Major additions to deal with local handlers
7582         (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
7583         Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
7584         for local raise
7586         * exp_ch11.ads (Get_RT_Exception_Entity): New function
7587         (Get_Local_Call_Entity): New function
7589         * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
7590         of restrictions that the binder will never suggest adding.
7592         * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
7593         to No_Elist.
7595         * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
7596         be with'ed in the presence of pragma Restriction
7597         (No_Exception_Propagation).
7599         * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
7601         * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
7602         parameter, then the handler is not a suitable target for a local raise,
7603         and this is a violation of restriction No_Exception_Propagation.
7604         (Analyze_Handled_Statements): Analyze choice parameters in exception
7605         handlers before analyzing statement sequence (needed for proper
7606         detection of local raise statements).
7607         (Analyze_Raise_Statement): Reraise statement is a violation of the
7608         No_Exception_Propagation restriction.
7610         * s-rident.ads: Add new restriction No_Exception_Propagation
7612         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
7613         function, like Make_Exception_Handler but sets Local_Raise_Statements
7614         to No_List.
7615         (Add_Unique_Serial_Number): Deal with case where this is called during
7616         processing of configuration pragmas.
7618 2007-04-06  Thomas Quinot  <quinot@adacore.com>
7619             Pat Rogers  <rogers@adacore.com>
7620             Pascal Obry  <obry@adacore.com>
7622         * g-stsifd-sockets.adb: New file.
7624         * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
7625         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
7626         g-socthi-vms.adb: Move signalling
7627         fd management to a nested package, so that they can conveniently be
7628         moved to a subunit that is shared across Windows, VMS, and VxWorks
7629         (Ada implementation) or completed with imported bodies from socket.c
7630         (UNIX case).
7631         (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
7632         subprograms.
7633         (Check_Selector): Use Read_Signalling_Fd to read and discard data from
7634         the signalling file descriptor.
7635         (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
7636         signalling file descriptor.
7637         (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
7638         instead of creating a pair of sockets for signalling here.
7640         * g-socthi.adb: Ditto.
7641         Set the runtime process to ignore SIGPIPEs on platforms that support
7642         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
7644         * g-socthi-mingw.adb: Ditto.
7645         (WS_Version): Use Windows 2.2.
7646         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
7648         * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
7649         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
7651         * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
7652         added GNAT byte swapping facility
7653         Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
7655         * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
7657         * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
7658         New subprograms.
7659         (__gnat_create_signalling_fds): New subprogram.
7660         Set the runtime process to ignore SIGPIPEs on platforms that support
7661         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
7663 2007-04-06  Hristian Kirtchev  <kirtchev@adacore.com>
7664             Vincent Celier  <celier@adacore.com>
7666         * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
7667         New version of Ada.Calendar which supports the new upper bound of Ada
7668         time (2399-12-31 86_399.999999999).
7669         The following modifications have been made to the package:
7670          - New representation of time as count of nanoseconds since the start of
7671            Ada time (1901-1-1 0.0).
7672          - Target independent Split and Time_Of routines which service both
7673            Ada 95 and Ada 2005 code.
7674          - Target independent interface to the Ada 2005 children of Calendar.
7675          - Integrated leap seconds into Ada 95 and Ada 2005 mode.
7676          - Handling of non-leap centenial years.
7677          - Updated clock function.
7678          - Updated arithmetic and comparison operators.
7680         * a-caldel.adb (To_Duration): Add call to target independent routine in
7681         Ada.Calendar to handle the conversion of time to duration.
7683         * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
7684         (UTC Offset).
7685         If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
7686         set off to 0.
7687         (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
7688         targets do not have a natural time zone, GMT is used as a default.
7689         (__gnat_get_task_options): New.
7691         * a-direct.adb (Modification_Time): Add with and use clauses for
7692         Ada.Calendar and Ada.
7693         Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
7694         since it is no longer needed.
7695         (Duration_To_Time): Removed.
7696         (OS_Time_To_Long_Integer): Removed.
7697         (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
7698         Formatting Time_Of routines which automatically handle time zones,
7699         buffer periods and leap seconds.
7701         * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
7702         target independent routines in Ada.Calendar.
7704         * a-calfor.ads, a-calfor.adb: 
7705         Code cleanup and addition of validity checks in various routines.
7706         (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
7707         Ada.Calendar.
7709         * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
7710         independent routine in Ada.Calendar.
7712 2007-04-06  Olivier Hainque  <hainque@adacore.com>
7714         * adaint.c: 
7715         (convert_addresses): Adjust prototype and dummy definition to expect an
7716          extra file_name argument.
7718         * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
7719         filling the now expected file_name argument with the appropriate
7720         argv[0] expansion.
7721         (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
7722         (tracebk): Array of void * instead of char *, corresponding to what
7723          convert_addresses expects.
7724         (exename): New static global, to hold the executable file name to be
7725         used in all convert_addresses invocations.
7726         (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
7727         change.
7728         (__gnat_gmem_a2l_initialize): Resolve exename.
7729         (__gnat_convert_addresses): Use exename as the convert_addresses
7730         file_name argument.
7732         * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
7733         "convert_addresses", now expecting a filename argument. Import the
7734         necessary entities to compute the filename to use and pass it to
7735         convert_addresses.
7737 2007-04-06  Matt Gingell  <gingell@adacore.com>
7739         * system-aix.ads: Back out previous change.
7740         (Functions_Return_By_DSP): Removed
7742 2007-04-06  Pascal Obry  <obry@adacore.com>
7744         * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
7745         or the monotonic used by Ada.Real_Time) to compute the sleep duration
7746         on Windows.
7748 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
7750         * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
7751         function. Its value changes in different VxWorks versions, and it is
7752         now handled by the function __gnat_get_task_options.
7754         * s-taprop-vxworks.adb (Create_Task): Call the function
7755         __gnat_get_task_options to get the required options for creating a task.
7757 2007-04-06  Pascal Obry  <obry@adacore.com>
7758             Thomas Quinot  <quinot@adacore.com>
7760         * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
7761         dealing with filename.
7762         (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
7763         filename from a standard string to a wide-string depending on the
7764         encoding value.
7765         (__gnat_freopen): Idem.
7766         (__gnat_current_time): New function (wrapper for time(3) standard C
7767         function).
7769         * g-os_lib.ads (Current_Time): New function. Returns the current
7770         system time as an OS_Time value.
7772         * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
7773         (Monotonic_Clock): Same.
7775 2007-04-06  Quentin Ochem  <ochem@adacore.com>
7777         * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
7778         not on a natural.
7779         (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
7781 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
7783         * a-retide.adb: Add elaboration code to ensure that the tasking run
7784         time is initialized when using delay operations even when no task is
7785         created.
7787 2007-04-06  Javier Miranda  <miranda@adacore.com>
7789         * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
7790         component Num_Prim_Ops.
7791         (Set_Num_Prim_Ops): Removed.
7792         Remove all the assertions because all the routines of this
7793         package are inline always.
7794         (Get_Offset_Index): Add support to primary dispatch tables.
7795         Move the documentation about the dispatch table to a-tags.ads
7796         (Set_External_Tag): Removed
7797         (Inherit_TSD): Removed.
7798         (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
7799         moved to a-tags.ads
7800         (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
7801         Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
7802         of the TSD field "Table" because this field has been renamed to
7803         "Ifaces_Table".
7804         (Inherit_CPP_DT): Removed.
7805         (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
7806         Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
7807         declarations have been moved to a-tags.ads
7808         (Check_Size): Removed.
7809         (Expanded_Name): Updated to get access to the new field of TSD
7810         containing the address of the expanded name.
7811         (Get_Access_Level/Set_Access_Level): Removed.
7812         (Get_Predefined_Prim_Op_Address): Removed.
7813         (Set_Predefined_Prim_Op_Address): Removed.
7814         (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
7815         (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
7816         (Set_Expanded_Name): Removed.
7817         (Inherit_DT): Removed.
7818         (Inherit_CPP_DT): Removed.
7819         (Set_RC_Offset): Removed.
7820         (Set_TSD): Removed.
7821         (Base_Address): New function that displaces "this" to point to the base
7822         of the object (that is, to point to the primary tag of the object).
7824 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
7825             Javier Miranda  <miranda@adacore.com>
7827         * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
7828         anonymous access component, do not create a master_id if type already
7829         has one, as may happen if the type is a subcomponent of a packed array
7830         type.
7831         (Build_Init_Procedure, Component_Needs_Simple_Initialization,
7832         Initialize_Tag): Remove code associated with the old CPP pragmas.
7833         CPP_Virtual and CPP_Vtable are no longer supported.
7834         (Build_Offset_To_Top_Internal): Add support for concurrent record types
7835         (Build_Offset_To_Top_Functions): Add support for concurrent record types
7836         (Freeze_Record_Type): Remove call to
7837         Init_Predefined_Interface_Primitives.
7838         (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
7839         code required to initialize the tags of the secondary dispatch tables.
7840         This leaves the algoritm more clear.
7841         (Init_Secondary_Tags): Add support for concurrent record types
7842         (Make_Predefined_Primitive_Specs): Code cleanup.
7843         (Predefined_Primitive_Bodies): Code cleanup.
7844         (Build_Master_Renaming): New local subprogram.
7845         (Expand_N_Full_Type_Declaration): Build the master_id associated with
7846         anonymous access to task type components.
7847         (Expand_N_Subtype_Indication): The bounds of a range constraint in a
7848         subtype indication are resolved during analysis, and must not be done
7849         here.
7850         (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
7852 2007-04-06  Geert Bosch  <bosch@adacore.com>
7853             Ed Schonberg  <schonberg@adacore.com>
7854             Javier Miranda  <miranda@adacore.com>
7855             Bob Duff  <duff@adacore.com>
7857         * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
7858         for conversion of a Float_Type'Truncation to integer.
7860         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
7861         check if a node is an attribute that can be handled directly by the
7862         back end.
7863         (Expand_N_Attribute_Reference): Suppress expansion of floating-point
7864         attributes that can be handled directly by the back end.
7865         (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
7866         use new predicate Is_Access_Protected_Subprogram_Type.
7867         (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
7868         and Unchecked_Union if it is generated as part of the default  Output
7869         procedure for a type with default discriminants.
7870         (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
7871         if we are compiling under restriction No_Dispatching_Calls.
7872         (Constrained): Use Underlying_Type, in case the type is private without
7873         discriminants, but the full type has discriminants.
7874         (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
7875         call to Build_Get_Access_Level.
7876         (Expand_N_Attribute_Reference): The use of 'Address with class-wide
7877         interface objects requires a call to the run-time subprogram that
7878         returns the base address of the object.
7879         (Valid_Conversion): Improve error message on illegal attempt to store
7880         an anonymous access to subprogram value into a record component.
7882         * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
7883         null".
7884         (Simplify_Type_Conversion): New procedure that performs simplification
7885         of Int_Type (Float_Type'Truncation (X)).
7886         (Resolve_Type_Conversion): Call above procedure after resolving operand
7887         and before performing checks. This replaces the existing ineffective
7888         code in Exp_Ch4.
7889         (Set_String_Literal_Subtype): When creating the internal static lower
7890         bound subtype for a string literal, use a newly created copy of the
7891         subtree representing the lower bound.
7892         (Resolve_Call): Exclude build-in-place function calls from transient
7893         scope treatment. Update comments to describe this exception.
7894         (Resolve_Equality_Op): In case of dispatching call check violation of
7895         restriction No_Dispatching_Calls.
7896         (Resolve_Call): If the call returns an array, the context imposes the
7897         component type of the array, and the function has one non-defaulted
7898         parameter, rewrite the call as the indexing of a call with a single
7899         parameter, to handle an Ada 2005 syntactic ambiguity for calls written
7900         in prefix form.
7901         (Resolve_Actuals): If an actual is an allocator for an access parameter,
7902         the master of the created object is the innermost enclosing statement.
7903         (Remove_Conversions): For a binary operator, check if type of second
7904         formal is numeric, to check if an abstract interpretation is present
7905         in the case of exponentiation as well.
7907 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
7908             Bob Duff  <duff@adacore.com>
7910         * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
7911         copying a parameter list in a call, set properly the First_Named_Formal
7912         and Next_Named_Formal fields in the new list and in the enclosing call.
7913         (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
7914         names, to ease typing in the debugger. Improve comments.
7915         (Watch_Node): New variable, intended to be set in the debugger.
7916         (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
7917         called when the watched node is created.
7918         (New_Node_Debugging_Output): Combined version of local procedures
7919         New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
7920         with a parameter so that conditional breakpoints like "if Node = 12345"
7921         work.
7922         (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
7923         Add Elist1 function
7925 2007-04-06  Thomas Quinot  <quinot@adacore.com>
7926             Ed Schonberg  <schonberg@adacore.com>
7927             Gary Dismukes  <dismukes@adacore.com>
7929         * checks.ads, checks.adb (Selected_Range_Checks): No range check is
7930         required for a conversion between two access-to-unconstrained-array
7931         types.
7932         (Expr_Known_Valid): Validity checks do not apply to discriminants, but
7933         to discriminant constraints on discriminant objects. This rule must
7934         apply as well to discriminants of protected types in private components.
7935         (Null_Exclusion_Static_Checks): If No_Initialization is set on an
7936         object of a null-excluding access type then don't require the
7937         the object declaration to have an expression and don't emit a
7938         run-time check.
7940 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
7941             Eric Botcazou <botcazou@adacore.com>
7943         * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
7944         and made constant.
7946         * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
7947         Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
7948         carry any.
7950         * fe.h (Compiler_Abort): Add third parameter.
7952         * misc.c (internal_error_function): Build third argument from current
7953         input location and pass it to Compiler_Abort.
7955 2007-04-06  Gary Dismukes  <dismukes@adacore.com>
7957         * cstand.adb (Create_Standard): When the target's storage unit size is
7958         greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
7959         Standard_String.
7961 2007-04-06  Nicolas Roche  <roche@adacore.com>
7963         * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
7964         absolute path can have the following form: device:/a/b. In this case
7965         '/' should be inserted between the path and the filename.
7967 2007-04-06  Olivier Hainque  <hainque@adacore.com>
7968             Eric Botcazou <botcazou@adacore.com>
7970         * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
7971         VAR_DECL to a CONST_DECL we make for a public constant when we know the
7972         corresponding definition has created the so made visible variable.
7973         Handle anonymous access to protected subprogram.
7974         (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
7975         object with an address clause volatile.  Re-enable original fix.
7976         <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
7977         too.
7978         (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
7979         associated with either the Equivalent or Root type, instead of the
7980         naked type node.
7981         (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
7982         subtree for every field of a global record type.
7983         (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
7984         discriminants, invoke again variable_size on its newly computed sizes.
7986 2007-04-06  Robert Dewar  <dewar@adacore.com>
7987             Thomas Quinot  <quinot@adacore.com>
7988             Ed Schonberg  <schonberg@adacore.com>
7989             Bob Duff  <duff@adacore.com>
7991         * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
7992         (Next_Component_Or_Discriminant): New function and procedure
7993         (First_Index, First_Literal, Master_Id,
7994         Set_First_Index, Set_First_Literal, Set_Master_Id):
7995         Add missing Ekind assertions.
7996         (Is_Access_Protected_Subprogram_Type): New predicate.
7997         (Has_RACW): New entity flag, set on package entities to indicate that
7998         the package contains the declaration of a remote accecss-to-classwide
7999         type.
8000         (E_Return_Statement): This node type has the Finalization_Chain_Entity
8001         attribute, in case the result type has controlled parts.
8002         (Requires_Overriding): Add this new flag, because "requires
8003         overriding" is subtly different from "is abstract" (see AI-228).
8004         (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
8005         Is_Abstract_Type. Make sure these are called only when appropriate.
8006         (Has_Pragma_Unreferenced_Objects): New flag
8008         * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
8009         class-wide, the tag of the right-hand side must be an exact match, not
8010         an ancestor of that of the object on left-hand side.
8011         (Move_Activation_Chain): New procedure to create the call to
8012         System.Tasking.Stages.Move_Activation_Chain.
8013         (Expand_N_Extended_Return_Statement): Generate code to call
8014         System.Finalization_Implementation.Move_Final_List at the end of a
8015         return statement if the function's result type has controlled parts.
8016         Move asserts to Build_In_Place_Formal.
8017         (Move_Final_List): New function to create the call statement.
8018         (Expand_N_Assignment_Statement): In case of assignment to a class-wide
8019         tagged type, replace generation of call to the run-time subprogram
8020         CW_Membership by call to Build_CW_Membership.
8021         (Expand_N_Return_Statement): Replace generation of call to the run-time
8022         subprogram Get_Access_Level by call to Build_Get_Access_Level.
8023         (Expand_N_Simple_Function_Return): Replace generation of call to the
8024         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
8026         * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
8027         Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
8028         access to protected operations.
8029         (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
8030         master and chain actual parameters to a build-in-place function call
8031         involving tasks.
8032         (BIP_Formal_Suffix): Add new enumeration literals to complete the case
8033         statement.
8034         (Make_Build_In_Place_Call_In_Allocator,
8035         Make_Build_In_Place_Call_In_Anonymous_Context,
8036         Make_Build_In_Place_Call_In_Assignment,
8037         Make_Build_In_Place_Call_In_Object_Declaration): Call
8038         Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
8039         (Expand_Inlined_Call): If the subprogram is a null procedure, or a
8040         stubbed procedure with a null body, replace the call with a null
8041         statement without using the full inlining machinery, for efficiency
8042         and to avoid invalid values in source file table entries.
8044         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
8045         renamings of calls to build-in-place functions.
8047         * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
8048         provides the functionality of RTE_Available to record components.
8049         (RTU_Entity): The function Entity has been renamed to RTU_Entity
8050         to avoid undesired overloading.
8051         (Entity): New subprogram that returns the entity for the referened
8052         unit. If this unit has not been loaded, it returns Empty.
8053         (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
8054         Remove no longer used entities.
8055         (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
8056         (RE_Type_Specific_Data): New entity.
8057         (RE_Move_Any_Value): New entity.
8058         (RE_TA_A, RE_Get_Any_Type): New entities.
8059         (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
8060          RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
8061          RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
8062         (Entity): New subprogram that returns the entity for the referened
8063         unit. If this unit has not been loaded, it returns Empty.
8064         (RTE): Addition of a new formal that extends the search to the scopes
8065         of the record types found in the chain of the package.
8067         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
8068         "abstract subprograms must be visible" message, whether or not the type
8069         is an interface; that is, remove the special case for interface types.
8070         (Analyze_Function_Return): Remove error message "return of task objects
8071         is not yet implemented" because this is now implemented.
8072         (Create_Extra_Formals): Add the extra master and activation chain
8073         formals in case the result type has tasks.
8074         Remove error message "return of limited controlled objects is not yet
8075         implemented".
8076         (Create_Extra_Formals): Add the extra caller's finalization list formal
8077         in case the result type has controlled parts.
8078         (Process_Formals): In case of access formal types there is no need
8079         to continue with the analysis of the formals if we already notified
8080         errors.
8081         (Check_Overriding_Indicator): Add code to check overriding of predefined
8082         operators.
8083         (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
8084         flags for formals that do not require them,.
8085         (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
8086         hidden entity is use visible or directly visible.
8087         (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
8088         Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
8089         Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
8090         New_Overloaded_Entity): Split Is_Abstract flag into
8091         Is_Abstract_Subprogram and Is_Abstract_Type.
8093         * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
8094         a return statement's finalization list to the caller's list, used for
8095         build-in-place functions with result type with controlled parts.
8096         Remove no longer used entities.
8098         * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
8099         longer needed, because the full type is now limited, and therefore a
8100         pass-by-reference type.
8101         (Foreign_Task_Level): New constant.
8103         * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
8104         move tasks from the activation chain belonging to a return statement to
8105         the one passed in by the caller, and update the master to the one
8106         passed in by the caller.
8107         (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
8108         of unactivated tasks, so we don't kill the ones that are being returned
8109         by a build-in-place function.
8110         (Create_Task): Ignore AI-280 for foreign threads.
8112 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
8113             Robert Dewar  <dewar@adacore.com>
8114             Bob Duff  <duff@adacore.com>
8115             Gary Dismukes  <dismukes@adacore.com>
8117         * errout.adb (Unwind_Internal_Type): Use predicate
8118         Is_Access__Protected_Subprogram_Type.
8120         * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
8121         (Freeze_Entity, packed array case): Do not override explicitly set
8122         alignment and size clauses.
8123         (Freeze_Entity):  An entity declared in an outer scope can be frozen if
8124         the enclosing subprogram is a child unit body that acts as a spec.
8125         (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
8126         (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
8127         Remove all code for DSP option
8129         * layout.adb (Layout_Record_Type): Use First/
8130         Next_Component_Or_Discriminant
8131         (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
8132         to handle properly the anonymous access case.
8134         * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
8135         for all access attributes, because overload resolution should work the
8136         same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
8137         causes the error message for the ambiguous "X'Access = Y'Access" and
8138         "X'Unrestricted_Access = Y'Access" and so forth to match.
8139         (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
8140         now that anonymous access to protected operations have their own kind.
8141         (Resolve_Attribute): In case of dispatching call check the violation of
8142         restriction No_Dispatching_Calls.
8143         (Check_Array_Type): Check new -gnatyA array index style option
8145         * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
8146         attempt to derive from a synchronized tagged type.
8147         (Analyze_Type_Declaration): If there is a incomplete tagged view of the
8148         type, inherit the class-wide type already created, because it may
8149         already have been used in a self-referential anonymous access component.
8150         (Mentions_T): Recognize self-referential anonymous access components
8151         that use (a subtype of) the class-wide type of the enclosing type.
8152         (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
8153         Derived_Type for Prev formal on call to
8154         Check_Anonymous_Access_Components rather than Empty.
8155         (Make_Incomplete_Type_Declaration): Add test for case where the type has
8156         a record extension in deciding whether to create a class-wide type,
8157         rather than just checking Tagged_Present.
8158         (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
8159         to stand-alone object declarations as well as component declarations.
8160         (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
8161         prevent accidental overwriting when enclosing package appears in
8162         a limited_with_clause.
8163         (Array_Type_Declaration): If the component type is an anonymous access,
8164         the associated_node for the itype is the type declaration itself.
8165         (Add_Interface_Tag_Components): Modified to support concurrent
8166         types with abstract interfaces.
8167         (Check_Abstract_Interfaces): New subprogram that verifies the ARM
8168         rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
8169         (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
8170         to complete the decoration of synchronized interface types. Add also
8171         a call to Check_Abstract_Interfaces to verify the ARM rules.
8172         (Derive_Interface_Subprograms): Modified to support concurrent types
8173         with abstract interfaces.
8174         (Analyze_Subtype_Indication): Resolve the range with the given subtype
8175         mark, rather than delaying the full resolution depending on context.
8176         (Analyze_Component_Declaration,Analyze_Interface_Declaration,
8177         Analyze_Object_Declaration,Analyze_Subtype_Declaration,
8178         Array_Type_Declaration,Build_Derived_Record_Type,
8179         Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
8180         Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
8181         Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
8182         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
8183         called only when appropriate.
8184         (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
8185         to private type.
8186         (Analyze_Subtype_Declaration): For an access subtype declaration, create
8187         an itype reference for the anonymous designated subtype, to prevent
8188         scope anonmalies in gigi.
8189         (Build_Itype_Reference): New utility, to simplify construction of such
8190         references.
8192 2007-04-06  Vincent Celier  <celier@adacore.com>
8194         * errutil.adb (Initialize): Initialize warnings table, if all warnings
8195         are suppressed, supply an initial dummy entry covering all possible
8196         source locations.
8198         * make.adb (Scan_Make_Arg): Reject options that should start with "--"
8199         and start with only one, such as "-RTS=none".
8200         (Collect_Arguments): Do not check for sources outside of projects.
8201         Do not collect arguments if project is externally built.
8202         (Compile_Sources): Do nothing, not even check if the source is up to
8203         date, if its project is externally built.
8204         (Compile): When compiling a predefined source, add -gnatpg
8205         as the second switch, after -c.
8206         (Compile_Sources): Allow compilation of Annex J renames without -a
8207         (Is_In_Object_Directory): Check if the ALI file is in the object
8208         even if there is no project extension.
8209         (Create_Binder_Mapping_File): Only put a unit in the mapping file for
8210         gnatbind if the ALI file effectively exists.
8211         (Initialize): Add the directory where gnatmake is invoked in front of
8212         the path if it is invoked from a bin directory, even without directory
8213         information, so that the correct GNAT tools will be used when spawned
8214         without directory information.
8216         * makeusg.adb: Change switch -S to -eS
8217         Add lines for new switches -we, -wn and -ws
8218         Add line for new switch -p
8220         * prj-proc.adb (Process): Set Success to False when Warning_Mode is
8221         Treat_As_Error and there are warnings.
8223         * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
8224         -gnatww Change gnatmake switch -S to -eS
8225         (Scan_Make_Switches): Code reorganisation. Process separately multi
8226         character switches and single character switches.
8227         (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
8228         False when switch is not recognized by gnatmake.
8229         (Scan_Make_Switches): Set Setup_Projects True when -p or
8230         --create-missing-dirs is specified.
8232         * fname.adb (Is_Predefined_File_Name): Return True for annex J
8233         renamings Calendar, Machine_Code, Unchecked_Conversion and
8234         Unchecked_Deallocation only when Renamings_Included is True.
8236         * par.adb: Allow library units Calendar, Machine_Code,
8237         Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
8238         when -gnatg is not specified.
8239         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
8240         there is no need to generate always a record_definition_node in case
8241         of synchronized interface types.
8242         (SIS_Entry_Active): Initialize global variable to False
8243         (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
8244         indicate cases where AI-447 says "not null" is legal.
8246         * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
8248         * makegpr.adb (Check_Compilation_Needed): Take into account dependency
8249         files with with several lines starting with the object fileb name.
8250         (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
8251         is specified.
8252         (Initialize): Add the directory where gprmake is invoked in front of the
8253         path, if it is invoked from a bin directory or with directory
8254         information, so that the correct GNAT tools will be used when invoked
8255         directly.
8256         (Check_Compilation_Needed): Process correctly backslashes on Windows.
8258         * vms_data.ads: Update switches/qualifiers
8260 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
8261             Thomas Quinot  <quinot@adacore.com>
8263         * exp_aggr.adb:
8264         If the array component is a discriminated record, the array aggregate
8265         is non-static even if the component is given by an aggregate with
8266         static components.
8267         (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
8268         (Convert_Aggr_In_Allocator): If the allocator is for an access
8269         discriminant and the type is controlled. do not place on a finalization
8270         list at this point. The proper list will be determined from the
8271         enclosing object.
8272         (Build_Record_Aggr_Code): If aggregate has box-initialized components,
8273         initialize record controller if needed, before the components, to ensure
8274         that they are properly finalized.
8275         (Build_Record_Aggr_Code): For the case of an array component that has a
8276         corresponding array aggregate in the record aggregate, perform sliding
8277         if required.
8279 2007-04-06  Javier Miranda  <miranda@adacore.com>
8280             Gary Dismukes  <dismukes@adacore.com>
8281             Ed Schonberg  <schonberg@adacore.com>
8283         * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
8284         run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
8286         * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
8287         accessibility on class-wide allocators if the allocator occurs at the
8288         same scope level as the allocator's type. The check is guaranteed to
8289         succeed in that case, even when the expression originates from a
8290         parameter of the containing subprogram.
8291         (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
8292         under No_Dispatching_Calls restriction. During the semantic analysis
8293         we already notified such violation.
8294         (Tagged_Membership): Constant folding. There is no need to check
8295         the tag at run-time if the type of the right operand is non
8296         class-wide abstract.
8297         Replace call to Is_Ancestor by call to Is_Parent
8298         to support concurrent types with interface types.
8299         (Expand_N_Allocator): Add an assertion associated with the generation
8300         of the master_id.
8301         (Expand_N_Slice): Do not enable range check to nodes associated
8302         with the frontend expansion of the dispatch table.
8303         (Is_Local_Access_Discriminant): Subsidiary function to
8304         Expand_N_Allocator.
8305         (Tagged_Membership): Replace generation of call to the run-time
8306         subprogram CW_Membership by call to Build_CW_Membership.
8307         (Expand_Allocator_Expression): Replace generation of call to the
8308         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
8310         * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
8311         initialize most the TSD components by means of an aggregate.
8312         Modify the declaration of the object containing the TSD
8313         because we now expand code that has a higher level of abstraction.
8314         The TSD has a discriminant containing the Inheritance Depth Level,
8315         value that is used in the membership test but also to fix the size
8316         of the table of ancestors.
8317         (Expand_Interface_Conversion): Insert function body at the closest place
8318         to the conversion expression, to prevent access-before-elaboration
8319         errors in the backend.
8320         Code improved to reduce the size of the dispatch table if
8321         compiling under restriction No_Dispatching_Calls plus code cleanup.
8322         Code reorganization plus removal of calls to Set_Num_Prim_Ops
8323         (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
8324         (Expand_Dispatching_Call): Minor code reorganization plus addition of
8325         code to return immediately if compiling under No_Dispatching_Calls
8326         restriction.
8327         (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
8328         CPP_Virtual and CPP_Vtable are no longer supported.
8329         (Expand_Interface_Conversion): Add missing support for interface type
8330         derivations.
8331         (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
8332         Is_Parent to support concurrent types with interfaces.
8333         (Init_Predefined_Interface_Primitives): Removed.
8334         (Make_Secondary_DT): Modified to support concurrent record types.
8335         (Set_All_DT_Position): Modified to support concurrent record types.
8336         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
8337         with Get_External_Tag, Inherit_TSD, Set_External_Tag.
8338         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
8339         with CW_Membership.
8340         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
8341         with Get_Access_Level, Get_Predefined_Prim_Op_Address,
8342         Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
8343         Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
8344         Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
8345         (Expand_Dispatching_Call): Replace generation of call to the run-time
8346         subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
8347         calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
8348         Address.
8349         (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
8350         the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
8351         Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
8352         Build_Set_Prim_Op_Address.
8353         (Get_Remotely_Callable): Subprogram removed.
8354         (Init_Predefined_Interface_Primitives): Replace generation of call to
8355         the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
8356         Prims.
8358         * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
8359         First (Parameter_Associations ()) with the call to First_Actual that
8360         returns an actual parameter expression for both named and positional
8361         associations.
8363         * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
8364         check violation of restriction No_Dispatching_Calls.
8365         (Check_Controlling_Type): A formal of a tagged incomplete type is a
8366         controlling argument.
8368         * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
8369         First/Next_Component_Or_Discriminant
8370         (Insert_Actions): Add entries for new N_Push and N_Pop nodes
8371         (Find_Implemented_Interface): Removed. All the calls to this subprogram
8372         specify Any_Limited_Interface, and this functionality is already
8373         provided by the function Has_Abstract_Interfaces.
8374         (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
8375         support concurrent types implementing interfaces.
8376         (Find_Implemented_Interface): Removed. All the calls to this subprogram
8377         specify kind Any_Limited_Interface, and this functionality is already
8378         provided by the function Has_Abstract_Interfaces.
8379         (Remove_Side_Effects): replace Controlled_Type by
8380         CW_Or_Controlled_Type whenever the issue is related to
8381         using or not the secondary stack.
8383         * par-ch12.adb (P_Formal_Type_Definition): Update calls to
8384         P_Interface_Type_Definition to fulfill the new interface (the formal
8385         Is_Synchronized is no longer required).
8387         * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
8388         Update dependencies.
8390         * exp_atag.ads, exp_atag.adb: New file
8392 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
8393             Bob Duff  <duff@adacore.com>
8394             Cyrille Comar  <comar@adacore.com>
8396         * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
8397         anonymous, use finalization list of enclosing dynamic scope.
8398         (Expand_N_Package_Declaration): For a library package declaration
8399         without a corresponding body, generate RACW subprogram bodies in the
8400         spec (just as we do for the task activation call).
8401         (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
8402         Is_Abstract_Type. Make sure these are called only when appropriate.
8403         Remove all code for DSP option
8404         (CW_Or_Controlled_Type): new subprogram.
8406 2007-04-06  Eric Botcazou <botcazou@adacore.com>
8407             Ed Schonberg  <schonberg@adacore.com>
8408             Gary Dismukes  <dismukes@adacore.com>
8410         * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
8411         parameter. If it is set to true, return a result capped according to
8412         the global upper bound for the index of an entry family.
8413         (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
8414         (Build_Find_Body_Index): Adjust for above change.
8415         (Entry_Index_Expression): Likewise.
8416         (Is_Potentially_Large_Family): New function extracted from...
8417         (Collect_Entry_Families): ...here. Call it to detect whether the family
8418         is potentially large.
8419         (Build_Entry_Count_Expression): If the family is potentially large, call
8420         Family_Size with 'Cap' set to true.
8421         (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
8422         a protected version of an operation declared in the private part of
8423         a protected object, because they may be invoked through a callback.
8424         (Set_Privals): If the type of a private component is an anonymous access
8425         type, do not create a new itype for each protected body.
8426         If the body of a protected operation creates
8427         controlled types (including allocators for class-widetypes), the
8428         body of the corresponding protected subprogram must include a
8429         finalization list.
8430         (Build_Activation_Chain_Entity): Build the chain entity for extended
8431         return statements.
8432         (Type_Conformant_Parameters): Use common predicate Conforming_Types
8433         to determine whether operation overrides an inherited primitive.
8434         (Build_Wrapper_Spec): Add code to examine the parents while looking
8435         for a possible overriding candidate.
8436         (Build_Simple_Entry_Call): Set No_Initialization on the object used to
8437         hold an actual parameter value since its initialization is separated
8438         from the the declaration. Prevents errors on null-excluding access
8439         formals.
8441 2007-04-06  Thomas Quinot  <quinot@adacore.com>
8443         * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
8444         Do an Unchecked_Conversion to handle the passage from the Underlying
8445         Type to the Base Type when calling Build_To_Any_Call and
8446         Build_From_Any_Call.
8447         (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
8448         E_Constant, depending upon Variable formal.
8449         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
8450         PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
8451         parameter that requires an extra constrained parameter, declare
8452         temporary for actual as a variable, not a constant.
8453         (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
8454         the unit being compiled is the one that contains the stub type.
8455         Change primitive operation name for the RACW associated with a RAS
8456         from Call to _Call so it cannot clash with any legal identifier.
8457         (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
8458         Is_RAS.
8459         (Append_RACW_Bodies): New subprogram.
8460         (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
8461         Add_Receiving_Stubs_To_Declarations functions.
8462         When expanding a package body, this list correspond to the
8463         statements in the HSS at the end of the pacakge.
8464         When expanding a package spec, this list correspond to the
8465         spec declarations.
8466         (Add_Receiving_Stubs_To_Declarations): Append the function
8467         registering the receiving stubs at the end of the 'Stmts' list.
8468         (RCI_Package_Locator): Pass the new Version generic formal when
8469         instantiating a RCI_Locator package.
8470         (Build_From_Any_Function): To compute the High bound for an
8471         unconstrained array actual, we add the Low bound with the length.
8472         Thus we must convert the low bound and the length to an appropriate
8473         type before doing the sum.
8474         (Build_Subprogram_Receiving_Stubs, PolyORB):
8475          * Retrieve the extra formals parameters at the
8476            end of the parameter stream.
8477          * Use Move_Any_Value to write back out parameters
8478            after executing the request as it is more efficient
8479            than Copy_Any_Value.
8480          * Build the any containing Extra Formals with the
8481            appropriate typecode.
8482         (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
8483         empty Component_List.
8484         (Build_Actual_Object_Declaration): New subprogram. Build and insert into
8485         the tree the declaration for an object that serves as actual parameter
8486         in server-side stubs.
8487         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
8488         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
8489         Use Build_Actual_Object_Declaration to prepare the actuals.
8490         (Add_Parameter_To_NVList): Set the parameter mode to In for
8491         Extra Constrained Parameters.
8492         (Build_General_Calling_Stubs): Set the parameter type to boolean for
8493         Extra Constrained parameters.
8494         (Build_To_Any_Function, Build_From_Any_Function,
8495         Built_TypeCode_Function): When Typ is implicit, call the correct
8496         function with the first not implicit parent type.
8497         (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
8498         (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
8499         typecode from the Etype. Therefore we retrieve the correct typecode
8500         with a call to Get_Any_Type.
8501         (Copy_Specification): Do controlling formal type substitution based on
8502         Is_Controlling_Formal flag, instead of caller-provided object type.
8503         (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
8504         a RACW primitive operation, we might get a subprogram declaration for an
8505         ancestor of the RACW designated type (not for the designated type
8506         itself), in the case where this operation is inherited. In this case we
8507         have no easy means of determining the original tagged type for which
8508         the primitive was declared, so instead we now rely on
8509         Copy_Specification to use the Is_Controlling_Formal flag to determine
8510         which formals require type substitution.
8512 2007-04-06  Robert Dewar  <dewar@adacore.com>
8513             Ed Schonberg  <schonberg@adacore.com>
8515         * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
8516         GNAT.Current_Exception are not allowed if pragma Restrictions
8517         (No_Exception_Propagation) is set and in any case make the associated
8518         handler unsuitable as a target for a local raise statement.
8519         (Expand_Dispatching_Constructor_Call): Replace generation of call to the
8520         run-time subprogram CW_Membership by call to Build_CW_Membership.
8521         (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
8522         by a function call, a temporary must be created before expanding the
8523         Constructor_Call itself, to prevent out-of-order elaboration in the
8524         back-end when stack checking is enabled..
8526 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
8528         * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
8529         result are the bounds of the left operand, not the right.
8531 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
8533         * exp_strm.adb
8534         (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
8535          discriminant defaults.
8536         (Build_Record_Or_Elementary_Output_Procedure): Ditto.
8537         (Make_Component_List_Attributes): Ditto.
8539 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
8540             Bob Duff  <duff@adacore.com>
8542         * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
8543         an association with a box as providing a value even though the
8544         initialization procedure for the type is not available.
8545         (Resolve_Record_Aggregate): Check that a choice of an association with a
8546         box corresponds to a component of the type.
8547         (Resolve_Record_Aggregate): Split Is_Abstract flag into
8548         Is_Abstract_Subprogram and Is_Abstract_Type.
8550         * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
8551         assert.
8553         * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
8554         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
8555         called only when appropriate.
8557 2007-04-06  Olivier Hainque  <hainque@adacore.com>
8559         * g-alleve.ads (Low Level Vector type definitions): Map each to the
8560         associated vector view instead of all to the unsigned char view.
8562         * g-altcon.adb (Generic_Conversions): New internal generic package,
8563         offering facilities for all the Vector/View conversion routines
8564         implemented by this unit.
8565         (To_View/To_Vector - all versions): Reimplemented in a systematic
8566         manner, using the internal Generic_Conversions facilities.
8568 2007-04-06  Pascal Obry  <obry@adacore.com>
8570         * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
8571         string.
8572         (Create): Free the source string before storing the new one.
8574 2007-04-06  Vincent Celier  <celier@adacore.com>
8576         * g-debpoo.adb (Validity): New package with a complete new
8577         implementation of subprograms Is_Valid and Set_Valid.
8578         (Is_Valid): Move to local package Validity
8579         (Set_Valid): Move to local package Validity
8581 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
8583         * g-expect.adb (Get_Command_Output): When expanding the output buffer
8584         we must ensure that there is enough place for the new data we are going
8585         to copy in.
8587 2007-04-06  Thomas Quinot  <quinot@adacore.com>
8589         * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
8590         computation.
8592 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
8593             Vincent Celier  <celier@adacore.com>
8595         * gnatcmd.adb (B_Start): Add prefix of binder generated file.
8596         (Stack_String): Add this String that contains the name of the Stack
8597         package in the project file.
8598         (Packages_To_Check_By_Stack): Add this list that contains the packages
8599         to be checked by gnatstack, which are the naming and the stack packages.
8600         (Check_Files): If no .ci files were specified for gnatstack we add all
8601         the .ci files belonging to the projects, including binder generated
8602         files.
8603         (Non_VMS_Usage): Document that gnatstack accept project file switches.
8604         (GNATCmd): Update the B_Start variable if we are in a VMS environment.
8605         Add gnatstack to the list of commands that use project file related
8606         switches, and get the single attribute Switches from the stack package
8607         in a project file when calling gnatstack. Parse the -U flag for
8608         processing files belonging to all projects in the project tree.
8609         Remove all processing for command Setup
8611         * prj-attr.adb: Add new package Stack with single attribute Switches
8613         * vms_conv.ads (Command_Type): Add command Stack.
8614         Move to body declarations that are only used in the body: types Item_Id,
8615         Translation_Type, Item_Ptr, Item and its subtypes.
8617         * vms_conv.adb: (Initialize): Add data for new command Stack.
8618         Add declarations moved from the spec: types Item_Id, Translation_Type,
8619         Item_Ptr, Item and its subtypes.
8620         (Cargs_Buffer): New table
8621         (Cargs): New Boolean global variable
8622         (Process_Buffer): New procedure to create arguments
8623         (Place): Put character in table Buffer or Cargs_Buffer depending on the
8624          value of Cargs.
8625         (Process_Argument): Set Cargs when processing qualifiers for GNAT
8626         COMPILE
8627         (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
8628         empty, for table Cargs_Buffer.
8629         (Initialize): Remove component Setup in Command_List
8631 2007-04-06  Vincent Celier  <celier@adacore.com>
8633         * gprep.adb (Process_Files.Process_One_File): Use full file name when
8634         issuing pragma Source_Reference.
8636 2007-04-06  Emmanuel Briot  <briot@adacore.com>
8638         * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
8639         [[:xdigit:]] character class.
8640         Also raise an exception when an invalid character class is used.
8642 2007-04-06  Pascal Obry  <obry@adacore.com>
8644         * i-cstrea.ads: (fopen): Add encoding parameter.
8645         (freopen): Idem.
8646         Change reference from a-sysdep.c to sysdep.c in comment.
8647         Update copyright notice.
8648         This set of patch add support for the encoding form parameter.
8650         * mingw32.h (S2WSU): New macro to convert from a string to a
8651         wide-string using the UTF-8 encoding. The S2WS macro supports now only
8652         standard 8bits encoding.
8653         (WS2SU): As above but converting from wide-sring to string.
8654         This is needed as it is necessary to have access to both versions in the
8655         runtime for the form parameter encoding support.
8656         This set of patch add support for the encoding form parameter.
8657         (S2WS): Improve implementation to handle cases where the filename is not
8658         UTF-8 encoded. In this case we default to using the current code page
8659         for the conversion.
8661         * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
8662         type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
8663         the constants defined in adaint.h.
8664         (fopen): Add encoding parameter.
8665         (freopen): Idem.
8667         * s-ficobl.ads (AFCB): Add Encoding field to record the filename
8668         encoding. This is needed for the Reset routine (freopen low level-call).
8670         * s-fileio.adb (Open): Decode encoding form parameter and set the
8671         corresponding encoding value into AFCB structure.
8672         (Reset): Pass the encoding value to freopen.
8673         (Close): Move the call to Lock_Task to the beginning of the procedure.
8675 2007-04-06  Geert Bosch  <bosch@adacore.com>
8676             Robert Dewar  <dewar@adacore.com>
8678         * i-fortra.ads: Add Double_Complex type.
8680         * impunit.adb: (Is_Known_Unit): New function
8681         Add Gnat.Byte_Swapping
8682         Add GNAT.SHA1
8683         Add new Ada 2005 units
8684         Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
8685         Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
8686         Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
8687         Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
8689         * impunit.ads (Is_Known_Unit): New function
8691         * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
8692         a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
8693         a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
8694         g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
8695         s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
8696         s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
8697         New files.
8699         * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
8701         * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
8703 2007-04-06  Eric Botcazou <botcazou@adacore.com>
8704             Arnaud Charlet  <charlet@adacore.com>
8706         * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
8707         __gnat_adjust_context_for_raise.
8708         (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
8709         implementation of floating point operations as native x86 targets.
8710         So the FPU should be initialized in the same way using finit. Fix
8711         floating point operations accuracy issues.
8712         (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
8713         member in struct sigaction, so as to avoid warning for incompatible
8714         pointer types.
8716 2007-04-06 Serguei Rybin <rybin@adacore.com>
8718         * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
8719         switches from previously loaded tree
8721 2007-04-06  Thomas Quinot  <quinot@adacore.com>
8723         * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
8724         cases where a given dependency has a body or not.
8725         (Write_With_File_Names): New subprogram, common code for the two cases
8726         above.
8728 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
8729             Javier Miranda  <miranda@adacore.com>
8731         * lib-xref.ads, lib-xref.adb: 
8732         Modify the loop that collects type references, to include interface
8733         types that the type implements. List each of these interfaces when
8734         building the entry for the type.
8735         (Generate_Definition): Initialize component Def and Typ of new entry
8736         in table Xrefs, to avoid to have these components unitialized.
8737         (Output_References): Split Is_Abstract flag into
8738         Is_Abstract_Subprogram and Is_Abstract_Type.
8739         (Generate_Reference): Add barrier to do not generate the warning
8740         associated with Ada 2005 entities with entities generated by the
8741         expander.
8743 2007-04-06  Robert Dewar  <dewar@adacore.com>
8744             Arnaud Charlet  <charlet@adacore.com>
8745             Vincent Celier  <celier@adacore.com>
8747         * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
8748         Update 'Exception Handling Control' chapter which was outdated.
8749         Minor fix to documentation of -gnatwq
8750         Remove section "Adapting the Run Time to a New C++ Compiler" because
8751         it is now obsolete.
8752         Add passage on need of -nostart-files in some non-ada-main cases.
8753         Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
8754         Update documentation about Interfacing with C++
8755         Add documentation for new gnatmake switch -p
8756         Add missing protocol part in URLs.
8757         Document -gnatyA
8758         Document pragma Compile_Time_Error
8759         Add documentation for Object_Size indicating that stand alone
8760         objects can have a larger size in some cases.
8761         Add node for GNAT.Byte_Swapping, GNAT.SHA1
8762         Update reference to the Ravenscar profile.
8763         Document pragma Unreferenced_Objects
8765         * gnat-style.texi: Fix typo
8767 2007-04-06  Vincent Celier  <celier@adacore.com>
8769         * mlib.adb (Building_Library): Only output "building a library..." in
8770         verbose mode
8772         * mlib-prj.adb (Build_Library): Only output lists of object and ALI
8773         files in verbose mode.
8775         * mlib-utl.adb (Ar): Only output the first object files when not in
8776         verbose mode.
8777         (Gcc): Do not display all the object files if not in verbose mode, only
8778         the first one.
8780 2007-04-06  Robert Dewar  <dewar@adacore.com>
8782         * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
8783         it no longer destroys the contents of Name_Buffer or Name_Len and
8784         non-standard and invalid names are handled better.
8785         (Get_Decoded_Name_String): Improve performance by using
8786         Name_Has_No_Encodings flag in the name table.
8787         (Is_Valid_Name): New function to determine whether a Name_Id is valid.
8788         Used for debugging printouts.
8790 2007-04-06  Robert Dewar  <dewar@adacore.com>
8791             Javier Miranda  <miranda@adacore.com>
8792             Bob Duff  <duff@adacore.com>
8794         * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
8795         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
8796         there is no need to generate always a record_definition_node in case
8797         of synchronized interface types.
8798         (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
8799         (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
8800         illegal in Ada 95, in cases where it is legal. Change the warnings to
8801         errors in other cases. Don't give the error unless the "not null"
8802         parses properly. Correct the source position at which the error occurs.
8803         (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
8804         P_Null_Exclusion, to suppress "not null" warnings.
8805         (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
8806         associated goto statements.
8808         * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
8809         of END RECORD
8811         * scans.ads (Type_Token_Location): New flag
8813         * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
8814         (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
8815         P_Null_Exclusion, to suppress "not null" warnings.
8817 2007-04-06  Robert Dewar  <dewar@adacore.com>
8818             Javier Miranda  <miranda@adacore.com>
8819             Bob Duff  <duff@adacore.com>
8820             Vincent Celier  <celier@adacore.com>
8822         * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
8823         (Extensions_Allowed): No longer sets Ada_Version
8824         Entry for pragma Unreferenced_Objects
8826         * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
8827         system.tasking if pragma priority used in a procedure
8828         (Analyze_Pragma, case Warning): Handle dot warning switches
8829         (Process_Compile_Time_Warning_Or_Error): New procedure
8830         (Analyze_Pragma): Add processing for Compile_Time_Error
8831         Add support for extra arguments External_Name and Link_Name.
8832         Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
8833         (Process_Import_Or_Interface): Add support for the use of pragma Import
8834         with tagged types.
8835         (Extensions_Allowed): No longer affects Ada_Version
8836         (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
8837         Is_Abstract_Type. Make sure these are called only when appropriate.
8838         Add processing for pragma Unreferenced_Objects
8840         * snames.h, snames.ads, snames.adb: Add entry for pragma
8841         Compile_Time_Error
8842         Add new standard name Minimum_Binder_Options for new gprmake
8843         Add new standard names for gprmake: Archive_Suffix,
8844         Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
8845         Library_Support, Library_Version_Options,
8846         Shared_Library_Minimum_Options,
8847         Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
8848         Change Name_Call to Name_uCall so that it cannot clash with a legal
8849         subprogram name.
8850         Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
8851         Append C_Plus_Plus to convention identifiers as synonym for CPP
8852         Add new standard names Stack and Builder_Switches
8853         Add new standard names: Compiler_Minimum_Options, Global_Config_File,
8854         Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
8855         Run_Path_Option, Toolchain_Version.
8856         Entry for pragma Unreferenced_Objects
8858         * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
8859         switches, without repetition of "eD". Make sure that last character of
8860         -gnatep= switch is not taken as -gnat switch character.
8861         Complete rewrite of circuit for handling saving compilation options
8862         Occasioned by need to support dot switchs for -gnatw, but cleans up
8863         things in general.
8864         -gnatX does not affect Ada_Version
8865         Include -gnatyA in -gnatg style switches
8867         * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
8868         warnings on return objects.
8869         (Warn_On_Useless_Assignment): Exclude warnings on return objects
8870         (Set_Dot_Warning_Switch): New procedure
8871         (Check_References): Add missing case of test for
8872         Has_Pragma_Unreferenced_Objects
8873         (Output_Unreferenced_Messages): Implement effect of new pragma
8874         Unreferenced_Objects, remove special casing of limited controlled
8875         variables.
8877 2007-04-06  Vincent Celier  <celier@adacore.com>
8879         * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
8880         the default project path, initially done during elaboration of the
8881         package.
8882         If the prefix returned by Sdefault is null, get the prefix from a call
8883         to Executable_Prefix_Path.
8884         (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
8885         null.
8887         * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
8888         canonical directory name to open the directory from which files are
8889         retrieved.
8890         (Record_Other_Sources): Idem.
8891         (Locate_Directory): Add the possibility to create automatically missing
8892         directories when Setup_Projects is True.
8893         Call Locate_Directory so that the directory will be created when
8894         Setup_Projects is True, for object dir, library dir, library ALI dir,
8895         library source copy dir and exec dir.
8897         * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
8898         versions of GNAT.
8900 2007-04-06  Robert Dewar  <dewar@adacore.com>
8902         * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
8903         Use First/Next_Component_Or_Discriminant
8904         (Analyze_Record_Representation_Clause):
8905         Use First/Next_Component_Or_Discriminant
8906         (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
8907         (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
8908         definition if type is unconstrained.
8909         (Adjust_Record_For_Reverse_Bit_Order): New procedure
8910         (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
8911         Is_Abstract_Subprogram and Is_Abstract_Type.
8912         (Adjust_Record_For_Reverse_Bit_Order): New procedure
8914         * repinfo.adb (List_Record_Info): Use First/
8915         Next_Component_Or_Discriminant.
8917         * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
8918         New procedure.
8920         * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
8921         Include -gnatyA in default switches
8923         * opt.ads: (Warn_On_Non_Local_Exception): New flag
8924         (Warn_On_Reverse_Bit_Order): New flag
8925         (Extensions_Allowed): Update the documentation.
8926         (Warn_On_Questionable_Missing_Parens): Now on by default
8928         * usage.adb: Add documentation of -gnatw.x/X switches
8929         Document new -gnatyA style switch
8930         -gnatq warnings are on by default
8932 2007-04-06  Ed Falis  <falis@adacore.com>
8934         * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
8935         full word is no longer compared twice.
8937 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
8939         * sem_ch10.adb (Install_Limited_Context_Clauses.
8940         Expand_Limited_With_Clause): Use a new copy of selector name in the
8941         call to Make_With_Clause. This fixes the tree structure for ASIS
8942         purposes. Nothing is changed in the compiler behaviour.
8943         (Process_Body_Clauses): Handle properly use clauses whose prefix is
8944         a package renaming.
8945         (Install_Limited_With_Clauses): Do not install non-limited view when it
8946         is still incomplete.
8948 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
8949             Gary Dismukes  <dismukes@adacore.com>
8951         * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
8952         when capturing size information, instead of base type, which for a
8953         formal array type will be the unconstrained type.
8954         (Analyze_Formal_Object_Declaration): Add check for illegal default
8955         expressions for a formal in object of a limited type.
8956         (Instantiate_Object): Ditto.
8957         (Check_Formal_Package_Instance): Skip entities that are formal objects,
8958         because they were defaulted in the formal package and no check applies
8959         to them.
8960         (Check_Formal_Package_Instance): Extend conformance check to other
8961         discrete types beyond Integer.
8962         (Process_Default): Copy directly the unmatched formal. A generic copy
8963         has already been performed in Analyze_Formal_Package.
8964         (Analyze_Associations): If a formal subprogram has no match, check for
8965         partial parametrization before looking for a default, to prevent
8966         spurious errors.
8967         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
8968         not set the instantiation environment before analyzing the actuals.
8969         Fixes regression on 8515-003 with implementation of AI-133.
8970         Set_Instance_Env checks whether the generic unit is a predefined
8971         unit, in which case the instance must be analyzed with the latest Ada
8972         mode. This setting must take place after analysis of the actuals,
8973         because the actuals must be analyzed and frozen in the Ada mode extant
8974         outside of the current instantiation.
8975         (Save_Env, Restore_Env): Preserve and restore the configuration
8976         parameters so that predefined units can be compiled in the proper Ada
8977         mode.
8978         (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
8979         Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
8980         and Is_Abstract_Type.
8981         (Analyze_Formal_Package): For better error recovery, Add exception
8982         handler to catch Instantion_Error, which can be raised in
8983         Analyze_Associations
8985 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
8986             Bob Duff  <duff@adacore.com>
8987             Gary Dismukes  <dismukes@adacore.com>
8989         * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
8990         prefix type is a discriminated subtype of the type of the formal.
8991         (Analyze_Allocator): Collect all coextensions regardless of the context.
8992         Whether they can be allocated statically is determined in exp_ch4.
8993         (Analyze_Selected_Component): If the prefix is a limited view and the
8994         non-limited view is available, use the non-limited one.
8995         (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
8996         therefore illegal), suggest a qualified expression rather than a type
8997         conversion, because a type conversion would be illegal in this context.
8998         (Anayze_Allocator): Trace recursively all nested allocators so that all
8999         coextensions are on the corresponding list for the root. Do no mark
9000         coextensions if the root allocator is within a declaration for a stack-
9001         allocated object, because the access discriminants will be allocated on
9002         the stack as well.
9003         (Analyze_Call): Remove restriction on calls to limited functions for the
9004         cases of generic actuals for formal objects, defaults for formal objects
9005         and defaults for record components.
9006         (Analyze_Allocator): Before analysis, chain coextensions on the proper
9007         element list. Their expansion is delayed until the enclosing allocator
9008         is processed and its finalization list constructed.
9009         (Try_Primitive_Operation): If the prefix is a concurrent type, looks
9010         for an operation with the given name among the primitive operations of
9011         the corresponding record type.
9012         (Analyze_Selected_Component): If the prefix is a task type that
9013         implements an interface, and there is no entry with the given name,
9014         check whether there is another primitive operation (e.g. a function)
9015         with that name.
9016         (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
9017         properly the indexing of a function call written in prefix form, where
9018         the function returns an array type, and all parameters of the function
9019         except the first have defaults.
9020         (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
9021         the original operands, rather than relocating them, for efficiency and
9022         to work properly when an operand is overloaded.
9023         (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
9024         Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
9025         (Analyze_Selected_Component): If the prefix is a private extension, only
9026         scan the visible components, not those of the full view.
9027         (Try_Primitive_Operation): If the operation is a procedure, collect all
9028         possible interpretations, as for a function, because in the presence of
9029         classwide parameters several primitive operations of the type can match
9030         the given arguments.
9032 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
9033             Robert Dewar  <dewar@adacore.com>
9035         * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
9036         tag-indeterminate call to an abstract function, when the left-hand side
9037         is not classwide.
9038         (Analyze_Loop_Statement): Improve detection of infinite loops
9040 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
9041             Thomas Quinot  <quinot@adacore.com>
9043         * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
9044         out of Analyze_Package_Declaration, because processing must be applied
9045         to package bodies as well, for deferred constants completed by pragmas.
9046         (Analyze_Package_Declaration): When the package declaration being
9047         analyzed does not require an explicit body, call Check_Completion.
9048         (May_Need_Implicit_Body): An implicit body is required when a package
9049         spec contains the declaration of a remote access-to-classwide type.
9050         (Analyze_Package_Body): If the package contains RACWs, append the
9051         pending subprogram bodies generated by exp_dist at the end of the body.
9052         (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
9053         Is_Abstract_Subprogram and Is_Abstract_Type.
9054         (Preserve_Full_Attributes): The full entity list is not an attribute
9055         that must be preserved from full to partial view.
9057         * sem_dist.adb (Add_RAS_Dereference_TSS):
9058         Change primitive name to _Call so it cannot clash with any legal
9059         identifier, and be special-cased in Check_Completion.
9060         Mark the full view of the designated type for the RACW associated with
9061         a RAS as Comes_From_Source to get proper view switching when installing
9062         private declarations.
9063         Provite a placeholder nested package body along with the nested spec
9064         to have a place for Append_RACW_Bodies to generate the calling stubs
9065         and stream attributes.
9067 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
9068             Robert Dewar  <dewar@adacore.com>
9070         * sem_ch8.adb (Has_Components): If the argument is an incomplete type
9071         that is a limited view, check the non-limited view if available.
9072         (Undefined): Refine error message for missing with of Text_IO
9073         (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
9074         to distinguish real missing with cases.
9075         Fix format of all missing with messages
9076         (Analyze_Subprogram_Renaming): Emit proper error message on illegal
9077         renaming as body when renamed entity is abstract.
9079 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
9080             Javier Miranda  <miranda@adacore.com>
9082         * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
9083         predicate recursive, to handle complex expressions on literals whose
9084         spurious ambiguity comes from the abstract interpretation of some
9085         subexpression.
9086         (Interface_Present_In_Ancestor): Add support to concurrent record
9087         types.
9088         (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
9089         Is_Abstract_Subprogram and Is_Abstract_Type.
9091 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
9092             Javier Miranda  <miranda@adacore.com>
9094         * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
9095         dereference of a local object R created as a reference to another
9096         object O, use the access level of O.
9097         (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
9098         rather than local Same_Formal_Type, to check whether protected operation
9099         overrides an inherited one.
9100         (Same_Formal_Type): New predicate, used when matching signatures of
9101         overriding synchronized operations, to handle the case when a formal
9102         has a type that is a generic actual.
9103         (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
9104         predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
9105         (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
9106         syntactic ambiguities involving indexing of function calls that return
9107         arrays.
9108         (Abstract_Interface_List): New subprogram that returns the list of
9109         abstract interfaces associated with a concurrent type or a
9110         concurrent record type.
9111         (Interface_Present_In_Parent): New subprogram used to check if a
9112         given type or some of its parents implement a given interface.
9113         (Collect_Abstract_Interfaces): Add support for concurrent types
9114         with interface types.
9115         (Has_Abstract_Interfaces): Add support for concurrent types with
9116         interface types.
9117         (Is_Parent): New subprogram that determines whether E1 is a parent
9118         of E2. For a concurrent type its parent is the first element of its
9119         list of interface types; for other types this function provides the
9120         same result than Is_Ancestor.
9121         (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
9122         (Collect_Synchronized_Interfaces): Removed because the subprogram
9123         Collect_Abstract_Interfaces provides this functionality.
9124         (Collect_Abstract_Interfaces): Minor update to give support to
9125         concurrent types and thus avoid undesired code duplication.
9126         (Get_Subprogram_Entity): Handle entry calls.
9127         (May_Be_Lvalue): Include actuals that appear as in-out parameters in
9128         entry calls.
9129         (Enter_Name): Do not give -gnatwh hiding warning for record component
9130         entities, they never result in hiding.
9132 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
9133             Robert Dewar  <dewar@adacore.com>
9135         * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
9136         to chain nested components that are allocators for access discriminants
9137         of the enclosing object.
9138         Add N_Push and N_Pop nodes
9139         New field Exception_Label added
9140         (Local_Raise_Statements): New field in N_Exception_Handler_Node
9141         (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
9142         (Is_Coextension): New flag for allocators, to mark allocators that
9143         correspond to access discriminants of dynamically allocated objects.
9144         (N_Block_Statement): Document the fact that the corresponding entity
9145         can be an E_Return_Statement.
9146         (Is_Coextension): New flag for allocators.
9147         Remove all code for DSP option
9149         * sprint.ads, sprint.adb: Display basic information for class_wide
9150         subtypes. Add handling of N_Push and N_Pop nodes
9152 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
9154         * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
9155         before propagating exception.
9157 2007-04-06  Olivier Hainque  <hainque@adacore.com>
9159         * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
9160         an address always within the call instruction from a return address.
9162 2007-04-06  Olivier Hainque  <hainque@adacore.com>
9163             Eric Botcazou <botcazou@adacore.com>
9165         * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
9166         expression with a COMPOUND_EXPR including the call instead of emitting
9167         the call directly here.
9168         (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
9169         high bound is constant and the slice is empty.  Tidy.
9170         (tree_transform, case N_Op_Not): Handle properly the case where the
9171         operation applies to a private type whose full view is a modular type.
9172         (Case_Statement_To_gnu): If an alternative is an E_Constant with an
9173         Address_Clause, use the associated Expression as the GNAT tree
9174         representing the choice value to ensure the corresponding GCC tree is
9175         of the proper kind.
9176         (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
9177         instead of just the operands, as the base GCC stabilize_reference does.
9178         <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
9179         requested; otherwise fail.
9180         (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
9182 2007-04-06  Thomas Quinot  <quinot@adacore.com>
9184         * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
9185         implementation of UI_Div.
9186         (UI_Div): Reimplement as a call to UI_Div_Rem.
9187         (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
9188         remainder, avoiding the cost of a multiplication and a subtraction.
9189         (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
9190         provides both quotient and remainder in a single computation.
9191         (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
9192         functions for uint.
9193         (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
9194         is undefined if the given n is not inversible.
9196 2007-04-06  Olivier Hainque  <hainque@adacore.com>
9198         * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
9199         BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
9200         opcodes.
9202 2007-04-06  Eric Botcazou <botcazou@adacore.com>
9203             Olivier Hainque  <hainque@adacore.com>
9205         * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
9206         when updating the contents of the old pointer to an unconstrained array.
9207         (end_subprog_body): Set error_gnat_node to Empty.
9208         (write_record_type_debug_info): Do not be unduly sparing with our bytes.
9209         (unchecked_convert): For subtype to base type conversions, require that
9210         the source be a subtype if it is an integer type.
9211         (builtin_decls): New global, vector of available builtin functions.
9212         (gnat_pushdecl): Add global builtin function declaration nodes to the
9213         builtin_decls list.
9214         (gnat_install_builtins): Adjust comments.
9215         (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
9216         calling gnat_pushdecl, so that it knows when it handed a builtin
9217         function declaration node.
9218         (builtin_decl_for): Search the builtin_decls list.
9220 2007-04-06  Eric Botcazou <botcazou@adacore.com>
9222         * s-stchop-vxworks.adb: 
9223         (Stack_Check): Raise Storage_Error if the argument has wrapped around.
9225 2007-04-06  Robert Dewar  <dewar@adacore.com>
9226             Arnaud Charlet  <charlet@adacore.com>
9228         * a-diroro.ads: Inserted the pragma Unimplemented_Unit
9230         * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
9231         of files
9232         Add mention of -Sev (set initialize_scalars option from environment
9233         variable at run time) in gnatbind usage message.
9235         * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
9237         * fname-uf.ads: Minor comment fix
9239         * osint.ads: Change pragma Elaborate to Elaborate_All
9241         * par-load.adb: Add documentation.
9243         * sem_cat.ads, sem_cat.adb: Minor code reorganization
9245         * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
9247         * s-secsta.ads: Extra comments
9249         * s-soflin.ads: Minor comment fixes
9251         * s-stratt.ads (Block_Stream_Ops_OK): Removed.
9253         * s-wchcon.ads: Minor comment addition
9255         * treepr.adb: Minor change in message
9256         (Print_Name,Print_Node): Make these debug printouts more robust: print
9257         "no such..." instead of crashing on bad input.
9259 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
9261         * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
9262         instead of gnat_signed_or_unsigned_type.
9263         * utils.c (gnat_signed_or_unsigned_type): Remove.
9264         * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
9265         * gigi.h (gnat_signed_or_unsigned_type): Remove
9267 2007-03-09  Roger Sayle  <roger@eyesopen.com>
9269         * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
9270         fold with the result of buildN.
9271         * decl.c (gnat_to_gnu_entity): Likewise.
9272         * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
9273         * utils.c (finish_record_type, merge_sizes, max_size, convert):
9274         Likewise.
9275         * utils2.c (gnat_truthvalue_conversion, compare_arrays,
9276         nonbinary_modular_operation, build_binary_op, build_unary_op,
9277         build_cond_expr): Likewise.
9279         * utils.c (convert): Use fold_build1 when casting values to void.
9280         * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
9281         fold_convert instead of convert when appropriate.
9283 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
9285         * Make-lang.in: Add install-pdf target as copied from
9286         automake v1.10 rules.
9288 2007-02-28  Andreas Schwab  <schwab@suse.de>
9290         * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
9291         $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
9292         (doc/gnat-style.info): Likewise.
9294 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
9296         * gnat-style.texi: Standardize title page.
9297         * gnat_rm.texi: Likewise.
9298         * gnat_ugn.texi: Likewise.
9300 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
9302         * decl.c (annotate_value): Adjust for refactoring of tree_map
9303         hierarchy.
9305 2007-02-24  Mark Mitchell  <mark@codesourcery.com>
9307         * decl.c (annotate_value): Adjust for refactoring of tree_map
9308         hierarchy.
9310 2007-02-21  Ed Schonberg  <schonberg@adacore.com>
9312         PR ada/18819
9313         * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
9314         untagged derived type, add hidden components to keep discriminant
9315         layout consistent, when a given discriminant of the derived type
9316         constraints several discriminants of the parent type.
9318 2007-02-16  Eric Botcazou  <ebotcazou@adacore.com>
9319             Sandra Loosemore  <sandra@codesourcery.com>
9321         * trans.c (call_to_gnu):  Use build_call_list instead of build3 to
9322         build the call expression.
9323         (gnat_stabilize_reference_1): Handle tcc_vl_exp.
9324         * utils.c (max_size) <tcc_exceptional>: Delete.
9325         <tcc_vl_exp>: New case.
9326         <tcc_expression>: Delete CALL_EXPR subcase.
9327         (build_global_cdtor): Use build_call_nary instead of build3.
9328         * utils2.c (build_call_1_expr): Likewise.
9329         (build_call_2_expr): Likewise.
9330         (build_call_0_expr): Likewise.
9331         (build_call_alloc_dealloc): Likewise.
9333 2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
9335         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
9336         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
9337         and _Unwind_SWord with _sleb128_t.
9339 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
9341         * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
9342         * decl.c: Include gt-ada-decl.h.
9343         (annotate_value_cache): New.
9344         (annotate_value): Use it instead of TREE_COMPLEXITY.
9346 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
9348         * misc.c, utils2.c: Fix comment typos.
9350 2007-01-24  Roger Sayle  <roger@eyesopen.com>
9352         * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
9353         TREE_CONSTANT_OVERFLOW.
9354         (allocatable_size_p, annotate_value): Likewise.
9355         * trans.c (gnat_to_gnu): Likewise.
9356         * utils.c (unchecked_convert): Likewise.
9357         * utils2.c (build_simple_component_ref): Likewise.
9359 2007-01-23  Richard Guenther  <rguenther@suse.de>
9361         PR bootstrap/30541
9362         * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
9363         (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
9364         (gnatboot3): Likewise.
9365         (GNATBIND): Do not define.
9366         * Makefile.in (GNATBIND): Do not define.
9368 2007-01-08  Richard Guenther  <rguenther@suse.de>
9370         * cuintp.c (build_cst_from_int): Use built_int_cst_type.
9371         * trans.c (gnat_to_gnu): Likewise.
9373 2006-12-07  Geoffrey Keating  <geoffk@apple.com>
9375         * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
9376         * adaint.c: Likewise.
9378 2006-12-05  Aldy Hernandez  <aldyh@redhat.com>
9380         Merge from gimple-tuples-branch:
9381         2006-11-02  Aldy Hernandez  <aldyh@redhat.com>
9383         * ada-tree.h (lang_tree_node): Handle gimple tuples.
9384         * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
9385         GIMPLE_MODIFY_STMT.
9387 2006-12-02  Kazu Hirata  <kazu@codesourcery.com>
9389         * Makefile.in, mingw32.h, trans.c: Fix comment typos.
9390         * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
9391         Fix typos.
9393 2006-11-17  Eric Botcazou  <ebotcazou@adacore.com>
9395         PR ada/27936
9396         * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
9397         if the initializer takes into account the padding.
9399 2006-11-11  Richard Guenther  <rguenther@suse.de>
9401         * trans.c (maybe_stabilize_reference): Remove handling of
9402         FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
9404 2006-11-05  Arnaud Charlet  <charlet@adacore.com>
9406         PR ada/29707
9407         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
9408         (To_Target_Priority): New function.
9410 2006-10-31  Robert Dewar  <dewar@adacore.com>
9412         * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
9413         a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
9414         s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
9415         a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
9416         a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
9417         a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
9418         a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
9419         a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
9420         a-szbzha.adb: Minor reformatting. Fix header.
9422         * a-numaux-x86.adb: Add parentheses for use of unary minus
9423         * a-ngcefu.adb: Supply missing parentheses for unary minus
9424         * a-ngcoty.adb: Add parens for use of unary minus
9425         * a-ngelfu.adb: Add missing parens for unary minus
9426         * a-tifiio.adb: Add parentheses for uses of unary minus
9428 2006-10-31  Robert Dewar  <dewar@adacore.com>
9429             Bob Duff  <duff@adacore.com>
9430             Ed Schonberg  <schonberg@adacore.com>
9432         * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
9433         with multiplying operator.
9434         (Expected_Type_Is_Any_Real): New function to determine from the Parent
9435         pointer whether the context expects "any real type".
9436         (Resolve_Arithmetic_Op): Do not give an error on calls to the
9437         universal_fixed "*" and "/" operators when they are used in a context
9438         that expects any real type. Also set the type of the node to
9439         Universal_Real in this case, because downstream processing requires it
9440         (mainly static expression evaluation).
9441         Reword some continuation messages
9442         Add some \\ sequences to continuation messages
9443         (Resolve_Call): Refine infinite recursion case. The test has been
9444         sharpened to eliminate some false positives.
9445         Check for Current_Task usage now includes entry barrier, and is now a
9446         warning, not an error.
9447         (Resolve): If the call is ambiguous, indicate whether an interpretation
9448         is an inherited operation.
9449         (Check_Aggr): When resolving aggregates, skip associations with a box,
9450         which are priori correct, and will be replaced by an actual default
9451         expression in the course of expansion.
9452         (Resolve_Type_Conversion): Add missing support for conversion from
9453         a class-wide interface to a tagged type. Minor code cleanup.
9454         (Valid_Tagged_Converion): Add support for abstact interface type
9455         conversions.
9456         (Resolve_Selected_Component): Call Generate_Reference here rather than
9457         during analysis, and use May_Be_Lvalue to distinguish read/write.
9458         (Valid_Array_Conversion): New procedure, abstracted from
9459         Valid_Conversion, to incorporate accessibility checks for arrays of
9460         anonymous access types.
9461         (Valid_Conversion): For a conversion to a numeric type occurring in an
9462         instance or inlined body, no need to check that the operand type is
9463         numeric, since this has been checked during analysis of the template.
9464         Remove legacy test for scope name Unchecked_Conversion.
9466         * sem_res.ads: Minor reformatting
9468         * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
9469         (PE_Current_Task_In_Entry_Body): New exception code
9470         (SE_Restriction_Violation): Removed, not used
9472         * a-except.ads:  Update comments.
9474         * types.h, types.ads: Add definition for Validity_Check
9475         (PE_Current_Task_In_Entry_Body): New exception code
9476         (SE_Restriction_Violation): Removed, not used
9478 2006-10-31  Thomas Quinot  <quinot@adacore.com>
9480         * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
9481         error status.
9483 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
9484             Jose Ruiz  <ruiz@adacore.com>
9486         * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
9487         part of Ada.Calendar: all subprogram raise Unimplemented.
9488         (Split_W_Offset): Temp function body, raising Unimplemented
9490         * a-calend.ads, a-calend-vms.ads: 
9491         Add imported variable Invalid_TZ_Offset used to designate targets unable
9492         to support time zones.
9493         (Unimplemented): Temporary function raised by the body of new
9494         subprograms below.
9495         (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
9496         unit provides handling of leap seconds and is used by the new Ada 2005
9497         packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
9498         (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
9499         version returns an extra value which is the offset to UTC.
9501         * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
9502         (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
9503         (Split_W_Offset): New function body.
9504         (Time_Of): When a date is close to UNIX epoch, compute the time for
9505         that date plus one day (that amount is later substracted after
9506         executing mktime) so there are no problems with time zone adjustments.
9508         * a-calend-mingw.adb: Remove Windows specific version no longer needed.
9510         * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
9511         a-catizo.ads, a-catizo.adb: New files.
9513         * impunit.adb: Add new Ada 2005 entries
9515         * sysdep.c: Add external variable __gnat_invalid_tz_offset.
9516         Rename all occurences of "__gnat_localtime_r" to
9517         "__gnat_localtime_tzoff".
9518         (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
9519         zone data and calculate the GMT offset.
9520         (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
9521         Use the field "tm_gmtoff" to extract the GMT offset.
9522         (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
9523         the external variable "timezone" to calculate the GMT offset.
9525 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
9526             Jose Ruiz  <ruiz@adacore.com>
9528         * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb, 
9529         s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads, 
9530         s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
9531         s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
9532         System.Any_Priority to a POSIX priority on the target.
9534         * system-linux-ia64.ads: 
9535         Extend range of Priority types on Linux to use the whole range made
9536         available by the system.
9538         * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
9539         function maps from System.Any_Priority to a POSIX priority on the
9540         target.
9541         (PTHREAD_PRIO_PROTECT): Set real value.
9542         (PTHREAD_PRIO_INHERIT): Now a function.
9543         (SIGCPUFAIL): New signal.
9544         (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
9545         are documented as reserved by the OS.
9547         * system-aix.ads: Use the full range of priorities provided by the
9548         system on AIX.
9550         * s-taprop-posix.adb: Call new function To_Target_Priority.
9551         (Set_Priority): Take into account Task_Dispatching_Policy and
9552         Priority_Specific_Dispatching pragmas when determining if Round Robin
9553         must be used for scheduling the task.
9555         * system-linux-x86_64.ads, system-linux-x86.ads, 
9556         system-linux-ppc.ads: Extend range of Priority types on Linux to use
9557         the whole range made available by the system.
9559         * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb, 
9560         s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb, 
9561         s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
9562         when deallocating the TCB in order to avoid potential references to
9563         deallocated data.
9564         (Set_Priority): Take into account Task_Dispatching_Policy and
9565         Priority_Specific_Dispatching pragmas when determining if Round Robin
9566         or FIFO within priorities must be used for scheduling the task.
9568         * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
9569         the Thread field (to be used internally by the run-time system) and the
9570         kernel-level task id in the LWP field (to be used by the debugger).
9571         (Create_Task): Reorganize to unify the calls to taskSpawn into a single
9572         instance, and propagate the current task options to the spawned task.
9573         (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
9574         (Initialize): Set Round Robin dispatching when the corresponding pragma
9575         is in effect.
9577 2006-10-31  Robert Dewar  <dewar@adacore.com>
9579         * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
9580         system-linux-hppa.ads, system-hpux-ia64.ads, 
9581         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads, 
9582         system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
9583         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
9584         system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads, 
9585         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
9586         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
9587         system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
9588         Default_Bit_Order) to kill constant condition warnings for references
9589         to this switch.
9591 2006-10-31  Vincent Celier  <celier@adacore.com>
9592             Eric Botcazou  <ebotcazou@adacore.com>
9594         * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
9595         mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
9596         mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
9597         Ext_To, when building the library file name
9599         * mlib-tgt-vxworks.adb: ditto.
9600         (Get_Target_Suffix): Add support for x86 targets.
9602         * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
9604         * mlib-tgt-darwin.adb: 
9605         Use Append_To, instead of Ext_To, when building the library file name
9606         (Flat_Namespace): New global variable.
9607         (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
9608         (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
9609         (Link_Shared_Libgcc): Delete.
9610         (Build_Dynamic_Library): Adjust for above changes.
9611         Use Opt package.
9612         (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
9614 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
9616         * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
9617         (Initialize): Add type conversions required by above change.
9619 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
9621         * s-osinte-vxworks.ads, s-osinte-vxworks.adb: 
9622         (getpid): New body for this function that uses the underlying taskIdSelf
9623         function for VxWorks 5 and VxWorks 6 in kernel mode.
9624         (unsigned_int): New type, modular to allow logical bit operations.
9625         (taskOptionsGet): New imported function.
9627         * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
9628         field to be compliant with the type used by the corresponding operating
9629         system primitive.
9631 2006-10-31  Pascal Obry  <obry@adacore.com>
9632             Eric Botcazou  <ebotcazou@adacore.com>
9633             Vincent Celier  <celier@adacore.com>
9635         * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
9636         ASCII version of the registry API. This is needed as the GNAT runtime
9637         is now UNICODE by default.
9638         Include version.h.
9639         (get_gcc_version): Do not hardcode the return value.
9640         (__gnat_file_time_name): On Windows properly set the default returned
9641         value to -1 which corresponds to Invalid_Time.
9642         (__gnat_fopen): New routine. A simple wrapper on all plateforms
9643          except on Windows where it does conversion for unicode support.
9644         (__gnat_freopen): Idem.
9645         (__gnat_locate_exec_on_path): If environment variable PATH does not
9646         exist, return a NULL pointer
9648         * adaint.h: (__gnat_fopen): Declare.
9649         (__gnat_freopen): Likewise.
9651         * mingw32.h (_tfreopen): Define this macro here for older MingW
9652         version.
9653         Activate the unicode support on platforms using a MingW runtime
9654         version 3.9 or newer.
9656         * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
9657         This is needed for proper unicode support on Windows.
9658         (freopen): Idem.
9660 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
9661             Nicolas Setton  <setton@adacore.com>
9662             Olivier Hainque  <hainque@adacore.com>
9663             Gary Dismukes  <dismukes@adacore.com>
9665         * gigi.h: (tree_code_for_record_type): Declare.
9666         (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
9667         (get_global_renaming_pointers): Rename to
9668         invalidate_global_renaming_pointers.
9669         (static_ctors): Delete.
9670         (static_dtors): Likewise.
9671         (gnat_write_global_declarations): Declare.
9672         (create_var_decl): Adjust descriptive comment to indicate that the
9673         subprogram may return a CONST_DECL node.
9674         (create_true_var_decl): Declare new function, similar to
9675         create_var_decl but forcing the creation of a VAR_DECL node.
9676         (get_global_renaming_pointers): Declare.
9677         (add_global_renaming_pointer): Likewise.
9679         * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
9681         * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
9682         tree before setting TREE_ADDRESSABLE for by-reference return mechanism
9683         processing.
9684         (gnat_to_gnu_entity): Remove From_With_Type from computation for
9685         imported_p.
9686         <E_Access_Type>: Use the Non_Limited_View as the full view of the
9687         designated type if the pointer comes from a limited_with clause.  Make
9688         incomplete designated type if it is in the main unit and has a freeze
9689         node.
9690         <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
9691         Underlying_Full_View similarly.  Return earlier if the full view already
9692         has an associated tree.
9693         (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
9694         (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
9695         (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
9696         reference type built for objects with an address clause.
9697         Use create_true_var_decl with const_flag set for
9698         DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
9699         TREE_READONLY set.
9700         (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
9701         for Character and Wide_Character types. This info is read by the
9702         dwarf-2 writer, and is needed to be able to use the command "ptype
9703         character" in the debugger.
9704         (gnat_to_gnu_entity): When generating a type representing
9705         a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
9706         so that debug writers can distinguish it from ordinary integers.
9707         (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
9708         addition to TREE_READONLY to assert the constantness of variables for
9709         elaboration purposes.
9710         (gnat_to_gnu_entity, subprogram cases): Change loops on formal
9711         parameters to call new Einfo function First_Formal_With_Extras.
9712         (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
9713         protected type with its corresponding discriminant, to obtain a usable
9714         declaration
9715         (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
9716         for a multiple elaboration of the "equivalent" type.
9717         (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
9718         into record_global_renaming_pointer.
9719         (gnat_to_gnu_entity) <E_Array_Type>: Do not force
9720         TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
9721         <E_Array_Subtype>: Likewise.
9722         (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
9723         incomplete subtypes and incomplete subtypes of incomplete types visible
9724         through a limited with clause.
9725         (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
9726         the base index type for the maximum size of the array only if they are
9727         constant.
9728         (gnat_to_gnu_entity, renaming object case): Do not wrap up the
9729         expression into a SAVE_EXPR if stabilization failed.
9731         * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
9732         a result decl into DECL_BY_REFERENCE on this decl, now what is expected
9733         by lower level compilation passes.
9734         (gnat_genericize): New function, lowering a function body to GENERIC.
9735         Turn the type of RESULT_DECL into a real reference type if the decl
9736         has been marked DECL_BY_REFERENCE, and adjust references to the latter
9737         accordingly.
9738         (gnat_genericize_r): New function. Tree walking callback for
9739         gnat_genericize.
9740         (convert_from_reference, is_byref_result): New functions. Helpers for
9741         gnat_genericize_r.
9742         (create_type_decl): Call gnat_pushdecl before calling
9743         rest_of_decl_compilation, to make sure that field TYPE_NAME of
9744         type_decl is properly set before calling the debug information writers.
9745         (write_record_type_debug_info): The heuristics which compute the
9746         alignment of a field in a variant record might not be accurate. Add a
9747         safety test to make sure no alignment is set to a smaller value than
9748         the alignment of the field type.
9749         (make_dummy_type): Use the Non_Limited_View as the underlying type if
9750         the type comes from a limited_with clause. Do not loop on the full view.
9751         (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
9752         (dummy_node_table): New global variable, moved from decl.c.
9753         (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
9754         (save_gnu_tree): Use above macros.
9755         (get_gnu_tree): Likewise.
9756         (present_gnu_tree): Likewise.
9757         (init_dummy_type): New function, moved from decl.c. Use above macros.
9758         (make_dummy_type): Likewise.
9759         (tree_code_for_record_type): New function extracted from make_dummy_type
9760         (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
9761         (static_ctors): Change it to a vector, make static.
9762         (static_dtors): Likewise.
9763         (end_subprog_body): Adjust for above change.
9764         (build_global_cdtor): Moved from trans.c.
9765         (gnat_write_global_declarations): Emit global constructor and
9766         destructor, and call cgraph_optimize before emitting debug info for
9767         global declarations.
9768         (global_decls): New global variable.
9769         (gnat_pushdecl): Store the global declarations in global_decls, for
9770         later use.
9771         (gnat_write_global_declarations): Emit debug information for global
9772          declarations.
9773         (create_var_decl_1): Former create_var_decl, with an extra argument to
9774          state whether the creation of a CONST_DECL is allowed.
9775         (create_var_decl): Behavior unchanged. Now a wrapper around
9776         create_var_decl_1 allowing CONST_DECL creation.
9777         (create_true_var_decl): New function, similar to create_var_decl but
9778         forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
9779         (create_field_decl): Do not always mark the field as addressable
9780         if its type is an aggregate.
9781         (global_renaming_pointers): New static variable.
9782         (add_global_renaming_pointer): New function.
9783         (get_global_renaming_pointers): Likewise.
9785         * misc.c (gnat_dwarf_name): New function.
9786         (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
9787         (gnat_post_options): Add comment about structural alias analysis.
9788         (gnat_parse_file): Do not call cgraph_optimize here.
9789         (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
9791         * trans.c (process_freeze_entity): Don't abort if we already have a
9792         non dummy GCC tree for a Concurrent_Record_Type, as it might
9793         legitimately have been elaborated while processing the associated
9794         Concurrent_Type prior to this explicit freeze node.
9795         (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
9796         exception handler volatile if it is of variable size.
9797         (process_type): Remove bypass for types coming from a limited_with
9798         clause.
9799         (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
9800         actual, convert the corresponding gnu_actual to the real destination
9801         type when necessary.
9802         (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
9803         originally TREE_READONLY but whose elaboration cannot be performed
9804         statically.
9805         Part of fix for F504-021.
9806         (tree_transform, subprogram cases): Change loops on formal parameters to
9807         call new Einfo function First_Formal_With_Extras.
9808         (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
9809         stemming from type conversion for the lhs.
9810         (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
9811         number of bits per unit for components of records.
9812         (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
9813         (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
9814         with At_End_Proc after the SJLJ EH cleanup.
9815         (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
9816         compilation unit.
9817         (elaborate_all_entities): Do not retest type_annotate_only.
9818         (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
9819         result type of an abstract subprogram, which may be an itype associated
9820         with an anonymous access result (related to AI-318-02).
9821         (build_global_cdtor): Move to utils.c.
9822         (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
9823         this choice is not a null tree nor an integer constant.
9824         (gigi): Run unshare_save_expr via walk_tree_without_duplicates
9825         on the body of elaboration routines instead of mark_unvisited.
9826         (add_stmt): Do not mark the tree.
9827         (add_decl_expr): Tweak comment.
9828         (mark_unvisited): Delete.
9829         (unshare_save_expr): New static function.
9830         (call_to_gnu): Issue an error when making a temporary around a
9831         procedure call because of non-addressable actual parameter if the
9832         type of the formal is by_reference.
9833         (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
9834         after building the elaboration routine.
9836 2006-10-31  Bob Duff  <duff@adacore.com>
9838         * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
9839         as finalization-started, so we can raise Program_Error on 'new'.
9841         * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
9842         collection has already started.
9844         * s-finimp.ads (Collection_Finalization_Started): Added new special
9845         flag value for indicating that a collection's finalization has started.
9847         * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
9848         create a task whose master has already waited for dependent tasks.
9850 2006-10-31  Robert Dewar  <dewar@adacore.com>
9852         * lib.adb, lib.ads: (In_Predefined_Unit): New functions
9854         * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads, 
9855         a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads, 
9856         a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads, 
9857         a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads, 
9858         a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads, 
9859         a-except-2005.ads: Add pragma Preelaborable_Warning
9861 2006-10-31  Robert Dewar  <dewar@adacore.com>
9862             Jose Ruiz  <ruiz@adacore.com>
9864         * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
9866         * ali.adb (Get_Name): Properly handle scanning of wide character names
9867         encoded with brackets notation.
9868         (Known_ALI_Lines): Add S lines to this list.
9869         (Scan_ALI): Acquire S (priority specific dispatching) lines.
9870         New flag Elaborate_All_Desirable in unit table
9872         * ali.ads (Priority_Specific_Dispatching): Add this range of
9873         identifiers to be used for Priority_Specific_Dispatching table entries.
9874         (ALIs_Record): Add First_Specific_Dispatching and
9875         Last_Specific_Dispatching that point to the first and last entries
9876         respectively in the priority specific dispatching table for this unit.
9877         (Specific_Dispatching): Add this table for storing each S (priority
9878         specific dispatching) line encountered in the input ALI file.
9879         New flag Elaborate_All_Desirable in unit table
9881         * bcheck.adb: (Check_Configuration_Consistency): Add call to
9882         Check_Consistent_Dispatching_Policy.
9883         (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
9884         verifying that the use of Priority_Specific_Dispatching,
9885         Task_Dispatching_Policy, and Locking_Policy is consistent across the
9886         partition.
9888         * bindgen.adb: (Public_Version_Warning): function removed.
9889         (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
9890         required information from ALI files in order to initialize the table
9891         containing the specific dispatching policy.
9892         (Gen_Adainit_Ada): Generate the variables required for priority specific
9893         dispatching entries (__gl_priority_specific_dispatching and
9894         __gl_num_specific_dispatching).
9895         (Gen_Adainit_C): Generate the variables required for priority specific
9896         dispatching entries (__gl_priority_specific_dispatching and
9897         __gl_num_specific_dispatching).
9898         (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
9899         pragma entries.
9900         (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
9901         (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
9902         (Tab_To): Removed.
9903         (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
9904         a call to gnat_set_globals.
9905         Generate a string containing settings from
9906         Priority_Specific_Dispatching pragma entries.
9907         (Gen_Object_Files_Options): Do not include the runtime libraries when
9908         pragma No_Run_Time is specified.
9910         * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
9911         consistency with s-intman-posix.adb.
9912         (__gnat_error_handler, case FreeBSD): Account for the fact that the
9913         handler is installed with SA_SIGINFO.
9914         (__gnat_adjust_context_for_raise, FreeBSD case): New function for
9915         FreeBSD ZCX support, copied from Linux version.
9916         Add MaRTE-specific definitions for the linux target. Redefine sigaction,
9917         sigfillset, and sigemptyset so the routines defined by MaRTE.
9918         (__gl_priority_specific_dispatching): Add this variable that stores the
9919         string containing priority specific dispatching policies in the
9920         partition.
9921         (__gl_num_specific_dispatching): Add this variable that indicates the
9922         highest priority for which a priority specific dispatching pragma
9923         applies.
9924         (__gnat_get_specific_dispatching): Add this routine that returns the
9925         priority specific dispatching policy, as set by a
9926         Priority_Specific_Dispatching pragma appearing anywhere in the current
9927         partition. The input argument is the priority number, and the result
9928         is the upper case first character of the policy name.
9929         (__gnat_set_globals): Now a dummy function.
9930         (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
9931         mechargs instead of sigargs, as the latter can be retrieved from the
9932         former and sigargs is not what we want on ia64.
9933         (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
9934         mechargs argument.
9935         (__gnat_adjust_context_for_raise, ia64-vms): New function.
9936         (tasking_error): Remove unused symbol.
9937         (_abort_signal): Move this symbol to the IRIX specific part since this
9938         is the only target that uses this definition.
9939         (Check_Abort_Status): Move this symbol to the IRIX specific part since
9940         this is the only target that uses this definition.
9941         (Lock_Task): Remove unused symbol.
9942         (Unlock_Task): Remove unused symbol.
9944         * lib-writ.adb (Write_ALI): Output new S lines for
9945         Priority_Specific_Dispatching pragmas.
9946         Implement new flag BD for elaborate body desirable
9948         * lib-writ.ads: Document S lines for Priority Specific Dispatching.
9949         (Specific_Dispatching): Add this table for storing the entries
9950         corresponding to Priority_Specific_Dispatching pragmas.
9951         Document new BD flag for elaborate body desirable
9953         * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
9954         of known pragmas.
9956 2006-10-31  Javier Miranda  <miranda@adacore.com>
9958         * a-tags.ads, a-tags.adb: 
9959         (Predefined_DT): New function that improves readability of the code.
9960         (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
9961         Inherit_DT): Use the new function Predefined_DT to improve code
9962         readability.
9963         (Register_Interface_Tag): Update assertion.
9964         (Set_Interface_Table): Update assertion.
9965         (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
9966         determining progenitor interfaces in Tags.
9967         (Inherit_CPP_DT): New subprogram.
9969         * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
9970         analysis of the thunk code.
9971         (Expand_Interface_Conversion): Handle run-time conversion of
9972         access to class wide types.
9973         (Expand_Dispatching_Call): When generating the profile for the
9974         subprogram itype for a dispatching operation, properly terminate the
9975         formal parameters chaind list (set the Next_Entity of the last formal
9976         to Empty).
9977         (Collect_All_Interfaces): Removed. This routine has been moved to
9978         sem_util and renamed as Collect_All_Abstract_Interfaces.
9979         (Set_All_DT_Position): Hidden entities associated with abstract
9980         interface primitives are not taken into account in the check for
9981         3.9.3(10); this check is done with the aliased entity.
9982         (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
9983         interfacing with CPP by default.
9984         (Expand_Interface_Conversion): Add missing support for static conversion
9985         from an interface to a tagged type.
9986         (Collect_All_Interfaces): Add new out formal containing the list of
9987         abstract interface types to cleanup the subprogram Make_DT.
9988         (Make_DT): Update the code to generate the table of interfaces in case
9989         of abstract interface types.
9990         (Is_Predefined_Dispatching_Alias): New function that returns true if
9991         a primitive is not a predefined dispatching primitive but it is an
9992         alias of a predefined dispatching primitive.
9993         (Make_DT): If the ancestor of the type is a CPP_Class and we are
9994         compiling under full ABI compatibility mode we avoid the generation of
9995         calls to run-time services that fill the dispatch tables because under
9996         this mode we currently inherit the dispatch tables in the IP subprogram.
9997         (Write_DT): Emit an "is null" indication for a null procedure primitive.
9998         (Expand_Interface_Conversion): Use an address as the type of the formal
9999         of the internally built function that handles the case in which the
10000         target type is an access type.
10002 2006-10-31  Robert Dewar  <dewar@adacore.com>
10004         * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
10006 2006-10-31  Robert Dewar  <dewar@adacore.com>
10008         * bindusg.ads, bindusg.adb:
10009         Change to package and rename procedure as Display, which
10010         now ensures that it only outputs usage information once.
10012 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
10014         * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
10015         using RTPs.
10017         * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
10018         when using RTPs.
10020 2006-10-31  Robert Dewar  <dewar@adacore.com>
10021             Ed Schonberg  <schonberg@adacore.com>
10023         * treepr.adb: Use new subtype N_Membership_Test
10025         * checks.ads, checks.adb: Add definition for Validity_Check
10026         (Range_Or_Validity_Checks_Suppressed): New function
10027         (Ensure_Valid): Test Validity_Check suppressed
10028         (Insert_Valid_Check): Test Validity_Check suppressed
10029         (Insert_Valid_Check): Preserve Do_Range_Check flag
10030         (Validity_Check_Range): New procedure
10031         (Expr_Known_Valid): Result of membership test is always valid
10032         (Selected_Range_Checks): Range checks cannot be applied to discriminants
10033         by themselves. Disabling those checks must also be done for task types,
10034         where discriminants may be used for the bounds of entry families.
10035         (Apply_Address_Clause_Check): Remove side-effects if address expression
10036         is non-static and is not the name of a declared constant.
10037         (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
10038         Code cleanup and new error messages.
10039         (Enable_Range_Check): Test for some cases of suppressed checks
10040         (Generate_Index_Checks): Suppress index checks if index checks are
10041         suppressed for array object or array type.
10042         (Apply_Selected_Length_Checks): Give warning for compile-time detected
10043         length check failure, even if checks are off.
10044         (Ensure_Valid): Do not generate a check on an indexed component whose
10045         prefix is a packed boolean array.
10046         * checks.adb: (Alignment_Checks_Suppressed): New function
10047         (Apply_Address_Clause_Check): New procedure, this is a completely
10048         rewritten replacement for Apply_Alignment_Check
10049         (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
10050         we request a discriminal value only in case of discriminants.
10051         (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
10052         assignments where the target subtype is unconstrained and the target
10053         object is a parameter or dereference (other aliased cases are known
10054         to be unconstrained).
10056 2006-10-31  Robert Dewar  <dewar@adacore.com>
10058         * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
10059         prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
10060         vms_conv.adb: Fix bad table increment values (much too small)
10062         * table.adb (Realloc): Make sure we get at least some new elements
10063         Defends against silly small values for table increment
10065 2006-10-31  Robert Dewar  <dewar@adacore.com>
10066             Ed Schonberg  <schonberg@adacore.com>
10067             Bob Duff  <duff@adacore.com>
10069         * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
10070         entities. Move other fields around to make this possible
10071         (Is_Derived_Type): Add missing call to Is_Type.
10072         (Extra_Formals): New function for subprograms, entries, subprogram
10073         types.
10074         (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
10075         (First_Formal_With_Extras): New function for subprogs, entries, subp
10076         types.
10077         (Write_Field28_Name): New procedure for node display of "Extra_Formals".
10078         Add node information for E_Return_Statement.
10079         (Elaborate_Body_Desirable): New flag
10080         (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
10081         to be Is_Inherently_Limited_Type, because return-by-reference has
10082         no meaning in Ada 2005.
10083         (E_Return_Statement): New entity kind.
10084         (Return_Applies_To): Field of E_Return_Statement.
10085         (Is_Return_Object): New flag in object entities.
10086         (Is_Dynamic_Scope): Make it True for E_Return_Statement.
10087         (Must_Have_Preelab_Init): New flag
10088         (Known_To_Have_Preelab_Init): New flag
10089         (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
10090         (Is_Visible_Formal): New flag on entities in formal packages.
10091         (Low_Bound_Known): New flag
10092         (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
10093         Incomplete_Kind.
10094         (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
10095         output when Id is an incomplete subtype.
10097 2006-10-31  Robert Dewar  <dewar@adacore.com>
10099         * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
10100         Avoid abbreviation Creat
10101         (Finalize): List all sources in extended mail source if -gnatl
10102         switch is active.
10103         Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
10104         (Finalize): Implement new -gnatl=xxx switch to output listing to file
10105         (Set_Specific_Warning_On): New procedure
10106         (Set_Specific_Warning_Off): New procedure
10107         Add implementation of new insertion \\
10108         (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
10109         (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
10110         types.
10111         (Error_Msg_Internal): Make sure that we set Last_Killed to
10112         True when a message from another package is suppressed.
10113         Implement insertion character ~ (insert string)
10114         (First_Node): Minor adjustments to get better placement.
10116         * frontend.adb: 
10117         Implement new -gnatl=xxx switch to output listing to file
10119         * gnat1drv.adb: 
10120         Implement new -gnatl=xxx switch to output listing to file
10122         * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
10123         (Commands_To_Stdout): New flag
10124         Implement new -gnatl=xxx switch to output listing to file
10125         New switch Dump_Source_Text
10126         (Warn_On_Deleted_Code): New warning flag for -gnatwt
10127         Define Error_Msg_Line_Length
10128         (Warn_On_Assumed_Low_Bound): New switch
10130         * osint.ads, osint.adb
10131         (Normalize_Directory_Name): Fix bug.
10132         Implement new -gnatl=xxx switch to output listing to file
10133         (Concat): Removed, replaced by real concatenation
10134         Make use of concatenation now allowed in compiler
10135         (Executable_Prefix.Get_Install_Dir): First get the full path, so that
10136         we find the 'lib' or 'bin' directory even when the tool has been
10137         invoked with a relative path.
10138         (Executable_Name): New function taking string parameters.
10140         * osint-c.ads, osint-c.adb: 
10141         Implement new -gnatl=xxx switch to output listing to file
10143         * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
10145         * switch-c.adb: 
10146         Implement new -gnatl=xxx switch to output listing to file
10147         Recognize new -gnatL switch
10148         (no longer keep in old warning about old style usage)
10149         Use concatenation to simplify code
10150         Recognize -gnatjnn switch
10151         (Scan_Front_End_Switches): Clean up handling of -gnatW
10152         (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
10154 2006-10-31  Robert Dewar  <dewar@adacore.com>
10156         * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
10157         (Set_Specific_Warning_Off): New procedure
10158         (Warning_Specifically_Suppressed): New function
10159         (Validate_Specific_Warnings): New procedure
10160         (Output_Msg_Text): Complete rewrite to support -gnatjnn
10162         * err_vars.ads: Implement insertion character ~ (insert string)
10164 2006-10-31  Bob Duff  <duff@adacore.com>
10165             Ed Schonberg  <schonberg@adacore.com>
10167         * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
10168         the parent part is a build-in-place function call, generate assignments.
10169         (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
10170         are build-in-place function calls.
10171         (Replace_Self_Reference): New subsidiary of
10172         Make_OK_Assignment_Statement, to replace an access attribute that is a
10173         self-reference into an access to the appropriate component of the
10174         target object. Generalizes previous mechanism to handle self-references
10175         nested at any level.
10176         (Is_Self_Referential_Init): Remove, not needed.
10177         (Is_Self_Referential_Init): New predicate to simplify handling of self
10178         referential components in record aggregates.
10179         (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
10180         check for presence of entity before checking for self-reference.
10181         (Has_Default_Init_Comps): Return True if a component association is a
10182         self-reference to the enclosing type, which can only come from a
10183         default initialization.
10184         (Make_OK_Assignment_Statement): If the expression is of the form
10185         Typ'Acc, where Acc is an access attribute, the expression comes from a
10186         default initialized self-referential component.
10187         (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
10188         that has been derived from several abstract interfaces we must also
10189         initialize the tags of the secondary dispatch tables.
10191 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
10192             Thomas Quinot  <quinot@adacore.com>
10193             Javier Miranda  <miranda@adacore.com>
10194             Robert Dewar  <dewar@adacore.com>
10196         * exp_attr.adb: 
10197         (Expand_Access_To_Protected_Op): If the context indicates that an access
10198         to a local operation may be transfered outside of the object, create an
10199         access to the wrapper operation that must be used in an external call.
10200         (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
10201         target, pass the Valid attribute applied to a floating-point prefix on
10202         to the back end without expansion.
10203         (Storage_Size): Use the new run-time function Storage_Size to retrieve
10204         the allocated storage when it is specified by a per-object expression.
10205         (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
10206         Nothing to do here, the attribute has been rewritten during semantic
10207         analysis.
10208         (Expand_Attribute_Reference): Handle expansion of the new Priority
10209         attribute
10210         (Find_Fat_Info): Handle case of universal real
10211         (Expand_Access_To_Protected_Op): Fix use of access to protected
10212         subprogram from inside the body of a protected entry.
10213         (Expand_Access_To_Protected_Op): Common procedure for the expansion of
10214         'Access and 'Unrestricted_Access, to transform the attribute reference
10215         into a fat pointer.
10216         (Is_Constrained_Aliased_View): New predicate to help determine whether a
10217         subcomponent's enclosing variable is aliased with a constrained subtype.
10218         (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
10219         test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
10220         an aliased prefix must be known to be constrained in order to use True
10221         for the attribute value, and now it's possible for some aliased views
10222         to be unconstrained.
10224 2006-10-31  Robert Dewar  <dewar@adacore.com>
10226         * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
10227         (Expand_Entity_Reference): Correct error of not handling subprogram
10228         formals in current_value processing.
10230 2006-10-31  Javier Miranda  <miranda@adacore.com>
10231             Robert Dewar  <dewar@adacore.com>
10232             Ed Schonberg  <schonberg@adacore.com>
10233             Gary Dismukes  <dismukes@adacore.com>
10235         * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
10236         register in the final list objects containing class-wide interfaces;
10237         otherwise we incorrectly register the tag of the interface in the final
10238         list.
10239         (Make_Controlling_Function_Wrappers): Add missing barrier to do not
10240         generate the wrapper if the parent primitive is abstract. This is
10241         required to report the correct error message.
10242         (Expand_N_Subtype_Indication): Do validity checks on range
10243         (Clean_Task_Names): If an initialization procedure includes a call to
10244         initialize a task (sub)component, indicate that the procedure will use
10245         the secondary stack.
10246         (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
10247         compatibility for interfacing with CPP by default.
10248         (Expand_N_Object_Declaration): Only build an Adjust call when the
10249         object's type is a nonlimited controlled type.
10250         * exp_ch3.adb: Add with and use of Exp_Ch6.
10251         (Expand_N_Object_Declaration): Check for object initialization that is a
10252         call to build-in-place function and apply Make_Build_In_Place_Call_In_
10253         Object_Declaration to the call.
10254         (Freeze_Type): When the designated type of an RACW was not frozen at the
10255         point where the RACW was declared, validate the primitive operations
10256         with respect to E.2.2(14) when it finally is frozen.
10257         (Build_Initialization_Call,Expand_Record_Controller): Rename
10258         Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
10259         return-by-reference has no meaning in Ada 2005.
10260         (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
10261         to register tag of the immediate ancestor interfaces in the
10262         run-time structure.
10263         (Init_Secondary_Tags): Moved to the specification to allow the
10264         initialization of extension aggregates with abstract interfaces.
10265         (Build_Master_Renaming): Make public, for use by function declarations
10266         whose return type is an anonymous access type.
10267         (Freeze_Record_Type): Replace call to Insert_List_Before by call to
10268         Insert_List_Before_And_Analyze after the generation of the specs
10269         associated with null procedures.
10270         (Expand_Tagged_Root): Update documentation in its specification.
10271         (Init_Secondary_Tags): Update documentation.
10272         (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
10273         tibility mode and the immediate ancestor is a CPP_Pragma tagged type
10274         then generate code to inherit the contents of the dispatch table
10275         directly from the ancestor.
10276         (Expand_Record_Controller): Insert controller component after tags of
10277         implemented interfaces.
10278         (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
10279         create null procedure overridings when null procedures are inherited
10280         from interfaces.
10281         (Make_Null_Procedure_Specs): New procedure to generate null procedure
10282         declarations for overriding null primitives inherited from interfaces.
10283         (Is_Null_Interface_Procedure): New function in
10284         Make_Null_Procedure_Specs.
10285         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
10286         immediate ancestor of a tagged type is an abstract interface type we
10287         must generate the specification of the predefined primitives associated
10288         with controlled types (because the dispatch table of the ancestor is
10289         null and hence these entries cannot be inherited). This is required to
10290         elaborate well the dispatch table.
10292 2006-10-31  Javier Miranda  <miranda@adacore.com>
10293             Ed Schonberg  <schonberg@adacore.com>
10294             Bob Duff  <duff@adacore.com>
10295             Gary Dismukes  <dismukes@adacore.com>
10296             Robert Dewar  <dewar@adacore.com>
10298         * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
10299         conversion.
10300         (Expand_N_In): Do validity checks on range
10301         (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
10302         (Expand_N_Allocator): For "new T", if the object is constrained by
10303         discriminant defaults, allocate the right amount of memory, rather than
10304         the maximum for type T.
10305         (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
10306         when the allocator is initialized by a build-in-place call, since the
10307         allocator is already rewritten as a reference to the function result,
10308         and this prevents an unwanted duplication of the function call.
10309         Add with and use of Exp_Ch6.
10310         (Expand_Allocator_Expresssion): Check for an allocator whose expression
10311         is a call to build-in-place function and apply
10312         Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
10313         untagged designated types).
10314         (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
10315         optimization if source or target is biased.
10316         (Expand_N_Allocator): Add comments for case of an allocator within a
10317         function that returns an anonymous access type designating tasks.
10318         (Expand_N_Allocator): apply discriminant checks for access
10319         discriminants of anonymous access types (AI-402, AI-416)
10321 2006-10-31  Bob Duff  <duff@adacore.com>
10322             Robert Dewar  <dewar@adacore.com>
10323             Gary Dismukes  <dismukes@adacore.com>
10324             Ed Schonberg  <schonberg@adacore.com>
10326         * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
10328         * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
10329         (Expand_N_Assignment_Statement): Call
10330         Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
10331         build-in-place function call. Currently, this can happen only for
10332         assignments that come from aggregates.
10333         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
10334         in order to alleviate the upward compatibility introduced by AI-318.
10335         (Expand_N_Extended_Return_Statement): Add support for handling the
10336         return object as a build-in-place result.
10337         (Expand_Non_Function_Return): Implement simple return statements nested
10338         within an extended return.
10339         (Enable_New_Return_Processing): Turn on the new processing of return
10340         statements.
10341         (Expand_Non_Function_Return): For a return within an extended return,
10342         don't raise Program_Error, because Sem_Ch6 now gives a warning.
10343         (Expand_N_Extended_Return_Statement): Implement AI-318
10344         (Expand_Simple_Function_Return): Ditto.
10345         (Expand_N_If_Statement): Handle new -gnatwt warning
10346         (Expand_N_Case_Statement): Handle new -gnatwt warning
10347         (Expand_N_Assignment): Handle assignment to the Priority attribute of
10348         a protected object.
10349         (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
10350         validity checking of assignments to elementary record components.
10351         (Expand_N_Return_Statement): return Class Wide types on the secondary
10352         stack independantly of their controlled status since with HIE runtimes,
10353         class wide types are not potentially controlled anymore.
10355         * expander.adb (Expand): Add case for new N_Extended_Return_Statement
10356         node kind.
10358         * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
10359         Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
10360         it expects a block, procedure, or task. The return statement will get
10361         turned into a block, and Expand_Cleanup_Actions will happen then.
10363 2006-10-31  Robert Dewar  <dewar@adacore.com>
10364             Ed Schonberg  <schonberg@adacore.com>
10365             Bob Duff  <duff@adacore.com>
10366             Gary Dismukes  <dismukes@adacore.com>
10368         * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
10369         capability.
10370         (Expand_Inlined_Call): Tagged types are by-reference types, and
10371         therefore should be replaced by a renaming declaration in the expanded
10372         body, as is done for limited types.
10373         (Expand_Call): If this is a call to a function with dispatching access
10374         result, propagate tag from context.
10375         (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
10376         CPP by default.
10377         (Make_Build_In_Place_Call_In_Assignment): New procedure to do
10378         build-in-place when the right-hand side of an assignment is a
10379         build-in-place function call.
10380         (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
10381         of the explicit dereference of the allocator to the result subtype of
10382         the build-in-place function. This is needed to satisfy type checking
10383         in cases where the caller's return object is created by an allocator for
10384         a class-wide access type and the type named in the allocator is a
10385         specific type.
10386         (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
10387         conversion of the reference to the declared object to the result subtype
10388         of the build-in-place function. This is needed to satisfy type checking
10389         in cases where the declared object has a class-wide type. Also, in the
10390         class-wide case, change the type of the object entity to the specific
10391         result subtype of the function, to avoid passing a class-wide object
10392         without explicit initialization to the back end.
10393         (Register_Interface_DT_Entry): Moved outside the body of
10394         Freeze_Subprogram because this routine is now public; it is called from
10395         Check_Dispatching_Overriding to handle late overriding of abstract
10396         interface primitives.
10397         (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
10398         adding an implicit access actual on a call to a build-in-place function.
10399         (Expand_Actuals): Test for an actual parameter that is a call to a
10400         build-in-place function and apply
10401         Make_Build_In_Place_Call_In_Anonymous_Context to the call.
10402         (Is_Build_In_Place_Function): New function to determine whether an
10403         entity is a function whose calls should be handled as build-in-place.
10404         (Is_Build_In_Place_Function_Call): New function to determine whether an
10405         expression is a function call that should handled as build-in-place.
10406         (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
10407         calls to build-in-place functions as the initialization of an allocator.
10408         (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
10409         handling calls to build-in-place functions in contexts that do not
10410         involve init of a separate object (for example, actuals of subprogram
10411         calls).
10412         (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
10413         handling calls to build-in-place functions as the initialization of an
10414         object declaration.
10415         (Detect_Infinite_Recursion): Add explicit parameter Process to
10416         instantiation of Traverse_Body to avoid unreferenced warning.
10417         (Check_Overriding_Inherited_Interfaces): Removed.
10418         (Register_Interface_DT_Entry): Code cleanup.
10419         (Register_Predefined_DT_Entry): Code cleanup.
10420         (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
10421         inlined statements if within a transient scope.
10422         (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
10423         formal parameters with occurrences of actuals in inlined body, establish
10424         visibility on the proper view of the actual's subtype for the body's
10425         context.
10426         (Freeze_Subprogram): Do nothing if we are compiling under full ABI
10427         compatibility mode and we have an imported CPP subprogram because
10428         for now we assume that imported CPP primitives correspond with
10429         objects whose constructor is in the CPP side (and therefore we
10430         don't need to generate code to register them in the dispatch table).
10431         (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
10432         aligned selected component.
10433         (Add_Call_By_Copy_Node): Add missing code to handle the case in which
10434         the actual of an in-mode parameter is a type conversion.
10435         (Expand_Actuals): If the call does not come from source and the actual
10436         is potentially misaligned, let gigi handle it rather than rejecting the
10437         (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
10438         Class Wide types as returning by reference independantly of their
10439         controlled status since with HIE runtimes class wide types are not
10440         potentially controlled anymore.
10442 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
10444         * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
10445         references that are private components of the protected object.
10446         (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
10447         (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
10448         instantiation to deal with warnings.
10449         (Initialize_Protection): If expression for priority is non-static, use
10450         System_Priority as its expected type, in case the expression has not
10451         been analyzed yet.
10453 2006-10-31  Robert Dewar  <dewar@adacore.com>
10455         * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
10456         initialization of Homonym_Len.
10457         (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
10458         names from fully qualified name. Fixes problem of duplicate
10459         external names differing only in the presence of such a block name.
10461 2006-10-31  Thomas Quinot  <quinot@adacore.com>
10462             Pablo Oliveira  <oliveira@adacore.com>
10464         * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
10465         subprogram Ids, even if they are not yet assigned.
10466         (Build_Subprogram_Id): It is now this function that will take care of
10467         calling Assign_Subprogram_Ids if necessary.
10468         (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
10469         should be done only once they are assigned.
10470         (Build_From_Any_Function, case of tagged types): Add missing call to
10471         Allocate_Buffer.
10472         (Corresponding_Stub_Type): New subprogram. Returns the associated stub
10473         type for an RACW type.
10474         (Add_RACW_Features): When processing an RACW declaration for which the
10475         designated type is already frozen, enforce E.2.2(14) rules immediately.
10476         (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
10477         special reordering of controlling formals.
10479         * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
10480         associated stub type for an RACW type.
10482 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
10484         * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
10485         fixed-point operations in an integer context, i.e. as operands of a
10486         conversion to an integer type, indicate that result must be rounded.
10488 2006-10-31  Robert Dewar  <dewar@adacore.com>
10490         * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
10491         cases, pass the encoding method, since it is now required by the run
10492         time.
10494         * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
10495         assumption that Str'First = 1.
10496         (Value_Wide_Character): Takes EM (encoding method) parameter and passes
10497         it on to the Value_Wide_Wide_Character call.
10498         (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
10499         properly handles a string of the form quote-encoded_wide_char-quote.
10501         * s-wchcnv.adb: Minor reformatting
10503 2006-10-31  Javier Miranda  <miranda@adacore.com>
10505         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
10506         run-time membership test to ensure that the constructed object
10507         implements the target abstract interface.
10509 2006-10-31  Robert Dewar  <dewar@adacore.com>
10511         * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
10512         Machine_Attribute pragma internally to implement the user pragma.
10513         Add processing for pragma Interface so that it is now completely
10514         equivalent to pragma Import.
10516         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
10517         so that it can be applied to all entities, including record components
10518         and enumeration literals.
10519         (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
10520         priority ranges are correct, verify compatibility against task
10521         dispatching and locking policies, and if everything is correct an entry
10522         is added to the table containing priority specific dispatching entries
10523         for this compilation unit.
10524         (Delay_Config_Pragma_Analyze): Delay processing
10525         Priority_Specific_Dispatching pragmas because when processing the
10526         pragma we need to access run-time data, such as the range of
10527         System.Any_Priority.
10528         (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
10529         Allow pragma Unreferenced as a context item
10530         Add pragma Preelaborable_Initialization
10531         (Analyze_Pragma, case Interface): Interface is extended so that it is
10532         now syntactically and semantically equivalent to Import.
10533         (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
10534         insertion characters.
10535         Add handling for Pragma_Wide_Character_Encoding
10536         (Process_Restrictions_Restriction_Warnings): Ensure that a warning
10537         never supercedes a real restriction, and that a real restriction
10538         always supercedes a warning.
10539         (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
10540         appropriate form.
10542 2006-10-31  Bob Duff  <duff@adacore.com>
10543             Ed Schonberg  <schonberg@adacore.com>
10544             Robert Dewar  <dewar@adacore.com>
10546         * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
10547         Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
10548         Is_Inherently_Limited_Type, because return-by-reference has no meaning
10549         in Ada 2005.
10550         (Find_Node_To_Be_Wrapped): Use new method of determining the result
10551         type of the function containing a return statement, because the
10552         Return_Type field was removed. We now use the Return_Applies_To field.
10554         * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
10555         (Build_Task_Image_Decl): If procedure is not called from an
10556         initialization procedure, indicate that function that builds task name
10557         uses the sec. stack. Otherwise the enclosing initialization procedure
10558         will carry the indication.
10559         (Insert_Actions): Remove N_Return_Object_Declaration. We now use
10560         N_Object_Declaration instead.
10561         (Kill_Dead_Code): New interface to implement -gnatwt warning for
10562         conditional dead code killed, and change implementation accordingly.
10563         (Insert_Actions): Add N_Return_Object_Declaration case.
10564         Correct comment to mention N_Extension_Aggregate node.
10565         (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
10566         attempts to save information for global variables which cannot be
10567         safely tracked.
10568         (Get_Current_Value_Condition): Handle conditions the other way round
10569         (constant on left). Also handle right operand of AND and AND THEN
10570         (Set_Current_Value_Condition): Corresponding changes
10571         (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
10572         (Get_Current_Value_Condition): Handle simple boolean operands
10573         (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
10574         (Get_Current_Value_Condition): If the variable reference is within an
10575         if-statement, does not appear in the list of then_statments, and does
10576         not come from source, treat it as being at unknown location.
10577         (Get_Current_Value_Condition): Enhance to allow while statements to be
10578         processed as well as if statements.
10579         (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
10580         come from source.
10581         (OK_To_Do_Constant_Replacement): Allow constant replacement within body
10582         of loop. This is safe now that we fixed Kill_Current_Values.
10583         (OK_To_Do_Constant_Replacement): Check whether current scope is
10584         Standard, before examining outer scopes.
10586 2006-10-31  Vincent Celier  <celier@adacore.com>
10588         * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
10589         When True, apply VMS treatment to children of packages A, G, I and S.
10590         For F320-016
10592         * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
10594 2006-10-31  Robert Dewar  <dewar@adacore.com>
10595             Ed Schonberg  <schonberg@adacore.com>
10597         * freeze.adb: Add handling of Last_Assignment field
10598         (Warn_Overlay): Supply missing continuation marks in error msgs
10599         (Freeze_Entity): Add check for Preelaborable_Initialization
10601         * g-comlin.adb: Add Warnings (Off) to prevent new warning
10603         * g-expect.adb: Add Warnings (Off) to prevent new warning
10605         * lib-xref.adb: Add handling of Last_Assignment field
10606         (Generate_Reference): Centralize handling of pragma Obsolescent here
10607         (Generate_Reference): Accept an implicit reference generated for a
10608         default in an instance.
10609         (Generate_Reference): Accept a reference for a node that is not in the
10610         main unit, if it is the generic body corresponding to an subprogram
10611         instantiation.
10613         * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
10615         * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
10616         -gnatwq/Q.
10617         (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
10618         exception handler.
10619         (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
10620         use clauses, to avoid messages on packages used to qualify, and also
10621         to avoid messages from obsolescent units.
10622         (Warn_On_Useless_Assignments): Don't generate messages for imported
10623         and exported variables.
10624         (Warn_On_Useless_Assignments): New procedure
10625         (Output_Obsolescent_Entity_Warnings): New procedure
10626         (Check_Code_Statement): New procedure
10628         * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
10629         Change name Is_Ada_2005 to Is_Ada_2005_Only
10630         (Last_Assignment): New field for useless assignment warning
10632 2006-10-31  Olivier Hainque  <hainque@adacore.com>
10634         * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
10635         closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
10637 2006-10-31  Bob Duff  <duff@adacore.com>
10638             Robert Dewar  <dewar@adacore.com>
10639             Ed Schonberg  <schonberg@adacore.com>
10641         * g-awk.adb (Default_Session, Current_Session): Compile this file in
10642         Ada 95 mode, because it violates the new rules for AI-318.
10644         * g-awk.ads: Use overloaded subprograms in every case where we used to
10645         have a default of Current_Session. This makes the code closer to be
10646         correct for both Ada 95 and 2005.
10648         * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
10649         code, relying on the fact that the compiler generates a warning
10650         instead of an error in -gnatg mode.
10652         * lib-xref.ads (Xref_Entity_Letters): Add entry for new
10653         E_Return_Statement entity kind.
10654         Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
10656         * par.adb (P_Interface_Type_Definition): Addition of one formal to
10657         report an error if the reserved word abstract has been previously found.
10658         (SS_End_Type): Add E_Return for new extended_return_statement syntax.
10660         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
10661         parenthesized range attribute usage
10662         (P_Expression_No_Right_Paren): Add missing comment about error recovery.
10664         * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
10665         in the syntax for extended_return_statement. This is not in the latest
10666         RM, but the ARG is expected to issue an AI allowing this.
10667         (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
10668         N_Return_Object_Declaration. We now use N_Object_Declaration instead.
10669         (P_Return_Object_Declaration, P_Return_Subtype_Indication,
10670         P_Return_Statement): Parse the new syntax for extended_return_statement.
10672         * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
10673         Output_End_Missing): Add error-recovery code for the new
10674         extended_return_statement syntax; that is, the new E_Return entry on
10675         the scope stack.
10677         * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
10678         limited to nonlimited, because otherwise we violate the new Ada 2005
10679         rules about returning limited types in function Create_AST_Handler in
10680         s-asthan.adb.
10682         * sem.adb (Analyze): Add cases for new node kinds
10683         N_Extended_Return_Statement and N_Return_Object_Declaration.
10685         * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
10686         type is in the same category as type of context before applying check,
10687         to prevent anomalies in instantiations.
10688         (Resolve_Aggregate): Remove test for limited components in aggregates.
10689         It's unnecessary in Ada 95, because if it has limited components, then
10690         it must be limited. It's wrong in Ada 2005, because limited aggregates
10691         are now allowed.
10692         (Resolve_Record_Aggregate): Move check for limited types later, because
10693         OK_For_Limited_Init requires its argument to have been resolved.
10694         (Get_Value): When copying the component default expression for a
10695         defaulted association in an aggregate, use the sloc of the aggregate
10696         and not that of the original expression, to prevent spurious
10697         elaboration errors, when the expression includes function calls.
10698         (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
10699         were missing. We also didn't handle qualified expressions. Now also
10700         allow function calls. Use new common routine OK_For_Limited_Init.
10701         (Resolve_Extension_Aggregate): Minor fix to bad error message (started
10702         with space can upper case letter).
10704         * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
10705         Has_Static_Discriminants flag
10706         (Record_Type_Declaration): Diagnose an attempt to declare an interface
10707         type with discriminants.
10708         (Process_Range_Expr_In_Decl): Do validity checks on range
10709         (Build_Discriminant_Constraints): Use updated form of
10710         Denotes_Discriminant.
10711         (Process_Subtype): If the subtype is a private subtype whose full view
10712         is a concurrent subtype, introduce an itype reference to prevent scope
10713         anomalies in gigi.
10714         (Build_Derived_Record_Type, Collect_Interface_Primitives,
10715         Record_Type_Declaration):  The functionality of the subprograms
10716         Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
10717         is now performed by a single routine.
10718         (Build_Derived_Record_Type): If the type definition includes an explicit
10719         indication of limitedness, then the type must be marked as limited here
10720         to ensure that any access discriminants will not be treated as having
10721         a local anonymous access type.
10722         (Check_Abstract_Overriding): Issue a detailed error message when an
10723         abstract subprogram was not overridden due to incorrect mode of its
10724         first parameter.
10725         (Analyze_Private_Extension_Declaration): Add support for the analysis of
10726         synchronized private extension declarations. Verify that the ancestor is
10727         a limited or synchronized interface or in the generic case, the ancestor
10728         is a tagged limited type or synchronized interface and all progenitors
10729         are either limited or synchronized interfaces.
10730         Derived_Type_Declaration): Check for presence of private extension when
10731         dealing with synchronized formal derived types.
10732         Process_Full_View): Enchance the check done on the usage of "limited" by
10733         testing whether the private view is synchronized.
10734         Verify that a synchronized private view is completed by a protected or
10735         task type.
10736         (OK_For_Limited_Init_In_05): New function.
10737         (Analyze_Object_Declaration): Move check for limited types later,
10738         because OK_For_Limited_Init requires its argument to have been resolved.
10739         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
10740         in order to alleviate the upward compatibility introduced by AI-318.
10741         (Constrain_Corresponding_Record): If the constraint is for a component
10742         subtype, mark the itype as frozen, to avoid out-of-scope references to
10743         discriminants in the back-end.
10744         (Collect_Implemented_Interfaces): Protect the recursive algorithm of
10745         this subprogram against wrong sources.
10746         (Get_Discr_Value, Is_Discriminant): Handle properly references to a
10747         discriminant of limited type completed with a protected type, when the
10748         discriminant is used to constrain a private component of the type, and
10749         expansion is disabled.
10750         (Find_Type_Of_Object): Do not treat a return subtype that is an
10751         anonymous subtype as a local_anonymous_type, because its accessibility
10752         level is the return type of the enclosing function.
10753         (Check_Initialization): In -gnatg mode, turn the error "cannot
10754         initialize entities of limited type" into a warning.
10755         (OK_For_Limited_Init): Return true for generated nodes, since it
10756         sometimes violates the legality rules.
10757         (Make_Incomplete_Declaration): If the type for which an incomplete
10758         declaration is created happens to be the currently visible entity,
10759         preserve the homonym chain when removing it from visibility.
10760         (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
10761         inherited subprograms.
10762         (Access_Definition): If this is an access to function that is the return
10763         type of an access_to_function definition, context is a type declaration
10764         and the scope of the anonymous type is the current one.
10765         (Analyze_Subtype_Declaration): Add the defining identifier of a regular
10766         incomplete subtype to the set of private dependents of the original
10767         incomplete type.
10768         (Constrain_Discriminated_Type): Emit an error message whenever an
10769         incomplete subtype is being constrained.
10770         (Process_Incomplete_Dependents): Transform an incomplete subtype into a
10771         corresponding subtype of the full view of the original incomplete type.
10772         (Check_Incomplete): Properly detect invalid usage of incomplete types
10773         and subtypes.
10775 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
10777         * g-catiio.ads, g-catiio.adb (Value): New function.
10778         Given an input String, try and parse a valid Time value.
10780 2006-10-31  Vincent Celier  <celier@adacore.com>
10782         * g-debpoo.adb (Is_Valid): Correctly compute Offset using
10783         Integer_Address arithmetic, as in Set_Valid.
10785 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
10786             Robert Dewar  <dewar@adacore.com>
10788         * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
10789         handling executable extension manually and duplicating code.
10791         * make.adb: Implement new -S switch
10792         (Gnatmake): Use new function Osint.Executable_Name instead
10793         of handling executable extension manually.
10795         * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
10796         is specified, the executable name ends with this suffix.
10797         Take advantage of Osint.Executable_Name instead of duplicating code.
10799         * switch-m.adb: Recognize new gnatmake -S switch
10801         * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
10802         variable.
10803         (Get_Target_Parameters): Set Executable_Extension_On_Target if
10804         available.
10806         * makeusg.adb: Add line for gnatmake -S switch
10808 2006-10-31  Vincent Celier  <celier@adacore.com>
10810         * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
10811         call it with -static-libgcc, as there are some platforms, such as
10812         Darwin, where one of these two switches is compulsory to link.
10814 2006-10-31  Vincent Celier  <celier@adacore.com>
10816         * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
10817         instead of ADA_PROJECT_PATH, for the project path.
10818         (Gnatls): When displaying the project path directories, use host dir
10819         specs.
10821         * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
10822         names in the project path, as absolute paths may correspond to
10823         multi-valued VMS logical names.
10825 2006-10-31  Vincent Celier  <celier@adacore.com>
10827         * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
10828         absolute path name.
10829         (Locate_Regular_File): Ditto
10830         (Change_Dir): Remove, no longer used
10831         (Normalize_Pathname): Do not use Change_Dir to get the drive letter
10832         on Windows. Get it calling Get_Current_Dir.
10833         (OpenVMS): Remove imported boolean, no longer needed.
10834         (Normalize_Pathname)[VMS]: Do not resolve directory names.
10835         (Pid_To_Integer): New function to convert a Process_Id to  Integer
10837 2006-10-31  Thomas Quinot  <quinot@adacore.com>
10839         * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
10840         sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
10841         to No_Socket.
10842         (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
10843         W_Sig_Socket.
10845 2006-10-31  Robert Dewar  <dewar@adacore.com>
10847         * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
10848         initial letter o as a zero.
10850 2006-10-31  Robert Dewar  <dewar@adacore.com>
10852         * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
10854 2006-10-31  Robert Dewar  <dewar@adacore.com>
10856         * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
10857         variant records
10858         (Layout_Variant_Record): Retrieve the discriminants from the entity
10859         rather than from the type definition, because in the case of a full
10860         type for a private type we need to take the discriminants from the
10861         partial view.
10862         (Layout_Component_List): When applying the Max operator to variants with
10863         a nonstatic size, check whether either operand is static and scale that
10864         operand from bits to storage units before applying Max.
10865         (Layout_Type): In VMS, if a C-convention access type has no explicit
10866         size clause (and does not inherit one in the case of a derived type),
10867         then the size is reset to 32 from 64.
10869 2006-10-31  Vincent Celier  <celier@adacore.com>
10871         * lib-load.adb (Load_Unit): Skip the test for a unit not found when
10872         its file has already been loaded, according to the unit being loaded,
10873         not to the current value of Multiple_Unit_Index.
10875 2006-10-31  Thomas Quinot  <quinot@adacore.com>
10876             Eric Botcazou  <ebotcazou@adacore.com>
10877             Arnaud Charlet  <charlet@adacore.com>
10879         * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
10880         (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
10881         possible.
10882         (a-except.o): Pass it to the compiler.
10883         (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
10884         (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
10885         a-calend-mingw.adb version.
10887         * Makefile.rtl: Added s-dsaser.
10888         Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
10889         (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
10890         Ada.Dispatching.Round_Robin.
10891         Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
10893         * Make-lang.in: Remove all references to gt-ada-decl.h.
10894         Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
10895         sources.
10896         Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
10897         Update dependencies.
10899         * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
10901 2006-10-31  Vincent Celier  <celier@adacore.com>
10903         * mlib-utl.adb (Initialized): Remove, no longer used
10904         (Initialize): Remove, no longer used
10905         (Ar): If Ar_Exec is null, get the location of the archive builder and,
10906         if there is one, the archive indexer. Fail if the archive builder cannot
10907         be found.
10908         (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
10909         be found.
10911 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
10913         * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
10914         Process_Body_Clauses): If the context of a body includes a use clause
10915         for P.Q then a with_clause for P in the same body is not redundant,
10916         even if the spec also has a with_clause on P.
10917         Add missing continuation mark to error msg
10918         (Build_Limited_Views): A limited view of a type is tagged if its
10919         declaration includes a record extension.
10920         (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
10921         node, even if the subunit has errors. This avoids malfunction by
10922         Lib.Check_Same_Extended_Unit in the presence of syntax errors.
10923         (Analyze_Compilation_Unit): Add circuit to make sure we get proper
10924         generation of obsolescent messages for with statements (cannot do
10925         this too early, or we cannot implement avoiding the messages in the
10926         case of obsolescent units withing obsolescent units).
10927         (Install_Siblings): If the with_clause is on a remote descendant of
10928         an ancestor of the current compilation unit, find whether there is
10929         a sibling child unit that is immediately visible.
10930         (Remove_Private_With_Clauses): New procedure, invoked after completing
10931         the analysis of the private part of a nested package, to remove from
10932         visibility the private with_clauses of the enclosing package
10933         declaration.
10934         (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
10935         now centralized in Generate_Reference.
10936         (Install_Limited_Context_Clauses): Remove superfluous error
10937         message associated with unlimited view visible through use
10938         and renamings. In addition, at the point in which the error
10939         is reported, we add the backslash to the text of the error
10940         to ensure that it is reported as a single error message.
10941         Use new // insertion for some continuation messages
10942         (Expand_Limited_With_Clause): Use copy of name rather than name itself,
10943         to create implicit with_clause for parent unit mentioned in original
10944         limited_with_clause.
10945         (Install_Limited_With_Unit): Set entity of parent identifiers if the
10946         unit is a child unit. For ASIS queries.
10947         (Analyze_Subunit): If the subunit appears within a child unit, make all
10948         ancestor child units directly visible again.
10950 2006-10-31  Robert Dewar  <dewar@adacore.com>
10952         * par-ch10.adb (P_Context_Clause): Minor error message fix
10954 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
10955             Javier Miranda  <miranda@adacore.com>
10957         * par-ch12.adb: Grammar update and cleanup.
10958         (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
10959         support for synchronized derived type definitions.
10960         Add the new actual Abstract_Present to every call to
10961         P_Interface_Type_Definition.
10962         (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
10963         a formal object declaration with an access definition or a subtype mark
10964         with a null exclusion.
10965         (P_Generic_Association): Handle association with box, and others_choice
10966         with box, to support Ada 2005 partially parametrized formal packages.
10968 2006-10-31  Robert Dewar  <dewar@adacore.com>
10969             Javier Miranda  <miranda@adacore.com>
10971         * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
10972         (P_Type_Declaration): Remove barrier against the reserved word "limited"
10973         after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
10974         (P_Type_Declaration): Minor code cleanup. Add support for synchronized
10975         private extensions.
10976         (P_Type_Declaration): Add the new actual Abstract_Present to every call
10977         to P_Interface_Type_Definition.
10978         (P_Interface_Type_Definition): Addition of one formal to report an error
10979         if the reserved word abstract has been previously found.
10980         (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
10981         object renaming declaration with an access definition or subtype mark
10982         with a possible null exclusion.
10984         * par-ch9.adb: Minor error msg fix
10986         * par-load.adb: Add missing continuation mark to error msg
10988         * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
10990 2006-10-31  Vincent Celier  <celier@adacore.com>
10992         * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
10993         unknown attribute in unknown package or in package that does not need
10994         to be checked.
10995         (Parse_Package_Declaration): Do not issue warning for unknown package in
10996         quiet output.
10998 2006-10-31  Vincent Celier  <celier@adacore.com>
11000         * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
11001         (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
11002         Packages_To_Check.
11004 2006-10-31  Vincent Celier  <celier@adacore.com>
11006         * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
11007         on VMS, change "__" to '.' before checking the name.
11008         (Record_Ada_Source): Always add the source file name in the list of
11009         of sources, even if it is not the first time, as it is for another
11010         source index.
11011         (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
11012         dot, instead of replacing only the first '_'.
11014         * prj-part.adb (Parse): Convert project file path to canonical form
11016         * prj-proc.adb (Recursive_Process): Make sure that, when a project is
11017         extended, the project id of the project extending it is recorded in its
11018         data, even when it has already been processed as an imported project.
11020 2006-10-31  Robert Dewar  <dewar@adacore.com>
11022         * repinfo.adb (List_Entities): Don't list entities from renaming
11023         declarations.
11025 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
11026             Robert Dewar  <dewar@adacore.com>
11028         * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
11029         only a restriction warning is active for the given restriction. This is
11030         desirable because we do not want to modify code in the case where only
11031         a warning is set.
11032         (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
11033         causes overriding of real restrictions.
11034         Take advantage of new No_Restrictions constant.
11036         * raise.h: (__gnat_set_globals): Change profile.
11038 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
11040         * rtsfind.adb: Remove s-polint from comment as it exists no more.
11042         * rtsfind.ads: 
11043         Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
11044         Move all the entities in obsolete package System.PolyORB_Interface to
11045         System.Partition_Interface.
11046         (RE_Storage_Size): New function in System.Tasking.
11047         (RE_Get_Ceiling): New entity.
11048         (RE_Set_Ceiling): New entity.
11049         (RO_PE_Get_Ceiling): New entity.
11050         (RO_RE_Set_Ceiling): New entity.
11051         (Inherit_CPP_DT): New entity
11053 2006-10-31  Robert Dewar  <dewar@adacore.com>
11055         * scng.adb (Scan, case of numeric literal): Better msg for identifier
11056         starting with a digit.
11058 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
11059             Thomas Quinot  <quinot@adacore.com>
11060             Javier Miranda  <miranda@adacore.com>
11061             Gary Dismukes  <dismukes@adacore.com>
11063         * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
11064         properly an attempt to apply Unchecked_Access to a protected operation.
11065         (OK_Self_Reference): New subprogram to check the legality of an access
11066         attribute whose prefix is the type of an enclosing aggregate.
11067         Generalizes previous mechanism to handle attribute references nested
11068         arbitrarily deep within the aggregate.
11069         (Analyze_Access_Attribute): An access attribute whose prefix is a type
11070         can appear in an aggregate if this is a default-initialized aggregate
11071         for a self-referential type.
11072         (Resolve_Attribute, case Access): Ditto.
11073         Add support for new implementation defined attribute Stub_Type.
11074         (Eval_Attribute, case Attribute_Stub_Type): New case.
11075         (Analyze_Attribute, case Attribute_Stub_Type): New case.
11076         (Stream_Attribute_Available): Implement using new subprogram from
11077         sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
11078         Has_Specified_Stream_Attribute flag.
11079         Disallow Storage_Size and Storage_Pool for access to subprogram
11080         (Resolve_Attribute, case 'Access et al): Take into account anonymous
11081         access types of return subtypes in extended return statements. Remove
11082         accessibility checks on anonymous access types when Unchecked_Access is
11083         used.
11084         (Analyze_Attribute): Add support for the use of 'Class to convert
11085         a class-wide interface to a tagged type.
11086         Add support for the attribute Priority.
11087         (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
11088         whether the designated type is discriminated with a constrained partial
11089         view and require static matching in that case.
11090         Add local variable Des_Btyp. The Designated_Type
11091         of an access to incomplete subtype is either its non-limited view if
11092         coming from a limited with or its etype if regular incomplete subtype.
11094         * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
11095         Fix predicate to identify and allow cases of (expander-generated)
11096         references to tag of designated object of a RACW.
11097         (Validate_Static_Object_Name): In Ada 2005, a formal object is
11098         non-static, and therefore cannot appear as a primary in a preelaborable
11099         package.
11100         (Has_Stream_Attribute_Definition): New subprogram, abstracted from
11101         Has_Read_Write_Attributes.
11102         (Has_Read_Write_Attributes): Reimplement in termes of
11103         Has_Stream_Attribute_Definition.
11104         (Missing_Read_Write_Attributes): When checking component types in a
11105         record, unconditionally call Missing_Read_Write_Attributes recursively
11106         (remove guard checking for Is_Record_Type / Is_Access_Type).
11108 2006-10-31  Robert Dewar  <dewar@adacore.com>
11110         * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
11111         useless assignments here and conditionalize it on absence of exception
11112         handlers.
11113         (Analyze_Exception_Handlers): Small code reorganization of error
11114         detection code, for new handling of formal packages.
11116 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
11117             Hristian Kirtchev  <kirtchev@adacore.com>
11119         * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
11120         that has been constant-folded, preserve information of original tree,
11121         for ASIS uses.
11122         (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
11123         generated private extension declaration if the formal derived type is
11124         synchronized. Carry synchronized present over to the generated private
11125         extension.
11126         (Validate_Derived_Type_Instance): Ensure that the actual of a
11127         synchronized formal derived type is a synchronized tagged type.
11128         (Instantiate_Formal_Package): When creating the instantiation used to
11129         validate the actual package of a formal declared without a box, check
11130         whether the formal itself depends on a prior actual.
11131         (Instantiate_Formal_Subprogram): Create new entities for the defining
11132         identifiers of the formals in the renaming declaration, for ASIS use.
11133         (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
11134         a renaming declaration or a subtype declaration for an actual in an
11135         instance, capture location information of declaration in generic, for
11136         ASIS use.
11137         (Instantiate_Formal_Package): Add comments on needed additional tests.
11138         AI-317 (partial parametrization) is fully implemented.
11139         (Validate_Private_Type_Instance): Add check for actual which
11140         must have preelaborable initialization
11141         Use new // insertion for some continuation messages
11142         (Analyze_Formal_Object_Declaration): Change usage of Expression to
11143         Default_Expression. Add type retrieval when the declaration has an
11144         access definition. Update premature usage of incomplete type check.
11145         (Check_Access_Definition): New subsidiary routine. Check whether the
11146         current compilation version is Ada 05 and the supplied node has an
11147         access definition.
11148         (Instantiate object): Alphabetize local variables. Handle the creation
11149         of new renaming declarations with respect to the kind of definition
11150         used - either an access definition or a subtype mark. Guard against
11151         unnecessary error message in the context of anonymous access types after
11152         they have been resolved. Add check for required null exclusion in a
11153         formal object declaration.
11154         (Switch_View): A private subtype of a non-private type needs to be
11155         switched (the base type can have been switched without its private
11156         dependents because of the last branch of Check_Private_View.
11157         (Check_Private_View): Do not recompute Base_Type (T), instead use cached
11158         value from BT.
11159         (Instantiate_Type): Emit an error message whenever a class-wide type of
11160         a tagged incomplete type is used as a generic actual.
11161         (Find_Actual_Type): Extend routine to handle a component type in a child
11162         unit that is imported from a formal package in a parent.
11163         (Validate_Derived_Type_Instance): Check that analyzed formal and actual
11164         agree on constrainedness, rather than checking against ultimate ancestor
11165         (Instantiate_Subprogram_Body): Create a cross-reference link to the
11166         generic body, for navigation purposes.
11168 2006-10-31  Robert Dewar  <dewar@adacore.com>
11169             Thomas Quinot  <quinot@adacore.com>
11171         * sem_ch13.adb: Storage pool cannot be given for access to subprogram
11172         type.
11173         (New_Stream_Subprogram): When processing an attribute definition clause
11174         for a stream-oriented subprogram, record an entity node occurring at
11175         the point of clause to use for checking the visibility of the clause,
11176         as defined by 8.3(23) as amended by AI-195.
11177         (New_Stream_Subprogram): New procedure, factoring behaviour from both
11178          New_Stream_Function and New_Stream_Procedure.
11179         (New_Stream_Function, New_Stream_Procedure): Removed.
11180         (Analyze_Attribute_Definition_Clause, case Address): Check new
11181         Alignment_Check check
11183 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
11184             Javier Miranda  <miranda@adacore.com>
11185             Robert Dewar  <dewar@adacore.com>
11187         * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
11188         generate the same errors compiling under -gnatc.
11189         (Try_Object_Operation): If no candidate interpretation succeeds, but
11190         there is at least one primitive operation with the right name, report
11191         error in call rather than on a malformed selected component.
11192         (Analyze_Selected_Component): If the prefix is an incomplete type from
11193         a limited view, and the full view is available, use the full view to
11194         determine whether this is a prefixed call to a primitive operation.
11195         (Operator_Check): Verify that a candidate interpretation is a binary
11196         operation before checking the type of its second formal.
11197         (Analyze_Call): Add additional warnings for function call contexts not
11198         yet supported.
11199         (Analyze_Allocator): Move the check for "initialization not allowed for
11200         limited types" after analyzing the expression. This is necessary,
11201         because OK_For_Limited_Init looks at the structure of the expression.
11202         Before analysis, we don't necessarily know what sort of expression it
11203         is. For example, we don't know whether F(X) is a function call or an
11204         indexed component; the former is legal in Ada 2005; the latter is not.
11205         (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
11206         were missing. We also didn't handle qualified expressions. Now also
11207         allow function calls. Use new common routine OK_For_Limited_Init.
11208         (Analyze_Type_Conversion): Do not perform some legality checks in an
11209         instance, because the error message will be redundant or spurious.
11210         (Analyze_Overloaded_Selected_Component): Do not do style check when
11211         setting an entity, since we do not know it is the right entity yet.
11212         (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
11213         (Analyze_Overloaded_Selected_Component): Same change
11214         (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
11215         since regular incomplete subtypes are transformed into corresponding
11216         subtypes of their full views.
11217         (Complete_Object_Operation): Treat name of transformed subprogram call
11218         as coming from source, for browsing purposes.
11219         (Try_Primitive_Operation): If formal is an access parameter, compare
11220         with base type of object to determine whether it is a primitive
11221         operation.
11222         (Operator_Check): If no interpretation of the operator matches, check
11223         whether a use clause on any candidate might make the operation legal.
11224         (Try_Class_Wide_Operation): Check whether the first parameter is an
11225         access type whose designated type is class-wide.
11227 2006-10-31  Robert Dewar  <dewar@adacore.com>
11228             Ed Schonberg  <schonberg@adacore.com>
11229             Gary Dismukes  <dismukes@adacore.com>
11231         * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
11232         warn on infinite loops.
11233         Add \\ to some continuation messages
11234         (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
11235         (Process_Bounds): If the bounds are integer literals that result from
11236         constant-folding, and they carry a user-defined type, preserve that type
11237         rather than treating this as an integer range.
11238         (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
11239         (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
11240         (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
11241         left hand side of assignment.
11242         (Analyze_Assignment): Add suport to manage assigments to the attribute
11243         priority of a protected object.
11244         (Check_Possible_Current_Value_Condition): Allow fully qualified names
11245         not just identifiers.
11246         (Check_Possible_Current_Value_Condition): Acquire left operand of AND
11247         or AND THEN for possible tracking.
11248         (Analyze_Iteration_Scheme): Check for setting Current_Value for the
11249         case of while loops so we can track values in the loop body.
11251 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
11252             Hristian Kirtchev  <kirtchev@adacore.com>
11253             Bob Duff  <duff@adacore.com>
11255         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
11256         procedure cannot be a protected operation (it is a basic_declaration,
11257         not a subprogram_declaration).
11258         (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
11259         Subp. Add logic for entry processing.
11260         (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
11261         Determine whether an entry or subprogram of a protected or task type
11262         override an inherited primitive of an implemented interface.
11263         (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
11264         Update the actual used in calls to Check_Overriding_Indicator.
11265         (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
11266         generate the proper reference to the parent unit, for cross-reference.
11267         (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
11268         Is_Formal.
11269         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
11270         (Add_Extra_Formal): Revise procedure to allow passing in associated
11271         entity, scope, and name suffix, and handle setting of the new
11272         Extra_Formals field.
11273         (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
11274         pass new parameters. Add support for adding the new extra access formal
11275         for functions whose calls are treated as build-in-place.
11276         (Analyze_A_Return_Statement): Correct casing in error message.
11277         Move Pop_Scope to after Analyze_Function_Return, because an extended
11278         return statement really is a full-fledged scope. Otherwise, visibility
11279         doesn't work right. Correct use of "\" for continuation messages.
11280         (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
11281         evilly trying to call Analyze_Object_Declaration directly. Otherwise,
11282         the node doesn't get properly marked as analyzed.
11283         (Analyze_Subprogram_Body): If subprogram is a function that returns
11284         an anonymous access type that denotes a task, build a Master Entity
11285         for it.
11286         (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
11287         proper usage of null exclusion in a result definition.
11288         (Process_Formals): Code cleanup and new error message.
11289         (Process_Formals): Detect incorrect application of null exclusion to
11290         non-access types.
11291         (Conforming_Types): Handle conformance between [sub]types and itypes
11292          generated for entities that have null exclusions applied to them.
11293         (Maybe_Primitive_Operation): Add an additional type retrieval when the
11294          base type is an access subtype. This case arrises with null exclusions.
11295         (New_Overloaded_Entity): Do not remove the overriden entity from the
11296         homonym chain if it corresponds with an abstract interface primitive.
11297         (Process_Formals): Replace membership test agains Incomplete_Kind with a
11298         call to the synthesized predicate Is_Incomplete_Type.
11299         (Analyze_Subprogram_Body): Check wrong placement of abstract interface
11300         primitives.
11301         (Analyze_Subprogram_Declaration): Check that abstract interface
11302         primitives are abstract or null.
11303         (Analyze_Subprogram_Specification): Remove previous check for abstract
11304         interfaces because it was not complete.
11305         (Has_Interface_Formals): Removed.
11307 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
11308             Javier Miranda  <miranda@adacore.com>
11310         * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
11311         of Analyze_Package_Body, to create Itype references for anonymous
11312         access types created in the package declaration, whose designated types
11313         may have only a limited view.
11314         (Analyze_Package_Specification): For the private part of a nested
11315         package, install private_with_clauses of enclosing compilation unit if
11316         we are in its visible part.
11317         (Declare_Inherited_Private_Subprograms): Complete barrier
11318         to ensure that the primitive operation has an alias to some parent
11319         primitive. This is now required because, after the changes done for the
11320         implementation of abstract interfaces, the contents of the list of
11321         primitives has entities whose alias attribute references entities of
11322         such list of primitives.
11323         (Analyze_Package_Specification): Simplify code that handles parent units
11324         of instances and formal packages.
11325         (Uninstall_Declarations): Check the convention consistency among
11326         primitive overriding operations of a tagged record type.
11328 2006-10-31  Robert Dewar  <dewar@adacore.com>
11329             Hristian Kirtchev  <kirtchev@adacore.com>
11330             Javier Miranda  <miranda@adacore.com>
11331             Ed Schonberg  <schonberg@adacore.com>
11333         * sem_ch8.adb: Minor error msg rewording
11334         (Undefined): When checking for misspellings, invert arguments (to get
11335         expected and found set right)
11336         (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
11337         (Analyze_Generic_Renaming): Same fix
11338         (Use_One_Package): Do not take into account the internal entities of
11339         abstract interfaces during the analysis of entities that are marked
11340         as potentially use-visible.
11341         (Find_Type): Handle the case of an attribute reference for
11342         implementation defined attribute Stub_Type (simply let the analysis of
11343         the attribute reference rewrite it).
11344         (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
11345         type that appears in a Use_Type clause.
11346         (Analyze_Object_Renaming): Add support for renaming of the Priority
11347         attribute.
11348         (Find_Type): In Ada 2005, a task type can be used within its own body,
11349         when it appears in an access definition.
11350         (Analyze_Object_Renaming): Remove warning on null_exclusion.
11351         (Analyze_Object_Renaming): Introduce checks for required null exclusion
11352          in a formal object declaration or in a subtype declaration.
11353         (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
11354         (Check_Null_Exclusion): New local routine to
11355         Analyze_Subprogram_Renaming. Check whether the formals and return
11356         profile of a renamed subprogram have required null exclusions when
11357         their counterparts of the renaming already impose them.
11358         (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
11359         Determine whether an entity is inside a generic scope.
11360         (In_Open_Scope): First pass of documentation update.
11361         (Find_Expanded_Name): Add support for shadow entities associated with
11362         limited withed packages. This is required to handle nested packages.
11363         (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
11364         that makes a renaming of a limited withed package illegal.
11366 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
11367             Ed Schonberg  <schonberg@adacore.com>
11369         * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
11370         Check_Overriding_Indicator.
11371         (Analyze_Task_Definition): Ditto.
11372         (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
11373         (Check_Overriding_Indicator): To find overridden interface operation,
11374         examine only homonyms that have an explicit subprogram declaration, not
11375         inherited operations created by an unrelated type derivation.
11376         (Check_Overriding_Indicator): When checking for the presence of "null"
11377         in a procedure, ensure that the queried node is a procedure
11378         specification.
11379         (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
11380         type when the formal is an access to variable.
11381         (Analyze_Protected_Type): Add check for Preelaborable_Initialization
11382         (Analyze_Task_Type): Same addition
11383         (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
11384         provide navigation capabilities for entries.
11386 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
11387             Ed Schonberg  <schonberg@adacore.com>
11388             Javier Miranda  <miranda@adacore.com>
11389             Gary Dismukes  <dismukes@adacore.com>
11391         * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
11392         inherited from an interface ancestor by another interface in the
11393         context of an instance as 'late'.
11394         (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
11395         of a call to a function that dispatches on access result.
11396         (Check_Dispatching_Operation): In case of late overriding of a primitive
11397         that covers abstract interface subprograms we register it in all the
11398         secondary dispatch tables associated with abstract interfaces.
11399         (Check_Dispatching_Call): Add check that a dispatching call is not made
11400         to a function with a controlling result of a limited type. This is a
11401         current implementation restriction.
11402         (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
11403         (Check_Dispatching_Operation): Do no emit a warning if the controlling
11404         argument is an interface type that is a generic formal.
11405         (Is_Interface_Subprogram): Removed.
11406         (Check_Dispatching_Operation): If the subprogram is not a dispatching
11407         operation, check the formals to handle the case in which it is
11408         associated with an abstract interface type.
11410 2006-10-31  Robert Dewar  <dewar@adacore.com>
11411             Ed Schonberg  <schonberg@adacore.com>
11413         * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
11414         Add new calls to this procedure during traversal
11415         (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
11416         another unit if expansion is disabled.
11418 2006-10-31  Robert Dewar  <dewar@adacore.com>
11420         * sem_eval.adb (Compile_Time_Compare): Make use of information from
11421         Current_Value in the conditional case, to evaluate additional
11422         comparisons at compile time.
11424 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
11425             Hristian Kirtchev  <kirtchev@adacore.com>
11426             Javier Miranda  <miranda@adacore.com>
11428         * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
11429         subprogram type to provide better diagnostics in case of ambiguity.
11430         (Covers): Handle coverage of formal and actual anonymous access types in
11431         the context of generic instantiation.
11432         (Covers/Interface_Present_In_Ancestors): Use the base type to manage
11433         abstract interface types; this is required to handle concurrent types
11434         with discriminants and abstract interface types.
11435         (Covers): Include type coverage of both regular incomplete subtypes and
11436         incomplete subtypes of incomplete type visibles through a limited with
11437         clause.
11439 2006-10-31  Robert Dewar  <dewar@adacore.com>
11440             Hristian Kirtchev  <kirtchev@adacore.com>
11441             Ed Schonberg  <schonberg@adacore.com>
11443         * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
11444         messages for entities in packages which are not used.
11445         (Collect_Synchronized_Interfaces): New procedure.
11446         (Overrides_Synchronized_Primitive): New function.
11447         (Denotes_Discriminant): Extend predicate to apply to task types.
11448         Add missing continuation marks in error msgs
11449         (Unqualify): New function for removing zero or more levels of
11450         qualification from an expression. There are numerous places where this
11451         ought to be used, but we currently only deal properly with zero or one
11452         level.
11453         (In_Instance); The analysis of the actuals in the instantiation of a
11454         child unit is not within an instantiation, even though the parent
11455         instance is on the scope stack.
11456         (Safe_To_Capture_Value): Exclude the case of variables that are
11457         renamings.
11458         (Check_Obsolescent): Removed
11459         (Is_Aliased_View): A reference to an enclosing instance in an aggregate
11460         is an aliased view, even when rewritten as a reference to the target
11461         object in an assignment.
11462         (Get_Subprogram_Entity): New function
11463         (Known_To_Be_Assigned): New function
11464         (Type_Access_Level): Compute properly the access level of a return
11465         subtype that is an anonymous access type.
11466         (Explain_Limited_Type): Correct use of "\" for continuation messages.
11467         (Is_Transfer): The new extended_return_statement causes a transfer of
11468         control.
11469         (Has_Preelaborable_Initialization): New function
11470         (Has_Null_Exclusion): New function. Given a node N, determine whether it
11471         has a null exclusion depending on its Nkind.
11472         Change Is_Lvalue to May_Be_Lvalue
11473         (May_Be_Lvalue): Extensive additional code to deal with subprogram
11474         arguments (IN parameters are not Lvalues, IN OUT parameters are).
11475         (Safe_To_Capture_Value): Extend functionality so it can be used for
11476         the current value condition case.
11477         (Has_Compatible_Alignment): New function
11478         (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
11479         objects to handle the Ada 2005 case, where aliasedness no longer implies
11480         that the object is constrained. In particular, for dereferenced names,
11481         the designated object must be assumed to be unconstrained.
11482         (Kill_Current_Values): Properly deal with the case where we encounter
11483         a loop in the scope chain.
11484         (Safe_To_Capture_Value): Do not let a loop stop us from capturing
11485         a value.
11486         (Compile_Time_Constraint_Error): Improve error message in error case
11488         * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
11489         associated with entities of abstract interface primitives.
11490         Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
11492 2006-10-31  Robert Dewar  <dewar@adacore.com>
11494         * s-osinte-tru64.adb: 
11495         Mark Asm statements Volatile to prevent warnings (seems a
11496         reasonable change anyway)
11497         Fixes new warnings
11499         * s-mastop-irix.adb: Add Volatile to Asm statements
11500         Suppresses warning, and seems appropriate in any case
11502         * s-osinte-vms.adb: Add Volatile to Asm statement
11504         * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
11506         * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
11507         returned.
11508         Add call to Check_Code_Statement
11510 2006-10-31  Robert Dewar  <dewar@adacore.com>
11511             Ed Schonberg  <schonberg@adacore.com>
11512             Bob Duff  <duff@adacore.com>
11514         * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
11515         Synchronized_Present): Add Formal_Derived_Type_Definition and
11516         Private_Extension_Declaration to the list of assertions.
11517         (Is_Entry_Barrier_Function): New flag
11518         (Has_Self_Reference): New flag on aggregates, to indicate that they
11519         contain a reference to the enclosing type, inserted through a default
11520         initialization.
11521         (Next_Rep_Item): Move from Node4 to Node5.
11522         (Entity): Add this field for N_Attribute_Definition_Clause.
11523         (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
11524         (N_Return_Object_Declaration): Remove this node kind. We now use
11525         N_Object_Declaration instead.
11526         (Actual_Designated_Subtype): Move to a different place to make room in
11527         N_Extended_Return_Statement.
11528         (Procedure_To_Call): Move to a different place to make room in
11529         N_Extended_Return_Statement.
11530         (Return_Type): Removed this field to make room in return statements
11531         (both kinds).
11532         (Return_Statement_Entity): New field in return statements, in part to
11533         replace Return_Type, and in part to support the fact that return
11534         statements are now pushed on the scope stack during semantic analysis.
11535         (Return_Object_Declarations): New field to support extended return
11536         statements.
11537         (N_Extended_Return_Statement): New node for extended_return_statement
11538         nonterminal.
11539         (N_Return_Object_Declaration): New node for part of
11540         extended_return_statement nonterminal. Needed because all the necessary
11541         fields won't fit in N_Extended_Return_Statement.
11542         Generic_associations now carry the Box_Present flag, to indicate a
11543         default for an actual in a partially parametrized formal package.
11545         * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
11546         (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
11547         and for the new predefined dispatching policies: EDF_Across_Priorities,
11548         Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
11549         Introduce new name Stub_Type for implementation defined attribute.
11550         Add pragma Preelaborable_Initialization
11551         Add entry for Priority attribute.
11552         Add Pragma_Wide_Character_Encoding
11553         (Get_Convention_Name): Given a convention id, this function returns the
11554         corresponding name id from the names table.
11556 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
11557             Robert Dewar  <dewar@adacore.com>
11558             Bob Duff  <duff@adacore.com>
11560         * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
11561         print null exclusion twice in the case of an access definition,
11562         Implement new -gnatL switch
11563         Remove N_Return_Object_Declaration. We now use
11564         N_Object_Declaration instead. Implement the case for
11565         N_Extended_Return_Statement. Alphabetize the cases.
11566         Add cases for new nodes N_Extended_Return_Statement and
11567         N_Return_Object_Declaration. The code is not yet written.
11568         Update the output for N_Formal_Object_Declaration
11569         and N_Object_Renaming_Declaration.
11570         (Write_Itype): Account for the case of a modular integer subtype whose
11571         base type is private.
11573 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
11575         * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
11576         Remove elaboration code, now done in the binder.
11578         * s-rident.ads: Make this unit Preelaborate.
11579         (No_Restrictions): New constant used to clean up code and follow
11580         preelaborate constraints.
11582         * s-stalib.adb: 
11583         Add System.Restrictions dependence, referenced directly from the
11584         binder generated file.
11586 2006-10-31  Gary Dismukes  <dismukes@adacore.com>
11588         * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
11589         True when AAMP extended floating-point is in use (48-bit). Change type
11590         ByteLF to ByteLLF, add new array type ByteLF and condition the size of
11591         the two byte array types on AFloat. Change type of IV_Ilf overlay
11592         variable from Byte8 to ByteLF. Add appropriate initializations of
11593         floating-point overlays for AAMP cases.
11595 2006-10-31  Javier Miranda  <miranda@adacore.com>
11597         * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
11598         (Get_Ceiling): New subprogram that returns
11599         the ceiling priority of the protected object.
11600         (Set_Ceiling): New subprogram that sets the new ceiling priority of
11601         the protected object.
11603         * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
11605         * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
11607 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
11609         * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
11610         requeuing to the same protected object to give higher priority tasks
11611         the opportunity to execute.
11613 2006-10-31  Robert Dewar  <dewar@adacore.com>
11615         * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
11616         add more precise check for the character sequence that follows '[' to
11617         avoid possible confusion in case if '[' is the last character of a
11618         string literals.
11619         (Scan_Wide): Always allow brackets encoding
11621 2006-10-31  Olivier Hainque  <hainque@adacore.com>
11623         * s-stchop.ads: make this unit preelaborate. This is desirable in
11624         general and made mandatory by the use of this unit by s-taprop which
11625         is itself preelaborate.
11627         * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
11628         Td_Events component.
11630 2006-10-31  Vincent Celier  <celier@adacore.com>
11632         * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
11633         in file names.
11635 2006-10-31  Vincent Celier  <celier@adacore.com>
11637         * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
11639 2006-10-31  Vincent Celier  <celier@adacore.com>
11641         * makegpr.adb (Check_Compilation_Needed): Take into account path names
11642         with spaces.
11643         (Check_Compilation_Needed): When checking a C or C++ source, do not
11644         resolve symbolic links.
11645         (Display_Command): New Boolean parameter Ellipse, defaulted to False.
11646         When not in verbose mode and Ellipse is True, display "..." for the
11647         first argument with Display set to False.
11648         (Build_Global_Archive): Always set Display True for the first object
11649         file. Call Display_Command with Ellipse set to True.
11651 2006-10-31  Matt Heaney  <heaney@adacore.com>
11653         * a-crbtgo.ads: Commented each subprogram
11655         * a-crbtgo.adb: Added reference to book from which algorithms were
11656         adapted.
11658         * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
11659         indicate which child.
11660         (Generic_Conditional_Insert): changed parameter name from "Success" to
11661         "Inserted".
11662         (Generic_Unconditional_Insert_With_Hint): improved algorithm
11664         * a-coorse.adb (Replace_Element): changed parameter name in call to
11665         conditional insert operation.
11667         * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
11669         * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
11670         Generic_Iteration
11672         * a-ciorse.adb (Replace_Element): changed parameter name in call to
11673         conditional insert operation.
11675         * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
11676         Generic_Iteration.
11678         * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
11679         instead of mode inout.
11681         * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
11682         draft
11683         (Generic_Read): preserve existing buckets array if possible
11684         (Generic_Write): don't send buckets array length anymore
11686         * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
11687         instead of mode inout.
11689         * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
11690         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
11692         * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
11693         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
11694         (Replace_Element): local operation is now an instantiation
11696         * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
11697         check current length.
11698         (Generic_Replace_Element): new operation
11700 2006-10-31  Doug Rupp  <rupp@adacore.com>
11702         * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
11703         Call TBK$SYMBOLIZE without omitting parameters.
11705 2006-10-31  Vincent Celier  <celier@adacore.com>
11707         * symbols-processing-vms-ia64.adb,
11708         symbols-processing-vms-alpha.adb (Process): Do not include symbols
11709         that come from generic instantiations in bodies.
11711 2006-10-31  Pat Rogers  <rogers@adacore.com>
11713         * a-rttiev.ads, a-rttiev.adb: 
11714         This is a significant redesign primarily for the sake of automatic
11715         timer task termination but also to fix a design flaw.
11716         Therefore we are now using an RTS lock, instead of a protected
11717         object, to provide mutual exclusion to the queue of pending events
11718         and the type Timing_Event is no longer a protected type.
11720 2006-10-31  Robert Dewar  <dewar@adacore.com>
11721             Cyrille Comar  <comar@adacore.com>
11722             Ben Brosgol  <brosgol@adacore.com>
11724         * debug.adb:  Update flags documentation
11726         * gnat_ugn.texi: Add documentation for new -gnatwq switch
11727         Clean up documentation for several other warning switches
11728         Clarify how task stack size can be specified with various
11729         versions of Windows.
11730         Add note that -gnatVo includes ranges including loops
11731         Add documentation for -gnatL switch
11732         Add note on elaboration warning for initializing variables
11733         Add documentation for new -gnatwt warning switch
11734         Document new form of pragma Warnings (On|Off, string)
11735         Add comment on use of pragma Warnings to control warnings
11736         Add documentation for -gnatjnn switch
11737         Modify section on interfacing with C for VMS 64-bit.
11738         Add doc for -gnatVe/E
11739         Add documentation of new warning flags -gnatww/-gnatwW
11740         Add warnings about address clause overlays to list of warnings
11741         (Exception Handling Control): Document that the option --RTS must be
11742         used consistently for gcc and gnatbind.
11743         Clarify that inlining is not always possible
11744         Update documentation on pragma Unchecked_Union.
11746         * gnat_rm.texi: 
11747         Add documentation for new extended version of pragma Obsolescent
11748         Add documentation for implementation defined attribute 'Stub_Type.
11749         Add note on use of Volatile in asm statements
11750         Add documentation on use of pragma Unreferenced in context clause
11751         Document new form of pragma Warnings (On|Off, pattern)
11752         Document pragma Wide_Character_Encoding
11753         Add note that pragma Restrictions (No_Elaboration_Code) is only fully
11754         enforced if code generation is active.
11755         Add section on pragma Suppress to document GNAT specific check
11756         Alignment_Check
11757         Clarify difference between No_Dispatching_Calls & No_Dispatch.
11758         Add documentation for pragma Restrictions (No_Elaboration_Code)
11760         * gnat-style.texi: 
11761         Add comments on layout of subprogram local variables in the
11762         presence of nested subprograms.
11764         * ug_words: Resync.
11766         * elists.ads: Minor reformatting
11767         Node returns Node_Or_Entity_Id (doc change only)
11769         * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
11771         * g-arrspl.ads (Create): Update comments.
11773         * sem.ads: Add details on the handling of the scope stack.
11775         * usage.adb: Update documentation.
11777         * validsw.ads, validsw.adb: 
11778         Add definition of Validity_Check_Components and implement -gnatVe/E
11780         * vms_data.ads: Add missing VMS qualifiers.
11782         * s-addope.ads: Add documentation on overflow and divide by zero
11784 2006-10-31  Robert Dewar  <dewar@adacore.com>
11785             Thomas Quinot  <quinot@adacore.com>
11786             Arnaud Charlet  <charlet@adacore.com>
11788         * fmap.adb: Put routines in alpha order
11790         * g-boumai.ads: Remove redundant 'in' keywords
11792         * g-cgi.adb: Minor reformatting
11794         * g-cgi.ads: Remove redundant 'in' keywords
11796         * get_targ.adb: Put routines in alpha order
11798         * prj-attr.ads: Minor reformatting
11800         * s-atacco.ads: Minor reformatting
11802         * scn.adb: Put routines in alpha order
11804         * sinput-l.adb: Minor comment fix
11806         * sinput-p.adb: Minor comment fix
11808         * s-maccod.ads: Minor reformatting
11810         * s-memory.adb: Minor reformatting
11812         * s-htable.adb: Fix typo in comment.
11814         * s-secsta.adb: Minor comment update.
11816         * s-soflin.adb: Minor reformatting
11818         * s-stoele.ads: 
11819         Add comment about odd qualification in Storage_Offset declaration
11821         * s-strxdr.adb: 
11822         Remove unnecessary 'in' keywords for formal parameters.
11824         * treeprs.adt: Minor reformatting
11826         * urealp.adb: Put routines in alpha order
11828         * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
11829         taking string.
11831         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
11833         * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
11835         * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
11836         workaround as on other platforms.
11838         * g-eacodu-vms.adb: Remove redundant 'in' keywords
11839         * g-expect-vms.adb: Remove redundant 'in' keywords
11841         * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
11842         clear error message if the list-of-files file cannot be opened.
11844         * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
11845         equality operator is always visible.
11847         * lang.opt: Woverlength-strings: New option.
11849         * nmake.adt: 
11850         Update copyright, since nmake.ads and nmake.adb have changed.
11852         * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
11853         (Binder_Output_Time_Stamps_Set): removed.
11854         (Old_Binder_Output_Time_Stamp): idem.
11855         (New_Binder_Output_Time_Stamp): idem.
11856         (Recording_Time_From_Last_Bind): idem.
11857         (Recording_Time_From_Last_Bind): Make constant.
11859         * output.ads, output.adb (Write_Str): Allow LF characters
11860         (Write_Spaces): New procedure
11862         * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
11864         * inline.adb: Minor reformatting
11866         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
11868         * s-mastop-vms.adb: Remove redundant 'in' keywords
11870         * s-osprim-vms.adb: Remove redundant 'in' keywords
11872         * s-trafor-default.adb: Remove redundant 'in' keywords
11874         * 9drpc.adb: Remove redundant 'in' keywords
11876         * s-osinte-mingw.ads: Minor reformatting
11878         * s-inmaop-posix.adb: Minor reformatting
11880         * a-direio.ads: Remove quotes from Compile_Time_Warning message
11882         * a-exexda.adb: Minor code reorganization
11884         * a-filico.adb: Minor reformatting
11886         * a-finali.adb: Minor reformatting
11888         * a-nudira.ads: Remove quote from Compile_Time_Warning message
11890         * a-numeri.ads: Minor reformatting
11892         * a-sequio.ads: Remove quotes from Compile_Time_Warning message
11894         * exp_pakd.ads: Fix obsolete comment
11896         * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
11897         a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
11898         Probably not a bug, but certainly neater and more efficient.
11900         * a-tienio.adb: Minor reformatting
11902         * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
11903         Avoid assuming low bound of string is 1.
11905         * gnatbind.adb: Change Bindusg to package and rename procedure as
11906         Display, which now ensures that it only outputs usage information once.
11907         (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
11909         * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
11910         Table'First.
11912         * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
11913         warning.
11914         (Match): Add pragma Assert to ensure that Matches'First is zero
11916         * g-regpat.ads (Match): Document that Matches lower bound must be zero
11918         * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
11919         documented preconditions (also kills warnings about bad indexes).
11921         * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
11922         is 1.
11923         (Build_Import_Library): Ditto;
11925         * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
11927         * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
11929         * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
11930         lower bound of choice table is 1.
11932         * sem_case.ads (Analyze_Choices): Document that lower bound of
11933         Choice_Table is 1.
11935         * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
11936         string is 1.
11938         * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
11939         and add appropriate Assert pragma to suppress warnings.
11941         * atree.h, atree.ads, atree.adb
11942         Change Elist24 to Elist25
11943         Add definitions of Field28 and Node28
11944         (Traverse_Field): Use new syntactic parent table in sinfo.
11946         * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
11948         * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
11950         * exp_tss.adb: Put routines in alpha order
11952         * fe.h: Remove redundant declarations.
11954 2006-10-23 Rafael Avila de Espindola  <rafael.espindola@gmail.com>
11956         * utils.c (builtin_function): Rename to gnat_builtin_function.
11957         Move common code to add_builtin_function.
11958         * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
11959         gnat_builtin_function.
11960         * gigi.h (builtin_function): Rename to gnat_builtin_function.
11961         Change the signature.
11963 2006-10-16  Brooks Moses  <bmoses@stanford.edu>
11965         * Makefile.in: Add TEXI2PDF definition.
11966         * Make-lang.in: Add "ada.pdf" target.
11968 2006-10-03  Kazu Hirata  <kazu@codesourcery.com>
11970         * decl.c, utils.c: Fix comment typos.
11971         * utils.c: Fix a typo.
11973 2006-09-28  Eric Botcazou  <ebotcazou@adacore.com>
11975         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
11976         on "pure" Ada subprograms if SJLJ exceptions are used.
11977         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
11978         on the declaration node of JMPBUF_SAVE.
11979         * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
11980         of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
11981         * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
11983 2006-08-20  Laurent GUERBY  <laurent@guerby.net>
11985         PR ada/28716
11986         g-socket.adb (Bind_Socket): Call Set_Address.
11988 2006-09-15  Eric Botcazou  <ebotcazou@adacore.com>
11990         PR ada/15802
11991         * decl.c (same_discriminant_p): New static function.
11992         (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
11993         subtype and we have discriminants, fix up the COMPONENT_REFs
11994         for the discriminants to make them reference the corresponding
11995         fields of the parent subtype after it has been built.
11997 2006-09-15  Roger Sayle  <roger@eyesopen.com>
11999         PR ada/18817
12000         * utils.c (max_size): Perform constant folding of (A ? B : C) - D
12001         into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
12003 2006-09-13  Olivier Hainque  <hainque@adacore.com>
12005         PR ada/29025
12006         * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
12007         of a SAVE_EXPR, just make the operand addressable/not-readonly and
12008         let the common gimplifier code make and propagate a temporary copy.
12009         (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
12010         out/in-out actuals and defer setting the addressable/readonly bits
12011         to the gimplifier.
12013 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
12015         PR ada/28591
12016         * decl.c (components_to_record): Defer emitting debug info for the
12017         record type associated with the variant until after we are sure to
12018         actually use it.
12020 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
12022         PR ada/21952
12023         * gigi.h (gnat_internal_attribute_table): Declare.
12024         * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
12025         * utils.c (gnat_internal_attribute_table): New global variable.
12026         (builtin_function): Always call decl_attributes on the builtin.
12027         (handle_const_attribute): New static function.
12028         (handle_nothrow_attribute): Likewise.
12030 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
12032         * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
12034 2006-06-23  Olivier Hainque  <hainque@adacore.com>
12036         * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
12037         not been able to get a constant upper bound from TYPE_SIZE_UNIT.
12039 2006-06-20  James A. Morrison  <phython@gcc.gnu.org>
12040             Eric Botcazou  <ebotcazou@adacore.com>
12042         PR ada/18692
12043         * Make-lang.in: Add check-gnat to lang_checks.  Rename existing
12044         check-gnat into check-acats.
12046 2006-06-17  Karl Berry  <karl@gnu.org>
12048         * gnat-style.texi (@dircategory): Use "Software development"
12049         instead of "Programming", following the Free Software Directory.
12051 2006-06-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12053         PR ada/27944
12054         * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
12056 2006-06-06  Laurent GUERBY  <laurent@guerby.net>
12058         PR ada/27769
12059         mlib-utl.adb: Use Program_Name.
12061 2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
12063         * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
12064         sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
12065         trans.c, utils.c: Fix comment typos.  Follow spelling
12066         conventions.
12067         * gnat_rm.texi, gnat_ugn.texi, : Fix typos.  Follow spelling
12068         conventions.
12070 2006-05-19  Nicolas Setton  <setton@adacore.com>
12072         * misc.c (gnat_dwarf_name): New function.
12073         (LANG_HOOKS_DWARF_NAME): Define to it.
12075 2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12077         * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
12078         (ada/misc.o): Likewise.
12079         (ada/utils.o): Likewise.
12081 2006-04-08  Aurelien Jarno  <aurel32@debian.org>
12083         * Makefile.in: Add Ada support for GNU/kFreeBSD.
12084         * s-osinte-kfreebsd-gnu.ads: New file.
12086 2006-03-29  Carlos O'Donell  <carlos@codesourcery.com>
12088         * Make-lang.in: Rename docdir to gcc_docdir.
12090 2006-03-04  Eric Botcazou  <ebotcazou@adacore.com>
12092         * gigi.h (get_ada_base_type): Delete.
12093         * utils2.c (get_ada_base_type): Likewise.
12094         * trans.c (convert_with_check): Operate in the real base type.
12096 2006-03-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12098         * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
12100 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
12102         * utils.c (create_var_decl): Use have_global_bss_p when deciding
12103         whether to make the decl common.
12105 2006-02-20  Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
12107         * Make-lang.in (Ada): Remove.
12108         (.PHONY): Remove Ada
12110 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
12112         * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
12113         aggregate, check the interpretations of the other operand to find one
12114         that may be a boolean array.
12116         (Analyze_Selected_Component): Fix flow-of-control typo in case where
12117         the prefix is a private extension.
12119 2006-02-17  Eric Botcazou  <botcazou@adacore.com>
12121         PR ada/26315
12122         * utils2.c (find_common_type): If both input types are BLKmode and
12123         have the same constant size, keep using the first one.
12125         * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
12127         * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
12129         * misc.c (gnat_handle_option): New case for -Woverlength-strings.
12131 2006-02-17  Jose Ruiz  <ruiz@adacore.com>
12133         * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb, 
12134         s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
12135         s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb, 
12136         s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
12137         Abort_Defer/Undefer pairs to avoid the possibility of a task being
12138         aborted while owning a lock.
12140 2006-02-17  Javier Miranda  <miranda@adacore.com>
12141             Robert Dewar  <dewar@adacore.com>
12143         * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
12144         through an access to class-wide interface we force the displacement of
12145         the pointer to the allocated object to reference the corresponding
12146         secondary dispatch table.
12147         (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
12148         if Long_Shifts are supported on the target, even if 64 bit divides
12149         are not supported (configurable run time mode).
12150         (Expand_N_Type_Conversion): Do validity check if validity checks on
12151         operands are enabled.
12152         (Expand_N_Qualified_Expression): Do validity check if validity checks
12153         on operands are enabled.
12155 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
12157         * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
12158         must be materialized when the renamed expression is an explicit
12159         dereference.
12161 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
12163         * freeze.adb (Statically_Discriminated_Components): Return false if
12164         the bounds of the type of the discriminant are not static expressions.
12166         * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
12167         the bounds of the discriminant type are not static.
12169 2006-02-17  Robert Dewar  <dewar@adacore.com>
12171         * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
12172         then we close To if it is valid.
12174 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
12176         * init.c (facility_resignal_table): new array
12177         (__gnat_default_resignal_p): enhance default predicate to resignal if
12178         VMS condition has one of the predefined facility codes.
12180 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
12182         * Makefile.in: Use VMS64 specialized versions of several units in
12183         Interfaces.C hierarchy to be compatible with HP C default size choices.
12184         Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
12186 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
12188         * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
12189         instantiation, the corresponding entity is the related_instance of the
12190         wrapper package created for the instance.
12192 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
12194         * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
12195         the current instance is nested within another instance in a child unit.
12197 2006-02-17  Javier Miranda  <miranda@adacore.com>
12198             Ed Schonberg  <schonberg@adacore.com>
12200         * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
12201         type we cannot inherit the primitive operations; we inherit the
12202         Corresponding_Record_Type (which has the list of primitive operations).
12203         (Check_Anonymous_Access_Types): When creating anonymous access types for
12204         access components, use Rewrite in order to preserve the tree structure,
12205         for ASIS use.
12206         (Analyze_Object_Declaration): For limited types with access
12207         discriminants with defaults initialized by an aggregate, obtain
12208         subtype from aggregate as for other mutable types.
12209         (Derived_Type_Declaration): If the derived type is a limited interface,
12210         set the corresponding flag (Is_Limited_Record is not sufficient).
12212 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
12214         * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
12215         to inline a function that returns an unconstrained type, the return
12216         expression must be the first variable declared in the body of the
12217         function.
12219 2006-02-17  Javier Miranda  <miranda@adacore.com>
12221         * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
12222         abstract interface type, the static analysis is not enough to know if
12223         the interface is implemented or not by the source tagged type. Hence
12224         we must pass the work to the expander to generate the required code to
12225         evaluate the conversion at run-time.
12226         (Resolve_Equality_Op): Do not apply previous
12227         transformation if expansion is disasbled, to prevent anomalies when
12228         locating global references in a generic unit.
12230 2006-02-17  Vincent Celier  <celier@adacore.com>
12232         * snames.ads, snames.adb: New standard names for new project attributes:
12233         archive_builder, archive_indexer, compiler_pic_option,
12234         config_body_file_name, config_body_file_name_pattern,
12235         config_file_switches, config_file_unique, config_spec_file_name,
12236         config_spec_file_name_pattern, default_builder_switches,
12237         default_global_compiler_switches, default_language,
12238         dependency_file_kind, global_compiler_switches, include_path,
12239         include_path_file, language_kind, linker_executable_option,
12240         linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
12241         roots, runtime_project.
12243 2006-02-17  Matthew Heaney  <heaney@adacore.com>
12245         * a-convec.ads, a-convec.adb: 
12246         (operator "&"): handle potential overflow for large index types
12247         (Insert): removed Contraint_Error when using large index types
12248         (Insert_Space): removed Constraint_Error for large index types
12249         (Length): moved constraint check from Length to Insert
12251         * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
12252         as not null access.
12253         Explicit raise statements now include an exception message.
12254         (operator "&"): handle potential overflow for large index types
12255         (Insert): removed Contraint_Error when using large index types
12256         (Insert_Space): removed Constraint_Error for large index types
12257         (Length): moved constraint check from Length to Insert
12259 2006-02-17  Robert Dewar  <dewar@adacore.com>
12261         * s-wchcnv.adb: Document handling of [ on output (we do not change
12262         this to ["5B"] and the new comments say why not.
12264         * gnat_ugn.texi: 
12265         Add note for -gnatVo that this now includes the cases of type
12266         conversions and qualified expressions.
12267         Add comments on handling of brackets encoding for Text_IO
12269 2006-02-17  Ramon Fernandez  <fernandez@adacore.com>
12270             Thomas Quinot  <quinot@adacore.com>
12271             Robert Dewar  <dewar@adacore.com>
12272             Javier Miranda  <miranda@adacore.com>
12274         * expander.adb: Fix typo in comment
12276         * exp_pakd.adb: Fix typo
12277         Minor comment reformatting.
12279         * g-dyntab.adb: Minor reformatting
12281         * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
12282         aliased subprograms to look for the abstract interface subprogram.
12284 2006-02-16  Eric Botcazou  <ebotcazou@adacore.com>
12286         * env.c (__gnat_setenv): Use size_t.
12287         (__gnat_unsetenv): Likewise.
12288         (__gnat_clearenv): Likewise.
12290 2006-02-16  Arnaud Charlet  <charlet@adacore.com>
12292         * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
12294 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
12296         * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
12297         g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
12298         i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
12299         s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
12300         s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
12301         s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
12302         s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
12303         s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
12304         s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
12305         no longer used.
12307 2006-02-13  Jose Ruiz  <ruiz@adacore.com>
12309         * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
12310         protection against race conditions is not needed.
12311         (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
12312         fallback handler.
12313         (Set_Specific_Handler): Add mutual exclusive access to the specific
12314         handler.
12315         (Specific_Handler): Add mutual exclusive access for retrieving the
12316         specific handler.
12318         * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
12319         back handler.
12321         * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
12322         Fall_Back_Handler and Specific_Handler.
12324         * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
12325         termination handlers.
12326         Set two different owerflow depending on the maximal stack size.
12328         * s-solita.adb (Task_Termination_Handler_T): Document why explicit
12329         protection against race conditions is not needed when executing the
12330         task termination handler.
12332 2006-02-13  Robert Dewar  <dewar@adacore.com>
12334         * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
12335         a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
12336         a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
12337         a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
12338         a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
12339         a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
12340         a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
12341         a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
12342         a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
12343         a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
12344         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
12345         a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
12346         a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
12347         a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
12348         a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
12349         a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
12350         a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
12351         a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
12352         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
12353         a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
12354         g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
12355         g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
12356         mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
12357         prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
12358         s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
12359         s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
12360         s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
12361         s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
12362         s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
12363         s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
12364         a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
12365         fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
12366         par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
12367         system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
12368         reformatting.
12370 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
12372         * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
12373         s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
12374         s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
12375         s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
12376         a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
12377         s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
12378         a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
12379         s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
12380         s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
12382 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
12384         * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads, 
12385         s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads, 
12386         s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads, 
12387         s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads, 
12388         s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads, 
12389         s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
12390         replaced by anonymous access type.
12391         (pthread_sigmask): Now take an access sigset_t
12393         * s-osinte-hpux.ads:  Ditto.
12394         (pthread_mutex_t, pthread_cond_t): Update definitions to support
12395         properly 32 and 64 bit ABIs.
12397 2006-02-13  Pascal Obry  <obry@adacore.com>
12399         * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb, 
12400         s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb, 
12401         s-taprop-linux.adb, s-taprop-solaris.adb,
12402         s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
12403         adjustement is already done when calling this routine.
12405 2006-02-13  Pascal Obry  <obry@adacore.com>
12407         * system-mingw.ads (Underlying_Priorities): Update the priority mapping
12408         table to take advantage of the 16 priority levels available on Windows
12409         2000 and XP. On NT4 there are only 7 priority levels, this is properly
12410         supported by this new mapping.
12412 2006-02-13  Nicolas Setton  <setton@adacore.com>
12414         * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
12415         (get_encoding): New subprogram. Extracts the encodings from an encoded
12416         Ada name.
12418 2006-02-13  Pascal Obry  <obry@adacore.com>
12419             Nicolas Roche  <roche@adacore.com>
12420             Arnaud Charlet  <charlet@adacore.com>
12422         * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
12423         support.
12424         (__gnat_try_lock): Add unicode support by using a specific section on
12425         Windows.
12426         (__gnat_get_current_dir): Idem.
12427         (__gnat_open_read): Idem.
12428         (__gnat_open_rw): Idem.
12429         (__gnat_open_create): Idem.
12430         (__gnat_create_output_file): Idem.
12431         (__gnat_open_append): Idem.
12432         (__gnat_open_new): Idem.
12433         (__gnat_file_time_name): Idem.
12434         (__gnat_set_file_time_name): Idem.
12435         (__gnat_stat): Idem.
12436         (win32_no_block_spawn): Idem.
12437         (__gnat_locate_exec_on_path): Idem.
12438         (__gnat_opendir): New routine.
12439         (__gnat_closedir): Idem.
12440         (__gnat_readdir): Add new parameter length (pointer to int). Update
12441         implementation to use it and add specific Win32 code for Unicode
12442         support.
12443         (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
12444         (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
12445         (convert_addresses): Do not define this dummy routine on VMS.
12447         * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
12448         runtime Unicode support will be activated.
12449         (S2WS): String to Wide-String conversion. This version just copy a
12450         string in non Unicode version.
12451         (WS2S): Wide-String to String conversion. This version just copy a
12452         string in non Unicode version.
12454         * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
12455         (Open): Now import __gnat_opendir from adaint.c.
12456         (Read): Change the implementation to support unicode characters. It is
12457         not possible to use strlen() on Windows as this version supports only
12458         standard ASCII characters. So the length of the directory entry is now
12459         returned from the imported __gnat_readdir routine.
12460         Update copyright notice.
12462         * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
12463         (opendir): Moved to adaint.c.
12465         * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
12466         (Get_Directory): Fix wrong indexing.
12467         (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
12468         __gnat_getenv from env.c
12469         (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
12470         from env.c
12472         * env.h, env.c: New file.
12474         * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
12475         adaint.c by __gnat_getenv from env.c
12477         * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
12478         adaint.c by __gnat_getenv from env.c
12480         * Make-lang.in: Add env.o in the list of C object needed by gnat1
12481         and gnatbind.
12482         Update dependencies.
12484 2006-02-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12485             Olivier Hainque  <hainque@adacore.com>
12486             Eric Botcazou  <ebotcazou@adacore.com>
12488         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
12489         
12490         * gigi.h (value_factor_p): Add prototype and description, now public.
12492         * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
12493         promotion for field with rep clause if the associated size was proven
12494         to be in error.
12495         Expand comments describing attempts to use a packable type.
12496         (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
12497         E_Floating_Point_Subtype>: Inherit alias set of what we are making a
12498         subtype of to ensure conflicts amongst all subtypes in a hierarchy,
12499         necessary since these are not different types and pointers may
12500         actually designate any subtype in this hierarchy.
12501         (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
12502         discriminants but put them into record only if not Unchecked_Union;
12503         pass flag to components_to_record showing Unchecked_Union.
12504         (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
12505         components before variants; don't set TYPE_UNCHECKED_UNION_P.
12506         (components_to_record): New argument UNCHECKED_UNION.
12507         Remove special case code for Unchecked_Union and instead use main code
12508         with small changes.
12510         PR ada/26096
12511         (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
12512         variable with the expression being built, only its inner field.
12514         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
12515         emit_sequence_entry_statements.
12516         (emit_sequence_entry_statements, body_with_handlers_p): Delete.
12517         (establish_gnat_vms_condition_handler): Move before
12518         Subprogram_Body_to_gnu.
12519         (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
12520         for a subprogram if it has a foreign convention or is exported.
12521         (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
12522         substituted for a CONST_DECL.
12523         (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
12524         Etype to assoc_to_constructor.
12525         (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
12526         discriminants of Unchecked_Union.
12527         (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
12528         don't need cluttering preprocessor directives.
12529         (establish_gnat_vms_condition_handler): New function. Establish the GNAT
12530         condition handler as current in the compiled function.
12531         (body_with_handlers_p): New function. Tell whether a given sequence of
12532         statements node is attached to a package or subprogram body and involves
12533         exception handlers possibly nested within inner block statements.
12534         (emit_sequence_entry_statements): New function, to emit special
12535         statements on entry of sequences when necessary. Establish GNAT
12536         condition handler in the proper cases for VMS.
12537         (Handled_Sequence_Of_Statements_to_gnu): Start block code with
12538         emit_sequence_entry_statements.
12540         * utils2.c (find_common_type): If both input types are BLKmode and
12541         have a constant size, use the smaller one.
12542         (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
12543         the same.
12545         * utils.c (value_factor_p): Make public, to allow uses from other gigi
12546         units.
12547         (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
12548         (convert, case UNION_TYPE): Remove special treatment for unchecked
12549         unions.
12551         PR ada/18659
12552         (update_pointer_to): Update variants of pointer types to unconstrained
12553         arrays by attaching the list of fields of the main variant.
12555 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
12556             Robert Dewar  <dewar@adacore.com>
12558         * a-exexpr.adb, a-exexpr-gcc.adb
12559         (Process_Raise_Exception): Removed, merged with Propagate_Exception.
12560         (Propagate_Exception): Now take extra From_Signal_Handler parameter.
12561         Remove code unused for exception propagation for the compiler itself
12562         from a-except.adb and update to still share separate packages.
12564         * a-except.ads, a-except.adb: Ditto.
12565         Add comments that this version is now used only by the compiler and
12566         other basic tools. The full version that includes the Ada 2005 stuff
12567         is in separate files a-except-2005.ads/adb. The reason is that we do
12568         not want to cause bootstrap problems with compilers not recognizing
12569         Wide_Wide_String.
12570         Add exception reason code PE_Implicit_Return
12571         Add new exception reason code (Null Exception_Id)
12573         * a-except-2005.adb, a-except-2005.ads: New files.
12575         * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
12577         * s-wchcon.adb: New file.
12579         * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
12580         (traceback.o deps): Likewise.
12581         (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
12582         Activate build of GMEM instrumentation library on VMS targets.
12583         (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
12584         Use a-except-2005.ads/adb for all run-time library builds unless
12585         specified otherwise.
12586         [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
12587         s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
12588         Use s-parame.adb on all native platforms.
12589         Use s-parame-vxworks.adb on all vxworks platforms.
12590         Add env.c env.h in LIBGNAT_SRCS
12591         Add env.o in LIBGNAT_OBJS
12592         (GNATMAKE_OBJS): Remove ctrl_c.o object.
12593         (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
12594         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
12595         supports VxWorks 6 RTPs.
12596         (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
12597         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
12599         * types.h, types.ads (Terminate_Program): New exception
12600         Add comment on modifying multiple versions of a-except.adb when the
12601         table of exception reasons is modified.
12602         Add exception reason code PE_Implicit_Return
12603         Add new exception reason code (Null Exception_Id)
12605         * clean.adb (Initialize): Get the target parameters before checking
12606         if target is OpenVMS. Move the OpenVMS specific code here from package
12607         body elaboration code.
12609 2006-02-13  Thomas Quinot  <quinot@adacore.com>
12610             Vincent Celier  <celier@adacore.com>
12611             Robert Dewar  <dewar@adacore.com>
12613         * ali-util.adb (Get_File_Checksum): Update to account for change in
12614         profile of Initialize_Scanner.
12616         * gprep.adb (Gnatprep): Update to account for change in profile of
12617         Initialize_Scanner.
12618         (Process_One_File): Same.
12620         * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
12621         common code between Get_Code_Unit and Get_Source_Unit. Reimplement
12622         that behaviour using the new Unit information recorded in the source
12623         files table, rather than going through all units every time.
12624         (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
12625         (Get_Source_Unit): Same.
12627         * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
12628         change in profile of Initialize_Scanner.
12629         (Prepare_To_Preprocess): Same.
12631         * lib.ads: Fix typo in comment (templace -> template).
12633         * prj-part.adb (Parse_Single_Project): Update to account for change in
12634         profile of Initialize_Scanner.
12636         * scn.adb (Initialize_Scanner): Account for change in profile of
12637         Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
12638         Also record the association of the given Source_File_Index to the
12639         corresponding Unit_Number_Type.
12641         * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
12642         procedure.
12643         (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
12644         Remove Unit formal for generic scanner: this formal
12645         is only relevant to Scn (the scanner instance used to parse Ada source
12646         files), not to other instances. Update comment accordingly.
12647         (Scan): Use new function Snames.Is_Keyword_Name.
12649         * sinfo-cn.adb: Fix typo in comment.
12651         * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
12652         Unit.
12654         * sinput.ads (Source_File_Record): New component Unit, used to capture
12655         the unit identifier (if any) associated to a source file.
12657         * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
12658         Unit in Source_File_Record.
12660         * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
12661         in profile of Initialize_Scanner.
12663         * scans.adb (Initialize_Ada_Keywords): New procedure
12665         * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
12666         Ada keywords in the Namet table, without the need to call
12667         Initialize_Scanner.
12669         * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
12670         (Is_Keyword_Name): New function
12672         * snames.ads: Add subtype Configuration_Pragma_Names
12673         Add pragma Ada_2005 (synonym for Ada_05)
12674         (Is_Keyword_Name): New function
12676         * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
12678 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
12680         * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
12681         index.
12683         * a-stwima.adb (To_Set): Add extra check when N = 0.
12685         * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
12687 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
12689         * s-parame-mingw.adb, s-parame-linux.adb,
12690         s-parame-solaris.adb: Removed, replaced by s-parame.adb
12692         * s-parame-vxworks.ads: Fix typo.
12694         * s-parame-vxworks.adb: New file.
12696         * s-parame.adb: Version now used by all native platforms.
12697         (Default_Stack_Size): Use 2 megs for default stack size and use
12698         __gl_default_stack_size when available.
12699         (Minimum_Stack_Size): Use 12K.
12701         * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
12702         (Create_Task): Refine implementation taking advantage of the XP stack
12703         size support. On XP, we now create the thread using the flag
12704         STACK_SIZE_PARAM_IS_A_RESERVATION.
12706         * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
12708         * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
12709         XP and 0 on older Windows versions.
12711         * interfac-vms.ads: Removed, no longer used.
12713 2006-02-13  Matthew Heaney  <heaney@adacore.com>
12715         * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb, 
12716         a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb, 
12717         a-cohase.adb: All explicit raise statements now include an exception
12718         message.
12720         * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
12721         (Update_Element_Preserving_Key): renamed op to just Update_Element.
12722         Explicit raise statements now include an exception message
12724         * a-cihase.ads, a-cohase.ads: Removed comment.
12726         * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
12727         a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
12728         a-szbzha.adb, a-szfzha.ads: New files.
12730 2006-02-13  Matthew Heaney  <heaney@adacore.com>
12732         * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
12733         quicksort.
12735 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
12737         * lang.opt: Wvariadic-macros: New option.
12738         Wold-style-definition: Likewise.
12739         Wmissing-format-attribute: Likewise.
12741         * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
12742         -Wold-style-definition and -Wmissing-format-attribute.
12744 2006-02-13  Robert Dewar  <dewar@adacore.com>
12746         * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
12748         * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
12750 2006-02-13  Nicolas Roche  <roche@adacore.com>
12752         * a-envvar.adb, a-envvar.ads: New files.
12754 2006-02-13  Douglas Rupp  <rupp@adacore.com>
12756         * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
12758         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
12760 2006-02-13  Pat Rogers  <rogers@adacore.com>
12762         * a-rttiev.adb, a-rttiev.ads: New files.
12764 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
12766         * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
12767         a-wwboio.ads, a-zzboio.adb, a-zzboio.ads:  New files.
12769         * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
12771 2006-02-13  Robert Dewar  <dewar@adacore.com>
12773         * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb, 
12774         sem_case.adb: Minor code reorganization (not Present should be No)
12776 2006-02-13  Geert Bosch  <bosch@adacore.com>
12777             Gary Dismukes  <dismukes@adacore.com>
12779         * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
12780         0, since the lower bound of the actual string may be greater than one.
12782         PR ada/20753
12783         * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
12784         layout is requested.
12786 2006-02-13  Vincent Celier  <celier@adacore.com>
12788         * back_end.adb (Scan_Compiler_Arguments): Check if
12789         Search_Directory_Present is True and, if it is, add the argument in
12790         the source search directory path.
12792         * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
12793         Search_Directory_Present to True.
12795 2006-02-13  Joel Brobecker  <brobecke@adacore.com>
12797         * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
12798         volatile, to tell the compiler to preserve this variable at any level
12799         of optimization.
12800         (Gen_Versions_Ada): Temporarily work around codegen bug.
12802 2006-02-13  Vincent Celier  <celier@adacore.com>
12804         * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
12805         gcc to link with option -shared-libgcc.
12806         (Gnatlink): Remove duplicate switches -shared-libgcc
12808 2006-02-13  Robert Dewar  <dewar@adacore.com>
12810         * gnatvsn.ads (Current_Year): New constant, used to easily update
12811         copyright on all GNAT tools.
12813         * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
12814         copyright notice.
12816 2006-02-13  Robert Dewar  <dewar@adacore.com>
12818         * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
12819         after hyphen (small aesthetic change useful for a range of numbers
12820         using ^-^.
12821         Suppress range checks for a couple of assignments which otherwise
12822         cause validity checks with validity checking turned on.
12824         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
12825         Improvement in error message for object.
12826         (Rep_Item_Too_Late): Remove '!' in warning message.
12828 2006-02-13  Robert Dewar  <dewar@adacore.com>
12829             Eric Botcazou  <ebotcazou@adacore.com>
12831         * err_vars.ads: Suppress range checks for a couple of assignments
12832         which otherwise cause validity checks with validity checking turned on.
12833         Update comments.
12835         * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
12836         Make message unconditional if it is a warning.
12837         (Error_Msg_NEL): Always output warning messages.
12838         Suppress range checks for a couple of assignments which otherwise
12839         cause validity checks with validity checking turned on.
12841         * errout.ads (Message Insertion Characters): Document that '!' is
12842         implied by '?' in error messages.
12844         * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
12845         (Gnat1drv): Use a goto to end of main subprogram instead of
12846         Exit_Program (E_Success) so that finalization can occur normally.
12848 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
12850         * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
12851         wrapped around.
12853 2006-02-13  Vincent Celier  <celier@adacore.com>
12855         * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
12856         Unchecked_Conversion functions.
12857         (Modification_Time): Use direct conversion of OS_Time to Calendar time
12858         when OpenVMS returns False.
12860         * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
12861         a-dirval.adb (OpenVMS): New Boolean function
12863 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
12864             Thomas Quinot  <quinot@adacore.com>
12866         * checks.adb (Build_Discriminant_Checks): If the expression being
12867         checks is an aggregate retrieve the values of its discriminants to
12868         generate the check, rather than creating a temporary and a reference
12869         to it.
12870         (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
12871         (Install_Null_Excluding_Check): Ditto
12872         (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
12873         not for the renamed object, so that the actual itype is attached in the
12874         proper context.
12876 2006-02-13  Robert Dewar  <dewar@adacore.com>
12877             Vincent Celier  <celier@adacore.com>
12879         * debug.adb: Eliminate numeric switches for binder/gnatmake
12881         * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
12882         switches for the compiler.
12883         (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
12884         (Scan_Make_Switches): When failing with an illegal switch, output an
12885         error message with the full switch.
12886         Eliminate numeric switches for binder/gnatmake
12888         * switch.ads, switch.adb (Bad_Switch): New procedure
12890         * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
12891         Remove 0-9 as debug flag character possibilities
12892         -d is now controlling the primary stack size when its value is a
12893         positive. Also add checks against invalid values, and support for kb,
12894         mb. Ditto for -D switch.
12896 2006-02-13  Robert Dewar  <dewar@adacore.com>
12897             Serguei Rybin  <rybin@adacore.com>
12899         * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
12900         save/restore routines.
12901         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
12902         were not always properly handled previously.
12903         Since we are changing the tree format anyway, also get rid of the
12904         junk obsolete Immediate_Errors flag.
12905         (Tree_Read): Change the way of reading Tree_Version_String - now we
12906         read the version string from the tree even if its length is not the
12907         same as the length of the version string computed from Gnatvsn.
12908         (Search_Directory_Present): New Boolean flag for the compiler.
12909         Define Tree_Version_String as a dynamic string.
12910         (Default_Stack_Size): new variable, used to handle switch -d.
12912         * par-prag.adb: 
12913         For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
12914         only for main unit.
12915         Add pragma Ada_2005 (synonym for Ada_05)
12916         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
12917         were not always properly handled previously.
12919         * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
12920         explicit Ada_95 to Ada_2005.
12922 2006-02-13  Javier Miranda  <miranda@adacore.com>
12923             Robert Dewar  <dewar@adacore.com>
12924             Ed Schonberg  <schonberg@adacore.com>
12926         * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
12927         against errors in the source program: a private types for which the
12928         corresponding full type declaration is missing and pragma CPP_Virtual
12929         is used.
12930         (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
12931         (Is_Known_Null): New flag
12932         (Has_Pragma_Pure): New flag
12933         (No_Return): Present in all entities, set only for procedures
12934         (Is_Limited_Type): A type whose ancestor is an interface is limited if
12935         explicitly declared limited.
12936         (DT_Offset_To_Top_Func): New attribute that is present in E_Component
12937         entities. Only used for component marked Is_Tag. If present it stores
12938         the Offset_To_Top function used to provide this value in tagged types
12939         whose ancestor has discriminants.
12941         * exp_ch2.adb: Update status of new Is_Known_Null flag
12943         * sem_ch7.adb: Maintain status of new Is_Known_Null flag
12945         * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
12946         the categorization sense if Is_Pure was set by pragma Pure_Function.
12948 2006-02-13  Quentin Ochem  <ochem@adacore.com>
12949             Olivier Hainque  <hainque@adacore.com>
12951         * bindusg.adb: Updated documentation for -d and -D switches.
12953         * raise.h (__gnat_set_globals): added new parameter for
12954         Default_Stack_Size.
12956         * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
12957         (__gnat_handle_vms_condition): Adjust context before raise.
12958         (__gnat_install_handler): Restore the global vector setup for GCC
12959         versions before 3.4, as the frame based circtuitry is not available
12960         in this case.
12961         (__gnat_set_globals): added a parameter default_stack_size
12962         (__gl_default_stack_size): new variable.
12964 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
12966         * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
12967         "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
12968         does not exist in the Ada RM.
12969         (Compatible_Int_Bounds): Determine whether two integer range bounds
12970         are of equal length and have the same start and end values.
12971         (Is_Int_Range_Bounds): Determine whether a node is an integer range.
12972         (Build_Record_Aggr_Code): Perform proper sliding of a nested array
12973         aggregate when it is part of an object declaration.
12974         (Build_Record_Aggr_Code)  If the aggregate ttype is a derived type that
12975         constrains discriminants of its parent, add explicitly the discriminant
12976         constraints of the ancestor by retrieving them from the
12977         stored_constraint of the parent.
12979 2006-02-13  Robert Dewar  <dewar@adacore.com>
12981         * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
12982         attribute Mechanism_Code is applied to renamed subprogram, modify
12983         prefix to point to base subprogram.
12984         Max/Min attributes now violate Restriction No_Implicit_Conditionals
12986         * sinfo.ads: Document that Mechanism_Code cannot be applied to
12987         renamed subprograms so that the front-end must replace the prefix
12988         appropriately.
12990 2006-02-13  Javier Miranda  <miranda@adacore.com>
12991             Gary Dismukes  <dismukes@adacore.com>
12993         * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
12994         availability of RE_Interface_Tag.
12995         (Build_Initialization_Call): Fix wrong access to the discriminant value.
12996         (Freeze_Record_Type): Do not generate the tables associated with
12997         timed and conditional dispatching calls through synchronized
12998         interfaces if compiling under No_Dispatching_Calls restriction.
12999         When compiling for Ada 2005, for a nonabstract
13000         type with a null extension, call Make_Controlling_Function_Wrappers
13001         and insert the wrapper function declarations and bodies (the latter
13002         being appended as freeze actions).
13003         (Predefined_Primitive_Bodies): Do not generate the bodies of the
13004         predefined primitives associated with timed and conditional
13005         dispatching calls through synchronized interfaces if we are
13006         compiling under No_Dispatching_Calls.
13007         (Build_Init_Procedure):  Use RTE_Available to check if a run-time
13008         service is available before generating a call.
13009         (Make_Controlling_Function_Wrappers): New procedure.
13010         (Expand_N_Full_Type_Declaration): Create a class-wide master for
13011         access-to-limited-interfaces because they can be used to reference
13012         tasks that implement such limited interface.
13013         (Build_Offset_To_Top_Functions): Build the tree corresponding to the
13014         procedure spec and body of the Offset_To_Top function that is generated
13015         when the parent of a type with discriminants has secondary dispatch
13016         tables.
13017         (Init_Secondary_Tags): Handle the case in which the parent of the type
13018         containing secondary dispatch tables has discriminants to generate the
13019         correct arguments to call Set_Offset_To_Top.
13020         (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
13022         * a-tags.ads, a-tags.adb: (Check_Index): Removed.
13023         Add Wide_[Wide_]Expanded_Name.
13024         (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
13025         the same functionality of Get_Prim_Op_Address but applied to predefined
13026         primitive operations because the pointers to the predefined primitives
13027         are now saved in a separate table.
13028         (Parent_Size): Modified to get access to the separate table of primitive
13029         operations or the parent type.
13030         (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
13031         functionality of Set_Prim_Op_Address but applied to predefined primitive
13032         operations.
13033         (Set_Signature): New subprogram used to store the signature of a DT.
13034         (Displace): If the Offset_To_Top value is not static then call the
13035         function generated by the expander to get such value; otherwise use
13036         the value stored in the table of interfaces.
13037         (Offset_To_Top): The type of the actual has been changed to Address to
13038         give the correct support to tagged types with discriminants. In this
13039         case this value is stored just immediately after the tag field.
13040         (Set_Offset_To_Top): Two new formals have been added to indicate if the
13041         offset_to_top value is static and hence pass this value to the run-time
13042         to store it in the table of interfaces, or else if this value is dynamic
13043         and then pass to the run-time the address of a function that is
13044         generated by the expander to provide this value for each object of the
13045         type.
13047         * rtsfind.ads (Default_Prin_Op_Count): Removed.
13048         (Default_Prim_Op_Count): New entity
13049         (Get_Predefined_Prim_Op_Address): New entity
13050         (Set_Predefined_Prim_Op_Address): New entity
13051         (RE_Set_Signature): New entity
13053 2006-02-13  Thomas Quinot  <quinot@adacore.com>
13054             Ed Schonberg  <schonberg@adacore.com>
13056         * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
13057         Make_Adjust_Call done for a newly-allocated object.
13059         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
13060         in a subprogram are wrapped in a cleanup block, indicate that the
13061         subprogram contains an inner block with an exception handler.
13062         (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
13063         Adjust call is for a newly-allocated object. In that case we must not
13064         assume that the finalization list chain pointers are correct (since they
13065         come from a bit-for-bit copy of the original object's pointers) so if
13066         the attach level would otherwise be zero (no change), we set it to 4
13067         instead to cause the pointers to be reset to null.
13069         * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
13070         reset chain pointers to null.
13072 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
13074         * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
13075         string, and the context requires a loop for the assignment (e.g.
13076         because the left-hand side is packed), generate a unique name for the
13077         temporary that holds the string, to prevent spurious name clashes.
13079 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
13080             Javier Miranda  <miranda@adacore.com>
13081             Robert Dewar  <dewar@adacore.com>
13082             Gary Dismukes  <dismukes@adacore.com>
13084         * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
13085         return unconstrained arrays.
13086         Update comments.
13087         (Expand_Call):  An indirect call through an access parameter of a
13088         protected operation is not a protected call.
13089         Add circuit to raise CE in Ada 2005 mode following call
13090         to Raise_Exception.
13091         (Register_DT_Entry): Do nothing if
13092         the run-time does not give support to abstract interfaces.
13093         (Freeze_Subprogram): In case of dispatching operations, do not generate
13094         code to register the operation in the dispatch table if the source
13095         is compiled with No_Dispatching_Calls.
13096         (Register_Predefined_DT_Entry): Generate code that calls the new
13097         run-time subprogram Set_Predefined_Prim_Op_Address instead of
13098         Set_Prim_Op_Address.
13100         * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
13101         on array assignments if the right-hand side is a function call that has
13102         been inlined. Check is performed on the assignment in the block.
13103         (Process_Bounds): If bounds and range are overloaded, apply preference
13104         rule for root operations to disambiguate, and diagnose true ambiguity.
13105         (Analyze_Assignment): Propagate the tag for a class-wide assignment with
13106         a tag-indeterminate right-hand side even when Expander_Active is True.
13107         Needed to ensure that dispatching calls to T'Input are allowed and
13108         get the tag of the target class-wide object.
13110         * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
13111         an inherited primitive operation that already overrides several
13112         abstract interface primitives. For transitivity, the new entity must
13113         also override all the abstract interface primitives covered by the
13114         inherited overriden primitive.
13115         Emit warning if new entity differs from homograph in same scope only in
13116         that one has an access parameter and the other one has a parameter of
13117         a general access type with the same designated type, at the same
13118         position in the signature.
13119         (Make_Inequality_Operator): Use source locations of parameters and
13120         subtype marks from corresponding equality operator when creating the
13121         tree structure for the implicit declaration of "/=". This does not
13122         change anything in behaviour except that the decoration of the
13123         components of the subtree created for "/=" allows ASIS to get the
13124         string images of the corresponding identifiers.
13125         (Analyze_Return_Statement): Remove '!' in warning message.
13126         (Check_Statement_Sequence): Likewise.
13127         (Analyze_Subprogram_Body): For an access parameter whose designated type
13128         is an incomplete type imported through a limited_with clause, use the
13129         type of the corresponding formal in the body.
13130         (Check_Returns): Implicit return in No_Return procedure now raises
13131         Program_Error with a compile time warning, instead of beging illegal.
13132         (Has_Single_Return):  Function returning unconstrained type cannot be
13133         inlined if expression in unique return statement is not an identifier.
13134         (Build_Body_To_Inline): It is possible to inline a function call that
13135         returns an unconstrained type if all return statements in the function
13136         return the same local variable. Subsidiary procedure Has_Single_Return
13137         verifies that the body conforms to this restriction.
13139         * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
13140         same type, and  one of them is of an anonymous access type, convert
13141         the other operand to it, so that this is a valid binary operation for
13142         gigi.
13143         (Resolve_Type_Conversion): Handle subtypes of protected types and
13144         task types when accessing to the corresponding record type.
13145         (Resolve_Allocator): Add '\' in 2-line warning message.
13146         Remove '!' in warning message.
13147         (Resolve_Call): Add '\' in 2-line warning message.
13148         (Valid_Conversion): Likewise.
13149         (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
13150         resulting type may be an access type with an implicit dereference.
13151         Obtain the proper component from the designated type.
13152         (Make_Call_Into_Operator): Handle properly a call to predefined equality
13153         given by an expanded name with prefix Standard, when the operands are
13154         of an anonymous access type.
13155         (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
13156         Explicit_Dereference and Resolve_Selected_Component, to verify that the
13157         prefix of the expression is not of an incomplete type. Allows full
13158         diagnoses of all semantic errors.
13159         (Resolve_Actuals): If the actual is an allocator whose directly
13160         designated type is a class-wide interface we build an anonymous
13161         access type to use it as the type of the allocator. Later, when
13162         the subprogram call is expanded, if the interface has a secondary
13163         dispatch table the expander will add a type conversion to force
13164         the displacement of the pointer.
13165         (Resolve_Call): If a function that returns an unconstrained type is
13166         marked Inlined_Always and inlined, the call will be inlined and does
13167         not require the creation of a transient scope.
13168         (Check_Direct_Boolean_Op): Removed
13169         (Resolve_Comparison_Op): Remove call to above
13170         (Resolve_Equality_Op): Remove call to above
13171         (Resolve_Logical_Op): Inline above, since this is only call.
13172         (Valid_Conversion): Handle properly conversions between arrays of
13173         convertible anonymous access types.
13175         PR ada/25885
13176         (Set_Literal_String_Subtype): If the lower bound is not static, wrap
13177         the literal in an unchecked conversion, because GCC 4.x needs a static
13178         value for a string bound.
13180 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
13181             Hristian Kirtchev  <kirtchev@adacore.com>
13183         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
13184         components of the corresponding record, take into account component
13185         definitions that are access definitions.
13186         (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
13187         procedure is not considered a dispatching call and will be expanded
13188         properly.
13190 2006-02-13  Javier Miranda  <miranda@adacore.com>
13192         * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
13193         controlling argument of the dispatching call is an abstract interface
13194         class-wide type then we use it directly.
13195         Check No_Dispatching_Calls restriction.
13196         (Default_Prim_Op_Position): Remove the code that looks for the last
13197         entity in the list of aliased subprograms. This code was wrong in
13198         case of renamings.
13199         (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
13200         when the source is compiled with the No_Dispatching_Calls restriction.
13201         (Init_Predefined_Interface_Primitives): No need to inherit primitives
13202         if we are compiling with restriction No_Dispatching_Calls.
13203         (Make_Disp_XXX): Addition of assertion to avoid the use of all these
13204         subprograms if we are compiling under No_Dispatching_Calls restriction.
13205         (Make_DT): Generate a dispatch table with a single dummy entry if
13206         we are compiling with the No_Dispatching_Calls restriction. In
13207         addition, in this case we don't generate code that calls to the
13208         following run-time subprograms: Set_Type_Kind, Inherit_DT.
13209         (Make_Select_Specific_Data_Table): Add assertion to avoid the use
13210         of this subprogram if compiling with the No_Dispatching_Calls
13211         restriction.
13212         (Expand_Type_Conversion): Instead of using the actual parameter,
13213         the argument passed as parameter to the conversion function was
13214         erroneously referenced by the expander.
13215         (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
13216         Set_Predefined_Primitive_Op_Address and Set_Signature.
13217         (Expand_Dispatching_Call): Generate call to
13218         Get_Predefined_Prim_Op_Address for predefined primitives.
13219         (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
13220         predefined primitives.
13221         (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
13222         primitives we reserve one dummy entry to ensure that the tag does not
13223         point to some memory that is associated with some other object. In
13224         addition, remove all the old code that generated the assignments
13225         associated with the signature of the dispatch table and replace them
13226         by a call to the new subprogram Set_Signature.
13227         (Set_All_DT_Position): Change the algorithm because now we have a
13228         separate dispatch table associated with predefined primitive operations.
13229         (Expand_Interface_Conversion): In case of non-static offset_to_top
13230         add explicit dereference to get access to the object after the call
13231         to displace the pointer to the object.
13232         (Expand_Interface_Thunk): Modify the generation of the actual used
13233         in the calls to the run-time function Offset_To_Top to fulfil its
13234         new interface.
13235         (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
13237 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
13239         * exp_dist.adb (Copy_Specification): For access parameters, copy
13240         Null_Exclusion flag, which will have been set for stream subprograms
13241         in Ada2005 mode.
13243 2006-02-13  Pascal Obry  <obry@adacore.com>
13245         * expect.c (__gnat_expect_portable_execvp): New implementation. The
13246         previous implementation was using the C runtime spawnve routine but
13247         the corresponding wait was using directly the Win32 API. This was
13248         causing some times a lock when waiting for an event using
13249         WaitForSingleObject in __gnat_waitpid. This new implementation uses
13250         the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
13251         API fixes this problem.
13253 2006-02-13  Robert Dewar  <dewar@adacore.com>
13255         * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
13256         call.
13258 2006-02-13  Thomas Quinot  <quinot@adacore.com>
13260         * exp_pakd.ads: Fix typos in comments.
13262         * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
13263         array reference that is an explicit dereference, mark the converted
13264         (packed) array reference as analyzed to prevent a forthcoming
13265         reanalysis from resetting its type to the original (non-packed) array
13266         type.
13268 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
13269             Javier Miranda  <miranda@adacore.com>
13270             Eric Botcazou  <ebotcazou@adacore.com>
13272         * exp_util.ads, exp_util.adb (Find_Prim_Op,
13273         Is_Predefined_Primitive_Operation): When
13274         searching for the predefined equality operator, verify that operands
13275         have the same type.
13276         (Is_Predefined_Dispatching_Operation): Remove the code that looks
13277         for the last entity in the list of aliased subprograms. This code
13278         was wrong in case of renamings.
13279         (Set_Renamed_Subprogram): New procedure
13280         (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
13281         Exp_Type constant computed when entering this subprogram.
13282         (Known_Null): New function
13283         (OK_To_Do_Constant_Replacement): New function
13284         (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
13285         (Side_Effect_Free): An attribute reference 'Input is not free of
13286         side effect, unlike other attributes that are functions. (from code
13287         reading).
13288         (Remove_Side_Effects): Expressions that involve packed arrays or records
13289         are copied at the point of reference, and therefore must be marked as
13290         renamings of objects.
13291         (Is_Predefined_Dispatching_Operation): Return false if the operation is
13292         not a dispatching operation.
13294         PR ada/18819
13295         (Remove_Side_Effects): Lift enclosing type conversion nodes for
13296         elementary types in all cases.
13298 2006-02-13  Javier Miranda  <miranda@adacore.com>
13300         * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
13301         task types when accessing to the corresponding record type.
13302         Remove '!' in warning message.
13304 2006-02-13  Olivier Hainque  <hainque@adacore.com>
13306         * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
13307         to avoid useless and space inefficient overalignments on targets where
13308         Max_Alignment is larger than 16.
13310 2006-02-13  Pascal Obry  <obry@adacore.com>
13312         * g-catiio.adb (Sec_Number): New type used to compute the number of
13313         seconds since 1-1-1970.
13314         (Image) [Natural]: The parameter was an Integer, as we can't deal with
13315         negative numbers (years, months...) it is better to have a Natural here.
13316         Code clean-up.
13317         (Image) [Number]: Change parameter from Long_Integer to Number.
13318         (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
13319         overflow for dates past year 2038.
13321 2006-02-13  Matthew Heaney  <heaney@adacore.com>
13323         *  g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
13324         Constraint_Error.
13326 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
13328         * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
13329         native platforms.
13330         (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
13331         finalization can occur normally.
13333 2006-02-13  Vincent Celier  <celier@adacore.com>
13335         * gnatcmd.adb (Rules_Switches): New table
13336         (Add_To_Rules_Switches): New procedure
13337         (GNATCmd): For command CHECK, put all options following "-rules" in the
13338         Rules_Switches table. Append these -rules switches after the -cargs
13339         switches.
13341 2006-02-13  Robert Dewar  <dewar@adacore.com>
13343         * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
13344         These two cases were generating incorrect output, and if this unit
13345         was built with checks on, generated a discriminant mismatch constraint
13346         error.
13348 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
13349             Robert Dewar  <dewar@adacore.com>
13351         * lib-xref.adb (Get_Type_Reference): For a private type whose full
13352         view is an array type, indicate the component type as well, for
13353         navigation purposes.
13354         (Generate_Reference): Don't consider array ref on LHS to be a case
13355         of violating pragma Unreferenced.
13356         Do not give Ada 2005 warning except on real reference.
13358 2006-02-13  Vincent Celier  <celier@adacore.com>
13360         * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
13361         main source, add switch -mdebug-main=_ada_ so that the executable can
13362         be debugged by the standard VMS debugger.
13363         (Gnatmake): Set No_Main_Subprogram to True when there is no main
13364         subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
13365         Exit the Multi_Main_Loop when Unique_Compile is True after compilation
13366         of the last source, as the binding and linking phases are never
13367         performed.
13368         Set all executable obsolete when rebuilding a library.
13370         * makeutl.adb (Linker_Options_Switches): Do not process empty linker
13371         options.
13373 2006-02-13  Javier Miranda  <miranda@adacore.com>
13375         PR ada/23973
13376         * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
13377         code to improve the error message reported when the program has
13378         declarations of abstract interface types and it is not compiled with
13379         the -gnat05 switch.
13380         (P_Access_Definition): Reorganize the code to improve the error
13381         message reported when the new Ada 2005 syntax for anonymous
13382         access types is used and the program is not compiled with the
13383         -gnat05 switch.
13385 2006-02-13  Robert Dewar  <dewar@adacore.com>
13387         * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
13388         stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
13389         (MODE_IN)
13391 2006-02-13  Javier Miranda  <miranda@adacore.com>
13393         * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
13394         against source containing syntax errors.
13396 2006-02-13  Vincent Celier  <celier@adacore.com>
13398         * prj.adb (Reset): Initialize the first element of table Namings with
13399         the standard naming data.
13401 2006-02-13  Vincent Celier  <celier@adacore.com>
13403         * prj.ads (Error_Warning): New enumeration type
13405         * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
13406         unknown, use the location of the project to report the error.
13407         (When_No_Sources): New global variable
13408         (Report_No_Ada_Sources): New procedure
13409         (Check): New parameter When_No_Sources. Set value of global variable
13410         When_No_Sources,
13411         (Find_Sources): Call Report_No_Ada_Sources when appropriate
13412         (Get_Sources_From_File): Ditto
13413         (Warn_If_Not_Sources): Better warning messages indicating the unit name
13414         and the file name.
13416         * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
13417         Call Prj.Proc.Process with parameter When_No_Sources.
13419         * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
13420         Call Recursive_Check with parameter When_No_Sources.
13421         (Recursive_Check): New parameter When_No_Sources. Call itself and
13422         Prj.Nmsc.Check with parameter When_No_Sources.
13423         (Process): New parameter When_No_Sources. Call Check with parameter
13424         When_No_Sources.
13425         (Copy_Package_Declarations): New procedure to copy renamed parameters
13426         and setting the location of the declared attributes to the location
13427         of the renamed package.
13428         (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
13429         packages.
13431 2006-02-13  Vincent Celier  <celier@adacore.com>
13433         * prj-makr.adb (Make): Preserve the comments from the original project
13434         file.
13435         When removing nodes (attributes Source_Dirs, Source_Files,
13436         Source_List_File and package Naming), save the comments and attach the
13437         saved comments to the newly created nodes.
13438         Do not add a with clause for the naming package if one already exists.
13440 2006-02-13  Javier Miranda  <miranda@adacore.com>
13441             Gary Dismukes  <dismukes@adacore.com>
13442             Robert Dewar  <dewar@adacore.com>
13444         * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
13446         * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
13447         aliased entities to look for the overriden abstract interface
13448         subprogram.
13449         (Is_Interface_Subprogram): Complete documentation.
13450         (Check_Dispatching_Operation): Do not generate code to register the
13451         operation in the dispatch table if the source is compiled with
13452         restriction No_Dispatching_Calls.
13453         (Override_Dispatching_Operation): Check for illegal attempt to override
13454         No_Return procedure with procedure that is not No_Return
13455         (Check_Dispatching_Call): Suppress the check for an abstract operation
13456         when the original node of an actual is a tag-indeterminate attribute
13457         call, since the attribute, which must be 'Input, can never be abstract.
13458         (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
13459         call to the Input attribute (even when rewritten).
13460         (Propagate_Tag): Augment comment to indicate the possibility of a call
13461         to an Input attribute.
13463         * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
13464         calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
13466         * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
13467         No_Wide_Characters is no longer partition-wide
13468         No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
13469         rather than GNAT
13471 2006-02-13  Douglas Rupp  <rupp@adacore.com>
13473         * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
13475 2006-02-13  Javier Miranda  <miranda@adacore.com>
13477         * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
13478         handles default-initialized components to keep separate the management
13479         of this feature but also avoid the unrequired resolution and
13480         expansion of components that do not have partially initialized
13481         values.
13482         (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
13483         (Check_Bounds): Likewise.
13484         (Check_Length): Likewise.
13486 2006-02-13  Javier Miranda  <miranda@adacore.com>
13487             Ed Schonberg  <schonberg@adacore.com>
13489         * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
13490         abstract interface type call analyze_and_resolve to expand the type
13491         conversion into the corresponding displacement of the
13492         reference to the base of the object.
13493         (Eval_Attribute, case Width): For systems where IEEE extended precision
13494         is supported, the maximum exponent occupies 4 decimal digits.
13495         (Accessibility_Message): Add '\' in 2-line warning message.
13496         (Resolve_Attribute): Likewise.
13497         (case Attribute_Access): Significantly revise checks
13498         for illegal access-to-subprogram Access attributes to properly enforce
13499         the rules of 3.10.2(32/2).
13500         Diagnose use of current instance with an illegal attribute.
13502         * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
13503         to a Node_Id.
13504         (Enclosing_Generic_Unit): New function to return a node's innermost
13505         enclosing generic declaration node.
13506         (Compile_Time_Constraint_Error): Remove '!' in warning messages.
13507         (Type_Access_Level): The accessibility level of anonymous acccess types
13508         associated with discriminants is that of the current instance of the
13509         type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
13510         (Compile_Time_Constraint_Error): Handle case of conditional expression.
13511         (Kill_Current_Values_For_Entity): New function
13512         (Enter_Name): Change formal type to Entity_Id
13514 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
13515             Ed Schonberg  <schonberg@adacore.com>
13516             Gary Dismukes  <dismukes@adacore.com>
13518         * sem_ch10.adb (Check_Redundant_Withs): New procedure in
13519         Analyze_Compilation_Unit.
13520         Detect and warn on redundant with clauses detected in a package spec
13521         and/or body when -gnatwr is used.
13522         (Analyze_Context): Analyze config pragmas before other items
13523         (Install_Context_Items): Don't analyze config pragmas here
13524         (Install_Limited_Withed_Unit): Set limited entity of package in
13525         with_clause so that cross-reference information or warning messages on
13526         unused packages can be properly generated
13527         (Is_Visible_Through_Renamings): Return false if the limited_with_clause
13528         has Error_Posted set. Prevent infinite loops in illegal programs.
13529         (Check_Private_Child_Unit): Move test for a nonprivate with clause down
13530         to the point of the error test requiring the current unit to be private.
13531         This ensures that private with clauses are not exempted from the basic
13532         checking for being a descendant of the same library unit parent as a
13533         withed private descendant unit.
13534         (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
13535         handle private with clauses properly, as well as to account for cases
13536         where the withed unit is a public descendant of a private ancestor
13537         (in which case the current unit must be a descendant of the private
13538         ancestor's parent). The spec comments were updated accordingly. Also,
13539         the old error message in this subprogram was replaced with error
13540         messages that mirror the errors tested and reported by
13541         Check_Private_Child_Unit.
13542         Parameter and variable names improved for readability.
13543         (Install_Limited_Context_Clauses): Remove test for a withed unit being
13544         private as the precondition for calling
13545         Check_Private_Limited_Withed_Unit since that subprogram has been
13546         revised to test public units as well as private units.
13548 2006-02-13  Thomas Quinot  <quinot@adacore.com>
13549             Robert Dewar  <dewar@adacore.com>
13550             Ed Schonberg  <schonberg@adacore.com>
13551             Javier Miranda  <miranda@adacore.com>
13553         * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
13554         that Scope_Stack.First = 1.
13555         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
13556         were not always properly handled previously.
13557         (Formal_Entity): Complete rewrite, to handle properly some complex case
13558         with multiple levels of parametrization by formal packages.
13559         (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
13560         to the corresponding derived type declaration for proper semantics.
13562         * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
13563         (Check_Component): Enforce restriction on components of
13564         unchecked_unions: a component in a variant cannot contain tasks or
13565         controlled types.
13566         (Unchecked_Union): Allow nested variants and multiple discriminants, to
13567         conform to AI-216.
13568         Add pragma Ada_2005 (synonym for Ada_05)
13569         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
13570         were not always properly handled previously.
13571         Document that pragma Propagate_Exceptions has no effect
13572         (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
13573         (Set_Convention_From_Pragma): Check that if a convention is
13574         specified for a dispatching operation, then it must be
13575         consistent with the existing convention for the operation.
13576         (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
13577         longer required to specify an vtable-ptr component in the record. For
13578         compatibility reasons we leave the support for the previous definition.
13579         (Analyze_Pragma, case No_Return): Allow multiple arguments
13581         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
13582         non-overrideen inherited operation with a controlling result as
13583         illegal only its implicit declaration comes from the derived type
13584         declaration of its result's type.
13585         (Check_Possible_Deferred_Completion): Relocate the object definition
13586         node of the subtype indication of a deferred constant completion rather
13587         than directly analyzing it. The analysis of the generated subtype will
13588         correctly decorate the GNAT tree.
13589         (Record_Type_Declaration): Check whether this is a declaration for a
13590         limited derived record before analyzing components.
13591         (Analyze_Component_Declaration): Diagnose record types  not explicitly
13592         declared limited when a component has a limited type.
13593         (Build_Derived_Record_Type): Code reorganization to check if some of
13594         the inherited subprograms of a tagged type cover interface primitives.
13595         This check was missing in case of a full-type associated with a private
13596         type declaration.
13597         (Constant_Redeclaration): Check that the subtypes of the partial and the
13598         full view of a constrained deferred constant statically match.
13599         (Mentions_T): A reference to the current type in an anonymous access
13600         component declaration  must be an entity name.
13601         (Make_Incomplete_Type_Declaration): If type is tagged, set type of
13602         class_wide type to refer to full type, not to the incomplete one.
13603         (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
13604         available. Required to give support to the certified run-time.
13605         (Analyze_Component_Declaration): In case of anonymous access components
13606         perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
13607         (Process_Discriminants): For an access discriminant, use the
13608         discriminant specification as the associated_node_for_itype, to
13609         simplify accessibility checks.
13611 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
13612             Javier Miranda  <miranda@adacore.com>
13614         * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
13615         abstract interpretations on an operator, remove interpretations that
13616         yield Address or a type derived from it, if one of the operands is an
13617         integer literal.
13618         (Try_Object_Operation.Try_Primitive_Operation,
13619         Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
13620         location when creating the new reference to a primitive or class-wide
13621         operation as a part of rewriting a subprogram call.
13622         (Try_Primitive_Operations): If context requires a function, collect all
13623         interpretations after the first match, because there may be primitive
13624         operations of the same type with the same profile and different return
13625         types. From code reading.
13626         (Try_Primitive_Operation): Use the node kind to choose the proper
13627         operation when a function and a procedure have the same parameter
13628         profile.
13629         (Complete_Object_Operation): If formal is an access parameter and prefix
13630         is an object, rewrite as an Access reference, to match signature of
13631         primitive operation.
13632         (Find_Equality_Type, Find_One_Interp): Handle properly equality given
13633         by an expanded name with prefix Standard, when the operands are of an
13634         anonymous access type.
13635         (Remove_Abstract_Operations): If the operation is abstract because it is
13636         inherited by a user-defined type derived from Address, remove it as
13637         well from the set of candidate interpretations of an overloaded node.
13638         (Analyze_Membership_Op): Membership test not applicable to cpp-class
13639         types.
13641 2006-02-13  Bob Duff  <duff@adacore.com>
13643         * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
13644         redundant use clauses.
13645         In particular, if the scope of two use clauses overlaps, but one is not
13646         entirely included in the other, we should not warn.  This can happen
13647         with nested packages.
13648         (Analyze_Subprogram_Renaming): Protect the compiler against previously
13649         reported errors. The bug was reported when the compiler was built
13650         with assertions enabled.
13651         (Find_Type): If the node is a 'Class reference and the prefix is a
13652         synchronized type without a corresponding record, return the type
13653         itself.
13655 2006-02-13  Javier Miranda  <miranda@adacore.com>
13657         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
13658         if this is the full-declaration associated with a private declaration
13659         that implement interfaces, then the private type declaration must be
13660         limited.
13661         (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
13662         as aliased. The use of the 'access attribute is not available for such
13663         object (for this purpose the object should be explicitly marked as
13664         aliased, but being an anonymous type this is not possible).
13666 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
13667             Robert Dewar  <dewar@adacore.com>
13669         * sem_elab.adb (Same_Elaboration_Scope): A package that is a
13670         compilation unit is an elaboration scope.
13671         (Add_Task_Proc): Add '\' in 2-line warning message.
13672         (Activate_All_Desirable): Deal with case of unit with'ed by parent
13674 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
13675             Javier Miranda  <miranda@adacore.com>
13677         * sem_type.adb (Write_Overloads): Improve display of candidate
13678         interpretations.
13679         (Add_One_Interp): Do not add to the list of interpretations aliased
13680         entities corresponding with an abstract interface type that is an
13681         immediate ancestor of a tagged type; otherwise we have a dummy
13682         conflict between this entity and the aliased entity.
13683         (Disambiguate): The predefined equality on universal_access is not
13684         usable if there is a user-defined equality with the proper signature,
13685         declared in the same declarative part as the designated type.
13686         (Find_Unique_Type): The universal_access equality operator defined under
13687         AI-230 does not cover pool specific access types.
13688         (Covers): If one of the types is a generic actual subtype, check whether
13689         it matches the partial view of the other type.
13691 2006-02-13  Thomas Quinot  <quinot@adacore.com>
13693         * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
13694         line. This is necessary to allow In_Extended_Main_Unit to provide
13695         correct results for itypes while writing out expanded source.
13696         (Close_File): No need to update the source_index_table here since it's
13697         now done for each line.
13699 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
13700             Robert Dewar  <dewar@adacore.com>
13702         * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
13703         preserve the source unit where the itype is declared, and prevent a
13704         backend abort.
13705         (Note_Implicit_Run_Time_Call): New procedure
13706         (Write_Itype): Handle missing cases (E_Class_Wide_Type and
13707         E_Subprogram_Type)
13709         * sprint.ads: Document use of $ for implicit run time routine call
13711 2006-02-13  Quentin Ochem  <ochem@adacore.com>
13713         * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
13714         task name.
13716 2006-02-13  Bob Duff  <duff@adacore.com>
13718         * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
13719         Scan_Unsigned, so we do not scan leading blanks and sign twice.
13720         Integer'Value("- 5") and Integer'Value("-+5") now correctly
13721         raise Constraint_Error.
13723         * s-vallli.adb (Scan_Long_Long_Integer): Call
13724         Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
13725         do not scan leading blanks and sign twice.
13726         Integer'Value("- 5") and Integer'Value("-+5") now correctly
13727         raise Constraint_Error.
13729         * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
13730         Scan_Long_Long_Unsigned): Split out most of the processing from
13731         Scan_Long_Long_Unsigned out into
13732         Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
13733         This prevents scanning leading blanks and sign twice.
13734         Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
13735         See RM-3.5(44).
13737         * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
13738         out most of the processing from Scan_Unsigned out into
13739         Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
13740         This prevents scanning leading blanks and sign twice.
13742         * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
13743         use with Modular'Value attribute.
13744         (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
13745         attribute.
13747 2006-02-13  Robert Dewar  <dewar@adacore.com>
13749         * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
13751 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
13753         * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
13754         (PPC VxWorks): Likewise.
13755         (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
13756         (forced_callee): Make non-inlinable and non-pure.
13757         (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
13759 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
13760             Ben Brosgol  <brosgol@adacore.com>
13761             Robert Dewar  <dewar@adacore.com>
13763         * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
13764         support.
13765         Document that gnatbind -M option is for cross environments only.
13766         Added description of using gnatmem to trace gnat rtl allocs and deallocs
13767         Add note on use of $ to label implicit run time calls
13768         Add documentation for -gnatyI (check mode IN)
13769         Updated chapter on compatibility with HP Ada
13770         VMS-oriented edits.
13771         Ran spell and corrected errors
13772         Add documentation for gnatbind -d and rework documentation of -D
13773         at the same time.
13774         Add subprogram/data elimination section.
13775         Minor editing of annex A.
13776         Add section for gnatcheck.
13777         Add documentation for restriction No_Dispatching_Calls
13778         Add documentation for pragma Ada_2005
13779         Remove mention of obsolete pragma Propagate_Exceptions
13780         Document that pragma Unreferenced can appear after DO in ACCEPT
13781         Clarify Pure_Function for library level units
13782         Mention Max/Min in connection with No_Implicit_Conditionals
13783         No_Wide_Characters restriction is no longer partition-wide
13784         Add a nice example for Universal_Literal_String attribute
13785         Document that pragma No_Return can take multiple arguments
13787         * ug_words: Added entry for gnatcheck
13789         * g-ctrl_c.ads (Install_Handler): Enhance comments
13791         * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
13793         * g-trasym.ads: Add documentation on how to do off line symbolic
13794         traceback computation.
13796         * s-fatgen.adb: Add comments for Unaligned_Valid
13798         * stand.ads: Fix typo in comment
13800 2006-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13802         * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
13804 2006-02-06  Roger Sayle  <roger@eyesopen.com>
13806         * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
13808 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13810         PR target/25926
13811         * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
13812         implementation that calls __main.
13814 2006-01-25  Peter O'Gorman  <peter@pogma.com>
13816         PR bootstrap/25859
13817         * Makefile.in (GCC_LINK): Remove quotes.
13818         (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
13819         or $(GCC_LINK).
13821         (powerpc-darwin): Pass -shared-libgcc when building shared library.
13823 2006-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13825         PR ada/24533
13826         * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
13828 2005-12-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13830         * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
13832 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
13834         * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
13835         needed.
13837 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
13839         * Make-lang.in: Update dependencies
13841 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
13843         * Make-lang.in: Add rule for ada/exp_sel.o
13845 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
13847         * Makefile.in (mingw section): Remove EH_MECHANISM setting.
13849 2005-12-09  Arnaud Charlet  <charlet@adacore.com>
13851         * gnatvsn.ads (Library_Version): Bump to version 4.2
13852         (ASIS_Version_Number): Bumped.
13854 2005-12-09  Doug Rupp  <rupp@adacore.com>
13856         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
13857         Ada bind file prefix on VMS from b$ to b__.
13858         (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
13859         __init.
13861         * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
13862         Targparm.OpenVMS_On_Target.
13863         (Object_Suffix): Initialize with target object suffix.
13864         (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
13866         * butil.adb: Change some Hostparm.OpenVMS checks to
13867         Targparm.OpenVMS_On_Target.
13869         * clean.adb: Change some Hostparm.OpenVMS checks to
13870         Targparm.OpenVMS_On_Target.
13871         (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
13872         ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
13873         Ada bind file prefix on VMS from b$ to b__.
13875         * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
13876         --GCC so that Get_Target_Parameters can find system.ads.
13877         (Gnatlink): Call Get_Target_Parameters in mainline.
13878         Initialize standard packages for Targparm.
13879         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
13880         (Process_Args): Also Check for object files with target object
13881         extension.
13882         (Make_Binder_File_Names): Create with target object extension.
13883         (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
13884         to b__.
13886         * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
13887         Targparm.OpenVMS_On_Target.
13888         ({declaration},Build_Library,Check_Library): Change Ada bind file
13889         prefix on VMS from b$ to b__.
13891         * osint-b.adb: Change some Hostparm.OpenVMS checks to
13892         Targparm.OpenVMS_On_Target.
13893         (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
13894         b__.
13896         * targext.c: New file.
13898         * Makefile.in: add support for vxworks653 builds
13899         (../../vxaddr2line): gnatlink with targext.o.
13900         (TOOLS_LIBS): Move targext.o to precede libgnat.
13901         (init.o, initialize.o): Minor clean up in dependencies.
13902         (GNATLINK_OBJS): Add targparm.o, snames.o
13903         Add rules fo building targext.o and linking it explicitly with all
13904         tools.
13905         Also add targext.o to gnatlib.
13907         * Make-lang.in: Add rules for building targext.o and linking it in
13908         with gnat1 and gnatbind.
13909         Add entry for exp_sel.o.
13911         * osint.adb Change some Hostparm.OpenVMS checks to
13912         Targparm.OpenVMS_On_Target.
13913         (Object_File_Name): Use target object suffix.
13915         * osint.ads (Object_Suffix): Remove, no longer used.
13916         (Target_Object_Suffix): Initialize with target object suffix.
13918         * rident.ads: Add special exception to license.
13920         * targparm.adb (Get_Target_Parameters): Set the value of
13921         Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
13922         value.
13923         (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
13924         
13925         * targparm.ads: Add special exception to license.
13927         * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
13928         function.
13929         (Copy_File): Make sure from file is closed if error on to file
13930         (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
13932         * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
13933         (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
13935         * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
13936         target object suffix.
13938 2005-12-09  Jose Ruiz  <ruiz@adacore.com>
13939             Quentin Ochem  <ochem@adacore.com>
13940             Florian Villoing  <villoing@adacore.com>
13942         * a-taster.ads, a-taster.adb: New files.
13944         * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
13945         link to the version that does nothing. This way the task termination
13946         routine is not executed twice for the environment task when finishing
13947         because of an unhandled exception.
13949         * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
13950         handler because of an unhandled exception.
13952         * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
13953         System.Tasking.Utilities instead of that in System.Tasking.Stages.
13955         * s-finimp.adb (initialization code): Modify the soft link for the
13956         finalization of the global list instead of Adafinal.
13958         * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
13959         non-tasking version of the soft link for task termination. We do
13960         nothing since if we are using the non-tasking version it
13961         means that the task termination functionality is not used.
13962         (Null_Finalize_Global_List): Add this null version for the procedure
13963         in charge of finalizing the global list for controlled objects.
13964         (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
13965         instead for handling run-time termination in a more flexible way.
13966         (Adafinal_NT): This new procedure will take care of finalizing the
13967         global list for controlled objects if needed, but no tasking
13968         finalization.
13970         * s-tarest.adb (Task_Lock): Do not try to lock again the
13971         Global_Task_Lock if we already own it. Otherwise, we get blocked in
13972         some run-time operations.
13973         (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
13974         until all nested locks have been released.
13975         (Task_Wrapper): Call the fall-back task termination handler. It
13976         applies to all tasks but the environment task.
13977         (Finalize_Global_Tasks): Add the call for the task termination
13978         procedure for the environment task.
13979         (Task_Wrapper): suppress warnings around declaration of
13980         Secondary_Stack_Address.
13982         * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
13983         moved to the Common_ATCB record.
13984         (Task_Lock): Global_Task_Lock_Nesting has been moved to the
13985         Common_ATCB record.
13986         (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
13987         Common_ATCB record.
13989         * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
13990         Fall_Back_Handler, and Specific_Handler.
13992         * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
13993         defined in Ada.Task_Termination, to avoid circular dependencies.
13994         (Termination_Handler): Redefine this type here, alredy defined in
13995         Ada.Task_Termination, for avoiding circular dependencies.
13996         (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
13997         for storing task termination handlers. In addition,
13998         Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
13999         Common_ATCB because it is used by both the regular and the restricted
14000         run times.
14001         (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
14002         Common_ATCB because it is used by both the regular and the restricted
14003         run times.
14004         (Common_ATCB): Added a dynamic task analyzer field.
14006         * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
14007         potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
14008         (Task_Wrapper): Call the task termination handler. It applies to all
14009         tasks but the environment task.
14010         (Finalize_Global_Tasks): Call the task termination procedure for the
14011         environment task. The call to Finalize_Global_List is now performed
14012         using the soft links mechanism.
14013         (Task_Wrapper): added dynamic stack analysis.
14015         * s-tasuti.adb (Abort_Tasks): The code in charge of checking
14016         potentially blocking operations has been moved from
14017         System.Tasking.Stages.Abort_Tasks to this procedure. There can be
14018         direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
14019         through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
14020         this run-time check.
14022         * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
14023         of task termination procedure.
14024         (Init_Tasking_Soft_Links): Install the task-safe version of the soft
14025         link for the task termination procedure.
14027         * bindusg.adb: (Bindusg): Added documentation for -u option.
14029         * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
14030         (Get_Main_C): Add handling of dynamic stack analysis.
14031         (Gen_Output_File_C): Add external functions for dynamic stack analysis.
14033         * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
14034         (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
14035         (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
14037         * opt.ads: Added flags used by dynamic stack measurement.
14038         (Max_Line_Length): Remove (not used anymore)
14040         * s-io.ads, s-io.adb (Standard_Error): new subprogram
14041         (Standart_Output): new subprogram
14042         (Set_Output): new subprogram
14043         (Put): now uses the value of Current_Out to know if the output has to be
14044         send to stderr or stdout.
14045         
14046         * s-stausa.ads: Complete implementation.
14048         * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
14049         
14050         * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
14051         list of Ada 05 files.
14052         (GNAT Library Units): Add AltiVec files.
14054         * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
14055         g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
14056         g-alvety.ads, g-alvevi.ads: New files providing altivec API.
14058 2005-12-09  Nicolas Setton  <setton@adacore.com>
14060         * adaint.c (__gnat_locate_regular_file): Return immediately if
14061         file_name is empty.
14063 2005-12-09  Javier Miranda  <miranda@adacore.com>
14064             Hristian Kirtchev  <kirtchev@adacore.com>
14066         * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
14067         to the specification because the frontend generates code that uses this
14068         subprogram.
14069         (Set_Interface_Table): Add missing assertion.
14070         Update documentation describing the run-time structure.
14071         (Displace): New subprogram that displaces the pointer to the object
14072         to reference one of its secondary dispatch tables.
14073         (IW_Membership): Modified to use the new table of interfaces.
14074         (Inherit_TSD): Modified to use the new table of interfaces.
14075         (Register_Interface_Tag): Use the additional formal to fill the
14076         contents of the new table of interfaces.
14077         (Set_Interface_Table): New subprogram that stores in the TSD the
14078         pointer to the table of interfaces.
14079         (Set_Offset_To_Top): Use the additional formal to save copy of
14080         the offset value in the table of interfaces.
14081         Update structure of GNAT Primary and Secondary dispatch table diagram.
14082         Add comment section on GNAT dispatch table prologue.
14083         (Offset_To_Signature): Update the constant value of the Signature field.
14084         (Dispatch_Table): Update comment on hidden fields in the prologue.
14085         (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
14086         Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
14087         the type of formal parameter T to Tag, introduce additional assertions.
14088         (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
14089         conversion.
14090         (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
14092         * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
14093         in all the calls to Expand_Interface_Thunk. Instead of referencing the
14094         record component containing the tag of the secondary dispatch table we
14095         have to use the Offset_To_Top run-time function to get this information;
14096         otherwise if the pointer to the base of the object has been displace
14097         we get a wrong value if we use the 'position attribute.
14099         * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
14100         all the calls to Expand_Interface_Thunk.
14101         (Make_Secondary_DT): Secondary dispatch tables do not have a table of
14102         interfaces; hence the call to Set_Interface_Table was clearly wrong.
14103         (Collect_All_Interfaces): Modify the internal subprogram Collect to
14104         ensure that the interfaces implemented by the ancestors are placed
14105         at the header of the generated list.
14106         (Expand_Interface_Conversion): Handle the case in which the displacement
14107         associated with the interface conversion is not statically known. In
14108         this case we generate a call to the new run-time subprogram Displace.
14109         (Make_DT): Generate and fill the new table of interfaces.
14110         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
14111         Get_Tagged_Kind and Set_Tagged_Kind.
14112         (Tagged_Kind): New function that determines the tagged kind of a type
14113         with respect to limitedness and concurrency and returns a reference to
14114         RE_Tagged_Kind.
14115         (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
14116         Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
14117         primary dispatch table for a type.
14118         (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
14119         secondary dispatch table respectively of a tagged type.
14121         * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
14122         (Expand_Interface_Conversion): New subprogram to indicate if the
14123         displacement of the type conversion is statically known.
14124         (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
14126         * rtsfind.ads (RE_Offset_To_Top): New entity
14127         (RTU_Id): Add Ada_Task_Termination to the list so that it is made
14128         accessible to users.
14129         (Re_Displace): New entity
14130         (RE_Interface_Data): New entity
14131         (RE_Set_Interface_Data): New_Entity
14132         (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
14133         Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
14134         RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
14135         RE_TK_Tagged, RE_TK_Task.
14137         * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
14138         Init_Secondary_Tags_Internal to allow its use with interface types and
14139         also to generate the code for the new additional actual required
14140         by Set_Offset_To_Top.
14141         (Build_Init_Statements): In case of components associated with abstract
14142         interface types there is no need to generate a call to its IP.
14143         (Freeze_Record_Type): Generate Select Specific Data tables only for
14144         concurrent types.
14145         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
14146         the bodies and specifications of the predefined primitive operations
14147         dealing with dispatching selects and abort, 'Callable, 'Terminated only
14148         for concurrent types.
14150         * exp_sel.ads, exp_sel.adb: New files.
14152         * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
14153         Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
14154         properly protected objects and attach handler in the case of the
14155         restricted profile.
14156         Move embeded package Select_Expansion_Utilities into a separate external
14157         package.
14158         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
14159         Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
14160         (Build_K, Build_S_Assignment): New subprograms, part of the select
14161         expansion utilities.
14162         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
14163         Expand_N_Timed_Entry_Call): Optimize expansion of select statements
14164         where the trigger is a dispatching procedure of a limited tagged type.
14166 2005-12-09  Olivier Hainque  <hainque@adacore.com>
14168         * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
14169         pointer initialization values. Make a SAVE_EXPR instead. Add comments
14170         about the use and expansion of SAVE_EXPRs in the various possible
14171         renaming handling cases.
14172         (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
14173         abusing DECL_FCONTEXT.
14175 2005-12-09  Matthew Heaney  <heaney@adacore.com>
14177         * a-convec.adb (Merge): Added assertions to check whether vector params
14178         are sorted.
14180         * a-coinve.adb (Merge): Added assertions to check whether vector params
14181         are sorted.
14183         * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
14184         draft.
14185         (Cursor'Read): raises PE
14187         * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
14188         to its default value.
14190         * a-cihama.adb: Manually check whether cursor's key and elem are
14191         non-null
14193         * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
14194         (Merge): Assert that target and source lists are in order
14195         (Swap): Declare non-const temporaries, to pass to Splice
14197         * a-cdlili.ads: (Splice): Changed param name and param mode
14199         * a-cdlili.adb: (Splice): Changed param name and param mode
14200         (Merge): Assert that target and source lists are in order
14201         (Swap): Declare non-const temporaries, to pass to Splice
14203         * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
14204         (Write): declare Stream param as not null
14206         * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
14207         an exception message.
14209 2005-12-09  Thomas Quinot  <quinot@adacore.com>
14210             Robert Dewar  <dewar@adacore.com>
14212         * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
14213         which is the absolute maximum length we can support.
14215         * frontend.adb: For the processing of configuration pragma files,
14216         remove references to Opt.Max_Line_Length, which is not checked anymore.
14218         * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
14219         length.
14221         * scn.adb, scng.adb: 
14222         Always check line length against the absolute supported maximum,
14223         Hostparm.Max_Line_Length.
14225         * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
14226         value for the maximum line length is Max_Line_Length (not
14227         Column_Number'Last).
14228         Minor error msg update
14229         (Set_Style_Check_Options): New interface returning error msg
14230         Minor code reorganization (processing for 'M' was out of alpha order)
14232         * switch-c.adb: New interface for Set_Style_Check_Options
14234         * stylesw.ads (Set_Style_Check_Options): New interface returning error
14235         msg.
14237 2005-12-09  Javier Miranda  <miranda@adacore.com>
14239         * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
14240         with IP subprogram were only supported if there were limited types.
14242         * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
14243         records with IP subprogram were only supported if there were limited
14244         types.
14246 2005-12-09  Olivier Hainque  <hainque@adacore.com>
14247             Eric Botcazou  <ebotcazou@adacore.com>
14249         * trans.c (tree_transform, emit_check): Adjust calls to
14250         build_call_raise, passing the now expected GNAT_NODE argument.
14252         * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
14253         source line information than what the current global locus indicates
14254         when appropriate.
14256         * utils2.c (build_simple_component_ref): Return 0 if the offset of the
14257         field has overflowed.
14258         (build_call_raise): Add a GNAT_NODE argument to convey better source
14259         line information than what the current global locus indicates when
14260         appropriate.
14261         (build_component_ref): Adjust call to build_call_raise.
14263 2005-12-09  Pascal Obry  <obry@adacore.com>
14265         * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
14266         the iterator is quitting iteration on parent directory.
14268 2005-12-09  Javier Miranda  <miranda@adacore.com>
14270         * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
14271         and the assignment to a class-wide object, before the assignment we
14272         generate a run-time check to ensure that the tag of the Target is
14273         covered by the tag of the source.
14275 2005-12-09  Robert Dewar  <dewar@adacore.com>
14277         * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
14278         parameter in call to Image_Wide_Character.
14280         * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
14281         parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
14282         (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
14283         annoying FFFE/FFFF inconsistency.
14285 2005-12-09  Robert Dewar  <dewar@adacore.com>
14286             Javier Miranda  <miranda@adacore.com>
14287             Ed Schonberg  <schonberg@adacore.com>
14289         * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
14290         of type conversion.
14291         (Find_Interface): New subprogram that given a tagged type and one of its
14292         component associated with the secondary table of an abstract interface
14293         type, return the entity associated with such abstract interface type.
14294         (Make_Subtype_From_Expr): If type has unknown discriminants, always use
14295         base type to create anonymous subtype, because entity may be a locally
14296         declared subtype or generic actual.
14297         (Find_Interface): New subprogram that given a tagged type and one of its
14298         component associated with the secondary table of an abstract interface
14299         type, return the entity associated with such abstract interface type.
14301         * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
14302         conversion cannot be handled at compile time. In this case we pass this
14303         information to the expander to generate the appropriate code.
14305 2005-12-09  Robert Dewar  <dewar@adacore.com>
14306             Ed Schonberg  <schonberg@adacore.com>
14307             Gary Dismukes  <dismukes@adacore.com>
14308             Javier Miranda  <miranda@adacore.com>
14309             Hristian Kirtchev  <kirtchev@adacore.com>
14311         * einfo.adb (Itype_Printed): New flag
14312         (Is_Limited_Type): Derived types do not inherit limitedness from
14313         interface progenitors.
14314         (Is_Return_By_Reference_Type): Predicate does not apply to limited
14315         interfaces.
14317         * einfo.ads (Itype_Printed): New flag
14318         Move Is_Wrapper_Package to proper section
14319         Add missing Inline for Is_Volatile
14321         * output.ads, output.adb (Write_Erase_Char): New procedure
14322         (Save/Restore_Output_Buffer): New procedures
14323         (Save/Restore_Output_Buffer): New procedures
14325         * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
14326         Add missing support for anonymous access type
14327         (Write_Id): Insert calls to Write_Itype
14328         (Write_Itype): New procedure to output itypes
14330         * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
14331         use of "limited" in declaration.
14333         * sinfo.ads, sinfo.adb: 
14334         Formal derived types can carry an explicit "limited" indication.
14336         * sem_ch3.adb: Add with and use of Targparm.
14337         (Create_Component): If Frontend_Layout_On_Target is True and the
14338         copied component does not have a known static Esize, then reset
14339         the size and positional fields of the new component.
14340         (Analyze_Component_Declaration): A limited component is
14341         legal within a protected type that implements an interface.
14342         (Collect_Interfaces): Do not add to the list the interfaces that
14343         are implemented by the ancestors.
14344         (Derived_Type_Declaration): If the parent of the full-view is an
14345         interface perform a transformation of the tree to ensure that it has
14346         the same parent than the partial-view. This simplifies the job of the
14347         expander in order to generate the correct object layout, and it is
14348         needed because the list of interfaces of the full-view can be given in
14349         any order.
14350         (Process_Full_View): The parent of the full-view does not need to be
14351         a descendant of the parent of the partial view if both parents are
14352         interfaces.
14353         (Analyze_Private_Extension_Declaration): If declaration has an explicit
14354         "limited" the parent must be a limited type.
14355         (Build_Derived_Record_Type): A derived type that is explicitly limited
14356         must have limited ancestor and progenitors.
14357         (Build_Derived_Type): Ditto.
14358         (Process_Full_View): Verify that explicit uses of "limited" in partial
14359         and full declarations are consistent.
14360         (Find_Ancestor_Interface): Remove function.
14361         (Collect_Implemented_Interfaces): New procedure used to gather all
14362         implemented interfaces by a type.
14363         (Contain_Interface): New function used to check whether an interface is
14364         present in a list.
14365         (Find_Hidden_Interface): New function used to determine whether two
14366         lists of interfaces constitute a set equality. If not, the first
14367         differing interface is returned.
14368         (Process_Full_View): Improve the check for the "no hidden interface"
14369         rule as defined by AI-396.
14371 2005-12-09  Robert Dewar  <dewar@adacore.com>
14373         * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
14374         types, not on record subtypes.
14375         (Freeze_Entity): Code cleanup. Add barrier to the loop
14376         that generates the references for primitive operations. This allows to
14377         remove an unnecessary exception handler.
14378         Code reformatting and comment clean ups.
14380 2005-12-09  Vincent Celier  <celier@adacore.com>
14382         * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
14383         If GNAT CHECK is called with a project file, but with no
14384         source on the command line, call gnatcheck with all the compilable
14385         sources of the project.
14386         Take into account the new command Check, for gnatcheck. Treat as for
14387         other ASIS tools: take into account project, specific package Check and
14388         Compiler switches.
14389         For ASIS tools, add the switches in package Compiler for
14390         the invocation of the compiler.
14392         * prj-attr.adb: Add package Check and its attributes
14394         * vms_conv.ads (Command_Type): New command Check, for gnatcheck
14396         * vms_conv.adb (Initialize): Change Params of command Check to
14397         unlimited files.
14398         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
14399         Add data for new command Check
14401         * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
14402         ELIM.
14403         Add qualifiers for Check command options
14404         (Command_Type): New command Check
14406 2005-12-09  Thomas Quinot  <quinot@adacore.com>
14408         * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
14409         command line switch overruns the output buffer.
14411 2005-12-09  Robert Dewar  <dewar@adacore.com>
14413         * sem_prag.adb: Processing for new pragma Complete_Representation
14414         (Analyze_Pragma, case Debug): Implement two argument form.
14416         * par-prag.adb: Entry for new pragma Complete_Representation
14417         (Prag, case Debug): Recognize two argument form of pragma Debug
14418         New interface for Set_Style_Check_Options.
14420         * sem_ch13.adb: Implement new pragma Complete_Representation.
14422         * snames.adb, snames.ads, snames.h: Entry for new pragma
14423         Complete_Representation.
14425 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
14427         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
14428         available user-specified stream attributes on limited parameters to
14429         also test the type directly rather than only its underlying type (for
14430         Ada 95) and, in the case of Ada 2005, to check that the user-specified
14431         attributes are visible at the point of the subprogram declaration.
14432         For Ada 2005, the error message is modified to indicate that the
14433         type's stream attributes must be visible (again, only for -gnat05).
14435 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
14437         * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
14438         anonymous access types.
14440         * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
14441         matching of anonymous access types and anonymous access to subprogram
14442         types. 'R'M 4.9.1 (2/2).
14444 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
14446         * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
14447         rule prematurely when operands are universal, remaining ambiguities
14448         will be removed during resolution.
14449         Code cleanup.
14451         * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
14452         that are Ada 2005 functions.
14453         (Has_Abstract_Interpretation): Subsidiary to
14454         Remove_Conversions, to remove ambiguities caused by abstract operations
14455         on numeric types when operands are universal.
14457 2005-12-09  Robert Dewar  <dewar@adacore.com>
14459         * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
14460         for case where spec is categorized.
14462 2005-12-09  Javier Miranda  <miranda@adacore.com>
14464         * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
14465         types use the corresponding record type. This was not needed before
14466         the implementation of Ada 2005 synchronized types because
14467         concurrent types were never tagged types in Ada 95.
14469 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
14471         * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
14472         first subtype of the type of the expression to verify that it is a
14473         legal Time type.
14475 2005-12-09  Robert Dewar  <dewar@adacore.com>
14477         * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
14478         decoded names.
14480 2005-12-09  Quentin Ochem  <ochem@adacore.com>
14481             Robert Dewar  <dewar@adacore.com>
14482             Ed Falis  <falis@adacore.com>
14483             Florian Villoing  <villoing@adacore.com>
14484             Thomas Quinot  <quinot@adacore.com>
14485             Arnaud Charlet  <charlet@adacore.com>
14487         * gnat_ugn.texi: Created section "Stack Related Tools"
14488         Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
14489         "Stack Related Tools"
14490         Added subsection "Static Stack Usage Analysis"
14491         Added subsection "Dynamic Stack Usage Analysis"
14492         Include documentation of itypes in sprint listing (-gnatG)
14493         Documented gnatbind -D switch (default sec stack size for fixed sec
14494         stacks).
14495         Added Interrupt_State and Persistent_BSS to list of configuration
14496         pragmas.
14497         Add missing doc for maximum value of nnn in -gnatyMnnn
14499         * gnat_rm.texi: Document the AltiVec binding.
14500         Add documentation for pragma Complete_Representation
14501         Shortened an overly long line (> 79 chars)
14502         Clarify documentation of unchecked conversion in implementation
14503         defined cases.
14504         Document two argument form of pragma Debug
14506         * types.ads (Column_Number): Update documentation.
14508         * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
14509         library level Finalize_Storage_Only objects (these are not attached to
14510         any finalization list).
14512         * system-mingw.ads: (Underlying_Priorities): Update comment.
14514 2005-12-09  Robert Dewar  <dewar@adacore.com>
14516         * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
14517         i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
14518         inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
14519         i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
14520         krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
14521         lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
14522         interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
14523         s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
14524         reformatting.
14526 2005-12-09  Robert Dewar  <dewar@adacore.com>
14528         * s-vaflop-vms-alpha.adb: (Ne_F): New function
14529         (Ne_G): New function
14531         * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
14532         for tag assignment.
14533         (Rewrite_Comparison): Handle case where operation is not a comparison
14534         and ignore, and also handle type conversion case.
14536 2005-12-09  Thomas Quinot  <quinot@adacore.com>
14538         * exp_aggr.ads: Fix typo in comment.
14539         ???-mark Convert_Aggr_In_Assignment as needing documentation.
14541 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
14543         * layout.adb: Replace various uses of byte by storage unit throughout.
14544         (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
14545         static size, convert to storage units before returning, to conform to
14546         spec.
14548 2005-12-09  Matthew Gingell  <gingell@adacore.com>
14550         * g-exctra.ads: Fix typo in comment.
14552 2005-12-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14554         * utils.c: Minor reformatting.
14556 2005-12-09  Robert Dewar  <dewar@adacore.com>
14558         * g-soccon.ads: 
14559         Further comment fixes to make the status of the default file clear
14561         * s-bitops.adb: Clarify comment for Bits_Array
14563 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
14565         * Make-lang.in (ada.install-normal): Remove.
14567 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
14569         * Make-lang.in: Remove all dependencies on s-gtype.
14571 2005-12-05  Richard Guenther  <rguenther@suse.de>
14573         * utils.c (convert): Use fold_convert where appropriate.
14575 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
14577         * Makefile.in (gnatlib): Fix regex, using \. instead of . when
14578         a period is meant.
14580 2005-12-02  Richard Guenther  <rguenther@suse.de>
14582         * trans.c (gnat_gimplify_expr): Use buildN instead of build.
14584 2005-12-01  Roger Sayle  <roger@eyesopen.com>
14586         * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
14587         nodes.
14589 2005-11-23  Laurent GUERBY  <laurent@guerby.net>
14591         * mlib-prj.adb (Build_Library): Initialize Delete.
14593 2005-11-21  Joel Sherrill <joel.sherrill@oarcorp.com>
14595         * socket.c: Add extern int h_errno for rtems since networking header
14596         files are not available at this point in a tool bootstrap. Newlib
14597         only has basic C library header files.
14599 2005-11-19  Richard Guenther  <rguenther@suse.de>
14600         Roger Sayle  <roger@eyesopen.com>
14602         PR ada/23717
14603         * misc.c (internal_error_function): Don't use vsprintf to format
14604         the error message text, instead use pp_format_text and the new
14605         pretty printer APIs.  This allows handling of %qs, %w, etc.
14607 2005-11-18  Laurent GUERBY  <laurent@guerby.net>
14609         PR ada/24857
14610         * Makefile.in: Use s-auxdec-empty for RTEMS.
14612 2005-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14614         PR ada/22333
14615         * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
14616         a temporary if taking the address of something that is neither
14617         reference, declaration, or constant, since the gimplifier
14618         can't handle that case.
14620 2005-11-17  Laurent GUERBY  <laurent@guerby.net>
14622         PR ada/24857
14623         * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
14625 2005-11-16  Richard Guenther  <rguenther@suse.de>
14627         * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
14629 2005-11-16  Joel Sherrill <joel.sherrill@oarcorp.com>
14631         PR ada/24855
14632         * raise-gcc.c: Add missing stdarg.h include.
14634 2005-11-16  Richard Guenther  <rguenther@suse.de>
14636         * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
14637         (ada/misc.o): Likewise.
14639 2005-11-14  Thomas Quinot  <quinot@adacore.com>
14641         * g-soccon.ads: Minor reformatting. Update comments.
14643         * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
14644         gain visibility on the declaration of struct timeval.
14646         * g-soccon-freebsd.ads,
14647         g-soccon-darwin.ads,
14648         g-soccon-tru64.ads,
14649         g-soccon-aix.ads,
14650         g-soccon-irix.ads,
14651         g-soccon-hpux.ads,
14652         g-soccon-solaris.ads,
14653         g-soccon-vms.ads,
14654         g-soccon-mingw.ads,
14655         g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
14657         * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
14658         g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
14659         g-soccon-linux-x86.ads: New files.
14661         * g-socthi-mingw.adb: 
14662         (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
14664         * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
14665         (time_t, suseconds_t): New types constructed to match the tv_sec
14666         and tv_usec fields of C struct timeval.
14667         (Timeval): Construct structure in terms of the new types.
14668         (Host_Errno): New function (imported from socket.c), returns last hosts
14669         database error.
14671         * g-socthi-vxworks.adb:  Add error handling circuitry.
14673         * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
14674         components of struct timeval.
14675         (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
14676         (Check_Selector): In error conditions, clear internal socket sets to
14677         avoid a memory leak.
14678         (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
14679         Send_Timeout, Receive_Timeout.
14681         * g-socthi.ads (time_t, suseconds_t): New types constructed to match
14682         the tv_sec and tv_usec fields of C struct timeval.
14683         (Timeval): Construct structure in terms of the new types.
14684         (Host_Errno): New function (imported from socket.c), returns last hosts
14685         database error.
14687         * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
14688         hosts database last error code.
14690         * gen-soccon.c: Complete value expansion should not be performed on
14691         TARGET, as it has the form of a math expression, and some components
14692         may be platform-defined macros.
14693         For VxWorks, generate the OK and ERROR values.
14694         New constants giving the sizes of the components of C struct timeval.
14696 2005-11-14  Robert Dewar  <dewar@adacore.com>
14697             Ed Schonberg  <schonberg@adacore.com>
14699         PR ada/18434
14700         * types.ads: Include All_Checks in Suppress_Array
14702         * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
14703         not(a=b), since we no longer do this rewriting, and hence it is not
14704         needed.
14705         (Elaboration_Checks_Suppressed): Add special casing to
14706         deal with different cases of static and dynamic elaboration checks (all
14707         checks does not count in the first case, but does in the second).
14708         (Expr_Known_Valid): Do not assume that the result of any arbitrary
14709         function call is valid, since this is not the case.
14710         (Ensure_Valid): Do not apply validity check to a real literal
14711         in a universal or fixed context
14713         * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
14714         elementary types using the operator in standard. It is cleaner not to
14715         modify the programmers intent, especially in the case of floating-point.
14716         (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
14717         it did not matter because we always rewrote a/=b to not(a=b).
14718         (Expand_Allocator_Expression): For an allocator expression whose nominal
14719         subtype is an unconstrained packed type, convert the expression to its
14720         actual constrained subtype.
14721         Implement warning for <= or >= where < or > not possible
14722         Fix to Vax_Float tests (too early in many routines, causing premature
14723         Vax_Float expansions.
14725         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
14726         to be used with packages and generic packages as well as with
14727         subprograms.
14728         (Suppress): Set All_Checks, but not Elaboration_Check, for case
14729         of pragma Suppress (All_Checks)
14730         (Analyze_Pragma, case Warnings): Implement first argument allowed to be
14731         a string literal for precise control over warnings.
14732         Avoid raise of pragma in case of unrecognized pragma and just return
14733         instead.
14735         * sem_prag.ads: Minor reformatting
14737         * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
14738         with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
14739         Switch. Do not handle any exception.
14740         Include -gnatwx as part of -gnatg (warn on redundant parens)
14741         Allow optional = after -gnatm
14742         (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
14743         longer sets Elaboration_Checks.
14744         Code to set warning mode moved to Sem_Warn
14745         so that it can be shared by pragma processing.
14747         * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
14748         statement.
14750         * s-taprop-solaris.adb: 
14751         Change some <= to =, to avoid new warning
14753         * a-exexda.adb, prj-proc.adb: 
14754         Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
14755         Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
14757 2005-11-14  Robert Dewar  <dewar@adacore.com>
14759         * exp_vfpt.adb: Handle /= case
14760         (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
14761         so that we do not get duplicate scaling for fixed point conversions.
14763         * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
14765 2005-11-14  Matthew Gingell  <gingell@adacore.com>
14767         * system-lynxos-ppc.ads, system-lynxos-x86.ads: 
14768         Increase default priority on Lynx from 15 to 17, and meet the Ada
14769         requirement that Default_Priority be ((Priority'First +
14770         Priority'Last) / 2) by increasing the range of Interrupt_Priority.
14772 2005-11-14  Vincent Celier  <celier@adacore.com>
14774         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
14775         mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
14776         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
14777         mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
14778         mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
14779         mlib-tgt-lynxos.adb (DLL_Prefix): New function
14781 2005-11-14  Doug Rupp  <rupp@adacore.com>
14783         * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
14784         private part.
14786 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
14788         * s-traces-default.adb, s-trafor-default.ads,
14789         s-tratas-default.adb: Fix compilation errors.
14791 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
14793         * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
14794         raising the exception so the memory used is freed.
14796 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
14798         * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
14799         (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
14800         (convert_address): Update comments and list of platforms using this.
14802         * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
14803         no longer used.
14805 2005-11-14  Pascal Obry  <obry@adacore.com>
14806             Vincent Celier  <celier@adacore.com>
14808         * gnatdll.adb (Parse_Command_Line): Remove redundant use of
14809         GNAT.Command_Line.
14811         * memroot.adb: Remove redundant with/use clause on
14812         System.Storage_Elements.
14814 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
14816         * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
14817         (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
14818         related code to a-exexpr.adb
14819         (Save_Occurrence_And_Private): Move GCC EH related code to
14820         a-exexpr-gcc.adb
14821         (Raise_Current_Excep): Add new variable Id with pragma
14822         volatile, to ensure that the variable lives on stack.
14824         * a-exexpr-gcc.adb, raise-gcc.c: New file.
14826         * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
14827         from a-except.adb.
14828         Move GCC EH related code to a-exexpr-gcc.adb
14830         * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
14831         64-bit Solaris
14832         Split the Linux version of g-soccon into separate variants for 32 and 64
14833         bit platforms.
14834         (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
14835         vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
14836         install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
14837         of host variable $(RANLIB_FLAGS).
14838         (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
14839         Code clean up: remove unused/obsolete targets.
14840         (EH_MECHANISM): New variable introduced to differenciate between the
14841         two EH mechanisms statically.
14842         (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
14843         (LIBGNAT_OBJS): Add raise-gcc.o
14844         (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
14845         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
14846         supports VxWorks 6 RTPs.
14847         (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
14848         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
14850         * raise.c: Move all GCC EH-related routines to raise-gcc.c
14852 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
14854         * s-tassta.adb (Create_Task): Move the code in charge of resetting the
14855         deferral level, when abort is not allowed, to a later stage (the
14856         Task_Wrapper).
14857         (Task_Wrapper): If Abort is not allowed, reset the deferral level since
14858         it will not get changed by the generated code. It was previously done
14859         in Create_Task.
14861 2005-11-14  Thomas Quinot  <quinot@adacore.com>
14862             Olivier Hainque  <hainque@adacore.com>
14863             Eric Botcazou  <ebotcazou@adacore.com>
14865         * decl.c:
14866         Factor common code to build a storage type for an unconstrained object
14867         from a fat or thin pointer type and a constrained object type.
14868         (annotate_value): Handle BIT_AND_EXPR.
14869         (annotate_rep): Don't restrict the back annotation of inherited
14870         components to the type_annotate_only case.
14871         (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
14872         we are not defining the type.
14873         <E_Record_Type>: Likewise.
14874         (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
14875         to get advantage of the new maybe_stabilize_reference interface, to
14876         ensure that what we reference is indeed stabilized instead of relying
14877         on assumptions on what the stabilizer does.
14878         (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
14879         type imported through a limited_with clause, use its non-limited view.
14880         (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
14881         differentiation.
14882         (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
14883         of #if sections + explicit comparisons of convention identifiers.
14884         (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
14885         before early-returning for certain types when code generation is
14886         disabled.
14887         (gnat_to_gnu_entity) <object>: Adjust comment attached to the
14888         nullification of gnu_expr we do for objects with address clause and
14889         that we are not defining.
14890         (elaborate_expression_1): Do not create constants when creating
14891         variables needed by the debug info: the dwarf2 writer considers that
14892         CONST_DECLs is used only to represent enumeration constants, and emits
14893         nothing for them.
14894         (gnat_to_gnu_entity) <object>: When turning a non-definition of an
14895         object with an address clause into an indirect reference, drop the
14896         initializing expression.
14897         Include "expr.h".
14898         (STACK_CHECK_BUILTIN): Delete.
14899         (STACK_CHECK_PROBE_INTERVAL): Likewise.
14900         (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
14901         (STACK_CHECK_MAX_VAR_SIZE): Likewise.
14902         (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
14903         corresponding to the renamed object as ignored for debugging purposes.
14905         * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
14906         related): For a prefix that is a dereference of a fat or thin pointer,
14907         if there is an actual subtype provided by the front-end, use that
14908         subtype to build an actual type with bounds template.
14909         (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
14910         is provided by the front-end, use that subtype to compute the size of
14911         the deallocated object.
14912         (gnat_to_gnu): When adding a statement into an elaboration procedure,
14913         check for a potential violation of a No_Elaboration_Code restriction.
14914         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
14915         with extra arguments to control whether to recurse through non-values
14916         and to let the caller know if the stabilization has succeeded.
14917         (gnat_stabilize_reference): Now a simple wrapper around
14918         maybe_stabilize, for common uses without restriction on lvalues and
14919         without need to check for the success indication.
14920         (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
14921         pass false instead of 0 as the FORCE argument which is a bool.
14922         (Identifier_to_gnu): Remove checks ensuring that an renamed object
14923         attached to a renaming pointer has been properly stabilized, as no such
14924         object is attached otherwise.
14925         (call_to_gnu): Invoke create_var_decl to create the temporary when the
14926         function uses the "target pointer" return mechanism.
14927         Reinstate conversion of the actual to the type of the formal
14928         parameter before any other specific treatment based on the passing
14929         mechanism. This turns out to be necessary in order for PLACEHOLDER
14930         substitution to work properly when the latter type is unconstrained.
14932         * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
14933         common pattern.
14934         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
14935         with extra arguments to control whether to recurse through non-values
14936         and to let the caller know if the stabilization has succeeded.
14938         * utils2.c (gnat_build_constructor): Only sort the fields for possible
14939         static output of record constructor if all the components are constant.
14940         (gnat_build_constructor): For a record type, sort the list of field
14941         initializers in increasing bit position order.
14942         Factor common code to build a storage type for an unconstrained object
14943         from a fat or thin pointer type and a constrained object type.
14944         (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
14945         types variants, and process special cases of VIEW_CONVERT expressions
14946         as their NOP_EXPR counterpart to ensure we get to the
14947         CORRESPONDING_VARs associated with CONST_DECls.
14948         (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
14949         on the right-hand side.
14951         * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
14952         a common pattern.
14953         (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
14954         are converting back to its original type.
14955         (convert) <JM input>: Fallthrough regular conversion code instead of
14956         extracting the object if converting to a type variant.
14957         (create_var_decl): When a variable has an initializer requiring code
14958         generation and we are at the top level, check for a potential violation
14959         of a No_Elaboration_Code restriction.
14960         (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
14961         SIZE and SIZE_UNIT which we need for later back-annotations.
14962         * utils.c: (convert) <STRING_CST>: Remove obsolete code.
14963         <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
14964         is an unchecked union.
14965         (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
14966         (convert) <VIEW_CONVERT_EXPR>: When the types have the same
14967         main variant, just replace the VIEW_CONVERT_EXPR.
14968         <UNION_TYPE>: Revert 2005-03-02 change.
14970         * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
14972         * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
14974 2005-11-14  Matthew Heaney  <heaney@adacore.com>
14976         * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads, 
14977         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb, 
14978         a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads, 
14979         a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb, 
14980         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
14981         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb: 
14982         Compiles against the spec for ordered maps described in sections
14983         A.18.6 of the most recent (August 2005) AI-302 draft.
14985 2005-11-14  Olivier Hainque  <hainque@adacore.com>
14987         * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
14988         to ensure bias adjustments take place when need be and to prevent
14989         occurrences of intermediate overflows.
14991 2005-11-14  Matthew Gingell  <gingell@adacore.com>
14992             Olivier Hainque  <hainque@adacore.com>
14994         * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
14995         ia64 HP-UX.
14997         * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
14998         tracebacks on ia64 HP-UX and provide explanatory comment.
14999         Enable backtraces on ia64 GNU/Linux.
15000         (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
15001         base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
15003 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
15004             Javier Miranda  <miranda@adacore.com>
15006         * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
15007         exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
15008         exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
15009         einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
15011         * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
15012         properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
15013         assertions).
15015         * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
15016         subprogram that generates the external name associated with a
15017         secondary dispatch table.
15018         (Get_Secondary_DT_External_Name): New subprogram that generates the
15019         external name associated with a secondary dispatch table.
15021 2005-11-14  Emmanuel Briot  <briot@adacore.com>
15023         * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
15024         line in the ALI file to include both an instantiation reference, and a
15025         returned value.
15027 2005-11-14  Vincent Celier  <celier@adacore.com>
15029         * clean.adb (Check_Project): Look for Ada code in extending project,
15030         even if Ada is not specified as a language.
15031         Use new function DLL_Prefix for DLL_Name
15032         (Clean_Interface_Copy_Directory): New procedure
15033         (Clean_Library_Directory): New procedure
15034         (Clean_Directory): Remove procedure, no longer used
15035         (Clean_Project): Do not delete any file in an externally built project
15037         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
15038         directory of an extending project, even when there are no Ada source
15039         present.
15040         (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
15041         (Set_Ada_Paths.Add.Recursive_Add): Ditto
15043         * mlib-prj.adb (Check_Library): For all library projects, get the
15044         library file timestamp.
15045         (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
15046         (Build_Library): Use new function DLL_Prefix for the DLL_Name
15047         (Clean): Remove procedure, no longer used
15048         (Ultimate_Extension_Of): New function
15049         (Build_Library): When cleaning the library directory, only remove an
15050         existing library file and any ALI file of a source of the project.
15051         When cleaning the interface copy directory, remove any source that
15052         could be a source of the project.
15054         * prj.ads, prj.adb (Project_Empty): Add values of new components
15055         Library_TS and All_Imported_Projects.
15056         (Project_Empty): Add values for new components of Project_Data:
15057         Library_ALI_Dir and Display_Library_ALI_Dir
15059         * prj-attr.adb: New project level attribute name Library_ALI_Dir
15061         * prj-nmsc.adb (Check_Library_Attributes): Take into account new
15062         attribute Library_ALI_Dir.
15063         (Check_Library_Attributes): The library directory cannot be the same as
15064         any source directory of the project tree.
15065         (Check_Stand_Alone_Library): The interface copy directory cannot be
15066         the same as any source directory of the project tree.
15068         * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
15069         all temporary files.
15071 2005-11-14  Robert Dewar  <dewar@adacore.com>
15072             Ed Schonberg  <schonberg@adacore.com>
15074         * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
15075         (Check_Elab_Call): A call within a protected body is never an
15076         elaboration call, and does not require checking.
15077         (Same_Elaboration_Scope): Take into account protected types for both
15078         entities.
15079         (Activate_Elaborate_All_Desirable): New procedure
15081         * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
15082         desirable
15084         * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
15085         (Elab_Error_Msg): Use -da to include internal unit links, not -de.
15087         * lib-writ.ads, lib-writ.adb: 
15088         Implement new AD/ED for Elaborate_All/Elaborate desirable
15089         Use new Elaborate_All_Desirable flag in N_With_Clause node
15091         * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
15092         N_Free_Statement nodes.
15093         Define new class N_Subprogram_Instantiation
15094         Add Elaborate_Desirable flag to N_With_Clause node
15095         Add N_Delay_Statement (covering two kinds of delay)
15097         * debug.adb: Introduce d.f flag for compiler
15098         Add -da switch for binder
15100 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
15101             Cyrille Comar  <comar@adacore.com>
15103         * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
15104         for task component, in the case of a limited aggregate. The enclosed
15105         object declaration will create it earlier. Otherwise, in the case of a
15106         nested aggregate, the object may appear in the wrong scope.
15107         (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
15108         (Gen_Assign): If the component being assigned is an array type and the
15109         expression is itself an aggregate, wrap the assignment in a block to
15110         force finalization actions on the temporary created for each row of the
15111         enclosing object.
15112         (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
15113         structures are initialized after all discriminants are set so that
15114         they can be accessed even when their offset is dynamic.
15116 2005-11-14  Robert Dewar  <dewar@adacore.com>
15117             Hristian Kirtchev  <kirtchev@adacore.com>
15119         * sem_attr.adb: Implement Machine_Rounding attribute
15120         (Analyze_Access_Attribute): The access attribute may appear within an
15121         aggregate that has been expanded into a loop.
15122         (Check_Task_Prefix): Add semantic check for attribute 'Callable and
15123         'Terminated whenever the prefix is of a task interface class-wide type.
15124         (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
15125         the prefix is of a task interface class-wide type.
15127         * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
15128         to avoid warnings.
15130         * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
15131         Remove pragma Inline for [Unaligned_]Valid.
15132         Add comments that Valid routines do not work for Vax_Float
15134         * exp_attr.adb: Implement Machine_Rounding attribute
15136         * snames.h: Add entry for Machine_Rounding attribute
15138 2005-11-14  Javier Miranda  <miranda@adacore.com>
15139             Robert Dewar  <dewar@adacore.com>
15140             Hristian Kirtchev  <kirtchev@adacore.com>
15142         * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
15143         and related): For a prefix that is an explicit dereference of an
15144         access to unconstrained packed array type, annotate the dereference
15145         with an actual subtype so GIGI can make a correct size computation.
15146         (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
15147         'Unrestricted_Access, if the designated type is an interface we
15148         add a type conversion to force the displacement of the pointer
15149         to the secondary dispatch table.
15150         Use Universal_Real instead of Long_Long_Float when we need a high
15151         precision float type for the generated code (prevents gratuitous
15152         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
15153         (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
15154         'Terminated for task interface class-wide objects. Generate a call to
15155         the predefined dispatching routine used to retrieve the _task_id from
15156         a task corresponding record.
15157         (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
15159         * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
15160         (Check_Dispatching_Operation): Protect the frontend againts
15161         previously detected errors.
15163         * Makefile.rtl: Add new instantiations of system.fat_gen
15165         * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads: 
15166         Change name of instantiated package for better consistency
15167         with newly added system.fat_gen instantiations.
15169         * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
15170         s-fvagfl.ads: New files.
15172 2005-11-14  Cyrille Comar  <comar@adacore.com>
15173             Thomas Quinot  <quinot@adacore.com>
15175         * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
15176         assignment of a value of a tagged type that has been rewritten to a
15177         block statement, it is known by construction that no checks are
15178         necessary for the statements within the block: analyze it with checks
15179         suppressed.
15180         (Expand_N_If_Statement): When killing a dead then-branch in an
15181         if-statement that has elsif_parts, recompute the Current_Value node
15182         for any entity whose value is known from the condition of the first
15183         elsif_part.
15184         (Expand_N_Return_Statement): When returning a mutable record, convert
15185         the return value into its actual subtype in order to help the backend
15186         to return the actual size instead of the maximum. This is another
15187         aftermath of not returning mutable records on the sec-stack anymore.
15189         * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
15190         handling of error msg for suspicious reverse range iteration.
15191         (Check_Possible_Current_Value_Condition): Move declaration from body to
15192         spec, to allow this subprogram to be called from exp_ch5.
15194 2005-11-14  Thomas Quinot  <quinot@adacore.com>
15196         * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
15197         generate a set of nested array aggregates instead of a single flat
15198         aggregate for multi-dimensional arrays.
15200 2005-11-14  Pascal Obry  <obry@adacore.com>
15202         * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
15203         by spawnve is a process handle, no need to convert. Add a parameter
15204         close to control wether the process handle must be closed.
15205         (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
15206         a process handle, not need to convert.
15207         (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
15209         * g-expect.adb: (Kill): Document the new close parameter.
15210         (Close): Do not release the process handle in the kill there as
15211         waitpid() is using it.
15212         (Send_Signal): Release the process handle.
15214 2005-11-14  Robert Dewar  <dewar@adacore.com>
15216         * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
15217         need a high precision float type for the generated code (prevents
15218         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
15219         used).
15221         * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
15222         need a high precision float type for the generated code (prevents
15223         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
15224         used).
15225         (Expand_Width_Attribute): In configurable run-time, the attribute is not
15226         allowed on non-static enumeration subtypes. Force a load error to emit
15227         the correct diagnostic.
15229 2005-11-14  Thomas Quinot  <quinot@adacore.com>
15230             Robert Dewar  <dewar@adacore.com>
15231             Ed Schonberg  <schonberg@adacore.com>
15233         * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
15234         subtype to compute the size of the designated object at run-time,
15235         create such a subtype and store it in the Actual_Designated_Subtype
15236         attribute of the N_Free_Statement.
15237         Generate itype for classwide designated object in both cases of
15238         user-specified storage pool: specific and class-wide, not only in the
15239         specific case.
15240         Raise CE when trying to set a not null access type object to null.
15241         (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
15242         an explicit loop, because freeze nodes make its position variable.
15244         * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
15245         null object.
15247 2005-11-14  Javier Miranda  <miranda@adacore.com>
15249         * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
15250         Build_Stream_Procedure): Add the null-excluding attribute to the first
15251         formal.
15252         This has no semantic meaning under Ada95 mode but it is a
15253         requirement under Ada05 mode.
15255         * par-ch3.adb (P_Access_Definition): Addition of warning message if
15256         the null exclusion is used under Ada95 mode
15257         (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
15258         (P_Access_Definition): Remove assertion that forbids the use of
15259         the null-exclusion feature in Ada95.
15261 2005-11-14  Robert Dewar  <dewar@adacore.com>
15263         * impunit.adb: Exclude container helper units not intended for use by
15264         users.
15266 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
15268         * freeze.adb (Freeze_Entity): For an access formal that is an access
15269         to subprogram, freeze the anonymous subprogram type at the same time,
15270         to prevent later freezing in the wrong scope, such as the enclosing
15271         subprogram body.
15272         (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
15273         subprogram whenever available.
15275 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
15277         PR ada/23732
15278         * gnatvsn.ads (Library_Version): Bump to 4.1
15280 2005-11-14  Robert Dewar  <dewar@adacore.com>
15282         * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
15283         Storage_Offset to avoid wrap around causing invalid results.
15285 2005-11-14  Pascal Obry  <obry@adacore.com>
15287         * gnatbind.adb (Is_Cross_Compiler): New function returning True for
15288         cross-compiler.
15289         (Scan_Bind_Arg): Fail with an error message if -M option is used
15290         on a native compiler.
15292 2005-11-14  Robert Dewar  <dewar@adacore.com>
15293             Vincent Celier  <celier@adacore.com>
15295         * gprep.adb: Implement -C switch to scan comments
15297         * scng.adb: Scan comment symbol separately if Replace_In_Comments set
15299         * scans.ads: Comment updates (including new use of Tok_Comment in
15300         preprocessing)
15302         * opt.ads: Add documentation for flags that are used by gprmake,
15303         currently and in the next version of gprmake.
15304         (Verbosity_Level): New variable
15305         Add Replace_In_Comments switch
15307         * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
15308         and -vm.
15309         Add /REPLACE_IN_COMMENTS for gnatprep -C switch
15311 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
15313         * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
15314         message, friendlier.
15316 2005-11-14  Robert Dewar  <dewar@adacore.com>
15318         * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
15320 2005-11-14  Doug Rupp  <rupp@adacore.com>
15322         * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
15324 2005-11-14  Robert Dewar  <dewar@adacore.com>
15326         * interfac.ads: Change declarations of IEEE float types so that we no
15327         longer need a separate version of this package for VMS.
15329 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
15331         * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
15332         internal entity created for the declaration of a child subprogram body
15333         with no spec as coming from source, to generate proper cross-reference
15334         information.
15336 2005-11-14  Vincent Celier  <celier@adacore.com>
15338         * make.adb (Compile_Sources): Change verbose message to minimum
15339         verbosity level High for "is in an Ada library", "is a read-only
15340         library" and "is an internal library",
15341         (Create_Binder_Mapping_File): Path name of ALI file for library project
15342         must include the library directory, not the object directory.
15343         (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
15344         for new switches -vl, -vm and -vh.
15345         (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
15346         (Check): Use minimum verbosity Medium for some Verbose_Msg calls
15347         (Compile_Sources): Do not attempt to compile if an ALI file is missing
15348         in a project that is externally built.
15349         (Compute_All_Imported_Projects): New procedure
15350         (Gnatmake): Check if importing libraries should be regenerated because
15351         at least an imported library is more recent.
15352         (Initialize): For each project compute the list of the projects it
15353         imports directly or indirectly.
15354         (Add_Library_Search_Dir): New procedure, used in place of
15355         Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
15356         put in the search paths.
15357         (Add_Source_Search_Dir): New procedure, used in place of
15358         Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
15359         put in the search paths.
15360         (Mark_Directory): Resolve the absolute path the directory before marking
15361         it.
15363         * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
15364         call to new procedure Bad_Switch. Call Scan_Pos with new parameter
15365         Switch. Do not handle any exception.
15366         (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
15367         so that the switch is recognized as valid.
15368         (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
15370 2005-11-14  GNAT Script  <nobody@adacore.com>
15372         * Make-lang.in: Makefile automatically updated
15374 2005-11-14  Pascal Obry  <obry@adacore.com>
15376         * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
15377         used.
15378         (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
15379         In both cases the last argument was dropped.
15381 2005-11-14  Eric Botcazou  <ebotcazou@adacore.com>
15383         * namet.h: (Column_Numbe): New type.
15384         (Get_Column_Number): Define to sinput__get_column_number.
15385         (Instantiation): Define to sinput__instantiation.
15386         (Get_Column_Number): Declare.
15387         (Instantiation): Likewise.
15389 2005-11-14  Robert Dewar  <dewar@adacore.com>
15391         * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
15392         syntax, which could cause compiler hangs.
15394 2005-11-14  Vincent Celier  <celier@adacore.com>
15396         * prj-ext.adb: Take into account new environment variable
15397         GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
15398         are defined.
15399         (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
15400         normalize its path name, making it absolute and resolving symbolic
15401         links, and replace the original if resolved path is different.
15403 2005-11-14  Vincent Celier  <celier@adacore.com>
15405         * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
15406         into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
15408 2005-11-14  Emmanuel Briot  <briot@adacore.com>
15410         * prj-pp.adb (Print): Do not output the with statement if the
15411         associated name is empty, which happens for virtual extending projects.
15412         (Print): Preserve the "extends all" attribute when printing the project.
15414         * prj-tree.ads (String_Value_Of): Add comment about returned value for
15415         a virtual extending project.
15417 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
15419         * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
15420         rhs of an assignment even if the type is unconstrained, when the
15421         context is non-expanding.
15422         In an inlined body, if the context type is private,
15423         resolve with its full view, which must be a composite type.
15425 2005-11-14  Robert Dewar  <dewar@adacore.com>
15426             Ed Schonberg  <schonberg@adacore.com>
15428         * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
15429         Do not give obsolescent warning on with of subprogram (since we
15430         diagnose calls)
15431         (Analyze_With_Clause): Add test for obsolescent package
15432         (Install_Context_Clauses): If the unit is the body of a child unit, do
15433         not install twice the private declarations of the parents, to prevent
15434         circular lists of Use_Clauses in a parent.
15435         (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
15436         compiling body of child unit.
15437         Use new class N_Subprogram_Instantiation
15438         (Expand_With_Clause): If this is a private with_clause for a child unit,
15439         appearing in the context of a package declaration, then the implicit
15440         with_clauses generated for parent units are private as well.
15441         (License_Check): Do not generate message if with'ed unit is internal
15443 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
15444             Ed Schonberg  <schonberg@adacore.com>
15445             Thomas Quinot  <quinot@adacore.com>
15447         * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
15448         names are internal, because they will not have a corresponding partner
15449         in the actual package.
15450         (Analyze_Formal_Package): Move the setting of the formal package spec's
15451         Generic_Parent field so that it occurs prior to analyzing the package,
15452         to allow proper operation of Install_Parent_Private_Declarations.
15453         (Analyze_Package_Instantiation): Set the instantiated package entity's
15454         Package_Instantiation field.
15455         (Get_Package_Instantiation_Node): Move declaration to package spec.
15456         Retrieve the N_Package_Instantiation node when the Package_Instantiation
15457         field is present.
15458         (Check_Generic_Child_Unit): Within an inlined call, the only possible
15459         instantiation is Unchecked_Conversion, for which no parents are needed.
15460         (Inline_Instance_Body): Deinstall and record the use_clauses for all
15461         parent scopes of a scope being removed prior to inlining an instance
15462         body.
15463         (Analyze_Package_Instantiation): Do not perform front-end inlining when
15464         the current context is itself an instance within a non-instance child
15465         unit, to prevent scope stack errors.
15466         (Save_References): If the node is an aggregate that is an actual in a
15467         call, rewrite as a qualified expression to preserve some type
15468         information, to resolve possible ambiguities in the instance.
15469         (Instance_Parent_Unit): New global variable to record the ultimate
15470         parent unit associated with a generic child unit instance (associated
15471         with the existing Parent_Unit_Visible flag).
15472         (type Instance_Env): New component Instance_Parent_Unit for stacking
15473         parents recorded in the global Instance_Parent_Unit.
15474         (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
15475         stack.
15476         (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
15477         it's not a top-level unit, and only do this if Instance_Parent_Unit is
15478         not already set. Replace test of Is_Child_Unit with test of parent's
15479         scope against package Standard. Add comments and a ??? comment.
15480         (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
15481         on a child instance parent to test that the parent equals
15482         Instance_Parent rather than simply checking that the unit is not a
15483         child unit.
15484         (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
15485         (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
15486         a formal interface are ancestors of the corresponding actual.
15487         (Validate_Formal_Interface_Type): Additional legality checks.
15488         (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
15489         interface types with ancestors.
15490         (Analyze_Formal_Package): If formal is a renaming, use renamed entity
15491         to diagnose attempts to use generic within its own declaration.
15493 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
15494             Javier Miranda  <miranda@adacore.com>
15496         * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
15497         discriminant.
15498         (Build_Private_Derived_Type): The entity of the created full view of the
15499         derived type does not come from source. If after installing the private
15500         declarations of the parent scope the parent is still private, use its
15501         full view to construct the full declaration of the derived type.
15502         (Build_Derived_Record_Type): Relax the condition that controls the
15503         execution of the check that verifies that the partial view and
15504         the full view agree in the set of implemented interfaces. In
15505         addition, this test now only takes into account the progenitors.
15506         (Derive_Interface_Subprograms): No need to derive subprograms
15507         of ancestors that are interfaces.
15508         (Derive_Subprograms): Remove formal No_Predefined_Prims and the
15509         associated code.
15510         Change name Is_Package to Is_Package_Or_Generic_Package
15511         (Complete_Subprograms_Derivation): Handle the case in which the full
15512         view is a transitive derivation of the ancestor of the partial view.
15513         (Process_Full_View): Rename local subprogram Find_Interface_In_
15514         Descendant to Find_Ancestor_Interface to leave the code more clear.
15515         Remove wrong code that avoids the generation of an error message
15516         when the immediate ancestor of the partial view is an interface.
15517         In addition some minor reorganization of the code has been done to
15518         leave it more clear.
15519         (Analyze_Type_Declaration): If type has previous incomplete tagged
15520         partial view, inherit properly its primitive operations.
15521         (Collect_Interfaces): Make public, for analysis of formal
15522         interfaces.
15523         (Analyze_Interface_Declaration): New procedure for use for regular and
15524         formal interface declarations.
15525         (Build_Derived_Record_Type): Add support for private types to the code
15526         that checks if a tagged type implements abstract interfaces.
15527         (Check_Aliased_Component_Type): The test applies in the spec of an
15528         instance as well.
15529         (Access_Type_Declaration): Clean up declaration of malformed type
15530         declared as an access to its own classwide type, to prevent cascaded
15531         crash.
15532         (Collect_Interfaces): For private extensions and for derived task types
15533         and derived protected types, the parent may be an interface that must
15534         be included in the interface list.
15535         (Access_Definition): If the designated type is an interface that may
15536         contain tasks, create Master_Id for it before analyzing the expression
15537         of the declaration, which may be an allocator.
15538         (Record_Type_Declaration): Set properly the interface kind, for use
15539         in allocators, the creation of master id's for task interfaces, etc.
15541 2005-11-14  Javier Miranda  <miranda@adacore.com>
15542             Ed Schonberg  <schonberg@adacore.com>
15544         * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
15545         omitted in case of stream attribute subprograms.
15546         (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
15547         appear immediately after a subprogram body, when there is no previous
15548         subprogram declaration.
15549         Change name Is_Package to Is_Package_Or_Generic_Package
15550         (Process_Formals): A non null qualifier on a non null named access
15551         type is not an error, and is a warning only if Redundant_Constructs
15552         are flagged.
15554 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
15555             Ed Schonberg  <schonberg@adacore.com>
15557         * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
15558         nested within Analyze_Package_Specification to install the private
15559         declarations and use clauses within each of the parent units of a
15560         package instance of a generic child package.
15561         (Analyze_Package_Specification): When entering a private part of a
15562         package associated with a generic instance or formal package, the
15563         private declarations of the parent must be installed (by calling new
15564         procedure Install_Parent_Private_Declarations).
15565         Change name Is_Package to Is_Package_Or_Generic_Package
15566         (Preserve_Full_Attributes): For a synchronized type, the corresponding
15567         record is absent in a generic context, which does not indicate a
15568         compiler error.
15570 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
15572         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
15573         not try to rewrite a renamed stream attribute, because the operations
15574         on the type may not have been generated.
15575         Handle properly a renaming_as_body generated for a stream operation
15576         whose default is abstract because the object type itself is abstract.
15577         (Find_Type): If the type is incomplete and appears as the prefix of a
15578         'Class reference, it is tagged, and its list of primitive operations
15579         must be initialized properly.
15580         (Chain_Use_Clauses): When chaining the use clauses that appear in the
15581         private declaration of a parent unit, prior to compiling the private
15582         part of a child unit, find on the scope stack the proper parent entity
15583         on which to link the use clause.
15584         (Note_Redundant_Use): Emit a warning when a redundant use clause is
15585         detected.
15586         (Analyze_Object_Renaming): An attribute reference is not a legal object
15587         if it is not a function call.
15589 2005-11-14  Robert Dewar  <dewar@adacore.com>
15590             Ed Schonberg  <schonberg@adacore.com>
15592         * sem_eval.adb: Implement d.f flag
15593         (Subtype_Statically_Match): A generic actual type has unknown
15594         discriminants when the corresponding actual has a similar partial view.
15595         If the routine is called to validate the signature of an inherited
15596         operation in a child instance, the generic actual matches the full view,
15598 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
15599             Ed Schonberg  <schonberg@adacore.com>
15600             Robert Dewar  <dewar@adacore.com>
15601             Thomas Quinot  <quinot@adacore.com>
15603         * sem_res.adb (Resolve_Call): Provide a better error message whenever
15604         a procedure call is used as a select statement trigger and is not an
15605         entry renaming or a primitive of a limited interface.
15606         (Valid_Conversion): If the operand has a single interpretation do not
15607         remove address operations.
15608         (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
15609         statement to inhibit warning.
15610         (Resolve_Unary_Op): Do not produce a warning when
15611         processing an expression of the form -(A mod B)
15612         Use Universal_Real instead of Long_Long_Float when we need a high
15613         precision float type for the generated code (prevents gratuitous
15614         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
15615         (Resolve_Concatenation_Arg): Improve error message when argument is an
15616         ambiguous call to a function that returns an array.
15617         (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
15618         there is an implicit operator in the given scope if we are within an
15619         instance: legality check has been performed on the generic.
15620         (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
15621         after resolving operand, to avoid false warnings on overloaded calls.
15623 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
15624             Javier Miranda  <miranda@adacore.com>
15626         PR ada/15604
15627         * sem_type.adb (Covers): In an inlined body, a composite type matches
15628         a private type whose full view is a composite type.
15629         (Interface_Present_In_Ancestor): Protect the frontend against
15630         previously detected errors to ensure that its compilation
15631         with assertions enabled gives the same output that its
15632         compilation without assertions.
15633         (Interface_Present_In_Ancestor): Add support for private types.
15634         Change name In_Actual to In_Generic_Actual (clean up)
15635         (Disambiguate): New predicate In_Actual, to recognize expressions that
15636         appear in the renaming declaration generated for generic actuals, and
15637         which must be resolved in the outer context.
15639 2005-11-14  Robert Dewar  <dewar@adacore.com>
15640             Thomas Quinot  <quinot@adacore.com>
15641             Hristian Kirtchev  <kirtchev@adacore.com>
15642             Ed Schonberg  <schonberg@adacore.com>
15644         * sem_util.ads, sem_util.adb: Change name Is_Package to
15645         Is_Package_Or_Generic_Package.
15646         (Check_Obsolescent): New procedure.
15647         (Set_Is_Public): Remove obsolete junk test.
15648         (Set_Public_Status): Do not set Is_Public on an object whose declaration
15649         occurs within a handled_sequence_of_statemets.
15650         (Is_Controlling_Limited_Procedure): Factor some of the logic, account
15651         for a parameterless procedure.
15652         (Enter_Name): Recognize renaming declarations created for private
15653         component of a protected type within protected operations, so that
15654         the source name of the component can be used in the debugger.
15656 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
15657             Robert Dewar  <dewar@adacore.com>
15659         * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
15660         of a generic subprogram are not visible outside the body.
15661         (Set_Warning_Switch): New procedure (code to set warning mode moved
15662         here from Switch.C so that it can be shared by pragma processing.
15663         (Check_References): Special case warning for non-modified non-imported
15664         volatile objects.
15665         * par-prag.adb: Modify processing of pragma Warnings to accomodate new
15666         form with a string literal argument
15668 2005-11-14  Javier Miranda  <miranda@adacore.com>
15670         * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
15671         anonymous access.
15672         (Write): Addition of "not null" to the anonymous access.
15673         (Read): Addition of "not null" to the anonymous access.
15674         (Write): Addition of "not null" to the anonymous access.
15676         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
15677         I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
15678         I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
15679         (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
15680         W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
15681         "not null" to the anonymous access.
15683 2005-11-14  Robert Dewar  <dewar@adacore.com>
15685         * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
15686         offset values
15688 2005-11-14  Vincent Celier  <celier@adacore.com>
15690         * switch.adb (Bad_Switch): New procedure
15691         (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
15692         message when in error.
15694         * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
15695         Too_Many_Output_Files): Remove declarations, no longer used.
15696         (Scan_Nat): New parameter Switch
15697         (Scan_Pos): Ditto
15698         (Bad_Switch): New procedure
15700         * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
15701         with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
15702         new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
15703         to Osint.Fail. Do not handle any exception.
15705 2005-11-14  Vincent Celier  <celier@adacore.com>
15707         * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
15708         designates a non existent directory.
15710 2005-11-14  Robert Dewar  <dewar@adacore.com>
15712         * xgnatugn.adb: Replace invalid membership test by 'Valid
15714 2005-11-14  Vincent Celier  <celier@adacore.com>
15716         * makegpr.adb (Gprmake): Do not attempt to build the global archive if
15717         there is no object directory.
15719 2005-11-14  Robert Dewar  <dewar@adacore.com>
15721         * usage.adb: Minor adjustment to output format, use nn instead of nnn
15722         (so that -gnateInnn does not run into next column)
15724 2005-11-14  Ed Falis  <falis@adacore.com>
15726         * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
15727         "constrained"
15729 2005-11-14  Cyrille Comar  <comar@adacore.com>
15731         * s-chepoo.ads: Add comments on Dereference.
15732         Remove unnecessary inherited abstract primitives.
15733         Cosmetic cleanup.
15735 2005-11-14  Robert Dewar  <dewar@adacore.com>
15737         * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
15738         node parameter, not needed, since it is available as Declaration_Node.
15740 2005-11-14  Geert Bosch  <bosch@adacore.com>
15742         * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
15743         grammatically correct.
15745 2005-11-14  Vincent Celier  <celier@adacore.com>
15747         * s-fileio.ads: Correct spelling error in comment
15749 2005-11-14  Cyrille Comar  <comar@adacore.com>
15750             Robert Dewar  <dewar@adacore.com>
15751             Vincent Celier  <celier@adacore.com>
15752             Ben Brosgol  <brosgol@adacore.com>
15753             Jose Ruiz  <ruiz@adacore.com>
15754             Pascal Obry  <obry@adacore.com>
15756         * gnat_ugn.texi: 
15757         Document that -fstack-check is needed for strict compliance with the
15758         Ada 95 Reference Manual.
15759         Correct reference to VAX systems to meet HP guidelines
15760         Add documentation for new gnatmake switches -vl, -vm and -vh
15761         Replace DEC Ada by HP Ada
15762         Replace DIGITAL by HP
15763         Remove empty section on tools in compatibility section
15764         Clarify the Windows convention semantics.
15765         Document the Win32 calling convention.
15766         The Stdcall, Win32 and DLL convention are synonyms.
15767         Add a note in -gnatR description about zero size record components
15768         Note on new >= and <= warnings for -gnatwc
15769         Document that equal sign after -gnatm is optional.
15770         Note that strip is working fine on DLL built with a Library
15771         Project. The restriction apply only to DLL built with gnatdll.
15772         Update section about the way to debug a DLL.
15773         Update information about the DLL convention.
15774         Document -C switch for gnatprep
15775         Document new attribute Library_ALI_Dir
15776         Update elaboration doc to include implicit Elaborate pragmas now
15777         generated for subprogram instantiations.
15778         Document limitation on executable names that include spaces for --GCC,
15779         --GNATBIND, and --GNATLINK switches.
15780         Document that -w causes -gnatws to be added at start of gcc switches
15782         * gnat_rm.texi: Document that -mieee is needed for generating infinite
15783         and NaN values in case of overflow on machines that are not fully
15784         compliant with the IEEE floating-point standard.
15785         Create a section describing the set of compiler options needed for
15786         strict compliance with the Ada 95 Reference Manual.
15787         Add documentation for pragma Obsolescent applied to a package
15788         Clarify potential issues of mixed language programs related to the
15789         I/O buffering enabling in the elaboration of the GNAT runtime.
15790         Add extra documentation for pragma Restrictions (No_Elaboration_Code)
15791         This documentation only patch adds extra documentsion for pragma
15792         Restrictions (No_Elaboration_Code), explaining why it is not possible
15793         to document this restriction in terms of allowed source constructs.
15794         Document string literal form of pragma Warnings
15795         Document new attribute Library_ALI_Dir
15796         Add documentation on stable attributes in project files that was missing
15798         * gnat-style.texi: Indicate that paragraphs within a single comment
15799         should be separated by empty comment lines
15801         * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
15802         /05 respectively)
15804         * bindusg.adb: Minor cleanup, put -m before -M for consistency
15806 2005-11-14  Robert Dewar  <dewar@adacore.com>
15808         * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
15809         a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
15810         a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
15811         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
15812         a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
15813         a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
15814         a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
15815         a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
15816         a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
15817         a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
15818         a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
15819         a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
15820         g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
15821         a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
15822         a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
15823         system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
15824         g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
15825         g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
15826         a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
15827         a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
15828         a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
15829         a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
15830         a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
15831         a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
15832         system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
15833         system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
15834         a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
15835         a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
15836         a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
15837         system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
15838         system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
15839         s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
15840         system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
15841         system-interix.ads, system-solaris-sparc.ads,
15842         system-solaris-sparcv9.ads, s-inmaop-vms.adb,
15843         s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
15844         system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
15845         s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
15846         a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
15847         a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
15848         a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
15849         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
15850         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
15851         a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
15852         a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
15853         a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
15854         a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
15855         a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
15856         a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
15857         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
15858         a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
15859         a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
15860         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
15861         a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
15862         a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
15863         a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
15864         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
15865         a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
15866         a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
15867         a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
15868         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
15869         a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
15870         a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
15871         a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
15872         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
15873         a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
15874         a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
15875         a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
15876         bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
15877         csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
15878         errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
15879         errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
15880         exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
15881         exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
15882         freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
15883         g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
15884         g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
15885         g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
15886         g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
15887         g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
15888         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
15889         g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
15890         g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
15891         gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
15892         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
15893         g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
15894         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
15895         g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
15896         g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
15897         g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
15898         layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
15899         mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
15900         mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
15901         nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
15902         osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
15903         par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
15904         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
15905         par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
15906         prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
15907         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
15908         prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
15909         prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
15910         sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
15911         sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
15912         sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
15913         sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
15914         s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
15915         sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
15916         s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
15917         s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
15918         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
15919         s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
15920         s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
15921         s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
15922         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
15923         s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
15924         s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
15925         s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
15926         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
15927         s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
15928         s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
15929         s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
15930         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
15931         s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
15932         s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
15933         s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
15934         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
15935         s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
15936         s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
15937         s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
15938         s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
15939         s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
15940         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
15941         s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
15942         styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
15943         s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
15944         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
15945         s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
15946         s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
15947         s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
15948         s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
15949         s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
15950         s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
15951         s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
15952         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
15953         table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
15954         tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
15955         ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
15956         usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
15957         xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
15958         xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
15959         a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
15960         a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
15961         a-numaux-darwin.ads, a-numaux-darwin.adb,
15962         a-swuwha.ads, a-stunha.ads: Minor reformatting
15964 2005-11-14  Robert Dewar  <dewar@adacore.com>
15966         PR ada/18434
15967         * osint-m.adb: Add pragma Elaborate_All for Osint
15969 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
15971         PR ada/23995
15972         * trans.c (call_to_gnu): Restore statement lost in translation.
15974 2005-11-08  Eric Botcazou  <ebotcazou@adacore.com>
15976         * init.c: Use the Linux-specific section for the IA-64/Linux target.
15977         (__gnat_adjust_context_for_raise): Add conditional code so that the
15978         IA-64 is also supported.
15980 2005-11-03  James E Wilson  <wilson@specifix.com>
15982         PR ada/23427
15983         * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
15984         TREE_OVERFLOW check.
15986 2005-09-21  Olivier Hainque  <hainque@adacore.com>
15988         PR ada/22418
15989         * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
15990         as we create them to store a size in bits.
15992 2005-10-21  Eric Botcazou  <ebotcazou@adacore.com>
15994         PR ada/21937
15995         PR ada/22328
15996         PR ada/22381
15997         PR ada/22383
15998         PR ada/22419
15999         PR ada/22420
16000         * utils2.c (build_return_expr): New helper function.
16001         * gigi.h (build_return_expr): Declare it.
16002         * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
16003         of manually building the RETURN_EXPR tree.
16004         (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
16005         (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
16006         build_binary_op for the "target pointer" case.  Use build_return_expr
16007         instead of manually building the RETURN_EXPR tree.
16009 2005-09-16  Laurent GUERBY  <laurent@guerby.net>
16011         PR ada/23788
16012         * s-tpinop.ads: Make this unit Preelaborate.
16014 2005-09-16  Andreas Jaeger  <aj@suse.de>
16016         * socket.c: Add string.h for memcpy.
16018 2005-09-05  Arnaud Charlet  <charlet@adacore.com>
16020         * dec-io.ads, dec-io.adb: Removed, no longer used.
16022 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
16024         * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
16026         * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
16027         s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
16028         s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
16029         s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
16030         dependent units are Preelaborate.
16031         (Initialize): Call Interrupt_Managemeent.Initialize and
16032         OS_Primitives.Initialize to ensure proper initialization of this unit.
16033         Remove use of System.Soft_Links
16034         Make this unit Preelaborate.
16036         * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
16037         s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
16038         s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
16039         s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
16040         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
16041         s-tratas.ads, s-tasinf.ads: Minor reformatting.
16042         Add pragma Preelaborate, since these packages are suitable for this
16043         categorization.
16044         Update comments.
16046         * s-traent-vms.ads, s-intman-dummy.adb,
16047         s-taprop-dummy.adb: Make this unit Preelaborate.
16049         * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
16050         s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
16051         s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
16052         s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
16053         s-intman-solaris.adb, s-intman-irix-athread.adb,
16054         s-intman-irix.adb: Mark this unit Preelaborate.
16055         (Initialize): New procedure.
16056         Update comments.
16058         * s-taspri-linux.ads: Removed.
16060         * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
16061         as done by other implementations (e.g. posix).
16063         * s-taprop.ads (Timed_Delay): Update spec since the caller now is
16064         responsible for deferring abort.
16065         Mark this unit Preelaborate.
16067         * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
16068         proper initialization of the tasking run-time.
16070         * s-tasdeb.ads: Mark this unit Preelaborate.
16071         (Known_Tasks): Add explicit default value to avoid elaboration code.
16073         * s-inmaop-vms.adb (Elaboration code): Add call to
16074         Interrupt_Management.Initialize since the elaboration code depends on
16075         proper initialization of this package.
16077         * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
16078         s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
16079         s-osprim-posix.adb: Make this unit Preelaborate.
16081         * a-calend.adb: Add call to OS_Primitives.Initialize
16083         * a-elchha.adb: Update use of Except.Id.Full_Name.
16084         Minor reformatting.
16085         Remove use of Ada.Exceptions.Traceback when possible, cleaner.
16087         * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
16088         Move with clauses outside Warnings Off now that dependent units are
16089         Preelaborate.
16090         Use raise xxx with "..."; Ada 2005 form.
16092         * a-taside.ads, a-taside.adb:
16093         Remove some dependencies, to make it easier to make this unit truly
16094         Preelaborate.
16095         Rewrite some code to be conformant with Preelaborate rules.
16097         * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
16098         marked Preelaborate in the future.
16100         * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
16101         these units Preelaborate.
16103         * s-exctab.adb: Update use of Except.Id.Full_Name.
16105         * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
16106         (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
16107         Set_Exc_Stack_Addr): Removed, no longer used.
16108         Remove reference to *Machine_State_Addr*, no longer needed.
16110         * s-stalib.ads: Mark this unit as Preelaborate[_05].
16111         (Exception_Data): Full_Name is now a System.Address so that this unit
16112         can be made Preelaborate.
16113         Clean up/simplify code thanks to Full_Name being a System.Address.
16114         Remove obsolete pragma Suppress (All_Checks), no longer needed.
16116         * s-taskin.ads, s-taskin.adb:
16117         Move with clauses outside Warnings Off now that dependent units are
16118         Preelaborate.
16119         Make this unit Preelaborate.
16120         (Initialize): New proceduure, replace elaboration code and makes the
16121         set up of the tasking run-time cleaner.
16122         (Detect_Blocking): Now a function instead of a deferred boolean, to
16123         obey Preelaborate rules.
16125         * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
16126         soft links, no longer used.
16128         * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
16129         packages are suitable for this categorization.
16131         * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
16132         since we compile run-time sources in Ada 2005 mode.
16133         (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
16134         avoid having s-taprop*.adb depend on s-soflin and to avoid code
16135         duplication.
16136         Remove reference to *Machine_State_Addr*, no longer needed.
16138 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
16140         * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
16141         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
16142         Remove reference to System.Exceptions.
16144         * s-mastop-x86.adb: Removed, no longer used.
16146         * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
16148         * a-excach.adb: Minor reformatting.
16150         * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
16151         instead fix new warnings that were hidden by this change.
16152         (AAA, ZZZ): Removed, replaced by...
16153         (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
16154         are used instead of constants, to help make Ada.Exception truly
16155         preelaborate.
16156         (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
16157         Raise_Storage_Error): File is now a System.Address, to simplify code.
16158         (Elab code): Removed, no longer used.
16159         (Null_Occurrence): Remove Warnings Off and make this construct
16160         preelaborate.
16161         Remove code related to front-end zero cost exception handling, since
16162         it is no longer used.
16163         Remove -gnatL/-gnatZ switches.
16165         * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
16166         Update use of Except.Msg.
16168         * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
16169         freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
16170         to front-end zero cost exception handling, since it is no longer used.
16171         Remove -gnatL/-gnatZ switches.
16173         * lib-writ.ads: Minor reformatting
16174         Remove doc of UX
16176         * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
16178         * Make-lang.in: Remove references to s-except.ads
16180         * s-except.ads: Removed, no longer used.
16182         * s-mastop.ads, s-mastop.adb:
16183         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
16184         Remove reference to System.Exceptions.
16186         * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
16187         switch-b.adb: Remove code related to front-end zero cost exception
16188         handling, since it is no longer used.
16189         Remove -gnatL/-gnatZ switches.
16191 2005-09-01  Robert Dewar  <dewar@adacore.com>
16192             Gary Dismukes  <dismukes@adacore.com>
16193             Javier Miranda  <miranda@adacore.com>
16195         * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
16196         type by valid test and generate warning.
16197         (Tagged_Membership): Generate call to the run-time
16198         subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
16199         Change formal name Subtype_Mark to Result_Definition in several calls to
16200         Make_Function_Specification.
16201         (Expand_Allocator_Expression): Add tests for suppression of the AI-344
16202         check for proper accessibility of the operand of a class-wide allocator.
16203         The check can be left out if checks are suppressed or if the expression
16204         has a specific tagged type whose level is known to be safe.
16206         * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
16207         generates the run-time check associated with null-excluding entities.
16208         (Expand_N_Return_Statement): Add tests to determine if the accessibility
16209         check on the level of the return expression of a class-wide function
16210         can be elided. The check usually isn't needed if the expression has a
16211         specific type (unless it's a conversion or a formal parameter). Also
16212         add a test for whether accessibility checks are suppressed. Augment
16213         the comments to describe the conditions for performing the check.
16215 2005-09-01  Hristian Kirtchev  <kirtchev@adacore.com>
16216             Javier Miranda  <miranda@adacore.com>
16217             Gary Dismukes  <dismukes@adacore.com>
16218             Ed Schonberg  <schonberg@adacore.com>
16220         * a-tags.adb (IW_Membership): Give support to
16221         "Iface_CW_Typ in T'Class". For this purpose the functionality of this
16222         subprogram has been extended to look for the tag in the ancestors tag
16223         table.
16224         Update the structure of the GNAT Dispatch Table to reflect the
16225         additional two tables used in dispatching selects.
16226         Introduce appropriate array types and record components in
16227         Type_Specific_Data to reflect the two tables.
16228         (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
16229         the TSD of a tag, indexed by position.
16230         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
16231         operation kind in the TSD of a tag, indexed by position.
16233         * a-tags.ads: Introduce an enumeration type to capture different
16234         primitive operation kinds. Define a constant reflecting the number of
16235         predefined primitive operations.
16236         (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
16237         of an entry wrapper.
16238         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
16239         callable entity of a primitive operation.
16241         * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
16242         primitive operations used in dispatching selects for limited
16243         interfaces, limited tagged, task and protected types what implement a
16244         limited interface.
16245         (Freeze_Type): Generate the bodies of the primitive operations used in
16246         dispatching selects for limited tagged, task and protected types that
16247         implement a limited interface. Generate statements to populate the two
16248         auxiliary tables used for dispatching in select statements.
16249         (Freeze_Record_Type): Add call to initialize the dispatch table entries
16250         associated with predefined interface primitive operations.
16251         (Build_Dcheck_Function): Change Set_Subtype_Mark to
16252         Set_Result_Definition.
16253         (Build_Variant_Record_Equality): Change Subtype_Mark to
16254         Result_Definition.
16255         (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
16256         (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
16257         (Build_Assignment): Simplify the code that adds the run-time-check.
16258         (Expand_N_Object_Declaration): Code cleanup.
16260         * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
16261         entries when there is a protected type that implements a limited
16262         interface.
16264         * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
16265         common routines used in expansion of dispatching selects.
16266         (Add_Private_Declarations): Select the appropriate protection type when
16267         there is a protected type that implements a limited interface.
16268         (Build_Parameter_Block): Generate a wrapped parameter block.
16269         (Build_Protected_Subprogram_Body): Select the appropriate type for
16270         locking entries when there is a protected type that implements a
16271         limited interface.
16272         (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
16273         classified as entry wrappers.
16274         (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
16275         asynchronous selects.
16276         (Expand_N_Conditional_Entry_Call): Add support for expansion of
16277         dispatching conditional selects.
16278         (Expand_N_Protected_Type_Declaration): Select the appropriate type for
16279         protection when there is a protected type that implements limited
16280         interfaces.
16281         (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
16282         timed selects.
16283         (Extract_Dispatching_Call): Extract the entity of the name of a
16284         dispatching call, the object parameter, actual parameters and
16285         corresponding formals.
16286         (Make_Initialize_Protection): Correct logic of protection initialization
16287         when there is a protected type that implements a limited interface.
16288         (Parameter_Block_Pack): Populate a wrapped parameter block with the
16289         values of actual parameters.
16290         (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
16291         block and assign them to the original actual parameters.
16293         * exp_ch9.ads (Subprogram_Protection_Mode): New type.
16294         (Build_Protected_Sub_Specification): Change the type and name of the
16295         last formal to account for the increased variety of protection modes.
16297         * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
16298         entities. Used to save the value of the Is_Hidden attribute when the
16299         limited-view is installed.
16300         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
16301         the attribute of procedures classified as entry wrappers.
16302         (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
16303         entity of a primitive wrapper.
16304         (Write_Entity_Flags): Output the name and value of the
16305         Is_Primitive_Wrapper attribute.
16306         (Write_Field27_Name): Output the name and entity of the field Wrapped_
16307         Entity.
16308         (Underlying_Type): If we have an incomplete entity that comes from
16309         the limited view then we return the Underlying_Type of its non-limited
16310         view if it is already available.
16311         (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
16312         including operators.
16313         (Write_Field26_Name): Add entry for Overridden_Operation
16314         (Overridden_Operation): New attribute of functions and procedures.
16316         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
16317         predefined position in the dispatch table for the primitive operations
16318         used in dispatching selects.
16319         (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
16320         predefined primitive operations and replace it with
16321         Default_Prim_Op_Count.
16322         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
16323         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
16324         the names of the generated primitive operations used in dispatching
16325         selects.
16326         (Init_Predefined_Interface_Primitives): No need to inherit primitives in
16327         case of abstract interface types. They will be inherit by the objects
16328         implementing the interface.
16329         (Make_DT): There is no need to inherit the dispatch table of the
16330         ancestor interface for the elaboration of abstract interface types.
16331         The dispatch table will be inherited by the object implementing the
16332         interface.
16333         (Copy_Secondary_DTs): Add documentation.
16334         (Validate_Position): Improve this static check in case of
16335         aliased subprograms because aliased subprograms must have
16336         the same position.
16337         (Init_Predefined_Interface_Primitives): New subprogram that initializes
16338         the entries associated with predefined primitives of all the secondary
16339         dispatch tables.
16340         (Build_Anonymous_Access_Type): Removed.
16341         (Expand_Interface_Actuals): With the previous cleanup there is no need
16342         to build an anonymous access type. This allows further cleanup in the
16343         code generated by the expander.
16344         (Expand_Interface_Conversion): If the actual is an access type then
16345         build an internal function to handle the displacement. If the actual
16346         is null this function returns null because no displacement is
16347         required; otherwise performs a type conversion that will be
16348         expanded in the code that returns the value of the displaced actual.
16349         (Expand_Interface_Actuals): Avoid the generation of unnecessary type
16350         conversions that have no effect in the generated code because no
16351         displacement is required. Code cleanup; use local variables to
16352         avoid repeated calls to the subprogram directly_designated_type().
16354         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
16355         Classify the primitive operations used in dispatching selects as
16356         predefined.
16357         (Implements_Limited_Interface): Determine whether some type either
16358         directly implements a limited interface or extends a type that
16359         implements a limited interface.
16360         (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
16361         (Expand_Subtype_From_Expr): Do not build actual subtype if the
16362         expression is limited.
16363         (Find_Interface_Tag): Add code to handle class-wide types and
16364         entities from the limited-view.
16366         * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
16367         Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
16368         POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
16369         POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
16370         Set_Prim_Op_Kind.
16372         * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
16373         of procedure name or prefix that appears as a trigger in a triggering
16374         alternative.
16376         * uintp.ads: Introduce constants Uint_11 and Uint_13.
16378 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
16380         * s-tataat.adb, a-tasatt.adb:
16381         Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
16383         * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
16384         these procedures to body, and renamed Abort_Defer, Abort_Undefer.
16385         (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
16386         longer used.
16388 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
16389             Jose Ruiz  <ruiz@adacore.com>
16391         * s-taprop-vxworks.adb:
16392         Move with clauses outside Warnings Off now that dependent units are
16393         Preelaborate.
16394         (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
16395         initialization of this unit.
16396         (Specific): Add new procedures Initialize and Delete so that this
16397         package can be used for VxWorks 5.x and 6.x
16398         (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
16399         differences between VxWorks 5.x and 6.x
16400         Minor reformatting.
16401         (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
16402         caller.
16403         Use only Preelaborate-compatible constructs.
16405         * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
16406         Primitives.Operations.
16407         (Delete, Initialize): New procedures.
16409         * s-osinte-vxworks.adb: Body used to handle differences between
16410         VxWorks 5.x and 6.x
16411         (kill, Set_Time_Slice, VX_FP_TASK): New functions.
16413         * s-osinte-vxworks.ads: Minor reformatting.
16414         Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
16415         (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
16416         and 6.
16417         (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
16418         between Vxworks 5 and 6.
16419         (taskLock, taskUnlock): Removeed, no longer used.
16421         * adaint.c: The wait.h header is not located in the sys directory on
16422         VxWorks when using RTPs.
16423         (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
16424         using RTPs.
16425         (__gnat_dup): dup is available on Vxworks when using RTPs.
16426         (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
16428         * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
16430         * expect.c: The wait.h header is not located in the sys directory on
16431         VxWorks when using RTPs.
16433 2005-09-01  Thomas Quinot  <quinot@adacore.com>
16435         * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
16437         * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
16439         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
16440         g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
16441         g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
16442         g-soccon-freebsd.ads: Add new constants:
16443          IP_MULTICAST_IF
16444          SO_RCVTIMEO/SO_SNDTIMEO
16445          IOV_MAX
16447         * gen-soccon.c:
16448         Move all target-specific file inclusions and macro definitions to
16449         gsocket.h, in order to ensure that any C code in socket.c will see a
16450         set of constants that is consistent with the contents of g-soccon.ads.
16452         * gsocket.h: Code imported from gen-soccon.c:
16453         Move all target-specific file inclusions and macro definitions to
16454         gsocket.h, in order to ensure that any C code in socket.c will see a set
16455         of constants that is consistent with the contents of g-soccon.ads.
16456         This change also makes gen-soccon self-contained (removing dependencies
16457         upon GCC internal headers).
16459         * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
16460         iovecs at a time.
16461         (To_Inet_Addr): Now a procedure instead of a function, more efficient.
16463         * socket.c: Minor reformatting.
16465 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
16466             Thomas Quinot  <quinot@adacore.com>
16468         * fname-sf.adb, mlib-tgt.ads,
16469         back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
16470         g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
16471         osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
16472         prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
16473         prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
16474         prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
16475         sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
16476         makegpr.adb: Remove redundant use_clauses.
16478 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
16480         * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
16481         s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
16482         s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
16483         s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
16484         s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
16485         s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
16486         s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
16487         table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
16488         s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
16489         s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
16490         a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
16491         a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
16492         a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
16493         a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
16494         system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
16495         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
16496         s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
16497         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
16498         s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
16499         s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
16500         s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
16501         s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
16502         system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
16503         s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
16504         system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
16505         s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
16506         a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
16507         a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
16508         a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
16509         a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
16510         a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
16511         a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
16512         a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
16513         a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
16514         a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
16515         a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
16516         csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
16517         g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
16518         a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
16519         a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
16520         a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
16521         a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
16522         g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
16523         i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
16524         interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
16525         i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
16526         s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
16527         s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
16528         s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
16529         s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
16530         s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
16531         s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
16532         s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
16533         s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
16534         s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
16535         s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
16536         s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
16537         s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
16538         s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
16539         s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
16540         s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
16541         s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
16542         s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
16543         s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
16544         s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
16545         s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
16546         s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
16547         s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
16548         and always use the no parameter form for consistency.
16550         * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
16552 2005-09-01  Robert Dewar  <dewar@adacore.com>
16554         * binde.adb: Minor reformatting
16555         (Find_Elab_Order): Output warning if -p used with static elab order
16557 2005-09-01  Robert Dewar  <dewar@adacore.com>
16559         * checks.adb (Check_Needed): New procedure, deals with removing checks
16560         based on analysis of short-circuited forms. Also generates warnings for
16561         improper use of non-short-circuited forms.
16562         Code clean ups.
16564 2005-09-01  Robert Dewar  <dewar@adacore.com>
16566         * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
16567         with 'Valid tests.
16569 2005-09-01  Robert Dewar  <dewar@adacore.com>
16571         * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
16572         spec.
16573         Implement new insertion char < (conditional warning)
16574         * errutil.adb, erroutc.adb: Implement new insertion char <
16575         (conditional warning).
16576         * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
16577         (Error_Msg_Warn): New variable for < insertion char.
16578         * prj-nmsc.adb: Implement new errout insertion char < (conditional
16579         warning).
16580         (Check_For_Source): Change value of Source_Id only after the current
16581         source has been dealt with.
16583 2005-09-01  Robert Dewar  <dewar@adacore.com>
16584             Doug Rupp  <rupp@adacore.com>
16586         * exp_attr.adb: Handle vax fpt for 'Valid attribute
16587         * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
16588         * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
16589         (Valid_D, Valid_F, Valid_G): New functions
16591 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
16592             Hristian Kirtchev  <kirtchev@adacore.com>
16593             Javier Miranda  <miranda@adacore.com>
16595         * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
16596         from object notation, the original node is unanalyzed and carries no
16597         semantic information, so that accessiblity checks must be performed on
16598         the type of the actual itself.
16599         (Expand_N_Subprogram_Declaration): Change last actual parameter for
16600         compatibility with Build_Protected_Sub_Specification.
16601         (Check_Overriding_Inherited_Interfaces): Add suport to handle
16602         overloaded primitives.
16603         (Register_Interface_DT_Entry): Use the new name of the formal
16604         the the calls to Expand_Interface_Thunk
16606         * exp_dbug.ads: Augment comments on encoding of protected types to
16607         include the generation of dispatching subprograms when the type
16608         implements at least one interface.
16610         * lib.ads: Extend information in Load_Stack to include whether a given
16611         load comes from a Limited_With_Clause.
16613         * lib-load.adb (From_Limited_With_Chain): New predicate to determine
16614         whether a potential circularity is harmless, because it includes units
16615         loaded through a limited_with clause. Extends previous treatment which
16616         did not handle properly arbitrary combinations of limited and
16617         non-limited clauses.
16619 2005-09-01  Nicolas Setton  <setton@adacore.com>
16621         * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
16622         to be encoded as typ___XBLU_lowerbound__upperbound instead of
16623         typ___XB_lowerbound__upperbound.
16625 2005-09-01  Thomas Quinot  <quinot@adacore.com>
16627         * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
16628         dummy access formal for RACW/RAS TypeCode TSS.
16629         (Build_TypeCode_Call): Do not generate dummy null access actual for
16630         calls to the TypeCode TSS.
16632 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
16634         * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
16635         fully qualified name, to distinguish instances with the same local name.
16637         * g-souinf.ads (Enclosing_Entity): Document that entity name is now
16638         fully qualified.
16640 2005-09-01  Robert Dewar  <dewar@adacore.com>
16642         * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
16643         packed arrays.
16645 2005-09-01  Jerome Lambourg  <lambourg@adacore.com>
16647         * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
16648         (Free): New deallocation procedure for filter elements
16649         (Close): Deallocate any existing filter for the concerned connection
16651 2005-09-01  Laurent Pautet  <pautet@adacore.com>
16653         * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
16654         position set is provided, we compute one in order to reduce the maximum
16655         length of the keys.  This computation first selects a character
16656         position between 1 and the minimum length of the keys in order to
16657         avoid reducing one of the keys to an empty string.
16658         (Initialize, Compute): When the ratio V to K is too low, the algorithm
16659         does not converge. The initialization procedure now comes with a
16660         maximum number of iterations such that when exceeded, an exception is
16661         raised in Compute. The user can initialize this ratio to another value
16662         and try again
16663         Reformating and updated headers.
16665 2005-09-01  Javier Miranda  <miranda@adacore.com>
16667         * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
16668         that given an entity T creates and returns an Itype that duplicates the
16669         contents of T. The returned Itype has the null-exclusion
16670         attribute set to True, and its Etype attribute references T
16671         to keep the association between the two entities.
16672         Update copyright notice
16674         * sem_aggr.adb (Check_Can_Never_Be_Null,
16675         Aggregate_Constraint_Checks, Resolve_Aggregate,
16676         Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
16678         * sem_ch5.adb (Analyze_Assignment): Code cleanup.
16680 2005-09-01  Gary Dismukes  <dismukes@adacore.com>
16681             Robert Dewar  <dewar@adacore.com>
16682             Hristian Kirtchev  <kirtchev@adacore.com>
16684         * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
16685         Result_Definition.
16687         * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
16688         function specs.
16689         Call Set_Result_Definition instead of Set_Subtype_Mark.
16690         (P_Subprogram_Specification): Add parsing of anonymous access result
16691         plus null exclusions. Call Set_Result_Definition instead of
16692         Set_Subtype_Mark.
16694         * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
16695         (P_Access_Type_Definition): Add parsing for an anonymous access result
16696         subtype, plus parsing for null exclusions. Call Set_Result_Definition
16697         instead of Set_Subtype_Mark.
16699         * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
16700         (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
16701         (Result_Definition): New function for N_Function_Specifications.
16702         (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
16703         N_Function_Specification.
16704         (Set_Null_Exclusion_Present): Allow this flag for
16705         N_Function_Specification.
16706         (Set_Result_Definition): New procedure for N_Function_Specifications.
16707         (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
16708         and N_Function_Specification.
16710         * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
16711         Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
16712         Add support for LIMITED NEW for Ada 2005 AI-419
16713         Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
16714         syntax for anonymous access results.
16715         Replace Subtype_Mark field by Result_Definition in
16716         N_Function_Specification and N_Access_Definition specs.
16717         Add Null_Exclusion_Present to spec of N_Function_Specification.
16718         (Result_Definition): New function for N_Function_Specification and
16719         N_Access_Function_Definition.
16720         (Set_Result_Definition): New procedure for N_Function_Specification and
16721         N_Access_Function_Definition.
16723         * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
16724         Result_Definition for cases of N_Access_Function_Definition and
16725         N_Function_Specification.
16726         Print "not null" if Null_Exclusion_Present on N_Function_Specification.
16728 2005-09-01  Vincent Celier  <celier@adacore.com>
16730         * lib-writ.adb: Update Copyright notice
16731         (Write_With_Lines): On platforms where file names are case-insensitive,
16732         record the file names in lower case.
16733         (Write_ALI): For D lines, on platforms where file names are
16734         case-insensitive, record the file names in lower case.
16736 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
16737             Emmanuel Briot  <briot@adacore.com>
16739         * lib-xref.adb (Output_Overridden_Op): Display information on
16740         overridden operation.
16742         * lib-xref.ads: Add documentation on overridden operations.
16744         * ali.ads (Xref_Entity_Record): Add support for storing the overriding
16745         information.
16747         * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
16748         overriding entity information.
16750 2005-09-01  Vincent Celier  <celier@adacore.com>
16752         * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
16753         including those that are inherited.
16755 2005-09-01  Robert Dewar  <dewar@adacore.com>
16757         * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
16759         * par-prag.adb: Implement new pragma Debug_Policy
16761         * sem_prag.adb Implement new pragma Debug_Policy
16762         (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
16763         Component_Size attribute specification. Give warning for ignored pragma
16764         Pack.
16766         * snames.h, snames.ads, snames.adb: Introduce entries in
16767         Preset_Names for Name_Disp_Asynchronous_Select,
16768         Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
16769         Name_Disp_Timed_Select.
16770         New pragma Debug_Policy
16772         * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
16773         explicitly.
16774         Switch -gnata also sets Debug_Pragmas_Enabled
16776         * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
16777         handle an explicit -gnata when compiling predefined files.
16779 2005-09-01  Vincent Celier  <celier@adacore.com>
16781         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
16782         directories of projects that have no Ada sources.
16784 2005-09-01  Robert Dewar  <dewar@adacore.com>
16786         * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
16787         (makes a difference for wide characters)
16789         * widechar.adb, widechar.ads:
16790         Add Wide_Char_Byte_Count feature to count chars vs bytes
16792 2005-09-01  Thomas Quinot  <quinot@adacore.com>
16793             Ed Schonberg  <schonberg@adacore.com>
16794             Robert Dewar  <dewar@adacore.com>
16796         * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
16797         'Address attribute reference with an overloaded prefix, use the
16798         location of the prefix (not the location of the attribute reference) as
16799         the error location.
16800         (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
16801         a function renaming thereof, is a valid prefix for 'Size (where it is
16802         intepreted as a function call).
16803         (Statically_Denotes_Entity): New predicate to determine whether the
16804         prefix of an array attribute can be considered static.
16806         PR ada/9087
16807         (Eval_Attr): Fix failure to evaluate Component_Size for
16808         unconstrained arrays (resulted in wrong value in packed case, since
16809         back end cannot handle this case)
16811 2005-09-01  Robert Dewar  <dewar@adacore.com>
16813         * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
16814         error msgs for most common cases.
16815         Use new errout insertion char < (conditional warning)
16817 2005-09-01  Javier Miranda  <miranda@adacore.com>
16818             Ed Schonberg  <schonberg@adacore.com>
16820         * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
16821         become local to the whole package.
16822         (Install_Limited_Withed_Unit): Instead of unchaining real entities if
16823         the package was already analyzed the new algorithm "replaces" the
16824         real entities by the shadow ones. This is required to ensure that
16825         the order of these entities in the homonym chains does not change;
16826         otherwise we can have undefined references at linking time because
16827         in case of conflicts the external name of the entities will have
16828         a suffix that depends on the order of the entities in the chain.
16829         (Remove_Limited_With_Clause): Complementary code that completes the
16830         new algorithm and replaces the shadow entities by the real ones.
16831         (Install_Limited_Withed_Unit): When unchaining entities before the
16832         installation of the shadow entities, only regular entities of the
16833         public part must be taken into account. This is required to
16834         keep this routine in synch with the work done by Remove_Limited_
16835         With_Clause
16836         (Install_Limited_With_Clause): Introduce implicit limited_with_clause
16837         even if unit is analyzed, because the analysis of the unit is
16838         idempotent in any case, and the limited view of the unit may have to
16839         be installed for proper visibility.
16840         (Expand_Limited_With_Clause): Even if the unit in the implicit
16841         with_clause has been analyzed already, a limited view of the package
16842         must be built for the current context, if it does not exist yet.
16844 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
16845             Javier Miranda  <miranda@adacore.com>
16846             Gary Dismukes  <dismukes@adacore.com>
16848         * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
16849         defining entity for the instance body, make a new defining identifier
16850         rather than copying the entity of the spec, to prevent accidental
16851         sharing of the entity list.
16852         (Check_Private_View): When exchanging views of private types, build the
16853         list of exchanged views as a stack, to ensure that on exit the exchanges
16854         are undone in the proper order.
16855         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
16856         Restore the compilation environment in case of instantiation_error.
16857         (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
16858         for an anonymous access result.
16859         (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
16860         (Formal_Entity): Handle properly the case of a formal package that
16861         denotes a generic package renaming.
16863 2005-09-01  Thomas Quinot  <quinot@adacore.com>
16865         * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
16866         clause if the array aggregate is surrounded by parentheses.
16868 2005-09-01  Cyrille Comar  <comar@adacore.com>
16869             Gary Dismukes  <dismukes@adacore.com>
16870             Ed Schonberg  <schonberg@adacore.com>
16871             Javier Miranda  <miranda@adacore.com>
16873         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
16874         underlying type
16875         to check if a type is Constrained in cases related to code generation
16876         (rather than semantic checking) since otherwise we do not generate
16877         similar code for mutable private types depending if their
16878         discriminants are visible or not.
16879         (Check_Abstract_Overriding): Do not complain about failure to override
16880         the primitive operations used in dispatching selects since they will
16881         always be overriden at the freeze point of the type.
16882         (Access_Definition): Separate out handling for resetting the scope
16883         of an anonymous access function result type. Retrieve the scope
16884         of the associated function rather than using Current_Scope, which
16885         does not have a consistent value (depends on whether we're in the
16886         middle of analyzing formal parameters). Add ??? comment about
16887         finding a cleaner way to handle the special cases of scope setting.
16888         (Process_Incomplete_Dependents): A protected operation is never a
16889         dispatching operation (only its wrapper may be).
16890         (Build_Derived_Record_Type): In case of tagged private types that
16891         implement interfaces add derivation of predefined primitive
16892         operations.
16893         (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
16894         by two parameters that are used in case of derivation from abstract
16895         interface types: No_Predefined_Prims is used to avoid the derivation
16896         of predefined primitives from the interface, and Predefined
16897         Prims_Only is used to complete the derivation predefined primitives
16898         in case of private tagged types implementing interfaces.
16899         Fix typo in comments
16900         (Find_Interface_In_Descendant): Protect the frontend against
16901         wrong code with large circularity chains.
16902         (Is_Private_Overriding): Add support for entities overriding interface
16903         subprograms. The test failed because Entities associated with overriden
16904         interface subprograms are always marked as hidden (and used to build
16905         the secondary dispatch table); in this case the overriden entity is
16906         available through the field abstract_interface_alias (cf. override_
16907         dispatching_operation)
16908         (Access_Definition): Set the scope of the type to Current_Scope for the
16909         case of a function with an anonymous access result type.
16910         (Access_Subprogram_Declaration): Handle creation of the type entity for
16911         an access-to-function type with an anonymous access result.
16912         (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
16913         in handling for N_Access_Function_Definition.
16914         (Analyze_Subtype_Declaration): Modify the text of error message.
16915         (Derived_Type_Declaration): Modify the text of error message.
16916         (Process_Subtype): Modify the text of error message plus cleanup
16917         of one redundant error message.
16918         (Analyze_Component_Declaration): Code cleanup.
16919         (Analyze_Object_Declaration): Code cleanup.
16920         (Analyze_Subtype_Declaration): Propagate the null-exclusion
16921         attribute in case of access types. Code cleanup.
16922         (Array_Type_Declaration): Code cleanup.
16923         (Process_Discriminants): Create the new null-excluding itype
16924         if required. Code cleanup.
16925         (Process_Subtype): Create the new null-excluding itype if
16926         required. Code cleanup.
16927         (Build_Derived_Record_Type): Code cleanup to avoid calling
16928         twice the subprogram derive_subprograms in case of private
16929         types that implement interfaces. In this particular case the
16930         subprogram Complete_Subprograms_Derivation already does the
16931         job associated with the second call.
16933         * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
16934         conversion to the full view when generating an operation for a
16935         discriminant whose type may currently be private.
16937 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
16938             Javier Miranda  <miranda@adacore.com>
16940         * sem_ch4.adb (Transform_Object_Operation): In a context off the form
16941         V (Obj.F), the rewriting does not involve the indexed component, but
16942         only the selected component itself.
16943         Do not apply the transformation if the analyzed node is an actual of a
16944         call to another subprogram.
16945         (Complete_Object_Operation): Retain the entity of the
16946         dispatching operation in the selector of the rewritten node. The
16947         entity will be used in the expansion of dispatching selects.
16948         (Analyze_One_Call): Improve location of the error message associated
16949         with interface.
16950         (Analyze_Selected_Component): No need to resolve prefix when it is a
16951         function call, resolution is done when parent node is resolved, as
16952         usual.
16953         (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
16954         when attempting to resolve a call transformed from its object notation.
16955         (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
16956         of the argument list for each interpretation of the operation.
16957         (Try_Object_Operation): The designated type of an access parameter may
16958         be an incomplete type obtained through a limited_with clause, in which
16959         case the primitive operations of the type are retrieved from its full
16960         view.
16961         (Analyze_Call): If this is an indirect call, and the return type of the
16962         access_to_subprogram is incomplete, use its full view if available.
16964 2005-09-01  Javier Miranda  <miranda@adacore.com>
16965             Gary Dismukes  <dismukes@adacore.com>
16967         * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
16968         access types the null-exclusion and access-to-constant attributes must
16969         also match.
16970         (Analyze_Return_Statement): When the result type is an anonymous access
16971         type, apply a conversion of the return expression to the access type
16972         to ensure that appropriate accessibility checks are performed.
16973         (Analyze_Return_Type): For the case of an anonymous access result type,
16974         generate the Itype and set Is_Local_Anonymous_Access on the type.
16975         Add ??? placeholder for check to disallow returning a limited object
16976         in Ada 2005 unless it's an aggregate or a result of a function call.
16977         Change calls from Subtype_Mark to Result_Definition.
16978         (Analyze_Subprogram_Body): Change formal Subtype_Mark to
16979         Result_Definition in call to Make_Function_Specification.
16980         (Build_Body_To_Inline): Change Set_Subtype_Mark to
16981         Set_Result_Definition.
16982         (Make_Inequality_Operator): Change formal Subtype_Mark to
16983         Result_Definition in call to Make_Function_Specification.
16984         (Process_Formals): Create the new null-excluding itype if required.
16985         (New_Overloaded_Entity): For an entity overriding an interface primitive
16986         check if the entity also covers other abstract subprograms in the same
16987         scope. This is required to handle the general case, that is, overriding
16988         other interface primitives and overriding abstract subprograms inherited
16989         from some abstract ancestor type.
16990         (New_Overloaded_Entity): For an overriding entity that comes from
16991         source, note the operation that it overrides.
16992         (Check_Conformance, Type_Conformant): Addition of one new formal
16993         to skip controlling formals in the analysis. This is used to
16994         handle overloading of abstract interfaces.
16995         (Base_Types_Match): Add missing case for types imported from
16996         limited-with clauses
16997         (New_Overloaded_Entity): Add barrier to protect the use of
16998         the "alias" attribute.
17000 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
17002         * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
17003         verify that the procedure and the entry are mode conformant.
17004         (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
17005         as a different operator, which is often a cut-and-paste error.
17007 2005-09-01  Javier Miranda  <miranda@adacore.com>
17008             Ed Schonberg  <schonberg@adacore.com>
17010         * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
17011         used in controlling parameters exclude null because it is necessary to
17012         read the tag to dispatch, and null has no tag.
17013         (Override_Dispatching_Operation): If the previous operation is inherited
17014         from an interface, it becomes hidden  and does not participate in later
17015         name resolution.
17017 2005-09-01  Javier Miranda  <miranda@adacore.com>
17018             Ed Schonberg  <schonberg@adacore.com>
17019             Gary Dismukes  <dismukes@adacore.com>
17021         * sem_res.adb (Resolve_Membership_Op): In case of the membership test
17022         "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
17023         the expander will generate the corresponding run-time check to evaluate
17024         the expression.
17025         (Resolve_Call): Check for legal type of procedure name or prefix that
17026         appears as a trigger in a triggering alternative.
17027         (Valid_Conversion): If expression is ambiguous and the context involves
17028         an extension of System, remove System.Address interpretations.
17029         (Resolve_Qualified_Expression): Reject the case of a specific-type
17030         qualification applied to a class-wide argument. Enhance comment
17031         to explain checking of Original_Node.
17032         (Resolve_Type_Conversion): The location of the error message was not
17033         general enough to handle the general case and hence it has been removed.
17034         In addition, this patch improves the text of the message.
17035         (Resolve_Type_Conversion): Add missing support for access to interface
17036         types.
17037         (Resolve_Type_Conversion): If the target is a class-wide interface type,
17038         do not expand if the expression is the actual in a call, because proper
17039         expansion will take place when the call itself is expanded.
17040         (Resolve_Allocator): If the context is an unchecked conversion, the
17041         allocator inherits its storage pool, if any, from the target type of
17042         the conversion.
17044 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
17045             Javier Miranda  <miranda@adacore.com>
17047         * sem_type.adb (Add_One_Interp): If a candidate operation is an
17048         inherited interface operation that has an implementation, use the
17049         implementation to avoid spurious ambiguities.
17050         (Interface_Present_In_Ancestor): In case of concurrent types we can't
17051         use the Corresponding_Record_Typ attribute to look for the interface
17052         because it is set by the expander (and hence it is not always
17053         available). For this reason we traverse the list of interfaces
17054         (available in the parent of the concurrent type).
17055         (Interface_Present_In_Ancestor): Handle entities from the limited view
17057 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
17059         * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
17060         from the list of required components.
17061         (Is_Controlling_Limited_Procedure): Determine whether an entity is a
17062         primitive procedure of a limited interface with a controlling first
17063         parameter.
17064         (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
17065         of an entry.
17066         (Safe_To_Capture_Value): A value (such as non_null) is not safe to
17067         capture if it is generated in the second operand of a short-circuit
17068         operation.
17069         Do not capture values for variables with address clauses.
17070         (Is_Object_Reference): Treat a function call as an object reference only
17071         if its type is not Standard_Void_Type.
17073 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
17075         * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
17076         to a variable that is statically known to be constant.
17078 2005-09-01  Geert Bosch  <bosch@adacore.com>
17079             Robert Dewar  <dewar@adacore.com>
17081         * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
17082         (VAXGF_Safe_First): Idem.
17084 2005-09-01  Robert Dewar  <dewar@adacore.com>
17085             Arnaud Charlet  <charlet@adacore.com>
17087         * g-dirope.ads: Minor reformatting
17088         Document that bounds of result of Base_Name match the input index
17089         positions.
17090         Add documentation on environment variable syntax for Expand_Path
17092         * gnat_ugn.texi: Update documentation to include mention of -m switches
17093         Document new treatment of wide characters in max line length
17094         style check.
17095         Remove -gnatL/-gnatZ switches, no longer used.
17096         Add note on pragmas Assertion_Policy and Debug_Policy in discussion
17097         of -gnata switch.
17099         * gnat_rm.texi: Add doc for two argument form of pragma
17100         Float_Representation.
17101         Add documentation for pragma No_Strict_Aliasing
17102         Add note that explicit component clause overrides pragma Pack.
17103         Add documentation of pragma Debug_Policy
17105 2005-09-01  Matthew Heaney  <heaney@adacore.com>
17107         * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
17108         a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
17109         a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
17110         a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
17111         draft (Draft 13, August 2005) of Ada Amendment 1.
17113 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
17115         * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
17116         Note that the platform-specific version of g-soccon.ads for VMS is now
17117         named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
17118         really is a package spec).
17119         Replace s-taspri-linux.ads by s-taspri-posix.ads
17120         Remove references to s-mastop-x86.adb
17122         * system-vxworks-xscale.ads: Removed, no longer used.
17123         * s-vxwork-xscale.ads: Removed, no longer used.
17125 2005-09-01  Robert Dewar  <dewar@adacore.com>
17127         * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
17128         g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
17129         g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
17130         exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
17131         g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
17132         g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
17133         g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
17134         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
17135         g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
17136         g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
17137         sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
17138         a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
17139         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
17140         a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
17141         a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
17142         a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
17143         g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
17144         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
17145         g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
17146         i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
17147         a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
17149 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
17151         PR ada/23187
17152         * adaint.c
17153         (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
17155 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
17156             Doug Rupp  <rupp@adacore.com>
17158         * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
17159         when needed.
17160         (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
17161         this code in the GNAT run-time.
17163         * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
17165         PR ada/21053
17166         * init.c (__gnat_error_handler [many]): Mark "msg" as const
17167         (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
17169         (__gnat_inside_elab_final_code): Moved here from
17170         Standard_Library and only defined for the compiler.
17171         __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
17172         (__gnat_inum_to_ivec): Do not define this function on VxWorks when
17173         using RTPs because directly vectored Interrupt routines are not
17174         supported on this configuration.
17175         (getpid): Do not redefine this function on VxWorks when using RTPs
17176         because this primitive is well supported by the RTP libraries.
17177         (copy_msg): Correct the code that checks for buffer overflow.
17178         Discovered during code reading.
17180 2005-08-29  Olivier Hainque  <hainque@adacore.com>
17182         * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
17183         a library level mutable variable with an initializer, tell
17184         build_allocator to ignore the initializer's size. It may not be large
17185         enough for all the values that might be assigned to the variable later
17186         on.
17188 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
17189             Eric Botcazou  <ebotcazou@adacore.com>
17191         * trans.c: Protect < in error msg with quote
17192         Replace GCC_ZCX by Back_End_Exceptions.
17193         (addressable_p) <COMPONENT_REF>: Also return 1 if the field
17194         has been sufficiently aligned in the record.
17196 2005-08-15  James E. Wilson  <wilson@specifix.com>
17198         * system-linux-alpha.ads: Change ia64 to alpha.
17200 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
17202         * decl.c, utils.c: Fix comment typos.
17204 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
17206         * decl.c, init.c, initialize.c: Fix comment typos.
17208 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
17210         Make CONSTRUCTOR use VEC to store initializers.
17211         * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
17212         CONSTRUCTOR_ELTS.
17213         * trans.c (extract_values): Likewise.
17214         * utils.c (convert, remove_conversions): Likewise.
17215         * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
17216         gnat_build_constructor): Likewise.
17218 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
17220         * decl.c (components_to_record): Use DECL_FCONTEXT instead of
17221         DECL_SECTION_NAME.
17222         (compare_field_bitpos): Likewise.
17224 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
17226         * utils.c (create_var_decl): Only set DECL_COMMON on
17227         VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
17228         VAR_OR_FUNCTION_DECL_P.
17230 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
17232         * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
17233         removed.
17235 2005-07-07  Pascal Obry  <obry@adacore.com>
17237         * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
17238         returned type on Windows.
17240         * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
17241         routine.
17243         * g-socket.adb (Inet_Addr): Check for empty Image and raises an
17244         exception in this case.
17245         Simplify the code as "Image (Image'Range)" = "Image".
17247 2005-07-07  Vincent Celier  <celier@adacore.com>
17249         * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
17250         the destructor/constructor attributes for <lib>final/<lib>init.
17252         * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
17254 2005-07-07  Eric Botcazou  <ebotcazou@adacore.com>
17256         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
17257         type if the parameter is not passed by copy but reference by default.
17259 2005-07-07  Javier Miranda  <miranda@adacore.com>
17261         * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
17262         Reimplementation of the support for abstract interface types in order
17263         to leave the code more clear and easy to maintain.
17265         * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
17266         abstract interface types in order to leave the code clearer and easier
17267         to maintain.
17269         * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
17270         is now implemented by the new subprogram Fill_Secondary_DT_Entry.
17271         (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
17272         appropriate entry of the secondary dispatch table.
17273         (Make_DT): Add code to inherit the secondary dispatch tables of
17274         the ancestors.
17276         * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
17277         implementing both functionalities by means of a common routine, each
17278         routine has its own code.
17280 2005-07-07  Javier Miranda  <miranda@adacore.com>
17282         * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
17284         * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
17285         types:
17286         --
17287           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
17288         --
17290         * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
17291         use of tag incomplete types.
17293         * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
17294         give support to tagged incomplete types.
17296         * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
17297         expression is a discriminant reference and its type is private, as can
17298         happen within a stream operation for a mutable record, use the full
17299         view of the type to resolve the case alternatives.
17300         (Analyze_Assignment): Check wrong dereference of incomplete types.
17302         * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
17303         types.
17305         * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
17306         incomplete types.
17308         * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
17309         N_Incomplete_Type_Declaration nodes.
17311         * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
17312         Tag_Present to give support to tagged incomplete types:
17313         --
17314           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
17315         --
17317 2005-07-07  Olivier Hainque  <hainque@adacore.com>
17319         PR ada/22301
17320         * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
17321         definitions for the Unwind wrappers in the compiler case.
17323 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
17324             Javier Miranda  <miranda@adacore.com>
17326         * par-load.adb (Load): If a child unit is loaded through a limited_with
17327         clause, each parent must be loaded as a limited unit as well.
17329         * sem_ch10.adb (Previous_Withed_Unit): Better name for
17330         Check_Withed_Unit. Return true if there is a previous with_clause for
17331         this unit, whether limited or not.
17332         (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
17333         the current unit.
17334         (Is_Visible_Through_Renamings): New local subprogram of install_limited
17335         _withed_unit that checks if some package installed through normal with
17336         clauses has a renaming declaration of package whose limited-view is
17337         ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
17338         of the current Draft document for Ada 2005.
17339         (Analyze_Context): Complete the list of compilation units that
17340         are allowed to contain limited-with clauses. It also contains
17341         checks that were previously done by Install_Limited_Context_Clauses.
17342         This makes the code more clear and easy to maintain.
17343         (Expand_Limited_With_Clause) It is now a local subprogram of
17344         Install_Limited_Context_Clauses, and contains the code that adds
17345         the implicit limited-with clauses for parents of child units.
17346         This functionality was prevously done by Analyze_Context.
17348         * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
17349         incomplete type.
17351         * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
17352         been erroneously named in a limited-with clause of its own context.
17353         In this case the error has been previously notified by Analyze_Context.
17355 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
17357         * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
17358         generic package that contains local declarations with the same name.
17359         (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
17361 2005-07-07  Bernard Banner  <banner@adacore.com>
17363         * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
17364         ia64 platform only on platforms that you the GCC unwind library
17365         rather than the system unwind library.
17367 2005-07-07  Thomas Quinot  <quinot@adacore.com>
17369         * expect.c: Minor reformatting
17371 2005-07-07  Sergey Rybin  <rybin@adacore.com>
17373         * vms_data.ads: Add VMS qualifiers for new gnatpp switch
17374         --no-separate-is
17376         * gnat_ugn.texi: Add description for new gnatpp option
17377         (--no-separate-is)
17379 2005-07-04  Thomas Quinot  <quinot@adacore.com>
17381         * g-expect-vms.adb, g-expect.ads, g-expect.adb
17382         (Get_Command_Output): New subprogram to launch a process and get its
17383         standard output as a string.
17385 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
17386             Olivier Hainque  <hainque@adacore.com>
17388         * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
17389         fetch a code-range descriptor associated with the machine state. On
17390         failure set the machine state's PC to 0; on success, pass the
17391         descriptor to exc_virtual_unwind.
17393         * init.c (Tru64 section): New function __gnat_set_code_loc.
17395 2005-07-04  Vincent Celier  <celier@adacore.com>
17397         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
17398         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
17399         mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
17400         Remove all auto-initialization code, as this is now done through the
17401         constructor mechanism.
17403         * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
17404         __gnat_sals_init_using_constructors): New functions.
17406         * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
17407         Linker_Constructor and Linker_Destructor when switch -a is used.
17409         * bindusg.adb: Add line for new switch -a
17411         * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
17412         (Gnatbind): When switch -a is used, check if it is allowed
17414         * switch-b.adb (Scan_Binder_Switches): Process new switch -a
17416 2005-07-04  Joel Brobecker  <brobecker@adacore.com>
17418         * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
17419         This prevents us from hitting a limitation during the debug info
17420         generation when using stabs.
17421         (Prims_Ptr): Likewise.
17423 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
17424             Ed Schonberg  <schonberg@adacore.com>
17425             Javier Miranda  <miranda@adacore.com>
17427         * checks.adb (Null_Exclusion_Static_Checks): In the case of
17428         N_Object_Declaration, only perform the checks if the Object_Definition
17429         is not an Access_Definition.
17431         * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
17432         where the parent of an the access definition is an N_Object_Declaration
17433         when determining the Associated_Node_For_Itype and scope of an
17434         anonymous access-to-subprogram type.
17436         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
17437         Corresponding_Spec on the body created for a null procedure. Add ???
17438         comment. Remove New_Copy_Tree call on body argument to
17439         Set_Body_To_Inline.
17441         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
17442         discriminants, use the type of the actual as well, because the
17443         discriminants may be read by the called subprogram.
17445         * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
17446         access type we do not need to handle non-limited views.
17447         (Build_Derived_Record_Type): Additional check to check that in case of
17448         private types, interfaces are only allowed in private extensions.
17450 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
17452         * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
17453         <Pragma_Linker_Destructor>: Likewise.
17455         * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
17456         Pragma_Linker_Destructor.
17458         * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
17459         ATTR_LINK_DESTRUCTOR.
17460         (static_ctors, static_dtors): New variables.
17462         * misc.c (gnat_expand_body): Output current function as constructor
17463         and destructor if requested.
17465         * par-prag.adb: Add processing for pragma Linker_Constructor and
17466         Linker_Destructor.
17468         * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
17469         extracted from Check_Interrupt_Or_Attach_Handler.
17470         (Check_Interrupt_Or_Attach_Handler): Invoke it.
17471         Implement pragma Linker_Constructor and Linker_Destructor with the
17472         help of Find_Unique_Parameterless_Procedure.
17473         Replace Name_Alias with Name_Target for pragma Linker_Alias.
17475         * snames.h, snames.ads, snames.adb:
17476         Add Name_Linker_Constructor and Name_Linker_Destructor.
17477         Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
17478         * snames.adb: Remove Name_Alias.
17480         * trans.c: Include cgraph.h.
17481         (build_global_cdtor): New function.
17482         (Compilation_Unit_to_gnu): Build global constructor and destructor if
17483         needed.
17484         (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
17485         of objects too.
17486         (addressable_p) <COMPONENT_REF>: Unconditionally test
17487         DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
17489         * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
17490         variable if it is external.
17492         (static_ctors, static_dtors): New global variables.
17493         (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
17494         <ATTR_LINK_DESTRUCTOR>: Likewise.
17495         (end_subprog_body): Chain function as constructor and destructor
17496         if requested.
17498         * exp_util.adb (Force_Evaluation): Unconditionally invoke
17499         Remove_Side_Effects with Variable_Ref set to true.
17500         (Remove_Side_Effects): Handle scalar types first. Use a renaming
17501         for non-scalar types even if Variable_Ref is true and for class-wide
17502         expressions.
17504 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
17506         * exp_attr.adb (Mod): Evaluate condition expression with checks off,
17507         to prevent spurious warnings.
17509 2005-07-04  Thomas Quinot  <quinot@adacore.com>
17511         * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
17512         Itypes. Itypes are really unexpected there.
17513         (Build_TypeCode_Function): Generalise special processing for Itypes to
17514         handle the case of numeric implicit base types as well as enumerated
17515         ones.
17517 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
17519         * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
17520         controlled, indicate the expected type of the dereference that is
17521         created for the call to Deep_Finalize, to prevent spurious errors when
17522         the designated type is private and completed with a derivation from
17523         another private type.
17525 2005-07-04  Vincent Celier  <celier@adacore.com>
17527         * make.adb (Change_To_Object_Directory): When unable to change the
17528         current dir to the object directory, output the full path of the
17529         directory.
17531 2005-07-04  Matthew Gingell  <gingell@adacore.com>
17533         * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
17535         * indepsw-linux.adb: Replace by...
17537         * indepsw-gnu.adb: ...this new file
17539 2005-07-04  Vincent Celier  <celier@adacore.com>
17541         * mlib-prj.adb (Auto_Initialize): New constant String
17542         (SALs_Use_Constructors): New Boolean function
17543         (Build_Library): Call gnatbind with Auto_Initialize switch when
17544         SALs_Use_Constructors returns True.
17546         * mlib-tgt.ads: Minor reformatting
17548         * mlib-utl.ads: Minor reformatting
17550         * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
17552 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
17554         * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
17555         single protected declarations can have an interface list.
17556         (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
17557         with seriously malformed entry declarations, and lead to compilation
17558         abandoned messages.
17560 2005-07-04  Javier Miranda  <miranda@adacore.com>
17562         * par-load.adb: Load the context items in two rounds.
17564 2005-07-04  Robert Dewar  <dewar@adacore.com>
17566         * scng.adb: Do not consider Mod used as an attribute to be a keyword
17568 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
17569             Javier Miranda  <miranda@adacore.com>
17571         * sem_ch10.adb (Build_Limited_Views): A type declared with a private
17572         type extension needs a limited view.
17573         Remove previous restriction on private types available through the
17574         limited-view (only tagged private types were previously allowed).
17575         (Install_Withed_Unit): In the code that implements the
17576         legality rule given in AI-377, exclude a child unit with the name
17577         Standard, because it is a homonym of the Standard environment package.
17579 2005-07-04  Thomas Quinot  <quinot@adacore.com>
17581         * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
17582         overloaded function call, carry interpretations from the original tree
17583         to the copy.
17585 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
17587         * sem_ch6.adb (Conforming_Types): If the types are anonymous access
17588         types check whether some designated type is a limited view, and use
17589         the non-limited view if available.
17591 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
17593         * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
17594         constraint of full view of a private view T1 if present, when T2 is a
17595         discriminated full view.
17597 2005-07-04  Thomas Quinot  <quinot@adacore.com>
17599         * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
17600         actual that is a view conversion of a bit packed array reference.
17602 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
17604         * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
17605         present before checking whether an interface type covers a synchronized
17606         type.
17608 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
17610         * sem_util.adb (Is_Object_Reference): An indexed or selected component
17611         whose prefix is an implicit dereference is an object reference. Removes
17612         spurious errors when compiling with -gnatc.
17614 2005-07-04  Robert Dewar  <dewar@adacore.com>
17616         PR ada/22039
17617         * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
17619 2005-07-04  Matthew Gingell  <gingell@adacore.com>
17621         * tracebak.c: Enable tracebacks on ia64 platforms
17623 2005-07-04  Vincent Celier  <celier@adacore.com>
17625         * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
17626         the GNAT BIND command, as gnatbind accepts multiples ALI files with
17627         the -L or -n switches.
17629 2005-07-04  Vincent Celier  <celier@adacore.com>
17631         * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
17632         correctly computed and the main project data is not modified while
17633         doing so.
17634         (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
17635         (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
17636         c++linker as this does not work on some platforms.
17638 2005-07-04  Matthew Heaney  <heaney@adacore.com>
17640         * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
17641         was changed.
17642         * a-coinve.adb: Perform constraint checks explicitly.
17644 2005-07-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17645             Thomas Quinot  <quinot@adacore.com>
17647         * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
17648         new target gen-soccon.
17650 2005-07-04  Robert Dewar  <dewar@adacore.com>
17652         * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
17654 2005-07-04  Thomas Quinot  <quinot@adacore.com>
17656         * g-socket.ads (Check_Selector): Minor rewording of comment.
17658 2005-07-04  Vincent Celier  <celier@adacore.com>
17660         * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
17662 2005-07-04  Thomas Quinot  <quinot@adacore.com>
17664         * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
17666 2005-07-04  Sergey Rybin  <rybin@adacore.com>
17668         * gnat_ugn.texi: Add description of --eol gnatpp option
17670 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
17671             Thomas Quinot  <quinot@adacore.com>
17673         * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
17674         if the user wants all calls of a subprogram to be flagged,
17675         independently of whether they are made from within the same unit or
17676         another unit.
17677         Mention restriction for pragma Linker_Alias on some platforms.
17678         Document pragma Linker_Constructor and Linker_Destructor.
17679         Rewrite documentation of Weak_External, Linker_Section and
17680         Linker_Alias pragmas.
17682 2005-07-04  Arnaud Charlet  <charlet@adacore.com>
17684         * s-stausa.ads, s-stausa.adb: New files.
17686 2005-06-30  Kelley Cook
17688         * all files:  Update FSF address in copyright headers.
17689         * gen-soccon.co (main): Output new FSF address in generated files.
17691 2005-06-28  Paul Brook  <paul@codesourcery.com>
17693         * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
17695 2005-06-14  Olivier Hainque  <hainque@adacore.com>
17696             Eric Botcazou  <ebotcazou@adacore.com>
17698         * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
17699         exc_unwind, now that we are generating proper .debug_frame output for
17700         that target.
17702         * tracebak.c: Remove the mips-irix section, as we are now using the
17703         s-mastop based unwinder again.
17704         Under SPARC/Solaris, take into account the stack bias to compute the
17705         frame offset.  The stack bias is 0 for the V8 ABI and 2047 for the V9
17706         ABI.
17708 2005-06-14  Doug Rupp  <rupp@adacore.com>
17710         * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
17712         * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
17714 2005-06-14  Pascal Obry  <obry@adacore.com>
17716         * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
17717         a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
17718         a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
17719         package name).
17721         * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
17722         a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
17723         a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
17724         a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
17725         a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
17726         a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
17727         a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
17728         s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
17729         s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
17730         s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
17731         s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
17732         s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
17733         s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
17734         s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
17735         s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
17736         s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
17737         s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
17738         s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
17739         s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
17740         s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
17741         s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
17742         s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
17743         s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
17744         s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
17745         s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
17746         s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
17747         s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
17748         s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
17749         s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
17750         s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
17751         a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
17752         a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
17753         a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
17754         a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
17755         a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
17756         a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
17757         a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
17758         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
17759         a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
17760         a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
17761         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
17762         a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
17763         a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
17764         a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
17765         a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
17766         a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
17767         a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
17768         a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
17769         a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
17770         a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
17771         a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
17772         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
17773         a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
17774         a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
17775         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
17776         a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
17777         a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
17778         dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
17779         g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
17780         g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
17781         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
17782         g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
17783         g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
17784         gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
17785         g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
17786         i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
17787         s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
17788         s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
17789         s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
17790         s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
17791         s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
17792         s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
17793         s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
17794         s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
17795         s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
17796         s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
17797         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
17798         s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
17799         s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
17800         s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
17801         s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
17802         s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
17803         s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
17804         s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
17805         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
17806         s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
17807         s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
17808         s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
17809         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
17810         s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
17811         s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
17812         s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
17813         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
17814         s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
17815         s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
17816         s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
17817         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
17818         s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
17819         s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
17820         s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
17821         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
17822         s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
17823         s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
17824         s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
17825         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
17826         s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
17827         s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
17828         s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
17829         s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
17830         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
17831         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
17832         s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
17833         s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
17834         s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
17835         s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
17836         s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
17837         s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
17838         s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
17839         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
17840         s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
17841         s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
17842         s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
17843         s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
17844         a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
17845         a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
17846         a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
17847         a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
17848         a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
17849         a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
17850         a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
17851         a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
17852         a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
17853         "GNU Ada" to GNAT, use proper casing for RUN-TIME.
17855 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
17856             Arnaud Charlet  <charlet@adacore.com>
17858         * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
17859         longer protected objects. They have been replaced by lower-level
17860         suspension objects made up by a mutex and a condition variable (or
17861         their equivalent given a particular OS) plus some internal data to
17862         reflect the state of the suspension object.
17863         (Initialize, Finalize): Add this initialization procedure for
17864         Suspension_Object, which is a controlled type.
17865         (Finalize): Add the finalization procedure for Suspension_Object,
17866         which is a controlled type.
17868         * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
17869         Ada.Synchronous_Task_Control because there is no longer a need for a
17870         VxWorks specific version of this package. Target dependencies
17871         has been moved to System.Task_Primitives.Operations.
17873         * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
17874         longer needed.
17875         (InitializeCriticalSection, EnterCriticalSection,
17876         LeaveCriticalSection, DeleteCriticalSection): Replace the type
17877         pCriticalSection by an anonymous access type so that we avoid problems
17878         of accessibility to local objects.
17880         * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
17881         s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
17882         s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
17883         s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
17884         s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
17885         set the environment task mask here.
17886         (Current_State): Add this function that returns the state of the
17887         suspension object.
17888         (Set_False): Add this procedure that sets the state of the suspension
17889         object to False.
17890         (Set_True): Add this procedure that sets the state of the suspension
17891         object to True, releasing the task that was suspended, if any.
17892         (Suspend_Until_True): Add this procedure that blocks the calling task
17893         until the state of the object is True. Program_Error is raised if
17894         another task is already waiting on that suspension object.
17895         (Initialize): Add this procedure for initializing the suspension
17896         object. It initializes the mutex and the condition variable which are
17897         used for synchronization and queuing, and it sets the internal state
17898         to False.
17899         (Finalize): Add this procedure for finalizing the suspension object,
17900         destroying the mutex and the condition variable.
17902         * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
17903         s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
17904         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
17905         s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
17906         which provides a low-level abstraction (using operating system
17907         primitives) for Ada.Synchronous_Task_Control.
17908         This object is made up by a mutex (for ensuring mutual exclusion), a
17909         condition variable (for queuing threads until the condition is
17910         signaled), a Boolean (State) indicating whether the object is open,
17911         and a Boolean (Waiting) reflecting whether there is a task already
17912         suspended on this object.
17914         * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
17915         s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
17916         s-intman-vms.ads, s-intman-mingw.adb,
17917         (Initialize_Interrupts): Removed, no longer used.
17919         * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
17920         (Setup_Interrupt_Mask): New procedure.
17922         * s-intman-vxworks.ads, s-intman-vxworks.adb:  Update comments.
17924         * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
17926         * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
17927         this is no longer done in the body of s-taprop
17928         (Server_Task): Explicitely test for Pending_Action in case
17929         System.Parameters.No_Abort is True.
17931         * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
17932         is no longer done in the body of s-taprop
17934 2005-06-14  Robert Dewar  <dewar@adacore.com>
17936         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
17937         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
17938         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
17939         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
17940         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
17941         system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
17942         system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
17943         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
17944         system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
17945         system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
17946         system-linux-hppa.ads, system-vms_64.ads,
17947         system-vxworks-alpha.ads: Minor comment update for
17948         AI-362 (unit is Pure).
17950         * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
17951         Add pragma Pure_05 for AI-362
17952         Make remaining conversion functions obsolescent in Ada 95
17954         * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
17955         Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
17956         Add entries for a-wichun and a-zchuni
17957         Add a-widcha a-zchara for AI-395
17958         Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
17960         * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
17961         Add entries for a-wichun.o and a-zchuni.o
17962         Entries for a-widcha.o and a-zchara.o
17963         Add entry for a-chacon.o
17965         * a-ztenau.adb: Add with of Ada.Characters.Conversions
17967         * a-chacon.ads, a-chacon.adb: New files.
17969         * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
17970         categorization violations.
17972         * a-strmap.ads: Add pragma Pure_05 for AI-362
17973         * a-strmap.ads: Add note on implicit categorization for AI-362
17975         * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
17977         * par-prag.adb: Dummy entry for pragma Persistent_BSS
17978         Set Ada_Version_Explicit, for implementation of AI-362
17979         Add processing for pragma Pure_05 and Preelaborate_05
17980         Add entry for Assertion_Policy pragma
17982         * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
17983         when needed for proper processing of categorization stuff
17985         * sem_cat.adb:
17986         For several cases, make errors in preealborate units warnings,
17987         instead of errors, if GNAT_Mode is set. For AI-362.
17989         * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
17990         preelaborate unit is now warning if in GNAT mode
17992         * s-stoele.ads: Document AI-362 for pragma preelaborate
17994 2005-06-14  Doug Rupp  <rupp@adacore.com>
17996         * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
17997         s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
17998         Default_Exception_Msg_Max_Length: new parameter.
18000         * a-except.ads: (Exception_Msg_Max_Length): Set to
18001         System.Parameters.Default_Exception_Msg_Max_Length
18002         Add pragma Preelaborate_05 for AI-362
18003         Add warnings off to allow categorization violations for AI-362
18005 2005-06-14  Vincent Celier  <celier@adacore.com>
18007         * gnatsym.adb: Adapt to modification of package Symbols: procedure
18008         Process is now in package Processing.
18010         * symbols.ads, symbols.adb:
18011         (Processing): New package, containing procedure Process
18013         * symbols-vms-alpha.adb:
18014         Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
18016         * symbols-vms.adb, symbols-processing-vms-alpha.adb,
18017         symbols-processing-vms-ia64.adb: New files.
18019 2005-06-14  Pascal Obry  <obry@adacore.com>
18021         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
18022         implementation. This new version generates the proper DllMain routine
18023         to initialize the SAL. The DllMain is generated in Ada and compiled
18024         before being added as option to the library build command.
18026 2005-06-14  Doug Rupp  <rupp@adacore.com>
18027             Pascal Obry  <obry@adacore.com>
18029         * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
18030         call to decc$translate_vms.
18031         (__gnat_locate_regular_file): Check if the path_val contains quotes. We
18032         need to remove those quotes before catenating the filename.
18033         (__gnat_locate_exec_on_path): improvements to the Win32 section:
18034         * avoid allocating the memory twice for better efficiency;
18035         * allocate 32K buffer for environment expansion as suggested by MSDN;
18036         * prepend ".;" to the path so that current directory is searched too.
18038 2005-06-14  Robert Dewar  <dewar@adacore.com>
18040         * a-except.adb (Exception_Identity): return Null_Id for null occurrence
18041         instead of raising CE (AI-241)
18042         Add warnings off to allow categorization violations for AI-362
18044 2005-06-14  Robert Dewar  <dewar@adacore.com>
18046         * ali-util.adb, gnatbind.adb: Remove references to
18047         Force_RM_Elaboration_Order.
18049         * switch-b.adb: Remove recognition of -f switch
18051 2005-06-14  Pascal Obry  <obry@adacore.com>
18053         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
18054         implementation which is slightly more efficient.
18056 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
18057             Javier Miranda  <miranda@adacore.com>
18058             Ed Schonberg  <schonberg@adacore.com>
18059             Hristian Kirtchev  <kirtchev@adacore.com>
18061         * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
18062         allocator's designated type is a class-wide type, and compiling for
18063         Ada 2005, emit a run-time check that the accessibility level of the
18064         type given in the allocator's expression is not deeper than the level
18065         of the allocator's access type.
18067         (Tagged_Membership): Modified to gives support to abstract interface
18068         types.
18070         * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
18071         Access_Level.
18072         (Descendant_Tag): New predefined function
18073         (Is_Descendant_At_Same_Level): New predefined function
18074         (Get_Access_Level): New private function
18075         (Set_Access_Level): New private procedure
18076         (IW_Membership): New function. Given the tag of an object and the tag
18077         associated with an interface, evaluate if the object implements the
18078         interface.
18079         (Register_Interface_Tag): New procedure used to initialize the table of
18080         interfaces used by the IW_Membership function.
18081         (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
18082         of the dispatch table.
18083         (Inherit_TSD): Modified to copy the table of ancestor tags plus the
18084         table of interfaces of the parent.
18085         (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
18086         (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
18087         (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
18088         and raise Tag_Error if the passed tag equalis No_Tag, to conform with
18089         Ada 2005 semantics for the new predefined function.
18091         * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
18092         call to Descendant_Tag rather than Internal_Tag.
18093         (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
18094         the accessibility level of the attribute's Item parameter is not deeper
18095         than the level of the attribute's prefix type. Tag_Error is raised if
18096         the check fails. The check is only emitted for Ada_05.
18097         (Find_Stream_Subprogram): If a TSS exists on the type itself for the
18098         requested stream attribute, use it.
18099         (Expand_N_Attribute_Reference): If the designated type is an interface
18100         then rewrite the referenced object as a conversion to force the
18101         displacement of the pointer to the secondary dispatch table.
18102         (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
18103         is a dereference of an object with a constrained partial view.
18105         * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
18106         type is a class-wide type, emit a run-time check that the accessibility
18107         level of the returned object is not deeper than the level of the
18108         function's master (only when compiling for Ada 2005).
18110         * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
18111         Action_Nb_Arg): Add entries for new Get_Access_Level and
18112         Set_Access_Level routines in these tables.
18113         (Make_DT): Generate a call to set the accessibility level of the
18114         tagged type in its TSD.
18115         (Make_DT): Code cleanup. The functionality of generating all the
18116         secondary dispatch tables has been moved to freeze_record_type.
18117         (Make_Abstract_Interface_DT): Minor code cleanup.
18118         (Set_All_DT_Position): Code cleanup. As part of the code cleanup
18119         this subprogram implements a new algorithm that provides the
18120         same functionality and it is more clear in case of primitives
18121         associated with abstract interfaces.
18122         (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
18123         clean up, the functionality of this subprogram is now provided
18124         by Set_All_DT_Position.
18125         (Write_DT): New subprogram: a debugging procedure designed to be called
18126         within gdb to display the dispatch tables associated with a tagged
18127         type.
18128         (Collect_All_Interfaces): New subprogram that collects the whole list
18129         of interfaces that are directly or indirectly implemented by a tagged
18130         type.
18131         (Default_Prim_Op_Position): New subprogram that returns the fixed
18132         position in the dispatch table of the default primitive operations.
18133         (Expand_Interface_Actuals): New subprogram to generate code that
18134         displaces all the actuals corresponding to class-wide interfaces to
18135         reference the interface tag of the actual object.
18136         (Expand_Interface_Conversion): New subprogram. Reference the base of
18137         the object to give access to the interface tag associated with the
18138         secondary dispatch table.
18139         (Expand_Interface_Thunk): New subprogram that generates the code of the
18140         thunk. This is required for compatibility with the C+ ABI.
18141         (Make_Abstract_Interface_DT): New subprogram that generate the
18142         declarations for the secondary dispatch tables associated with an
18143         abstract interface.
18144         (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
18145         attribute for each primitive operation covering interface subprograms
18146         (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
18147         These subprograms were upgraded to give support to abstract interfaces
18149         * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
18150         RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
18151         RE_Set_Access_Level.
18152         (RE_Unit_Table): Add entries for new Ada.Tags operations.
18153         Add support to call the followig new run-time subprograms:
18154         IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
18156         * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
18157         match its full declaration when both have an access definition with
18158         statically matching designated subtypes.
18159         (Analyze_Component_Declaration): Delete commented out code that was
18160         incorrectly setting the scope of an anonymous access component's type.
18161         (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
18162         an access discriminant when the containing type is nonlimited.
18163         (Make_Incomplete_Type_Declaration): Create an incomplete type
18164         declaration for a record type that includes self-referential access
18165         components.
18166         (Check_Anonymous_Access_Types): Before full analysis of a record type
18167         declaration, create anonymous access types for each self-referential
18168         access component.
18169         (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
18170         an access component in this context is a Local_Anonymous_Access, for
18171         proper accessibility checks.
18172         (Access_Definition): Set properly the scope of the anonymous access type
18173         created for a stand-alone access object.
18174         (Find_Type_Of_Object): An object declaration may be given with an access
18175         definition.
18176         (Complete_Subprograms_Derivation): New subprogram used to complete
18177         type derivation of private tagged types implementing interfaces.
18178         In this case some interface primitives may have been overriden
18179         with the partial-view and, instead of re-calculating them, they
18180         are included in the list of primitive operations of the full-view.
18181         (Build_Derived_Record_Type): Modified to give support to private
18182         types implemening interfaces.
18183         (Access_Definition): Reject ALL on anonymous access types.
18184         (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
18185         type derivation to occur at a deeper accessibility level than the
18186         parent type.
18187         For the case of derivation within a generic body however, disallow the
18188         derivation if the derived type has an ancestor that is a formal type
18189         declared in the formal part of an enclosing generic.
18190         (Analyze_Object_Declaration): For protected objects, remove the check
18191         that they cannot contain interrupt handlers if not declared at library
18192         level.
18193         (Add_Interface_Tag_Components): New subprogram to add the tag components
18194         corresponding to all the abstract interface types implemented by a
18195         record type or a derived record type.
18196         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
18197         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
18198         Process_Full_View, Record_Type_Declaration): Modified to give
18199         support to abstract interface types
18200         (Collect_Interfaces): New subprogram that collects the list of
18201         interfaces that are not already implemented by the ancestors
18202         (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
18203         when partial view has no discriminants and full view has defaults.
18204         (Constrain_Access): Reject a constraint on a general access type
18205         if the discriminants of the designated type have defaults.
18206         (Access_Subprogram_Declaration): Associate the Itype node with the inner
18207         full-type declaration or subprogram spec. This is required to handle
18208         nested anonymous declarations.
18209         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
18210         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
18211         Process_Full_View, Record_Type_Declaration): Modified to give
18212         support to abstract interface types
18213         (Derive_Subprograms): Addition of a new formal to indicate if
18214         we are in the case of an abstact-interface derivation
18215         (Find_Type_Of_Subtype_Indic): Moved from the body of the package
18216         to the specification because it is requied to analyze all the
18217         identifiers found in a list of interfaces
18219         * debug.adb: Complete documentation of flag "-gnatdZ"
18221         * exp_ch3.adb: Implement config version of persistent_bss pragma
18222         (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
18223         testing for TSS presence to properly enforce visibility rules.
18224         (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
18225         Make_Abstract_Interfaces_DT to generate the secondary tables
18226         associated with abstract interfaces.
18227         (Build_Init_Procedure): Modified to initialize all the tags
18228         corresponding.
18229         (Component_Needs_Simple_Initialization): Similar to other tags,
18230         interface tags do not need initialization.
18231         (Freeze_Record_Type): Modified to give support to abstract interface
18232         types.
18233         (Expand_N_Object_Declaration): Do not generate an initialization for
18234         a scalar temporary marked as internal.
18236         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
18237         in-out parameter that is a component in an initialization procedure,
18238         whose constraint might depend on discriminants, and that may be
18239         misaligned because of packing or representation clauses.
18240         (Is_Legal_Copy): New predicate to determine whether a possibly
18241         misaligned in-out actual can actually be passed by copy/return. This
18242         is an error in case the type is by_reference, and a warning if this is
18243         the consequence of a DEC import pragma on the subprogram.
18244         (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
18245         interface types
18246         (Expand_Inlined_Call): Mark temporary generated for the return value as
18247         internal, so that no useless scalar normalization is generated for it.
18248         (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
18249         null procedure can always be inlined.
18250         (Expand_N_Subprogram_Declaration): If this is the declaration of a null
18251         procedure, generate an explicit empty body for it.
18253         * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
18254         Given a type implementing an interface, returns the corresponding
18255         access_disp_table value.
18256         (Find_Interface_Tag): New subprogram. Given a type implementing an
18257         interface, returns the record component containing the tag of the
18258         interface.
18259         (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
18260         previous ones that return the corresponding tag and access_disp_table
18261         entities.
18262         (Is_Predefined_Dispatching_Operation): Determines if a subprogram
18263         is a predefined primitive operation.
18264         (Expand_Subtype_From_Expr): If the expression is a selected component
18265         within an initialization procedure, compute its actual subtype, because
18266         the component may depend on the discriminants of the enclosing record.
18268         * i-cpp.ads, i-cpp.adb:
18269         This package has been left available for compatibility with previous
18270         versions of the frontend. As part of the new layout this is now a
18271         dummy package that uses declarations available at a-tags.ads
18273         * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
18274         "constant access" and "aliased [constant] access" when not compiling
18275         with -gnat05.
18276         Suppress Ada 2005 keyword warning if -gnatwY used
18277         (P_Identifier_Declarations): Add support for object declarations with
18278         access definitions.
18279         (Private_Extension_Declaration): Complete the documentation
18280         (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
18281         attribute in case of private extension declaration
18282         (P_Type_Declaration): Mark as "abstract" the type declarations
18283         corresponding with protected, synchronized and task interfaces
18284         (P_Declarative_Items): "not" and "overriding" are overriding indicators
18285         for a subprogram or instance declaration.
18287         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
18288         instantiation that is a dispatching operation has controlling access
18289         parameters that are null excluding.
18290         Save and restore Ada_Version_Explicit, for implementation of AI-362
18291         (Validate_Derived_Type_Instance): Add check for abstract interface
18292         types.
18293         (Analyze_Formal_Package): Establish Instantiation source for the copy of
18294         the generic that is created to represent the formal package.
18295         (Analyze_Package_Instantiation): Instantiate body immediately if the
18296         package is a predefined unit that contains inlined subprograms, and
18297         we are compiling for a Configurable_Run_Time.
18298         (Instantiate_Formal_Subprogram): Indicate that null default subprogram
18299         If the program has a null default, generate an empty body for it.
18301         * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
18302         error message condition, null procedures are correctly detected now.
18303         (New_Overloaded_Entity): Bypass trivial overriding indicator check
18304         for subprograms in the context of protected types. Instead, the
18305         indicator is examined in Sem_Ch9 while analysing the subprogram
18306         declaration.
18307         (Check_Overriding_Indicator): Check consistency of overriding indicator
18308         on subprogram stubs as well.
18309         (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
18310         the library level.
18311         (Analize_Subprogram_Specification): When analyzing a subprogram in which
18312         the type of the first formal is a concurrent type, replace this type
18313         by the corresponding record type.
18314         (Analyze_Subprogram_Body): Undo the previous work.
18315         (Analyze_Procedure_Call): If the call has the form Object.Op, the
18316         analysis of the prefix ends up analyzing the call itself, after which
18317         we are done.
18318         (Has_Interface_Formals): New subprogram subsidiary to analyze
18319         subprogram_specification that returns true if some non
18320         class-wide interface subprogram is found
18321         (New_Overloaded_Entity): Modified to give support to abstract
18322         interface types
18323         (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
18324         access to subprograms must be recursive.
18325         (Is_Unchecked_Conversion): Improve the test that recognizes
18326         instantiations of Unchecked_Conversion, and allows them in bodies that
18327         are to be inlined by the front-end. When the body comes from an
18328         instantiation, a reference to Unchecked_Conversion will be an
18329         Expanded_Name, even though the body has not been analyzed yet.
18330         Replace Is_Overriding and Not_Overriding in subprogram_indication with
18331         Must_Override and Must_Not_Override, to better express intent of AI.
18332         (Analyze_Subprogram_Body): If an overriding indicator is given, check
18333         that it is consistent with the overrinding status of the subprogram
18334         at this point.
18335         (Analyze_Subprogram_Declaration): Indicate that a null procedure is
18336         always inlined.
18337         If the subprogram is a null procedure, indicate that it does not need
18338         a completion.
18340         * sem_disp.adb (Check_Controlling_Type): Give support to entities
18341         available through limited-with clauses.
18342         (Check_Dispatching_Operation): A stub acts like a body, and therefore is
18343         allowed as the last primitive of a tagged type if it has no previous
18344         spec.
18345         (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
18346         to give support to abstract interface types
18348         * sem_res.adb (Valid_Conversion): Perform an accessibility level check
18349         in the case where the target type is an anonymous access type of an
18350         object or component (that is, when Is_Local_Anonymous_Access is true).
18351         Prevent the special checks for conversions of access discriminants in
18352         the case where the discriminant belongs to a nonlimited type, since
18353         such discriminants have their accessibility level defined in the same
18354         way as a normal component of an anonymous access type.
18355         (Resolve_Allocator): When an allocator's designated type is a class-wide
18356         type, check that the accessibility level of type given in the
18357         allocator's expression or subtype indication is not statically deeper
18358         than the level of the allocator's access type.
18359         (Check_Discriminant_Use): Diagnose discriminant given by an expanded
18360         name in a discriminant constraint of a record component.
18361         (Resolve_Explicit_Dereference): Do not check whether the type is
18362         incomplete when the dereference is a use of an access discriminant in
18363         an initialization procedure.
18364         (Resolve_Type_Conversion): Handle conversions to abstract interface
18365         types.
18366         (Valid_Tagged_Conversion): The conversion of a tagged type to an
18367         abstract interface type is always valid.
18368         (Valid_Conversion): Modified to give support to abstract interface types
18369         (Resolve_Actuals): Enable full error reporting on view conversions
18370         between unrelated by_reference array types.
18371         The rule for view conversions of arrays with aliased components is
18372         weakened in Ada 2005.
18373         Call to obsolescent subprogram is now considered to be a violation of
18374         pragma Restrictions (No_Obsolescent_Features).
18375         (Check_Direct_Boolean_Operator): If the boolean operation has been
18376         constant-folded, there is nothing to check.
18377         (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
18378         check on possible violation of restriction No_Direct_Boolean_Operators
18379         until after expansion of operands, to prevent spurious errors when
18380         operation is constant-folded.
18382         * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
18383         Has_Compatible_Type): Modified to give support to abstract interface
18384         types.
18385         (Interface_Present_In_Ancestor): New function to theck if some ancestor
18386         of a given type implements a given interface
18388         * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
18389         prefix is a parameterless function that returns an access_to_procedure.
18390         (Transform_Object_Operation): Handle properly function calls of the
18391         form Obj.Op (X), which prior to analysis appear as indexed components.
18392         (Analyze_One_Call): Complete the error notification to help new Ada
18393         2005 users.
18394         (Analyze_Allocator): For an allocator without an initial value, where
18395         the designated type has a constrained partial view, a discriminant
18396         constraint is illegal.
18398 2005-06-14  Robert Dewar  <dewar@adacore.com>
18400         * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
18401         do with treatment of Set_Col when positioned at end of line character.
18403 2005-06-14  Robert Dewar  <dewar@adacore.com>
18405         * atree.adb: (Elist*): Protect against uninitialized field
18407 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
18409         * checks.adb (Install_Null_Excluding_Check): Do not generate checks
18410         for an attribute reference that returns an access type.
18411         (Apply_Discriminant_Check): No need for check if (designated) type has
18412         constrained partial view.
18414         (Apply_Float_Conversion_Check): Generate a short-circuit expression for
18415         both bound checks, rather than a conjunction.
18416         (Insert_Valid_Check): If the expression is an actual that is an indexed
18417         component of a bit-packed array, force expansion of the packed element
18418         reference, because it is specifically inhibited elsewhere.
18420 2005-06-14  Vincent Celier  <celier@adacore.com>
18422         * clean.adb (Clean_Project): Correctly delete executable specified as
18423         absolute path names.
18425         * make.adb (Gnatmake): Allow relative executable path names with
18426         directory information even when project files are used.
18427         (Change_To_Object_Directory): Fail gracefully when unable to change
18428         current working directory to object directory of a project.
18429         (Gnatmake): Remove exception handler that could no longer be exercized
18430         (Compile_Sources.Compile): Use deep copies of arguments, as some of them
18431         may be deallocated by Normalize_Arguments.
18432         (Collect_Arguments): Eliminate empty arguments
18434         * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
18435         and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
18436         (Check_Project): Return False when Project is No_Project. Return True
18437         when All_Projects is True.
18438         (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
18439         All_Projects to True.
18440         Minor reformatting
18442 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
18443             Javier Miranda  <miranda@adacore.com>
18444             Thomas Quinot  <quinot@adacore.com>
18445             Robert Dewar  <dewar@adacore.com>
18446             Hristian Kirtchev  <kirtchev@adacore.com>
18447             Gary Dismukes  <dismukes@adacore.com>
18449         * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
18450         anonymous access types, to indicate that the accessibility level of
18451         the type is determined by that of the enclosing declaration.
18452         (Has_Persistent_BSS): New flag
18453         (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
18454         of this attribute with functions.
18455         (Is_Primitive_Wrapper): Remove the barrier.
18456         (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
18457         Has_Specified_Stream_Read, Has_Specified_Stream_Write):
18458         New subprograms.
18459         (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
18460         Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
18461         New subprograms.
18462         (Is_Pure_Unit_Access_Type): New flag
18463         (Abstract_Interfaces): Complete the assertion to cover all usages.
18464         (Set_Is_Interface): Complete the assertion to cover all usages.
18465         (Is_Primitive_Wrapper): New attribute.
18466         (Is_Obsolescent): Now applies to all entities (though it is only set
18467         for subprograms currently)
18468         New flag:  Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
18469         which solves various problems concerning access subtypes.
18470         (Has_Persistent_BSS): New flag
18471         (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
18472         Remove these subprograms because this attribute is currently
18473         not used.
18474         New entity flags:
18475         Has_Specified_Stream_Input (Flag190)
18476         Has_Specified_Stream_Output (Flag191)
18477         Has_Specified_Stream_Read (Flag192)
18478         Has_Specified_Stream_Write (Flag193)
18479         Present in all type and subtype entities. Set for a given view if the
18480         corresponding stream-oriented attribute has been defined by an
18481         attribute definition clause. When such a clause occurs, a TSS is set
18482         on the underlying full view; the flags are used to track visibility of
18483         the attribute definition clause for partial or incomplete views.
18484         (Is_Pure_Unit_Access_Type): New flag
18485         Clarify use of Is_Internal.
18486         (Is_Primitive_Wrapper): New attribute present in primitive subprograms
18487         internally generated to wrap the invocation of tasks and protected
18488         types that implement interfaces.
18489         (Implementation_Base_Type): Documentation correction
18490         (Is_Obsolescent): Now applies to all entities (though it is only set
18491         for subprograms currently)
18492         New flag:  Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
18493         which solves various problems concerning access subtypes.
18495         * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
18496         for examined parameters. Identify unequal parameter list lengths as
18497         non-conformant parameters.
18498         (Overriding_Possible): Do not check for "All" qualifier in declaration
18499         of controlling access parameter, following prescription of AI-404.
18500         (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
18501         that build the procedure body that wraps an entry invocation
18502         (Build_Corresponding_Record, Build_Protected_Sub_Specification,
18503         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
18504         Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
18505         give support to abstract interface types
18507         * freeze.adb (Freeze_Entity): Issue error message if
18508         Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
18509         type has no storage pool (Ada 2005) AI-366.
18510         Also modified to give support to abstract interface types
18511         (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
18512         Inline_Always pragma.
18514         * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
18515         now begin an entry declaration.
18516         (P_Entry_Or_Subprogram_With_Indicator): New procedure in
18517         P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
18518         a subprogram declaration preceded by an overriding indicator.
18519         (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
18520         declarations or subprogram declarations preceded by reserved words
18521         "not" or "overriding".
18522         (P_Entry_Declaration): Update comment. Parse and check overriding
18523         indicator, set semantic flags of entry declarations.
18524         (P_Task): New error message in case of private applied
18525         to a task type declaration.
18526         (P_Protected): New error message in case of private applied
18527         to a task type declaration.
18529         * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
18530         in which the full view of a type implementing an interface is a
18531         concurrent type.
18532         (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
18533         Declare_Inherited_Private_Subprograms): If an explicit operation
18534         overrides an operation that is inherited in the private part, mark the
18535         explicit one as overriding, to enable overriding indicator checks.
18536         (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
18537         full view to partial view, to simplify handling in back-end.
18539         * sprint.adb: Print interface lists where needed: derived types,
18540         protected types, task types.
18541         output "is null" for null procedures. Part of implementation of
18543         * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
18544         relaxation of rules for access types in pure, shared passive partitions.
18546         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
18547         first read discriminants into temporary objects, performing checks on
18548         the read values, then possibly performing discriminant checks on the
18549         actual (if it is constrained), and only finally reading the components
18550         into a constrained temporary object.
18551         (Build_Elementary_Input_Call): Adjust the specific circuitry for the
18552         case of reading discriminants of a mutable record type to recognize
18553         the new form of the code generated by
18554         Build_Mutable_Record_Read_Procedure.
18556         * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
18557         of a simple call to Make_TSS_Name.
18558         (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
18559         buffer, in order for Is_TSS to work correctly on local TSS names.
18561         * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
18562         Is_Local_Anonymous_Access to check legaliy of attributes in the
18563         context of  access components and stand-alone access objects.
18564         (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
18565         treated as available for a limited private type if there is an
18566         attribute_definition_clause that applies to its full view, but not in
18567         other cases where the attribute is available for the full view
18568         (specifically, the sole fact that the full view is non-limited does not
18569         make the attribute available for the partial view).
18570         (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
18571         non-overloaded intrinsic subprogram.
18572         (Check_Stream_Attribute): Reject an attribute reference for an
18573         unavailable stream attribute even if the prefix is not a limited type
18574         (case of a 'Input attribute reference for an abstract, non-classwide
18575         type)
18576         (Stream_Attribute_Available): New function to determine whether a stream
18577         attribute is available at a place.
18578         (Check_Attribute): Use Stream_Attribute_Available instead of just
18579         testing for TSS presence on the implementation base type.
18580         (Analyze_Attribute): Modified to give support to task interfaces.
18581         (Analyze_Access_Attribute): Add error check for use of an Access (or
18582         Unrestricted_Access) attribute with a subprogram marked as
18583         Inline_Always.
18584         (Analyze_Attribute, case Attribute_Address): Add error check for use of
18585         an Address attribute with a subprogram marked as Inline_Always.
18586         Update Eval_Attribute to handle new value of Width from AI-395
18588         * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
18589         (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
18590         Factor common code across the stream-oriented attribute circcuits into
18591         a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
18592         processing is functionally identical to the previous duplicated one,
18593         except that an expression that denotes an abstract subprogram will now
18594         be rejected, as mandated by AI-195 item 5.
18596         * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
18597         Is_Local_Anonymous_Access to apply accessibility checks to access
18598         components and stand-alone access objects.
18599         (Has_Discriminant_Dependent_Constraint): Moved to spec for use
18600         elsewhere.
18601         (Is_Potentially_Persistent_Type): New function
18602         (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
18603         a heap-object whose type has a constrained partial view, the object is
18604         unconstrained and the component may depend on a discriminant, making its
18605         renaming illegal.
18607         * sinfo.ads, sinfo.adb
18608         (Must_Not_Override): Flag applicable to N_Entry_Declaration.
18609         (Must_Override): Flag applicable to N_Entry_Declaration.
18610         Indicate that interface_list can appear in single task and single
18611         protected declarations.
18612         Replace Is_Overriding and Not_Overriding with Must_Override and
18613         Must_Not_Override, to better express intent of AI.
18614         Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
18615         of an overriding indicator in a subprogram or instance.
18616         Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
18617         Add the overriding indicator [[not] overriding] construct to the
18618         following grammar productions:
18619          ENTRY_DECLARATION
18620          GENERIC_INSTANTIATION
18621          SUBPROGRAM_SPECIFICATION
18623         * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
18624         can start with an overriding indicator.
18626         * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
18627         flags accordingly on subrogram specifications or instances.
18629         * sem_ch8.adb:
18630         (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
18631         overriding_indicator, if present, is consistent with status of spec.
18632         Improve error message for null-excluding checks on controlling access
18633         parameters.
18634         (Check_In_Previous_With_Clause): Protect the frontend against
18635         previously reported critical errors in the context clauses.
18636         Save and restore Ada_Version_Explicit, for implementation of AI-362
18637         (Analyze_Subprogram_Renaming): If the new entity is a dispatching
18638         operation verify that controlling formals of the renamed entity that
18639         are access parameters are explicitly non-null.
18640         (Find_Expanded_Name): Improve error message when prefix is an illegal
18641         reference to a private child unit.
18643         * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
18644         s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
18645         Rewrite to correspond to new wide character names in AI-395
18647         * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
18648         default procedures.
18650 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
18651             Robert Dewar  <dewar@adacore.com>
18653         * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
18654         code, not on the bodies of predefined operations, to cut down on
18655         spurious noise.
18657 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
18659         * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
18660         be expanded in place. The size computation does not require a
18661         subtraction, which would raise an exception on a compiler built with
18662         assertions when the upper bound is Integer'first.
18663         (Flatten): For an array of composite components, take into account the
18664         size of the components to determine whether it is safe to expand the
18665         array into a purely positional representation.
18667 2005-06-14  Thomas Quinot  <quinot@adacore.com>
18669         * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
18670         denoting a formal parameter into account.
18672 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
18674         * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
18675         the entry_call alternative of a conditional entry call, wrap the
18676         conditional entry call itself.
18678 2005-06-14  Nicolas Setton  <setton@adacore.com>
18679             Ed Schonberg  <schonberg@adacore.com>
18681         * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
18682         the "simple_choice" member in a variant record, in accordance with the
18683         description in the package spec: the information output for a constant
18684         should be "S number", not "SS number".
18685         (Get_Encoded_Name): Return at once if not generating code. Avoids name
18686         overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
18688 2005-06-14  Thomas Quinot  <quinot@adacore.com>
18690         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
18691         RACW without any primitives, do not generate the if statement for
18692         dispatching by name in the PolyORB/DSA case, as it would be malformed
18693         (it would have an Elsif_Parts list that is not No_List, but with a
18694         length of 0).
18696 2005-06-14  Robert Dewar  <dewar@adacore.com>
18698         * exp_intr.adb, par-ch5.adb: Minor fix to error message text
18700 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
18702         * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
18703         can determine whether pragma Suppress_Exception_Locations is in effect.
18705         * utils2.c (build_call_raise): Do not pass the file name to the
18706         exception handler if pragma Suppress_Exception_Locations is in effect.
18707         (build_allocator): Add and process arg IGNORE_INIT_TYPE.
18709 2005-06-14  Emmanuel Briot  <briot@adacore.com>
18711         * g-debpoo.adb (Deallocate, Dereference): Improve output.
18713 2005-06-14  Nicolas Roche  <roche@adacore.com>
18715         * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
18716         to ""
18717         (Next_Level): Fix minor bug in handling of ../dir case
18718         (Read): Add dir separator to Directory name so that "" is understood as
18719          "/"
18721 2005-06-14  Pascal Obry  <obry@adacore.com>
18723         * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
18724         releasing the items.
18726 2005-06-14  Vincent Celier  <celier@adacore.com>
18727             Cyrille Comar  <comar@adacore.com>
18729         * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
18730         with output file descriptor and with output file name.
18731         (Dup, Dup2): Now global procedures as they are used by two subprograms
18732         (Copy): Allocate the 200K buffer on the heap rather than on the stack.
18734 2005-06-14  Thomas Quinot  <quinot@adacore.com>
18736         PR ada/6717
18737         * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
18738         broadcast address.
18739         (Create_Selector): Bind listening socket used to create the signalling
18740         socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
18741         Set listen backlog to 1 to ensure that we detect socket theft by a
18742         failure of our own connect(2) call.
18743         (Check_Selector): Improve documentation of the selector mechanism.
18744         (Broadcast_Inet_Addr): New constant.
18746 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
18748         * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
18749         type which turns out to be an incomplete and incorrect fix.
18750         (Layout_Array_Type): Use Underlying_Type when checking whether the scope
18751         of the type is declared in a record (for determination of insertion
18752         type).
18753         (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
18754         a private type and ensure that the primary entity is used for the type
18755         of the newly created function's V formal by taking the Etype of the
18756         view.
18758 2005-06-14  Javier Miranda  <miranda@adacore.com>
18759             Jose Ruiz  <ruiz@adacore.com>
18760             Robert Dewar  <dewar@adacore.com>
18761             Ed Schonberg  <schonberg@adacore.com>
18763         * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
18764         that indicates if we are parsing a compilation unit found in a
18765         limited-with clause.
18766         It is use to avoid the circularity check.
18768         * par.ads, par.adb (Par): Addition of a new parameter to indicate if
18769         we are parsing a compilation unit found in a limited-with clause. This
18770         is use to avoid the circularity check.
18772         * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
18773         unit as a consequence of parsing a limited-with clause. This is used
18774         to avoid the circularity check.
18776         * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
18777         (Analyze_Context): Limited-with clauses are now allowed
18778         in more compilation units.
18779         (Analyze_Subunit_Context, Check_Parent): Protect the frontend
18780         againts previously reported critical errors in context clauses
18781         (Install_Limited_Withed_Unit): Code cleanup plus static detection
18782         of two further errors: renamed subprograms and renamed packages
18783         are not allowed in limited with clauses.
18784         (Install_Siblings): Do not install private_with_clauses on the package
18785         declaration for a non-private child unit.
18786         (Re_Install_Parents): When a parent of the subunit is reinstalled,
18787         reset visibility of child units properly.
18788         (Install_Withed_Unit): When a child unit appears in a with_clause of its
18789         parent, it is immediately visible.
18791 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
18792             Emmanuel Briot  <briot@adacore.com>
18794         * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
18795         declared within an inlined body as referenced, to prevent spurious
18796         warnings.
18797         (Output_One_Ref): If an entity renames an array component, indicate in
18798         the ALI file that this aliases (renames) the array. Capture as well
18799         function renamings that rename predefined operations.
18800         Add information about generic parent for package and subprogram
18801         instances.
18802         (Get_Type_Reference): For a subtype that is the renaming of an actual in
18803         an instantiation, use the first_subtype to ensure that we don't generate
18804         cross-reference information for internal types.
18805         For objects and parameters of a generic private type, retain the '*'
18806         indicator to distinguish such an entity from its type.
18808         * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
18809         to store information about instantiated entities.
18811         * ali.adb (Scan_ALI): Add support for parsing the reference to the
18812         generic parent
18814         * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
18815         (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
18816         information.
18818 2005-06-10  Doug Rupp  <rupp@adacore.com>
18819             Arnaud Charlet  <charlet@adacore.com>
18820             Olivier Hainque  <hainque@adacore.com>
18821             Jose Ruiz  <ruiz@adacore.com>
18823         * Make-lang.in: Add initialize.o when needed.
18824         Remove obsolete references to RT_FLAGS.
18825         Add missing dependencies for sdefault.o
18827         * initialize.c: New file.
18829         * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
18830         [VMS] cond_signal_table: Fix problem in declaration.
18831         [VMS] __gnat_error_handler: rewrite.
18832         Move all __gnat_initialize() routines to initialize.c
18833         Specialize the former "hpux" section to "hppa hpux", as this is what the
18834         section really is here for and we now have other hpux ports that need
18835         different contents.
18836         (__gnat_adjust_context_for_raise) i386-linux: First version of this
18837         function for this target. Adjust PC by one in the machine context. This
18838         adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
18839         it is more reliable to do that in the signal handler itself.
18840         (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
18841         flags, so that the handler is passed the context structure to adjust
18842         prior to the raise.
18843         (__gnat_error_handler) i386-linux: Adjust the signature to match what a
18844         SA_SIGINFO sigaction should look like. Call
18845         __gnat_adjust_context_for_raise before actually raising. Cleanup unused
18846         Machine_State_Operations stuff.
18847         Add conditional code so that the x86_64 is also supported.
18849 2005-06-14  Pascal Obry  <obry@adacore.com>
18851         * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
18852         the library name.
18854 2005-06-14  Robert Dewar  <dewar@adacore.com>
18856         * opt.ads, opt.adb: New flags for persistent_bss mode
18857         Add Ada_Version_Explicit, for implementation of AI-362
18858         Add Assertions_Enabled_Config and associated handling
18859         Needed since setting can be changed with Assertion_Policy pragma
18860         Add new flag Warn_On_Ada_2005_Compatibility
18862         * switch-c.adb: Recognize -gnatwy/Y
18863         Set Ada_Version_Explicit, for implementation of AI-362
18864         The -gnatg switch now includes -gnatyu
18866         * usage.adb: Add -gnatwy/Y
18867         Remove wrong asterisk on -gnatwX line
18868         Add line for -gnatyu switch
18870 2005-06-14  Vincent Celier  <celier@adacore.com>
18872         * osint.adb (Add_Default_Search_Dirs): Put source and object
18873         directories of project files before directories coming from
18874         ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
18876 2005-06-14  Robert Dewar  <dewar@adacore.com>
18878         PR ada/15613
18879         * par-ch2.adb (Scan_Pragma_Argument): New procedure
18880         (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
18882 2005-06-14  Vincent Celier  <celier@adacore.com>
18884         * prep.adb (Preprocess): Ignore error when scanning the first token of
18885         a line.
18887 2005-06-14  Vincent Celier  <celier@adacore.com>
18889         * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
18890         (Check_Stand_Alone_Library): If the specified reference symbol file does
18891         not exist, only issue a warning when the symbol policy is not
18892         Controlled. And, when symbol policy is Compliant, set the symbol
18893         policy to Autonomous.
18895 2005-06-14  Vincent Celier  <celier@adacore.com>
18897         * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
18898         when the project file in a with clause is not the last one, that is the
18899         project file name is followed by a comma.
18900         * prj-pp.adb: (First_With_In_List): New Boolean global variable
18901         (Print): Issue list of project files separated by commas in with clauses
18902         according to the values returned by Is_Not_Last_In_List.
18903         * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
18904         (Set_Is_Not_Last_In_List): New procedure
18906 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
18908         * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
18910 2005-06-14  Robert Dewar  <dewar@adacore.com>
18912         * scng.adb: Add call to new Check_EOF routine
18913         (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
18914         Add some comments regarding wide character handling
18916         * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
18918         * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
18920         * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
18921         characters are now considered graphic characters and hence yield false
18922         in this call.
18924         * nmake.adt: Modify header so that xnmake does not generate output
18925         files with multiple blank lines.
18927         * treeprs.adt: Remove a blank line so that output from xtreeprs does
18928         not have an extra blank line
18930 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
18932         * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
18933         expression when the component type is an anonymous access type to
18934         ensure that appropriate accessibility checks are done.
18936         * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
18937         expression of an assignment when the target object is of an anonymous
18938         access type. This ensures that required accessibility checks are done.
18939         (One_Bound): Move the check for type Universal_Integer to
18940         Process_Bounds.
18941         (Process_Bounds): Check whether the type of the preanalyzed range is
18942         Universal_Integer, and in that case set Typ to Integer_Type prior
18943         to setting the type of the original range and the calls to One_Bound.
18945 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
18947         * sem_case.adb (Expand_Others_Choice): Improve warning.
18949 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
18951         * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
18952         constraint of full view if present, when other type is discriminated.
18953         (Eval_Relational_Op): Recognize tests of pointer values against Null,
18954         when the pointer is known to be non-null, and emit appropriate warning.
18956 2005-06-14  Robert Dewar  <dewar@adacore.com>
18957             Ed Schonberg  <schonberg@adacore.com>
18959         PR ada/10671
18960         * sem_prag.adb: Implement pragma Persistent_BSS
18961         Remove obsolete pragma Persistent_Data, Persistent_Object
18962         Set Ada_Version_Explicit, for implementation of AI-362
18963         Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
18964         Add processing for pragma Pure_05 and Preelaborate_05
18965         Add processing for Assertion_Policy pragma
18966         Add pragma identifiers for Assert
18967         (Analyze_Pragma, case Assert): Check number of arguments
18968         (Process_Inline): Additional guard against an illegal program, where the
18969         argument of the pragma is undefined, and warnings on redundant
18970         constructs are enabled.
18971         (Analyze_Pragma, case Obsolescent): Allow an optional second argument
18972         Ada_05 to this pragma, specifying that the pragma is only active in
18973         Ada_05 mode.
18974         (Check_Arg_Order): New procedure
18975         Add appropriate calls to this procedure throughout
18976         Also throughout, check entity name before doing any other checks
18978         * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
18979         Remove obsolete pragma Persistent_Data, Persistent_Object
18980         Add entries for pragma Pure_05 and Preelaborate_05
18981         Add entries for Assertion_Policy pragma and associated names
18982         Add some names for pragma argument processing
18984         * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
18986 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
18988         * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
18989         appears within a negation (either from source or as a rewriting of
18990         inequality) adjust text of warning accordingly.
18992 2005-06-14  Thomas Quinot  <quinot@adacore.com>
18994         * s-strxdr.adb: Follow AI95-00132
18996 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
18998         * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
19000 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
19001             Jose Ruiz  <ruiz@adacore.com>
19003         * s-tposen.adb, s-tpobop.adb
19004         (Exceptional_Complete_Rendezvous): Save the occurrence and not only
19005         the exception id.
19006         (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
19007         there is no violation of the Max_Entry_Queue_Length restriction (if it
19008         has been set); Program_Error is raised otherwise.
19009         (Requeue_Call): Before requeuing the task on the target entry queue we
19010         check that there is no violation of the Max_Entry_Queue_Length
19011         restriction (if it has been set); Program_Error is raised otherwise.
19013 2005-06-14  Robert Dewar  <dewar@adacore.com>
19015         * styleg.adb: Fix several remaining problems in -gnatyu switch
19016         Blank line count not reset at start
19017         Scanning outside source buffer in some cases
19018         Confusing message for blanks at end of file
19019         Non-empty blank lines not recognized
19021         * nmake.adt: Modify header so that xnmake does not generate output
19022         files with multiple blank lines.
19024         * treeprs.adt: Remove a blank line so that output from xtreeprs does
19025         not have an extra blank line
19027 2005-06-14  Sergey Rybin  <rybin@adacore.com>
19029         * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
19031 2005-06-14  Doug Rupp  <rupp@adacore.com>
19032             Vincent Celier  <celier@adacore.com>
19034         * vms_conv.ads, vms_conv.adb: Remove "Library" command.
19035         Update copyright.
19037         * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
19038         Remove "Library" command.
19039         Change keyword for style check -gnatyd from NOCRLF to
19040         DOS_LINE_ENDINGS.
19041         Remove useless second style check keyword NONE
19042         Remove help documentation for inexistent style check keyword
19043         RM_COLUMN_LAYOUT.
19044         Add help documentation for style check keywords DOS_LINE_ENDINGS,
19045         UNNECESSARY_BLANK_LINES and XTRA_PARENS
19046         Add UNNECESSARY_BLANK_LINES for -gnatyu
19047         Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
19049         * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
19051 2005-06-14  Vincent Celier  <celier@adacore.com>
19053         * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
19054         gprmake was invoked with -d.
19055         (Compile_Sources): If -d was used, output the "completed ..." message
19056         for each compilation.
19057         (Scan_Arg): Recognize new switch -d
19058         When -c and at least one main is specified, set
19059         Unique_Compile to True to guarantee that no other sources will be
19060         compiled.
19062 2005-06-14  Matthew Heaney  <heaney@adacore.com>
19064         * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
19065         * a-swuwha.ads, a-swuwha.adb: New files
19067         * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
19068         * a-szuzha.ads, a-szuzha.adb: New files.
19070         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
19071         a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
19072         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
19073         a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
19074         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
19075         a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
19076         a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
19077         a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
19078         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
19079         a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
19080         Ada 2005 RM.
19082 2005-06-10  Eric Botcazou  <ebotcazou@adacore.com>
19083             Olivier Hainque  <hainque@adacore.com>
19084             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19085             Pascal Obry  <obry@adacore.com>
19087         * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
19089         * trans.c (call_to_gnu): Issue a warning for users of Starlet when
19090         making a temporary around a procedure call because of non-addressable
19091         actual parameter.
19092         (process_freeze_entity): If entity is a private type, capture size
19093         information that may have been computed for the full view.
19094         (tree_transform, case N_Allocator): If have initializing expression,
19095         check type for Has_Constrained_Partial_View and pass that to
19096         build_allocator.
19097         (tree_transform, case N_Return_Statement): Pass extra arg to
19098         build_allocator.
19100         * decl.c (annotate_value): Remove early return if -gnatR is not
19101         specified.
19102         (gnat_to_gnu_field): Don't make a packable type for a component clause
19103         if the position is byte aligned, the field is aliased, and the clause
19104         size isn't a multiple of the packable alignment. It serves no useful
19105         purpose packing-wise and would be rejected later on.
19106         (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
19108         PR ada/20515
19109         (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
19110         context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
19111         instead.
19112         (create_concat_name): Idem.
19114 2005-06-10  Robert Dewar  <dewar@adacore.com>
19115             Eric Botcazou  <ebotcazou@adacore.com>
19116             Ben Brosgol  <brosgol@adacore.com>
19117             Cyrille Comar  <comar@adacore.com>
19118             Sergey Rybin  <rybin@adacore.com>
19119             Pascal Obry  <obry@adacore.com>
19121         * gnat_rm.texi: Add documentation for pragma Persistent_BSS
19122         Document second argument (Ada_05) of pragma Obsolescent
19123         Add note that call to subprogram marked with pragma Obsolescent
19124         is now considered to be a violation of program Restrictions
19125         (No_Obsolescent_Features).
19126         (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
19127         that only machine-dependent attributes are supported.
19129         * gnat_ugn.texi:
19130         Commented out menu lines and empty section for gnatclean examples
19131         Document -gnatwy/Y
19132         Fix some over long lines
19133         Clarify and enhance documentation of ADA_PROJECT_PATH.
19134         Rework section 2.11.2(3) about linking with a non-GNU compiler.
19135         Mention new switch -fcallgraph-info.
19136         Mention new switch -fstack-usage.
19137         For gnatpp, replace '-notab' with '-N' and add this option to Index
19138         Corrected VMS example.
19139         VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
19140         Minor reformatting
19141         Add documentation for -gnatyu switch (unnecessary blank lines)
19142         Document new switch -U for GNAT PRETTY and GNAT METRIC
19143         Add note about Stdcall being handled as C convention on non Windows OS.
19144         Remove some junk typo in description of gnatbind -S switch
19145         Remove reference to Extensions_Allowed pragma
19146         Document the new order of the directories to be searched (source and
19147         object directories of project files before directories in ADA_*_PATH
19148         environment variables.
19150         * g-trasym.ads: Document that IRIX is supported
19152 2005-06-10  Arnaud Charlet  <charlet@adacore.com>
19154         * Makefile.in: Add initialize.o when needed.
19155         Adapt to new VMS package body Symbols and subunits
19156         No specialized version of a-sytaco is needed for VxWorks.
19158         * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
19159         * a-zchara.ads, a-widcha.ads: New files.
19161         * system-hpux-ia64.ads: New file.
19163         * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
19164         is imported from the VxWorks kernel.
19166 2005-06-14  Robert Dewar  <dewar@adacore.com>
19168         * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
19169         fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
19170         a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
19171         s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
19172         a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
19173         g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
19174         i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
19175         namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
19176         sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
19177         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
19178         s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
19179         xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
19181 2005-06-14  Thomas Quinot  <quinot@adacore.com>
19183         * xeinfo.adb: Fix typo in comment
19185 2005-06-14  Javier Miranda  <miranda@adacore.com>
19187         * repinfo.ads: Fix typo in comment
19189 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
19191         * s-finimp.adb (Parent_Tag): Delete this imported function (function
19192         Parent_Tag is now in the visible part of Ada.Tags).
19193         (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
19194         using imported function.
19196 2005-06-14  Bernard Banner  <banner@adacore.com>
19198         * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
19199         also apply for handling support for VxSim 653.
19201 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
19203         * xsnames.adb: Add automatic generation of snames.h.
19205 2005-06-14  Thomas Quinot  <quinot@adacore.com>
19207         * gen-soccon.c: Add IP_MULTICAST_IF constant
19208         Minor reformatting and adjustments to prevent warnings.
19210 2005-06-14  Pascal Obry  <obry@adacore.com>
19212         * seh_init.c: Do not include <sys/stat.h>. This is not needed.
19214 2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
19216         * trans.c (gnat_gimplify_expr): Call
19217         recompute_tree_invarant_for_addr_expr when we change
19218         the operand of the ADDR_EXPR.
19220 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19222         * misc.c: Don't include errors.h.
19224 2005-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19226         * raise.c (db): Add ATTRIBUTE_PRINTF_2.
19228 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
19230         * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
19231         comment typos.
19232         * gnat_rm.texi, gnat_ugn.texi: Fix typos.
19234 2005-05-16  Nathanael Nerode <neroden@gcc.gnu.org>
19236         PR ada/20270
19237         * Makefile.in: Make TGT_LIB behave correctly.
19239 2005-04-23  DJ Delorie  <dj@redhat.com>
19241         * misc.c: Adjust warning() callers.
19243 2005-04-16  Laurent GUERBY  <laurent@guerby.net>
19245         PR ada/18847
19246         * a-nudira.adb (Value): Check for valid string.
19247         * a-nuflra.adb (Value): Likewise.
19249 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
19251         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
19253 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
19255         * adaint.c, init.c, tracebak.c: Fix comment typos.
19256         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
19258 2005-04-07  Laurent GUERBY  <laurent@guerby.net>
19259             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19261         * Makefile.in: Add make ifeq define for hppa linux tasking support.
19262         * system-hpux.ads: Define Signed_Zeros to be True.
19263         * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
19265 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
19267         * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
19268         raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
19269         typos.
19271 2005-03-30  Tom Tromey  <tromey@redhat.com>
19273         * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
19275 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
19277         * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
19279 2005-03-29  Robert Dewar  <dewar@adacore.com>
19281         * sem_res.adb (Resolve_Real_Literal): Generate warning if static
19282         fixed-point expression has value that is not a multiple of the Small
19283         value.
19285         * opt.ads (Warn_On_Bad_Fixed_Value): New flag
19287         * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
19288         nanoseconds.
19290         * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
19292 2005-03-29  Vincent Celier  <celier@adacore.com>
19294         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
19295         (Build_Dynamic_Library.Version_String): Return the empty string when
19296         Lib_Version is empty or when the symbol policy is not Autonomous.
19298         * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
19299         a symbol is not in the reference symbol file, increase the Major ID
19300         and set the Minor ID to 0.
19301         Use gsmatch=lequal instead of gsmatch=equal
19303 2005-03-29  Doug Rupp  <rupp@adacore.com>
19305         * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
19306         name and translate.
19308 2005-03-29  Javier Miranda  <miranda@adacore.com>
19310         * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
19311         (Inherit_DT): The first formal has been redefined as a Tag.
19312         This allows us the removal of the subprogram Get_TSD.
19313         (TSD): Replace the call to Get_TSD by the actual code.
19315         * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
19316         (Make_DT): Upgrade the call to Inherit_TSD according to the
19317         new interface: the first formal is now a Tag.
19319         * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
19320         redefined as a Tag.
19321         This change allows us to remove the subprogram Get_TSD.
19322         (CPP_Get_TSD): Subprogram removed.
19323         (TSD): Replace the call to CPP_Get_TSD by the actual code.
19325         * rtsfind.ads: Remove support to call the run-time
19326         subprogram Get_TSD
19328 2005-03-29  Robert Dewar  <dewar@adacore.com>
19330         * errutil.adb, errout.adb:
19331         Minor comment updates on Line_Terminator references
19333         * par-ch10.adb: Add ??? comment about line terminator
19335         * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
19336         (check dos line terminator).
19337         (Check_Line_Max_Length): New procedure, split off from the existing
19338         Check_Line_Terminator routine. Separating this out allows -gnatyf to
19339         be properly recognized.
19341         * styleg.adb: Add ??? comment for line terminator reference
19343         * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
19344         (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
19346         * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
19347         (check dos line terminator).
19348         (Check_Line_Max_Length): New procedure, split off from the existing
19349         Check_Line_Terminator routine. Separating this out allows -gnatyf to
19350         be properly recognized.
19352         * stylesw.ads, stylesw.adb:
19353         Add handling for new -gnatyd switch (check dos line terminator)
19355         * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
19356         Recognize -gnatwb/-gnatwB switches
19357         Include Warn_On_Bad_Fixed_Value for -gnatg
19359         * usage.adb:
19360         Add line for new -gnatyd switch (check dos line terminator)
19362         * usage.adb: Add lines for -gnatwb/-gnatwB
19364         * vms_data.ads: Add entry for NOCRLF (-gnatyd)
19366         * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
19368         * gnat_ugn.texi: Fix overlong lines
19369         Document new -gnatyd switch
19370         Document new -gnatwb/-gnatwB switches
19372 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
19374         * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
19375         order to retrieve the component list of the type, before examining
19376         individual components.
19378         * sem_type.adb (Covers): Types are compatible if one is the base type
19379         of the other, even though their base types might differ when private
19380         views are involved.
19382 2005-03-29  Thomas Quinot  <quinot@adacore.com>
19384         * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
19385         To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
19386         of using Set_Renaming_TSS. This ensures that the TSS bodies are not
19387         analyzed if expansion is disabled (which could otherwise cause spurious
19388         error messages if expansion has been disabled due to previous
19389         (unrelated) errors).
19391         * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
19392         is disabled, the entity denoted by the argument is the access type
19393         itself, not an underlying record type, so there is no need to go back
19394         to the Corresponding_Remote_Type.
19396 2005-03-29  Gary Dismukes  <dismukes@adacore.com>
19397             Robert Dewar  <dewar@adacore.com>
19399         * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
19400         expand a call to an instance of
19401         Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
19402         Constructor actual of the instance. A class-wide membership
19403         check is also generated, to ensure that the tag passed to the instance
19404         denotes a type in the class.
19405         (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
19406         of Name_Generic_Dispatching_Constructor.
19408         * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
19409         05 unit for AI-260-02).
19411         * a-tgdico.ads: New file.
19413         * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
19414         predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
19416         * snames.ads, snames.adb (Preset_Names): Add entry for
19417         Generic_Dispatching_Constructor.
19419         PR ada/20300
19420         * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
19421         character type cases.
19422         (Analyze_Subprogram_Renaming): Add special handling for
19423         the case of renaming of stream attributes when the renaming denotes a
19424         generic formal subprogram association for an abstract formal subprogram.
19425         Check that the attribute is a primitive stream attribute (and not
19426         a class-wide stream attribute) and then rewrite the attribute name
19427         as the name of the appropriate compiler-generated stream primitive.
19429 2005-03-29  Robert Dewar  <dewar@adacore.com>
19431         * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
19432         recursive calls.
19433         (Is_Possibly_Unaligned_Object): Correct typo that
19434         resulted in inaccurate result for unaligned scalars within records.
19436 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
19438         * freeze.adb (Freeze_Record_Type): If the type of the component is an
19439         itype whose parent is controlled and not yet frozen, do not create a
19440         freeze node for the itype if expansion is disabled.
19442 2005-03-29  Vincent Celier  <celier@adacore.com>
19444         * make.adb (Gnatmake): Don't fail if the main project file is declared
19445         as having no Ada sources. Do not display message "no sources to
19446         compile" in quiet output.
19448 2005-03-29  Doug Rupp  <rupp@adacore.com>
19450         * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
19451         extra tools.
19453 2005-03-29  Robert Dewar  <dewar@adacore.com>
19455         * par-ch12.adb (P_Generic): Give better msg for illegal private generic
19456         child.
19458 2005-03-29  Robert Dewar  <dewar@adacore.com>
19460         * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
19461         missing TYPE Improve the error message generated when compiling a
19462         limited interface in Ada83 or Ada95 mode.
19464 2005-03-29  Robert Dewar  <dewar@adacore.com>
19466         * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
19467         rather than proceed ahead using a junk attribute name.
19469 2005-03-29  Vincent Celier  <celier@adacore.com>
19471         * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
19473         * prj-part.adb (Parse_Single_Project): Set the location of a project
19474         on its defining identifier, rather than on the reserved word "project".
19476         * prj-proc.adb (Expression): Adapt to the fact that default of external
19477         references may be string expressions, not always literal strings.
19478         (Recursive_Process): Set Display_Name equal to Name
19479         when Location is No_Location, that is when there is no actual file.
19480         Get the Display_Name of the project from the source, when it is not a
19481         virtual project.
19482         (Process): Use the Display_Name in error messages
19484         * prj-strt.adb (External_Reference): Allow default to be string
19485         expressions, not only literal strings.
19487 2005-03-29  Vincent Celier  <celier@adacore.com>
19489         * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
19490         file and the reference symbol file to be the same file.
19492 2005-03-29  Thomas Quinot  <quinot@adacore.com>
19494         * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
19495         forbid conversion of a local access-to-subprogram type to a remote one.
19497         * sem_util.adb (Wrong_Type): For a record type that is the expanded
19498         equivalent type for a remote access-to-subprogram type, go back to the
19499         original RAS entity when displaying an error message, so the casing is
19500         the original source casing.
19502 2005-03-29  Robert Dewar  <dewar@adacore.com>
19504         * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
19505         on param update.
19507 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
19509         * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
19510         subtype if code is being pre-analyzed, to prevent un-expanded
19511         references to protected formals, among others.
19512         (Analyze_Explicit_Dereference): If the overloaded prefix includes some
19513         interpretation that can be a call, include the result of the call as a
19514         possible interpretation of the dereference.
19516         * sem_ch5.adb (Process_Bounds): Determine type of range by
19517         pre-analyzing a copy of the original range, and then analyze the range
19518         with the expected type.
19520         * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
19521         with an overloaded prefix where not all interpretations yield an
19522         access to subprogram, do not rewrite node as a call.
19523         (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
19524         the node as a call once the context identifies the interpretation of
19525         the prefix whose call yields the context type.
19526         (Valid_Conversion): For the case of a conversion between
19527         local access-to-subprogram types, check subtype conformance using
19528         Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
19529         detailed error message.
19531 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
19533         * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
19534         indicator, indicate that the formal can never be null.
19535         (Process_Formals): If a formal has a non_null indicator, insert the
19536         resulting subtype immediately before the enclosing subprogram decl,
19537         and not at the beginning of the corresponding declarative part, to
19538         prevent access before elaboration (Ada2005).
19540 2005-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19542         PR ada/19956
19543         * utils.c (finish_record_type): Use variable_size when setting sizes.
19545 2005-03-29  Robert Dewar  <dewar@adacore.com>
19547         * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
19548         guarantee Unix style line terminators for the output files, even when
19549         running on windows.
19551 2005-03-29  Robert Dewar  <dewar@adacore.com>
19553         * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
19554         buffer if an exception is raised.
19556 2005-03-29  Ed Falis  <falis@adacore.com>
19558         * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
19559         VxWorks 653 1.4
19561 2005-03-29  Robert Dewar  <dewar@adacore.com>
19563         * sem_util.ads: Minor reformatting
19564         * gnat_rm.texi: Minor editing.
19566 2005-03-29  Eric Botcazou  <ebotcazou@adacore.com>
19568         * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
19569         * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
19571 2005-03-24  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
19573         * adaint.c (__gnat_portable_spawn): Adjust cast.
19575 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
19577         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
19579 2005-03-17  Pascal Obry  <obry@adacore.com>
19581         * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
19582         used.
19584         * expect.c (__gnat_waitpid): Moved here from adaint.c.
19585         Reimplement under Win32 using Win32 API.
19587         (__gnat_kill) [Win32]: Properly close the process handle before leaving
19588         this routine.
19590 2005-03-17  Eric Botcazou  <ebotcazou@adacore.com>
19592         * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
19593         (DECL_RENAMED_OBJECT): New accessor macro.
19594         (SET_DECL_RENAMED_OBJECT): New setter macro.
19596         * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
19597         object in all cases.  Attach the renamed object to the VAR_DECL.
19598         (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
19599         field is not prescribed.
19601         * misc.c (gnat_handle_option): Handle -gnatO separately.
19602         (gnat_print_decl) <VAR_DECL>: New case.
19603         Print the DECL_RENAMED_OBJECT node.
19605         * lang.opt:  Declare separate -gnatO option.
19607         * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
19608         pointer, replace it with the renamed object.
19609         <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
19610         pointer type if the source is not a fat pointer type whose underlying
19611         array has the same non-zero alias set as that of the destination array.
19613 2005-03-17  Javier Miranda  <miranda@adacore.com>
19615         * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
19616         (Get_Inheritance_Depth): Removed.
19617         (Set_Inheritance_Depth): Removed.
19619         * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
19620         subprogram Get_Expanded_Name because it is not referenced by the
19621         frontend.
19623         * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
19624         (CPP_Get_Inheritance_Depth): Removed.
19625         (CPP_Set_Inheritance_Depth): Removed.
19627         * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
19629 2005-03-17  Robert Dewar  <dewar@adacore.com>
19631         * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
19632         3, since we now expect GCC 3 to do all the work.
19634 2005-03-17  Javier Miranda  <miranda@adacore.com>
19636         * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
19637         of one barrier to avoid wrong usage of this attribute.
19639         * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
19640         First_Private_Entity.
19642         * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
19643         the subprogram against wrong usage.
19644         Adapt the code to traverse the entities in the
19645         scope of a record_type because in addition to its usage regarding
19646         packages, this subprogram is also called by Expand_N_Freeze_Entity
19647         to install the visible declarations of the enclosing scope of a
19648         record_type_with_private to establish the proper visibility before
19649         freezing the entity and related subprograms.
19651 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
19653         * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
19654         entry formals.
19656 2005-03-17  Thomas Quinot  <quinot@adacore.com>
19658         * exp_ch3.adb (Check_Attr): New subprogram.
19659         (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
19660         into a new Check_Attr subprogram, in order to provide a more
19661         explanatory error message (including the name of the missing attribute).
19662         (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
19663         subprogram determines whether a default implementation exists for a
19664         given stream attribute.
19665         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
19666         Determine whether to generate a default implementation for each stream
19667         attribute separately, as this depends on the specific attribute.
19669         * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
19670         limited extension where a stream attribute is missing for a limited
19671         component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
19672         generate a bogus reference to the missing attribute to prevent
19673         cascaded errors. Instead, generate a null statement.
19675         * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
19676         available for a limited type if it has been specified for an ancestor
19677         of the type.
19679 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
19681         * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
19682         entity is an operator.
19684 2005-03-17  Thomas Quinot  <quinot@adacore.com>
19686         * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
19687         spec, to make this predicate available to other units.
19689         * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
19690         reimplementing it.
19692         * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
19693         when no distribution runtime library is available.
19695         * sem_res.adb, sem_dist.adb: Disable expansion of remote
19696         access-to-subprogram types when no distribution runtime library is
19697         available.
19698         (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
19699         predicate available to other units.
19701         * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
19702         spec, to make this predicate available to other units.
19704 2005-03-17  Vincent Celier  <celier@adacore.com>
19706         * make.adb (Insert_Project_Sources): Make sure the Q is always
19707         initialized.
19709         * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
19710         the default for the tree, not the global default naming.
19712         * prj-proc.adb (Recursive_Process): No need to put the default naming
19713         in the project data, it's already there.
19715 2005-03-17  Doug Rupp  <rupp@adacore.com>
19717         * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
19719         * 5xcrtl.ads: Renamed to...
19720         * s-crtl-vms64.ads: ...this new file
19722 2005-03-17  Robert Dewar  <dewar@adacore.com>
19724         PR ada/19519
19725         * namet.adb (Copy_One_Character): Set proper wide character encoding
19726         for upper half character if we have upper half encoding.
19728 2005-03-17  Robert Dewar  <dewar@adacore.com>
19730         * par.adb (Par): Improved msg for attempt to recompile predefined unit
19732 2005-03-17  Thomas Quinot  <quinot@adacore.com>
19734         * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
19735         tagged limited type, the TSS is a newly built renaming declaration:
19736         insert it using Set_TSS, not Copy_TSS.
19738 2005-03-17  Javier Miranda  <miranda@adacore.com>
19740         * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
19741         Try_Object_Operation): Analyze the object that is accessible
19742         through the prefix of the subprogram call before we apply
19743         the transformation of the object-operation notation.
19745 2005-03-17  Jose Ruiz  <ruiz@adacore.com>
19747         * s-taprob.adb (Initialize_Protection): Initialize the protected
19748         object's owner to Null_Task.
19749         (Lock): If pragma Detect_Blocking is in effect and the caller of this
19750         procedure is already the protected object's owner then Program_Error
19751         is raised. In addition the protected object's owner is updated.
19752         (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
19753         of this procedure is already the protected object's owner then
19754         Program_Error is raised.
19755         In addition the protected object's owner is updated.
19756         (Unlock): Remove the ownership of the protected object.
19758         * s-taprob.ads (Protection): Add the field Owner, used to store the
19759         protected object's owner.
19760         This component is needed for detecting one type of potentially blocking
19761         operations (external calls on a protected subprogram with the same
19762         target object as that of the protected action). Document the rest of
19763         the components.
19765         * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
19766         Initialize the protected object's owner to Null_Task.
19767         (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
19768         caller of this procedure is already the protected object's owner then
19769         Program_Error is raised.
19770         Do not raise Program_Error when this procedure is called from a
19771         protected action.
19772         (Unlock_Entries): Remove the ownership of the protected object.
19773         (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
19774         of this procedure is already the protected object's owner then
19775         Program_Error is raised.
19776         Do not raise Program_Error when this procedure is called from
19777         a protected action.
19779         * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
19780         used to store the protected object's owner.
19782         * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
19783         effect and this procedure (a potentially blocking operation) is called
19784         from whithin a protected action, Program_Error is raised.
19785         (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
19786         and this procedure (a potentially blocking operation) is called from
19787         whithin a protected action, Program_Error is raised.
19789 2005-03-17  Vincent Celier  <celier@adacore.com>
19790             Nicolas Setton  <setton@adacore.com>
19792         * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
19793         switch, not supported by the linker on Darwin. Add '_' before
19794         <library>init, as this character is added unconditionally by the
19795         compiler.
19796         (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
19797         correct one ".dylib". This fixes detection of the archive files when
19798         building library projects.
19800 2005-03-17  Vincent Celier  <celier@adacore.com>
19802         * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
19803         -gnat83, -gnat95 and -gnat05.
19805 2005-03-17  Vasiliy Fofanov  <fofanov@adacore.com>
19807         * gnat_ugn.texi: Document gnatmem restriction
19809 2005-03-17  Thomas Quinot  <quinot@adacore.com>
19811         * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
19812         cleanup
19814 2005-03-17  Robert Dewar  <dewar@adacore.com>
19816         * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
19817         a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
19818         s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
19820         * casing.adb: Comment improvements
19822 2005-03-17  Pascal Obry  <obry@adacore.com>
19824         * g-expect.adb: Minor reformatting.
19826 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
19828         * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
19829         (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
19830         to dependencies.
19832 2005-03-15  Vincent Celier  <celier@adacore.com>
19834         * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
19835         Add new parameter In_Tree to specify the project tree: needed
19836         by the project manager. Adapt to changes in project manager
19837         using new parameter In_Tree.
19839 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
19841         * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
19842         ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
19843         ada/bldtools to avoid make -jN failures.
19845 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
19847         * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
19848         to NULL_TREE on entry.
19850 2005-03-15  Robert Dewar  <dewar@adacore.com>
19852         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
19853         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
19854         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
19855         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
19856         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
19857         system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
19858         system-interix.ads, system-solaris-sparc.ads,
19859         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
19860         system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
19861         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
19862         system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
19863         system-linux-s390.ads, system-linux-s390x.ads: Add line defining
19864         Compiler_System_Version to be False.
19866         * opt.ads: Add new flag Opt.Address_Is_Private
19868         * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
19869         Add new parameter Compiler_System_Version to avoid checking for
19870         completeness of parameters when compiler is compiling itself.
19871         Allows old versions of GNAT to be compiled with new compiler.
19873 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
19875         * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
19876         (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
19877         calling thread.
19878         (Stack_Base_Available): New flag.
19879         (Get_Page_Size): New overloaded functions imported from C.
19880         (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
19881         PROT_ON, PROT_OFF): New constants.
19882         (mprotect): New function imported from C.
19883         (pthread_teb_t): New record type.
19885         * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
19886         (Create_Task): Account for the Yellow Zone and the guard page.
19888 2005-03-15  Vincent Celier  <celier@adacore.com>
19890         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
19891         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
19892         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
19893         mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
19894         Library_File_Name_For): Add new parameter In_Tree
19895         to specify the project tree: needed by the project manager.
19896         Adapt to changes in project manager using new parameter In_Tree.
19897         Remove local imports, use functions in System.CRTL.
19899         * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
19900         to use the project manager.
19902         * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
19903         In_Tree to designate the project tree. Adapt to changes in the project
19904         manager, using In_Tree.
19906         * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
19907         Copy_Interface_Sources): Add new parameter In_Tree to specify the
19908         project tree: needed by the project manager.
19909         (Build_Library): Check that Arg'Length >= 6 before checking if it
19910         contains "--RTS=...".
19912         * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
19913         Library_File_Name_For): Add new parameter In_Tree to specify the
19914         project tree: needed by the project manager.
19916         * prj.ads, prj.adb: Major modifications to allow several project trees
19917         in memory at the same time.
19918         Change tables to dynamic tables and hash tables to dynamic hash
19919         tables. Move tables and hash tables from Prj.Com (in the visible part)
19920         and Prj.Env (in the private part). Move some constants from the visible
19921         part to the private part. Make other constants deferred.
19922         (Project_Empty): Make it a variable, not a function
19923         (Empty_Project): Add parameter Tree. Returns the data with the default
19924         naming data of the project tree Tree.
19925         (Initialize): After updating Std_Naming_Data, copy its value to the
19926         component Naming of Project Empty.
19927         (Register_Default_Naming_Scheme): Use and update the default naming
19928         component of the project tree, instead of the global variable
19929         Std_Naming_Data.
19930         (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
19931         Tree is not defaulted, return the default naming data of the Tree.
19932         (Initial_Buffer_Size): Constant moved from private part
19933         (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
19934         variables initialized in procedure Initialize.
19935         (Add_To_Buffer): Add two in out parameters to replace global variables
19936         Buffer and Buffer_Last.
19937         (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
19938         functions.
19939         Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
19940         hash tables.
19941         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
19942         for the project tree.
19943         (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
19944         constant at the beginning of the package spec, so that they cane be used
19945         in subprograms before their full declarations.
19946         (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
19947         (Empty_Project): Add parameter of type Project_Node_Ref
19948         (Private_Project_Tree_Data): Add component Default_Naming of type
19949         Naming_Data.
19950         (Buffer, Buffer_Last): remove global variables
19951         (Add_To_Buffer): Add two in out parameters to replace global variables
19952         Buffer and Buffer_Last.
19953         (Current_Packages_To_Check): Remove global variable
19954         (Empty_Name): Move to private part
19955         (No-Symbols): Make it a constant
19956         (Private_Project_Tree_Data): New type for the private part of the
19957         project tree data.
19958         (Project_Tree_Data): New type for the data of a project tree
19959         (Project_Tree_Ref): New type to designate a project tree
19960         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
19961         for the project tree.
19963         * prj-attr.ads: Add with Table; needed, as package Prj no longer
19964         imports package Table.
19966         * prj-com.adb: Remove empty, no longer needed body
19968         * prj-com.ads: Move most of the content of this package to package Prj.
19970         * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
19971         designate the project node tree and Packages_To_Check to replace
19972         global variable Current_Packages_To_Check.
19973         Add new parameters In_Tree and Packages_To_Check to local subprograms,
19974         when needed. Adapt to changes in project manager with project node tree
19975         In_Tree.
19977         * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
19978         project tree to most subprograms. Move tables and hash tables to
19979         private part of package Prj.
19980         Adapt to changes in project manager using project tree In_Tree.
19982         * prj-makr.adb (Tree): New constant to designate the project node tree
19983         Adapt to change in project manager using project node tree Tree
19985         * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
19986         display the Library_Src_Dir and the Library_Dir.
19987         Add new parameter In_Tree to designate the project node tree to most
19988         subprograms. Adapt to changes in the project manager, using project tree
19989         In_Tree.
19990         (Check_Naming_Scheme): Do not alter the casing on platforms where
19991         the casing of file names is not significant.
19992         (Check): Add new parameter In_Tree to designate the
19994         * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
19995         designate the project tree.
19996         Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
19998         * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
19999         to replace those that were in the private part of package Prj.
20000         Add new parameter In__Tree to designate the project node tree to most
20001         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
20002         (Post_Parse_Context_Clause): When specifying the project node of a with
20003         clause, indicate that it is a limited with only if there is "limited"
20004         in the with clause, not necessarily when In_Limited is True.
20005         (Parse): Add new parameter In_Tree to designate the project node tree
20007         * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
20008         designate the project node tree. Adapt to change in Prj.Tree with
20009         project node tree In_Tree.
20011         * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
20012         tree In_Tree in the call to function Empty_Process to give its initial
20013         value to the project data Processed_Data.
20014         Add new parameters In_Tree to designate the project tree and
20015         From_Project_Node_Tree to designate the project node tree to several
20016         subprograms. Adapt to change in project manager with project tree
20017         In_Tree and project node tree From_Project_Node_Tree.
20019         * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
20020         to replace those that were in the private part of package Prj.
20021         Add new parameter In_Tree to designate the project node tree to most
20022         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
20024         * prj-tree.ads, prj-tree.adb: Add new parameter of type
20025         Project_Node_Tree_Ref to most subprograms.
20026         Use this new parameter to store project nodes in the designated project
20027         node tree.
20028         (Project_Node_Tree_Ref): New type to designate a project node tree
20029         (Tree_Private_Part): Change table to dynamic table and hash tables to
20030         dynamic hash tables.
20032         * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
20033         the project tree to most subprograms. Adapt to changes in project
20034         manager using project tree In_Tree.
20036         * makegpr.adb (Project_Tree): New constant needed to use project
20037         manager.
20039 2005-03-15  Olivier Hainque  <hainque@adacore.com>
20041         * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
20042         for sigactions with SA_SIGINFO set. Call
20043         __gnat_adjust_context_for_raise before raising, to perform the
20044         potentially required adjustments to the machine context for the GCC
20045         unwinder.
20047         * raise.h (__gnat_adjust_context_for_raise): New prototype.
20049         * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
20050         Adjust PC by one in the provided machine context.
20051         (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
20052         so that the handler is passed the context structure to adjust prior to
20053         the raise.
20054         (__gnat_error_handler) HPUX: Adjust the signature to match what an
20055         SA_SIGINFO sigaction should look like. Call
20056         __gnat_adjust_context_for_raise before actually raising.
20057         (__gnat_adjust_context_for_raise): Default noop to help PC
20058         adjustments before raise from signal handlers.
20059         (__gnat_error_handler): Indirectly call a predicate function to
20060         determine if a condition should be resignaled or not.
20061         (__gnat_set_resignal_predicate): User interface to modify the predicate.
20062         (__gnat_default_resignal_p): Default GNAT predicate.
20064 2005-03-15  Doug Rupp  <rupp@adacore.com>
20066         * adaint.c: Prefix #include of VMS system header files with vms/
20067         [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
20068         Do not define a dummy function "convert_addresses" under Darwin,
20069         not needed.
20071         * tb-alvms.c, expect.c: Prefix #include of VMS system header files
20072         with vms/
20074 2005-03-15  Nicolas Setton  <setton@adacore.com>
20076         * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
20077         PPC/AIX.
20079 2005-03-15  Robert Dewar  <dewar@adacore.com>
20081         * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
20082         AI-386.
20084         * a-retide.ads: Minor comment changes
20086 2005-03-15  Robert Dewar  <dewar@adacore.com>
20088         * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
20089         a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
20090         Realloc_For_Chunk to private part of package.
20091         New subprograms for AI-301
20093         * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
20094         Get_Line procedure.
20095         Avoid unnecessary use of Get/Set_Wide_String
20097 2005-03-15  Robert Dewar  <dewar@adacore.com>
20099         PR ada/13470
20100         * a-stunau.ads, a-stunau.adb:
20101         Change interface to allow efficient (and correct) implementation
20102         The previous changes to allow extra space in unbounded strings had
20103         left this interface a bit broken.
20105         * a-suteio.adb: Avoid unnecessary use of Get/Set_String
20107         * g-spipat.ads, g-spipat.adb: New interface for Get_String
20108         Minor reformatting (function specs)
20110         * g-spitbo.adb: New interface for Get_String
20112         * g-spitbo.ads: Minor reformatting
20114         * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
20116         * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
20118 2005-03-15  Javier Miranda  <miranda@adacore.com>
20119             Robert Dewar  <dewar@adacore.com>
20120             Thomas Quinot  <quinot@adacore.com>
20121             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20123         * atree.ads, atree.adb: Add support for Elist24 field
20125         * atree.h: Fix wrong definition of Field27
20126         Add support for Elist16 field
20127         Add support for Elist24 field
20129         * einfo.ads, einfo.adb (Abstract_Interfaces,
20130         Set_Abstract_Interfaces): New subprograms.
20131         (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
20132         subprograms.
20133         (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
20134         entities rather than a single node.
20135         (Is_Interface, Set_Is_Interface): New subprogram
20136         (First_Tag_Component): New syntesized attribute
20137         (Next_Tag_Component): New synthesized attribute
20138         (Write_Entity_Flags): Upgraded to write Is_Interface
20139         (Write_Field24_Name): Upgraded to write Abstract_Interfaces
20140         (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
20141         (Task_Body_Procedure): New subprogram to read this attribute.
20142         (Set_Task_Body_Procedure): New subprogram to set this attribute.
20143         (Has_Controlled_Component): Now applies to all entities.
20144         This is only a documentation change, since it always worked to apply
20145         this to other than composite types (yielding false), but now this is
20146         official.
20147         Update documentation on Must_Be_Byte_Aligned for new spec
20149         * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
20150         exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
20151         uses of the Access_Disp_Table attribute to reference the first dispatch
20152         table associated with a tagged type. As
20153         part of the implementation of abstract interface types,
20154         Access_Disp_Table has been redefined to contain a list of dispatch
20155         tables (rather than a single dispatch table).
20156         Similarly, upgrade all the references to Tag_Component by the
20157         new attribute First_Tag_Component.
20158         (Find_Inherited_TSS): Moved to exp_tss.
20159         Clean up test in Expand_N_Object_Declaration for cases
20160         where we need to do a separate assignment of the initial value.
20161         (Expand_N_Object_Declaration): If the expression in the
20162         declaration of a tagged type is an aggregate, no need to generate an
20163         additional tag assignment.
20164         (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
20165         is to be deleted.
20166         Bit packed array ops are only called if operands are known to be
20167         aligned.
20168         (Component_Equality): When returning an N_Raise_Program_Error statement,
20169         ensure that its Etype is set to Empty to avoid confusing GIGI (which
20170         expects that only expressions have a bona fide type).
20171         (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
20172         determine the amount of data to be copied.
20174         * par.adb (P_Interface_Type_Definition): New subprogram that parses the
20175         new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
20176             INTERFACE_TYPE_DEFINITION ::=
20177               [limited | task | protected | synchronized] interface
20178                 [AND interface_list]
20180         * par-ch3.adb (P_Type_Declaration): Modified to give support to
20181         interfaces.
20182         (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
20183         interfaces.
20184         (P_Interface_Type_Definition): New subprogram that parses the new
20185         syntax rule of Ada 2005 interfaces
20186         (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
20187         messages by the correct RENAMES (quotes removed).
20189         * sem_prag.adb: Upgrade all the references to Tag_Component by the new
20190         attribute First_Tag_Component.
20192         * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
20193         (Interface_List, Set_Interface_List): New subprograms.
20194         (Interface_Present, Set_Interface_Present): New subprograms.
20195         (Limited_Present, Set_Limited_Present): Available also in derived
20196         type definition nodes.
20197         (Protected_Present, Set_Protected_Present): Available also in
20198         record type definition and
20199         derived type definition nodes.
20200         (Synchronized_Present, Set_Synchronized_Present): New subprograms.
20201         (Task_Present, Set_Task_Present): New subprogram.
20202         (Task_Body_Procedure): Removed.
20203         (Set_Task_Body_Procedure): Removed.
20204         These subprogram have been removed because the attribute
20205         Task_Body_Procedure has been moved to the corresponding task type
20206         or task subtype entity to leave a field free to store the list
20207         of interfaces implemented by a task (for AI-345)
20208         Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
20209         (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
20210         expression flag Do_Range_Check
20211         (Exception_Junk): Change to Flag7 to accomodate above change
20212         (Box_Present, Default_Name, Specification, Set_Box_Present,
20213         Set_Default_Name, Set_Specification): Expand the expression
20214         "X in N_Formal_Subprogram_Declaration" into the corresponding
20215         two comparisons. Required to use the csinfo tool.
20217         * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
20218         "with string" given.
20220         * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
20221         expression given.
20223         * par-ch11.adb (P_Raise_Statement): Recognize with string expression
20224         in 2005 mode
20226         * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
20227         attribute Task_Body_Procedure rather than the old semantic field that
20228         was available in the task_type_declaration node.
20230         * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
20231         interface type definitions.
20232         (P_Formal_Derived_Type_Definition): Modified to handle the list of
20233         interfaces.
20235         * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
20236         task type declaration.
20237         (P_Protected): Modified to handle the list of interfaces in a
20238         protected type declaration.
20240 2005-03-15  Doug Rupp  <rupp@adacore.com>
20241             Vincent Celier  <celier@adacore.com>
20243         * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
20244         (Gen_Output_File_C): Likewise.
20245         (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
20247 2005-03-15  Thomas Quinot  <quinot@adacore.com>
20249         * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
20250         is an N_Raise_Constraint_Error node, create a new copy of it without
20251         going through a call to Duplicate_Subexpr.
20253 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
20254             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20255             Nicolas Setton  <setton@adacore.com>
20256             Ed Schonberg  <schonberg@adacore.com>
20258         PR ada/19900
20259         PR ada/19408
20260         PR ada/19140
20261         PR ada/20255
20262         * decl.c (gnat_to_gnu_field): Reject aliased components with a
20263         representation clause that prescribes a size not equal to the rounded
20264         size of their types.
20265         (gnat_to_gnu_entity, case E_Component): Always look at
20266         Original_Record_Component if Present and not the entity.
20267         (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
20268         of tagged extension types by not making field for components that are
20269         inside the parent.
20270         (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
20271         (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
20272         expression to the type of the object when the object is constant.
20273         Reverse defer_debug_incomplete_list before traversing it, so that trees
20274         are processed in the order at which they were added to the list. This
20275         order is important when using the stabs debug format.
20276         If we are deferring the output of debug information, also defer this
20277         output for a function return type.
20278         When adding fields to a record, prevent emitting debug information
20279         for incomplete records, emit the information only when the record is
20280         complete.
20281         (components_to_record): New parameter defer_debug.
20282         (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
20283         (gnat_to_gnu_field_decl): New function.
20284         (substitution_list, annotate_rep): Call it.
20285         (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
20286         (gnat_to_gnu_entity, case E_Record_Type): Likewise.
20287         No longer update discriminants to not be a COMPONENT_REF.
20288         (copy_alias_set): Strip padding from input type; also handle
20289         unconstrained arrays properly.
20291         * gigi.h (write_record_type_debug_info): New function.
20292         Convert to use ANSI-style prototypes. Remove unused
20293         declarations for emit_stack_check, elab_all_gnat and
20294         set_second_error_entity.
20295         (gnat_to_gnu_field_decl): New decl.
20297         * utils.c (write_record_type_debug_info): New function.
20298         (finish_record_type): Delegate generation of debug information to
20299         write_record_type_debug_info.
20300         (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
20301         (update_pointer_to): Fix pasto.
20302         (convert) <UNION_TYPE>: Accept slight type variations when
20303         converting to an unchecked union type.
20305         * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
20306         replace the N_Freeze_Entity with a null statement.
20308         * freeze.adb (Freeze_Expression): If the freeze nodes are generated
20309         within a constrained subcomponent of an enclosing record, place the
20310         freeze nodes in the scope stack entry for the enclosing record.
20311         (Undelay_Type): New Subprogram.
20312         (Set_Small_Size): Pass T, the type to modify; all callers changed.
20313         (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
20314         within records; allow them to have freeze nodes if their base types
20315         aren't frozen yet.
20317         * exp_util.adb (Remove_Side_Effects): Properly test for
20318         Expansion_Delayed and handle case when it's inside an
20319         N_Qualified_Expression.
20321         * sem_ch3.adb (Derived_Type_Declaration): New predicate
20322         Comes_From_Generic, to recognize accurately that the parent type in a
20323         derived type declaration can be traced back to a formal type, because
20324         it is one or is derived from one, or because its completion is derived
20325         from one.
20326         (Constrain_Component_Type): If component comes from source and has no
20327         explicit constraint, no need to constrain in in a subtype of the
20328         enclosing record.
20329         (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
20330         Minor change to propagate Is_Ada_2005 flag
20332         * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
20333         Expansion_Delayed is False.
20334         (assoc_to_constructor): Ignore fields that have a
20335         Corresponding_Discriminant.
20336         (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
20337         function returns "by target", dereference the target pointer using the
20338         type of the actual return value.
20339         <all>: Be prepared for a null gnu_result.
20340         (processed_inline_subprograms): Check flag_really_no_inline
20341         instead of flag_no_inline.
20342         (set_second_error_entity): Remove unused function.
20343         (gnat_to_gnu, case N_Selected_Component): Call
20344         gnat_to_gnu_field_decl.
20345         (assoc_to_constructor): Likewise.
20347 2005-03-15  Robert Dewar  <dewar@adacore.com>
20348             Ed Schonberg  <schonberg@adacore.com>
20349             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20351         * exp_pakd.adb (Create_Packed_Array_Type): Do not set
20352         Must_Be_Byte_Aligned for cases where we do not need to use a
20353         System.Pack_nn unit.
20355         * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
20356         as procedures.
20357         Needed now that we do some processing for IN parameters as well. This
20358         may well fix some unrelated errors.
20359         (Expand_Call): Handle case of unaligned objects (in particular those
20360         that come from packed arrays).
20361         (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
20362         renamed entity is an inherited operation, re-expand the call using the
20363         original operation, which is the one to call.
20364         Detect attempt to inline parameterless recursive subprogram.
20365         (Represented_As_Scalar): Fix to work properly with private types
20366         (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
20367         accurate estimate. Yields True in far fewer cases than before,
20368         improving the quality of code that depends on this test.
20370         * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
20371         over both visible and private declarations to remove them from tree,
20372         and mark subprograms declared in package as eliminated, to prevent
20373         spurious use in subsequent compilation of generic units in the context.
20375         * exp_util.ads: Minor cleanup in variable names
20377         * sem_eval.ads, sem_eval.adb: Minor reformatting
20378         (Compile_Time_Known_Bounds): New function
20380 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
20382         * exp_ch7.adb (Convert_View): Use base types of underlying types when
20383         determining whether an unchecked conversion is needed for the argument
20384         of an initialization call.
20386 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
20388         * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
20389         that appears in the instantiation rather than the internal subtype
20390         generated in the wrapper package, to avoid anomalies in gigi when the
20391         target is derived from a private type whose full view is an access type.
20393 2005-03-15  Robert Dewar  <dewar@adacore.com>
20395         * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
20396         not needed.
20397         Add documentation to replace the use of this flag
20398         Fix kludge for Maximum_Alignment on x86 so that it does not apply to
20399         the x86_64.
20401 2005-03-15  Thomas Quinot  <quinot@adacore.com>
20403         * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
20404         here from exp_attr so it can be shared between exp_attr and exp_dist.
20405         (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
20406         all TSS names, not a subset thereof, and the previous name introduced
20407         an unnecessarily confusion that a distinction might exist between
20408         "OK" TSS names and some "not OK" TSS names.
20410 2005-03-15  Doug Rupp  <rupp@adacore.com>
20412         * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
20413         Command_Name.
20415 2005-03-15  Pascal Obry  <obry@adacore.com>
20416             Eric Botcazou  <ebotcazou@adacore.com>
20418         PR ada/20226
20419         PR ada/20344
20420         * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
20421         when IN_RTS. This is to work around a bootstrap path problem.
20423         * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
20424         table and pass it to __gnat_install_SEH_handler().
20425         (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
20427         * lang.opt: Fix specification of -fRTS=.
20429 2005-03-15  Doug Rupp  <rupp@adacore.com>
20430             Bernard Banner  <banner@adacore.com>
20431             Vincent Celier  <celier@adacore.com>
20432             Arnaud Charlet  <charlet@adacore.com>
20434         PR ada/6852
20435         This change works fine when gnatlib is built from the gcc directory,
20436         but does not work when using the libada Makefile, since GCC_FOR_TARGET
20437         is not passed to ada/Makefile.in, so more work is needed by a
20438         Makefile/configure expert.
20440         * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
20441         set GMEM_LIB on ia64 linux to add optional support for gnatmem.
20442         Setup gnatlink switch -M for x86_64 linux, as it is already setup
20443         for Linux x86.
20444         (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
20445         Run ranlib on libgccprefix.a
20446         Define PREFIX_OBJS for Darwin, to build libgccprefix.
20447         (ADA_INCLUDE_SRCS): Split Ada packages.
20449 2005-03-15  Robert Dewar  <dewar@adacore.com>
20451         * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
20453         * impunit.adb: Add GNAT.UTF_32
20455         * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
20457         * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
20458         now uses GNAT.UTF_32).
20460         * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
20461         capabilities for categorizing characters using Unicode categories
20463 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
20465         * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
20466         instantiation that has been rewritten as a package body, retrieve spec
20467         to generate proper name for implicit_with_clause.
20468         (Install_Parents): Recognize a parent that is an instantiation but has
20469         been rewritten as a package declaration during analysis.
20471 2005-03-15  Javier Miranda  <miranda@adacore.com>
20472             Ed Schonberg  <schonberg@adacore.com>
20474         * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
20475         parameter reported some error we immediately return. This improves the
20476         behaviour of the frontend in case of errors.
20477         (Install_Parent, Remove_Parent): Introduce new flag
20478         Parent_Unit_Visible, to preserve the proper visibility of the ultimate
20479         ancestor of a generic child unit, when the child is being instantiated.
20480         (Inline_Instance_Body): If we are compiling the private
20481         part or the body of a child unit, restore the proper visibility of the
20482         parents after compiling the instance body.
20484 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
20485             Javier Miranda  <miranda@adacore.com>
20487         PR ada/15608
20488         * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
20489         of a private type, in which case it is underlying_type that denotes
20490         the proper task. Also modified to use the new entity attribute
20491         that is directly available in the task type and task subtype entities
20492         (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
20493         arrays when other dimensions than the first are constrained by
20494         discriminants of an enclosing record.
20495         (Insert_Explicit_Dereference): If the prefix is an indexed component or
20496         a combination of indexed and selected components, find ultimate entity
20497         and generate the appropriate reference for it, to suppress spurious
20498         warnings.
20499         (Note_Possible_Modification): If an entity name has no entity, return.
20500         (Is_Variable): A function call never denotes a variable.
20501         (Requires_Transient_Scope): For record types, recurse only on
20502         components, not on internal subtypes that may have been generated for
20503         constrained components.
20505 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
20507         * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
20508         Eliminated as candidates for resolution. Both efficient, and avoids
20509         anomalies with operators declared in deleted code.
20510         (Process_Implicit_Dereference_Prefix): Use this procedure whenever
20511         expansion is disabled (as when compiling a generic) to prevent spurious
20512         warnings on prefixes of selected components.
20514 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
20516         * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
20517         attached to a list before checking whether it appears in the private
20518         declarations of the current package.
20519         (Make_Inequality_Operator): Insert declaration in proper declarative
20520         list rather than just setting the Parent field, so that
20521         Is_Private_Declaration can handle it properly.
20523 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
20525         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
20526         a renaming a body, check that the renamed subprogram in not intrinsic.
20527         (Find_Direct_Name): If several use_visible entities hide
20528         each other, and the context is a predefined file compiled through
20529         rtsfind, keep only the entity that comes from a predefined file.
20531 2005-03-15  Geert Bosch  <bosch@adacore.com>
20533         * s-fatgen.adb (Valid): Extend special exceptions to account for long
20534         long float padding to also cover AMD64 and IA64.
20536 2005-03-15  Gary Dismukes  <dismukes@adacore.com>
20538         * s-imgwch.adb: Add with and use of Interfaces.
20539         (Img_Wide_Character): Change type of Val to Unsigned_16.
20540         (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
20542 2005-03-15  Matthew Gingell  <gingell@adacore.com>
20544         * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
20546 2005-03-15  Robert Dewar  <dewar@adacore.com>
20548         * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
20550         * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
20552         * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
20554 2005-03-15  Robert Dewar  <dewar@adacore.com>
20556         * s-bitops.adb, s-bitops.ads,
20557         s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
20558         s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
20559         tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
20560         s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
20561         s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
20562         s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
20563         s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
20564         s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
20565         reformatting.
20567 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
20569         * utils2.c (build_binary_op): Fix typo.
20571 2005-03-15  Doug Rupp  <rupp@adacore.com>
20573         * s-crtl.ads (popen,pclose): New imports.
20575 2005-03-15  Cyrille Comar  <comar@adacore.com>
20577         * comperr.adb (Compiler_Abort): remove references to obsolete
20578         procedures in the bug boxes for various GNAT builds.
20580 2005-03-15  Vincent Celier  <celier@adacore.com>
20582         * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
20584 2005-03-15  Geert Bosch  <bosch@adacore.com>
20585             Arnaud Charlet  <charlet@adacore.com>
20586             Robert Dewar  <dewar@adacore.com>
20587             Cyrille Comar  <comar@adacore.com>
20588             Sergey Rybin  <rybin@adacore.com>
20590         * gnat_ugn.texi: Remove extended inline assembly example, as it was far
20591         too specific and long-winded to be appropriate for the GNAT User's
20592         Guide.
20593         Warn about use of GCC switches not documented in the GNAT User's Guide,
20594         as these may cause generated code to not conform to Ada semantics.
20595         Remove mention of -gdwarf-2 for sparc64, since this is now the default.
20596         Add documentation for -gnat95 and -gnat05 switches
20597         Remove paragraph documenting obsolete way to refer to third party
20598         libraries.
20599         Add a few references to Ada_05 that were missing.
20600         Update documentation on -gnatZ/-gnatL.
20601         Document limitation when using -m64 under Solaris.
20602         Change the "Name Casing" subsection of the pretty-printer section
20603         according to the changes in the dictionary processing.
20605         * gnat_rm.texi: Document the Ada_05 pragma.
20606         Section on record representation clauses describes the new more
20607         relaxed rules about placement of large packed bit array components.
20608         Add documentation of GNAT.UTF_32
20610 2005-03-12  Daniel Berlin <dberlin@dberlin.org>
20612         * misc.c (gnat_post_options): Turn off structural
20613         aliasing for now.
20615 2005-03-08  Laurent Guerby <laurent@guerby.net>
20617         * system-linux-sparc.ads: Fix typo in previous commit.
20619 2005-03-07  James A. Morrison <phython@gcc.gnu.org>
20620             Laurent Guerby <laurent@guerby.net>
20622         PR ada/20035
20623         * system-linux-sparc.ads: New.
20624         * Makefile.in: Add sparc linux entry.
20626 2005-02-27  Danny Smith  <dannysmith@users.sourceforge.net>
20628         * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
20629         parameters as unused.
20631 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
20632         Partial merge from libada-gnattools-branch:
20634         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
20635         * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
20636         into code in gnattools/Makefile.in.  Remove direct dependencies on
20637         stamp-tools by tools clauses.
20638         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
20639         * config-lang.in: Add gnattools to $lang_dirs.
20641 2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>
20643         PR ada/19942
20644         * utils.c (gnat_type_for_mode): Return null instead of ICE because
20645         we asked for an unknown mode.
20647 2005-02-12  Richard Henderson  <rth@redhat.com>
20649         * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
20650         validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
20652 2005-02-10  Andreas Jaeger  <aj@suse.de>
20654         * init.c (__gnat_initialize): Mark parameter as unused.
20656 2005-02-09  Doug Rupp  <rupp@adacore.com>
20658         * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
20659         * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
20661 2005-02-09  Doug Rupp  <rupp@adacore.com>
20663         * gnatchop.adb (dup, dup2),
20664         g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
20666         * gnatlbr.adb (mkdir),
20667         mlib-tgt-vms-ia64.adb (popen, plose):  Import with decc$ prefix.
20669         * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
20671 2005-02-09  Doug Rupp  <rupp@adacore.com>
20673         * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
20675 2005-02-09  Robert Dewar  <dewar@adacore.com>
20676             Thomas Quinot  <quinot@adacore.com>
20677             Javier Miranda  <miranda@adacore.com>
20678             Pascal Obry  <obry@adacore.com>
20679             Ed Schonberg  <schonberg@adacore.com>
20680             Doug Rupp  <rupp@adacore.com>
20681             Gary Dismukes  <dismukes@adacore.com>
20682             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20684         * g-zstspl.ads: New file.
20686         * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
20688         * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
20689         Ada 95 mode
20690         Add definition of Wide_Wide_Space for AI-285
20692         * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
20693         interface (to support Ada 95 and Ada 2005 units).
20694         Add Unbounded_IO files
20695         Add entries for Wide_Wide packages for AI-285
20696         Add list of containers packages to Ada 2005 unit list
20698         * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
20699         support new Unbounded_IO package cleanly.
20701         * g-utf_32.ads, g-utf_32.adb: New files.
20703         * Makefile.rtl: Add entry for g-utf_32
20704         Add new files for Unbounded_IO
20705         Adjust make file for new AI-285 wide wide packages
20706         Add AI-302 containers to the run time.
20708         * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
20709         a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
20710         subprograms for AI-301.
20712         * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
20714         * a-stunau.ads: Minor comment correction
20716         * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
20717         etc.
20718         Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
20719         (Check_RPC): Update to match changes in expanded code.
20720         Clean up unused entity.
20722         * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
20723         was not taken into account.
20724         This includes proper initialization with Normalize_Scalars.
20725         (Get_Simple_Init_Val): Major rewrite for initialize scalars and
20726         normalize scalars cases (particularly the latter) to do a better job
20727         of finding invalid representations.
20729         * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
20731         * s-strops.ads, s-strops.adb: Remove string normalize routines, never
20732         used
20734         * exp_dist.adb: Add support for wide wide character type
20735         (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
20736         private part, generate stub bodies at the end of the private part,
20737         not the visible part.
20738         (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
20739         PolyORB support.
20740         (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
20741         generic wrapper to execute final processing after completing the
20742         expansion of the RPC receiver for an RACW.
20744         * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
20745         packages and attributes.
20746         (Preset_Names): Addition of the new reserved words of Ada 2005,
20747         that is interface, overriding and synchronized.
20748         (Get_Pragma_Id): Give support to the use of the new reserved word
20749         "interface" as a pragma name.
20750         (Is_Pragma_Name): Give support to the use of the new reserved word
20751         "interface" as a pragma name.
20752         (Preset_Names): Add stream_size string for the Stream_Size Ada2005
20753         attribute implementation.
20755         * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
20756         checks to entities that are output parameters of Asm operations.
20757         Handle the Stream_Size attribute.
20758         Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
20760         * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
20762         * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
20763         for second parameter being 0.0.
20764         Add support for wide wide character type.
20765         (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
20767         * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
20768         s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
20769         s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
20770         s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
20771         for wide wide character cases.
20773         * cstand.adb: Create entities for Wide_Wide_Character and
20774         Wide_Wide_String.
20776         * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
20777         accordance with AI-258.
20778         Add new declarations for 16/32 bit C character types (Part of AI285)
20780         * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
20781         (Obsolescent_Warning): New field
20782         (Rep_Clause): New local subprogram used to share code. Returns the rep
20783         clause for which the name is given in parameter.
20784         (Has_Stream_Size_Clause): New routine.
20785         (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
20786         (Address_Clause): Implementation is now using Rep_Clause.
20787         (Alignment_Clause): Idem.
20788         (Size_Clause): Idem.
20790         * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
20791         entity in non-Ada 2005 mode and generate warning.
20793         * par-prag.adb: Add handling of one argument form for pragma Ada_05.
20794         (Prag): Code cleanup. Remove old gnat pragma "overriding"
20796         * sem_prag.adb: Add handling of one argument form for pragma Ada_05
20797         (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
20798         on the named unit if the pragma is not in the current compilation unit,
20799         so that elaboration calls in the current unit can set up an elaboration
20800         dependency on the named unit, as needed.
20801         (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
20802         subprogram as well as for subprograms declared within a package.
20803         (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
20804         pragma overriding.
20806         * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
20807         to z) to avoid some instances of duplication for Wide_Wide packages.
20809         * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
20810         characters.
20812         * scn.adb: Char_Literal_Value field is now a Uint
20814         * scng.adb: Significant rewrite to handle new Ada 2005 features
20815         allowing wide and wide wide characters in program text, e.g. for
20816         identifiers, as described in AI-285.
20817         (Set_Reserved): New procedure, makes setting up keywords cleaner.
20818         (Initialize_Scanner): Register the new reserved words of Ada 2005.
20819         (Scan): Give support to the new reserved words.
20821         * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
20822         warning notifying that interface, overriding, and synchronized are
20823         new reserved words.
20824         (P_Pragma): Allow the use of the new reserved word "interface" as
20825         a pragma name.
20827         * gnatls.adb, gnatbind.adb,
20828         ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
20829         identifiers named "interface" to "SAL_Interface".
20831         * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
20832         (Structured Exception handling).
20833         (Gen_Main_C): Idem.
20835         * bindgen.adb:
20836         (Gen_Main_Ada): Set the default exit code if specified.
20837         (Gen_Main_C): Likewise.
20838         Part of *DC20-006.
20839         (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
20840         Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
20842         * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
20843         new -Xnnn switch.
20845         * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
20846         has a collision with the new Ada 2005 "interface" reserved word.
20848         * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
20849         generate a warning notifying that interface, overriding, and
20850         synchronized are new reserved words.
20852         * scans.ads (Token_Type): Addition of the tokens corresponding to the
20853         new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
20854         and Tok_Synchronized.
20856         * sem_res.adb (Resolve_Actuals): Change error messages to refer to
20857         "dispatching" rather than "primitive" operations, since dispatching
20858         calls are now allowed to abstract formal subprograms (which are not
20859         primitive).
20860         Char_Literal_Value field is now a Uint
20861         (Resolve_Slice): If the prefix is an access to an unconstrained array,
20862         compute the actual subtype of the designated object to impose the proper
20863         index constraints.
20864         (Resolve_Selected_Component): Do not insert an access check if the
20865         prefix is an access type: such a node is expanded into an explicit
20866         dereference, on which the access check is performed anyway. Removes
20867         expensive duplicate checks.
20868         (Resolve_Call): Use new flag Is_Obsolescent and field
20869         Obsolescent_Warning so that pragma Obsolescent works on library
20870         subprograms.
20871         Add support for wide wide character type
20872         (Resolve_Allocator): Replace the error message on wrong null-exclusion
20873         value by a warning message.
20874         (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
20875         as fixed-point, and one of the operands is non-static and universal, it
20876         can only be an illegal exponentiation operation, in which case there is
20877         no real value to retrieve.
20879         * exp_strm.adb: Add support for wide wide character type
20880         (Build_Elementary_Input_Call): Compute the size of the stream element by
20881         querying the rep chain to find the Stream_Attribute attribute value.
20882         (Build_Elementary_Write_Call): Ditto.
20884         * sem_aggr.adb: Char_Literal_Value field is now a Uint
20885         Add support for wide wide character type
20886         Replace the error messages on wrong null-exclusion value by warnings
20887         as described in Ada 2005.
20888         (Resolve_Extension_Aggregate): Document the fact that the error
20889         message on class-wide expressions in extensions aggregates.
20891         * sem_case.adb: Add support for wide wide character type
20893         * sem_ch13.adb: Add support for wide wide character type
20894         (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
20896         * sem_ch3.adb: Add support for wide wide character type
20897         (Process_Subtype): If constraint is illegal for the type, set Ekind of
20898         now-useless Itype, to prevent cascaded errors on a compiler built
20899         without -gnatp.
20901         * sem_ch8.adb: Add with and use of Sem_Disp.
20902         (Analyze_Subprogram_Renaming): Replace unclean uses of
20903         Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
20904         of Corresponding_Spec to Empty).
20905         (Attribute_Renaming): Replace use of Corresponding_Spec with
20906         Corresponding_ Formal_Spec and simplify condition.
20907         (Use_One_Package): Check that scope of homonym of identifier is defined,
20908         before checking whether it is a wrapper package.
20909         Add support for wide wide character type
20911         * sem_eval.adb: Add support for wide wide character type.
20912         (Eval_Arithmetic_Op): Check for compile time known signed integer
20913         overflow in the non-static case.
20914         (Subtypes_Statically_Match): A formal scalar type and its base type do
20915         not statically match.
20917         * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
20918         "not in" for test of N_Formal_Subprogram_Declaration (which is now a
20919         subtype).
20920         (Unit_Declaration_Node): Ditto.
20921         (Is_Variable_Prefix):  For the case of an indexed component whose prefix
20922         has a packed array type, the prefix has been rewritten into a type
20923         conversion. Determine variable-ness from the converted expression.
20924         Handle wide wide character cases.
20926         * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
20928         * stringt.ads, stringt.adb: Handle full UTF-32 range.
20929         Remove ["0A"] from comment, since it can look like a line terminator.
20930         Currently we don't permit this, but this is under discussion by the
20931         ARG, and it is easy enough to use a different example.
20933         * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
20934         handling UTF-32 encoding for wide wide character.
20935         Implement new brackets coding ["hhhhhhhh"]
20936         Add UTF-8 encodings for full UTF-32 range
20938         * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
20940         * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
20941         bit range Add full UTF-32 support.
20942         (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
20943         notify that constraint error will be raised at run-time
20944         because a null value is assigned to a null-excluding object.
20945         Remove some obsolete declarations and make Char_Code
20946         unsigned.
20948         * a-except.adb (Rcheck_30): New subprogram. Addition of the message
20949         corresponding to CE_Null_Not_Allowed, and adjust the output of all the
20950         Rcheck subprograms.
20952         * checks.adb (Check_Null_Not_Allowed): Replace the error message on
20953         wrong null-exclusion value by a warning message.
20954         (Enable_Range_Check): Do range check if the prefix is an
20955         explicit dereference whose designated object is an unconstrained array.
20956         Current algorithm for removing duplicate checks is over-eager in this
20957         case.
20959         * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
20960         null-exclusion value by a warning message
20962         * atree.h, atree.ads, atree.adb: Remove Char_Code field support
20963         completely. Add support for Uint2 field
20965         sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
20966         exp_prag.adb: Char_Literal_Value field is now a Uint.
20968         * exp_util.adb (Insert_Actions): Replace
20969         N_Formal_Subprogram_Declaration by
20970         N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
20971         Char_Literal_Value field is now a Uint.
20973         * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
20974         defined for subprogram renaming declarations. When set, the field
20975         indicates the defining entity of a corresponding formal subprogram
20976         when the renaming corresponds to a formal subprogram association in an
20977         instantiation.
20978         (Set_Corresponding_Formal_Spec): New procedure to return
20979         Corresponding_Formal_Spec field.
20980         Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
20981         (which is now a subtype).
20982         Char_Literal_Value field is now a Uint
20984         * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
20985         pointer to the base of the dispatch table.
20986         Minor changes to comments.
20987         (Controlling_Type): New function for determining the tagged type
20988         associated with a tagged primitive subprogram.
20989         (Expand_Dispatching_Call): Add support for a controlling actual that is
20990         directly a value of type Ada.Tag rather than a tagged object.
20992         * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
20993         describing the new layout.
20994         (Dispatch_Table): The expander computes the actual array size, allocates
20995         the Dispatch_Table record accordingly, and generates code that displaces
20996         the base of the record after the Typeinfo_Ptr component. The access to
20997         these components is done by means of local functions.
20998         (Offset_To_Top): New function.
20999         (Typeinfo_Ptr): New function.
21000         (Get_TSD): Modified to access the new position of the TSD.
21001         (Set_TSD): Modified to save the TSD in its new position.
21003         * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
21004         case of formal abstract subprograms. Add check and message for -gnat05.
21005         Update comments.
21007         * sem_ch12.adb: Add with and use for Sem_Disp.
21008         (Analyze_Associations): Minor change from "=" to "in" for use of
21009         N_Formal_Subtype_Declaration (which is now a subtype).
21010         (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
21011         N_Formal_Subtype_Declaration (which is now a subtype).
21012         (Analyze_Formal_Subprogram): Add handling for
21013         N_Formal_Abstract_Subprogram, marking the formal as abstract and
21014         dispatching, setting the controlling status of the formal parameters
21015         and result, and issuing an error if there is no controlling type for
21016         the formal subprogram.
21017         (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
21018         which is an unclean use of that field, we set the new field
21019         Corresponding_Formal_Spec to make the formal subprogram available to
21020         processing in Analyze_Subprogram_Declaration.
21021         (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
21022         Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
21023         Constrained, so that it is is does not statically match its anonymous
21024         base type.
21026         * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
21027         abstract formal subprograms in error check for functions returning
21028         abstract types. Set scope of new designator for
21029         a parameterless subprogram, so that it is available when checking the
21030         body for nested subprograms, before full analysis of said body.
21031         (Analyze_Subprogram_Body): Warn on inlining bodies with nested
21032         subprogram only if inner one comes from source.
21033         (Analyze_Function_Call): If the call is given in object notation, the
21034         analysis of the name rewrites the node and analyzes it with the proper
21035         argument list. After analyzing the name, if the call has been rewritten
21036         and the result type is set, no further analysis is needed.
21037         (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
21038         mark in function specification, in a context where the formals are
21039         visible and hide outer homographs.
21041         * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
21042         as the tagged type for the cases of abstract formal subprograms and
21043         renamings of those.  Clean up spec comments.
21044         (Check_Dispatching_Context): Add error message to indicate "abstract
21045         procedure", covering the case of a call to a formal abstract procedure
21046         that has statically tagged operands.
21047         (Check_Dispatching_Call): Check for the case of an actual given by
21048         a tag-indeterminate function call whose type is an ancestor of the
21049         containing call's associated tagged type. This situation can occur
21050         for inherited primitives with function defaults. In this case we
21051         use the tagged type's tag directly as the controlling argument for
21052         the calls.
21053         (Expand_Call): Name change on call to Expand_Dispatch_Call.
21055         * sprint.adb (Sprint_Node_Actual): Split
21056         N_Formal_Subprogram_Declaration into two alternatives for the new
21057         cases N_Formal_Abstract_Subprogram_Declaration and
21058         N_Formal_Concrete_Subprogram_Declaration.
21059         Char_Literal_Value field is now a Uint.
21061         * trans.c: Get rid of junk Uint2 reference.
21062         Char_Literal_Value field is now a Uint.
21063         (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
21064         (gigi): Correct third arg to gimplify_body.
21066         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
21067         (TYPE_LANG_FLAG_0): Check for record or union.
21069         * treepr.adb: Char_Literal_Value field is now a Uint
21071         * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
21072         UI_From_CC.
21074         * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
21075         Add full UTF-32 support
21076         Char_Code is now 32 bits
21078         * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
21079         wide character UTF_32 line terminators.
21080         Initialize Main_Source_File to avoid error when no main
21081         source is loaded.
21083         * errout.adb (Finalize): Do not check Num_SRef_Pragmas
21084         (Main_Source_File) when no main source has been loaded, to avoid
21085         potential crash.
21087 2005-02-09  Robert Dewar  <dewar@adacore.com>
21089         * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
21090         Fix name of Set routine
21092         * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
21093         fixed packages.
21095         * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
21096         a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
21097         fixed packages
21099         * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
21100         forms of Get_Line subprograms for AI-301.
21102         * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
21103         a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
21104         a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
21105         a-stwima.ads: Minor reformatting.
21107 2005-02-09  Doug Rupp  <rupp@adacore.com>
21108             Thomas Quinot  <quinot@adacore.com>
21110         * adaint.c, adaint.h
21111         [VMS] (to_ptr32): New function.
21112         (MAYBE_TO_PTR32): New macro.
21113         (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
21114         for pointer size.
21115         [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
21116         [VMS] (#define fork()): Remove since unneccessary.
21117         (__gnat_set_close_on_exec): New routine to support
21118         GNAT.OS_Lib.Set_Close_On_Exec.
21120         * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
21121         the parent side as close-on-exec so that they are not inherited by the
21122         child.
21124         * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
21125         set or clear the FD_CLOEXEC flag on a file descriptor.
21127 2005-02-09  Eric Botcazou  <ebotcazou@adacore.com>
21128             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21130         PR ada/19386
21131         * decl.c:
21132         (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
21133         on the field if Pragma Component_Alignment (Storage_Unit).
21134         (gnat_to_gnu_entity, case object): Do not treat a renaming that has
21135         side-effects as if it were a constant; also make SAVE_EXPR to protect
21136         side-effects.
21137         (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
21138         UNION_TYPE.
21139         (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
21140         (components_to_record): Test it.
21141         Fix improper usage of REFERENCE_CLASS_P.
21143         * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
21144         RECORD_TYPE.
21146         * utils2.c: Minor reformatting.
21148         * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
21149         handle other cases like RECORD_TYPE.
21151         * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
21153 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
21155         * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
21156         component of an array of arrays in an assignment context, and the
21157         aggregate has component associations that require sliding on
21158         assignment, force reanalysis of the aggregate to generate a temporary
21159         before the assignment.
21160         (Must_Slide): Make global to the package, for use in Gen_Assign.
21162 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
21164         * exp_ch4.adb (Expand_Composite_Equality): If a component is an
21165         unchecked union with no inferable discriminants, return a
21166         Raise_Program_Error node, rather than inserting it at the point the
21167         type is frozen.
21168         (Expand_Record_Equality, Component_Equality): Handle properly the case
21169         where some subcomponent is an unchecked union whose generated equality
21170         code raises program error.
21172 2005-02-09  Doug Rupp  <rupp@adacore.com>
21174         * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
21175         [VMS] (#define exit hack): Remove.
21177 2005-02-09  Pascal Obry  <obry@adacore.com>
21178             Arnaud Charlet <charlet@adacore.com>
21180         * init.c (__gnat_initialize): Add a new parameter eh which contains the
21181         address of the exception registration. The Win32 version of this
21182         routine calls __gnat_install_SEH_handler() to initialize the SEH
21183         (Structured Exception Handling) handler.
21184         (__gnat_error_handler) [Win32]: Removed. Not needed as we use
21185         SEH (Structured Exception Handling) now.
21186         (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
21187         (__gnat_initialize for ppc-vxworks): Adjust comments and the
21188         preprocessor condition protecting the call to the extra eh setup
21189         subprogram, which is only available for the ppc target.
21190         (__gnat_clear_exception_count): replaced reference to
21191         variable taskIdCurrent by call to taskIdSelf(), cleaner.
21193         * seh_init.c: New file.
21195         * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
21196         (GNATBIND_OBJS): Idem.
21198         * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
21199         routine takes a new parameter (a pointer to the exception registration
21200         for the SEH (Structured Exception Handling) support.
21202         * raise.h: (__gnat_install_SEH_handler): New prototype.
21203         Update copyright notice.
21205         * s-tassta.adb (Task_Wrapper): Declare the exception registration
21206         record and initialize it by calling __gnat_install_SEH_handler.
21208 2005-02-09  Vincent Celier  <celier@adacore.com>
21210         * make.adb (Gnatmake): Do not fail when the main project has no object
21211         directory.
21213 2005-02-09  Doug Rupp  <rupp@adacore.com>
21215         * Makefile.in [VMS] (LN,LN_S): Define as cp -p
21216         Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
21217         [VMS]: Add translations for g-enblsp.adb.
21219         * s-asthan-vms.adb: Removed.
21220         * s-asthan-vms-alpha.adb: Added.
21222 2005-02-09  Pascal Obry  <obry@adacore.com>
21224         * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
21225         (LIBGNAT_OBJS): Add seh_init.o.
21227 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
21229         PR ada/16592
21230         * Makefile.in: Link all gnat tools with -static-libgcc, since
21231         -shared-libgcc is now used by default on some systems (e.g. linux with
21232         recent binutils).
21233         Remove references to Makefile.prolog/generic, no longer used.
21235 2005-02-09  Vincent Celier  <celier@adacore.com>
21237         * prj-makr.adb (Process_Directory): Put file name in canonical case
21238         before matching against the patterns.
21239         If gnatname has been invoked as <prefix>-gnatname
21240         then invoke the compiler as <prefix>-gcc, not just "gcc".
21242 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
21244         * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
21245         with expansion disabled. The actual subtype is needed among other
21246         places when the selected component appears in the context of a loop
21247         bound, and denotes a packed array.
21248         (Operator_Check): Always use the first subtype in the
21249         error message, to avoid the appearance of internal base types.
21250         (Transform_Object_Operation): Copy each actual in full
21251         to the parameter associations of the constructed call, rather than
21252         using the shallow copy mechanism of New_Copy_List. This ensures that
21253         the chaining of named associations is done properly.
21254         (Complete_Object_Operation): Rewrite node, rather than
21255         replacing it, so that we can trace back to the original selected
21256         component.
21258         * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
21259         and calls that use object notation, if the called function is not
21260         declared  in a withed unit, place the elaboration constraint on the
21261         unit in the context that makes the function accessible.
21262         (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
21263         imposes an elaboration constraint between two packages.
21265 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
21267         * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
21268         views of a private type after handling its private dependents, to
21269         maintain proper stack discipline between entry and exit from the
21270         package.
21272 2005-02-09  Cyrille Comar  <comar@adacore.com>
21274         * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
21275         Minor reformatting.
21277 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
21279         * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
21280         fields for foreign threads.
21282 2005-02-09  Doug Rupp  <rupp@adacore.com>
21284         * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
21285         recursion warnings when compiled with -gnatdm.
21287 2005-02-09  Robert Dewar  <dewar@adacore.com>
21289         * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
21290         Slight fix to documentation of -gnaty with no parameters
21292         * xr_tabls.ads: Add ??? comment for missing overall comment
21294         * xsinfo.adb: Make default file name be sinfo.h, since this is what
21295         we now use by default.
21297         * xsnames.adb: Adjust end of file test to look for five space followed
21298         by '#' instead of six spaces. The format of xsnames.adb was modified
21299         in the last update.
21301         * a-numeri.ads: Add reference to AI-388 for greek letter pi
21302         identifier.
21304         * clean.adb: Minor reformatting.
21306         * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
21307         gnatname.adb: Minor reformatting
21308         Add 2005 to copyright output when utility is run
21310         * csets.adb: Eliminate obsolete comment
21312         * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
21313         Update comments.
21315         * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
21317 2005-02-09  Sergey Rybin  <rybin@adacore.com>
21319         * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
21320         the difference between compact and incompact layout and add the record
21321         representation clause to the example illustrating different layouts.
21322         Add the description of '-A5' gnatpp option ("align 'AT' keywords in
21323         component clauses").
21325 2005-02-09  Florian Villoing  <villoing@adacore.com>
21327         * gnat_ugn.texi: Fix typos.
21328         Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
21329         @file.
21330         Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
21331         in the generated documentation.
21333 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
21335         * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
21336         longer supported.
21337         Update linker wrapper when linking with non GNU C++.
21339 2005-02-09  Pascal Obry  <obry@adacore.com>
21341         * gnat_ugn.texi:
21342         Document the procedure to debug the DllMain routine on Windows.
21343         Add note about -funwind-tables and mixed Ada and C/C++ programming in
21344         ZCX mode.
21345         Document new BIND qualifer /RETURN_CODES=VMS.
21347 2005-02-09  Ben Brosgol  <brosgol@adacore.com>
21349         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
21350         Edited gnatmetric chapter
21352 2005-02-09  Robert Dewar  <dewar@adacore.com>
21354         * gnat_rm.texi:
21355         Changes to document new wide wide character support
21356         For AI-285
21357         Update documentation on Normalize_Scalars and Initialize_Scalars
21359 2005-02-09  Pascal Obry  <obry@adacore.com>
21361         * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
21363 2005-02-09  Jose Ruiz  <ruiz@adacore.com>
21365         * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
21366         from the VxWorks kernel) that is needed for getting the active
21367         priority of the different tasks.
21369         * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
21370         Use a pragma Elaborate_Body in the spec file instead.
21371         Noticed by code reading.
21373 2005-02-09  Thomas Quinot  <quinot@adacore.com>
21375         * exp_util.ads: Minor correction in comment.
21377 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
21379         * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
21380         since this procedure is now too complex to be worth inlining.
21382 2005-02-09  Richard Henderson  <rth@redhat.com>
21384         * utils.c (gnat_define_builtin): Remove.
21385         (gnat_install_builtins): Use build_common_builtin_nodes.
21387 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
21389         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
21390         a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
21391         a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
21392         a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
21393         a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
21394         a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
21395         a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
21396         a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
21397         a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
21398         a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
21399         a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
21400         a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
21401         a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
21402         a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
21403         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
21404         a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
21405         a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
21406         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
21407         a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
21408         a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
21409         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
21410         a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
21411         a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
21412         a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
21413         a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
21414         a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
21415         a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
21416         a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
21417         a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
21418         a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
21419         a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
21420         a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
21421         a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
21422         a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
21423         library.
21425 2005-01-27  Laurent GUERBY <laurent@guerby.net>
21427         * Makefile.in: Fix a-intnam.ads from previous commit,
21428         add 2005 to copyright.
21429         * a-intman-rtems.ads: Renamed to...
21430         * a-intnam-rtems.ads:
21432 2005-01-27  Laurent GUERBY <laurent@guerby.net>
21434         * Makefile.in: Rename GNAT RTEMS specific files.
21435         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
21436         5rosinte.ads, 5rparame.adb: Replaced by files below.
21437         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
21438         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
21440 2005-01-27  Joel Sherrill <joel.sherrill@oarcorp.com>
21441             Laurent GUERBY <laurent@guerby.net>
21443         PR ada/19488
21444         * 5rosinte.ads: Add No_Key constant.
21445         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
21446         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
21448 2005-01-26  Laurent GUERBY <laurent@guerby.net>
21450         PR ada/19414
21451         * i-cobol.adb (Valid_Numeric): Handle zero length case.
21453 2005-01-20  Richard Henderson  <rth@redhat.com>
21455         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
21456         a-intnam-linux.ads and system-linux-alpha.ads.
21457         * a-intnam-linux-alpha.ads: Remove file.
21458         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
21459         * system-linux-alpha.ads: New file.
21461 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
21463         PR ada/13470
21464         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
21465         set to the new string.
21467 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
21469         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
21470         to True.
21472 2005-01-18  Richard Henderson  <rth@redhat.com>
21474         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
21475         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
21476         for alpha-linux.
21477         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
21479 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
21481         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
21482         (GCC_ZCX_Support): Likewise.
21484 2005-01-11  Bastian Blank  <waldi@debian.org>
21486         * system-linux-s390.ads: Define Preallocated_Stacks.
21487         * system-linux-s390x.ads: Likewise.
21489 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
21491         * gnat_ugn.texi: Fix texi errors with null variables.
21493 2005-01-03  Thomas Quinot  <quinot@adacore.com>
21495         * gen-soccon.c: New utility program to generate g-soccon.ads
21496         automatically.
21498         * socket.c, gsocket.h: Split inclusion of system header files into a
21499         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
21501         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
21502         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
21503         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
21504         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
21505         should not be edited by hand anymore, but should be regenerated using
21506         gen-soccon.
21508 2005-01-03  Robert Dewar  <dewar@adacore.com>
21509             Ed Schonberg  <schonberg@adacore.com>
21510             Vincent Celier  <celier@adacore.com>
21512         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
21513         on/off, since this is an obsolescent feature, for which we now generate
21514         a warning.
21516         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
21517         warning mode is set and obsolescent usage of this attribute occurs.
21518         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
21519         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
21520         predates, and partly motivates, the adoption of the AI.
21521         Implement new Ada 2005 attribute Mod
21523         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
21524         attribute Mod.
21526         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
21528         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
21529         pragma restrictions.
21530         New entry for Ada 2005 attribute Mod.
21532         * par-prag.adb:
21533         Add recognition of new pragma Restrictions No_Dependence
21534         Recognize restriction No_Obsolescent_Features at parse time
21536         * bcheck.adb: Add circuitry for checking for consistency of
21537         No_Dependence restrictions.
21539         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
21540         restrictions.
21542         * restrict.ads, restrict.adb: Add subprograms to deal with
21543         No_Dependence restrictions.
21545         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
21546         restrictions.
21548         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
21549         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
21551         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
21552         dummy parameter to scng instantiation.
21553         Needed for new restriction No_Obsolescent_Features
21555         * scn.adb: (Obsolescent_Check): New procedure
21556         Needed for new restriction No_Obsolescent_Features
21558         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
21559         specified by AI-285, needed for implementation of AI-388 (adding greek
21560         pi to Ada.Numerics).
21561         Add new generic formal to scng, needed for new restriction
21562         No_Obsolescent_Features.
21564         * s-rident.ads: Add new restriction No_Obsolescent_Features.
21566         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
21567         restrictions lines.
21568         (Scan_ALI): When finding an unexpected character on an R line, raise
21569         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
21570         Ignore_Errors is True, default restrictions are set and scanning of the
21571         ALI file continues with the next line. Also, when Bad_R_Line is raised
21572         and Ignore_Errors is True, skip to the end of le line.
21574         * sem_ch10.adb: Check that explicit with's do not violate
21575         No_Dependence restrictions.
21576         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
21577         illegal context clauses containing child units of instance.
21579         * sem_prag.adb: Processing and checking for new No_Dependence
21580         restrictions.
21581         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
21582         analyze and check the External argument.
21584         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
21586 2005-01-03  Robert Dewar  <dewar@adacore.com>
21588         * atree.adb: Add a fifth component to entities
21589         This allows us to add 32 flags and four new fields
21591         * atree.ads: Add a fifth component to entities
21592         This allows us to add 32 flags and four new fields
21594         * einfo.ads, einfo.adb: Document new fields and new flags now available
21595         Add routines for printing new fields
21597         * treepr.adb: Call routines to print out additional fields if present
21599 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
21601         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
21602         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
21604         * Makefile.in: Add support to build shared Ada libraries on solaris x86
21605         Remove gpr2make, replaced by gprmake.
21606         Remove references to gnatmem and libaddr2line.
21607         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
21608         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
21609         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
21610         a-numaux-darwin.ads and a-numaux-darwin.adb
21611         Enable mlib-tgt-lynxos.adb on lynxos.
21613         * Make-lang.in: Remove rules for gpr2make.
21614         When generating sdefault.adb, do not call Relocate_Path
21615         on S3 for function Target_Name, as it is not a path.
21616         Remove references to gnatmem and libaddr2line.
21618         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
21619         files.
21621 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
21623         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
21624         address is incompatible with its base type alignment constraints when
21625         this can be decided statically.
21627 2005-01-03  Olivier Hainque  <hainque@adacore.com>
21629         * decl.c (compatible_signatures_p): New function. The intended purpose
21630         is to check if two function signatures for a call-site and a callee are
21631         compatible enough for the call to be valid. The underlying purpose is
21632         to check if a call to a mapped builtin is using the right interface.
21633         The current code actually does not check antyhing - this a placeholder
21634         for future refinements.
21635         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
21636         builtin calls for convention Intrinsic.
21638         * gigi.h (builtin_decl_for): Declare (new function).
21640         * utils.c (gnat_install_builtins): Install the target specific builtins.
21641         (builtin_decl_for): New function, provide a dummy body for now.
21643 2005-01-03  Geert Bosch  <bosch@adacore.com>
21645         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
21646         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
21647         (Pred): Implement in terms of Succ.
21649         * trans.c (convert_with_check): Reimplement conversion of float to
21650         integer.
21652 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
21653             Vincent Celier  <celier@adacore.com>
21655         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
21656         bounds can be negative, and must be declared Int, not Nat.
21658         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
21659         array is checked after using the index in the array.
21661         * makegpr.adb (Add_Switches): Check if there is a package for the
21662         processor. If there is no package, do not look for switches.
21664 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
21666         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
21667         generation of predefined stream operations (specs and bodies) should
21668         proceed. Under various restrictions these subprograms must not be
21669         generated.
21671 2005-01-03  Thomas Quinot  <quinot@adacore.com>
21673         * exp_dist.adb:
21674         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
21675         amount of PCS-specific code in RACW stubs generation.
21676         (Copy_Specification): Set Etype on copied formal parameter entities, as
21677         this information is needed for PolyORB stubs generation.
21678         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
21679         variable Dynamic_Async.
21680         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
21681         (Build_RPC_Receiver_Specification): Make generic again, as recent
21682         changes have allowed RPC receivers to have the same profile for both
21683         variants of the PCS.
21684         Reorganise RPC receiver generation to reduce differences between the
21685         structure of GARLIC and PolyORB RPC receivers.
21686         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
21687         PCS-specific.
21688         Simplify elaboration code for RCI packages.
21690         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
21691         generation to reduce differences between the structure of GARLIC and
21692         PolyORB RPC receivers.
21694         * s-stratt.adb: Fix typo in comment.
21696 2005-01-03  Thomas Quinot  <quinot@adacore.com>
21698         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
21699         copied from Make_Init_Call).
21701         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
21702         reads and assignments on a temporary variable declared with appropriate
21703         discriminants.
21705 2005-01-03  Robert Dewar  <dewar@adacore.com>
21707         * i-c.adb (To_C): Raise CE if string is null and Append_Null
21709 2005-01-03  Robert Dewar  <dewar@adacore.com>
21711         * i-cstrin.adb (Update): Do not append a null in form called with a
21712         String. This avoids unintended behavior.
21714 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
21716         PR ada/17527
21717         * init.c: Fix warnings on Free BSD section.
21719 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
21721         PR ada/16949
21722         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
21723         xsinfo.adb).
21725 2005-01-03  Vincent Celier  <celier@adacore.com>
21727         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
21728         libraries when Unique_Compile is True (-u switch).
21729         (Gnatmake): ditto.
21731 2005-01-03  Robert Dewar  <dewar@adacore.com>
21733         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
21734         upper case letter or underscore after W, as allowed by spec.
21736 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
21738         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
21739         darwin port by using proper type definitions from header files.
21740         Use SIGTERM instead of SIGABRT for SIGADAABORT.
21742 2005-01-03  Robert Dewar  <dewar@adacore.com>
21744         * par.adb: Enhance error message handling for configuration file
21745         pragmas.
21747 2005-01-03  Robert Dewar  <dewar@adacore.com>
21749         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
21750         removed during the previous update (test properly for case of dividing
21751         largest negative number by -1, which generates overflow).
21753 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
21754             Sergey Rybin  <rybin@adacore.com>
21756         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
21757         to use as the defining identifier for a formal package.
21758         (Remove_Parent): If the instance takes place within (an instance of)
21759         a sibling, preserve private declarations of common parent.
21761 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
21763         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
21764         to determine whether one of the operands is a fixed-point type for
21765         which a user-defined multiplication or division operation might be
21766         defined.
21768         * sem_res.adb (Valid_Conversion): The legality rules for conversions
21769         of access types are symmetric in Ada 2005: either designated type can
21770         be unconstrained.
21772 2005-01-03  Vincent Celier  <celier@adacore.com>
21774         * s-fileio.adb (Temp_File_Record): Change length of string component
21775         Name from L_tmpnam + 1 to max_path_len + 1.
21777 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
21779         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
21780         Self_Id.Deferral_Level = 0.
21781         (Do_Pending_Action): Move this function to the spec.
21783         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
21784         Do_Pending_Action explicitely when needed, in case we're using
21785         No_Abort restrictions.
21787         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
21788         deferral level since it will not get changed by the generated code.
21789         Keeping a default value of 1 would prevent some operations (e.g.
21790         select or delay) to proceed successfully.
21792 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
21793             Robert Dewar  <dewar@adacore.com>
21794             Cyrille Comar  <comar@adacore.com>
21796         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
21797         porting guide chapter (vms version).
21798         Revised doc title (removed "for native platforms") and subtitle.
21799         Add discussion on warning flag for obsolescent features. First we
21800         note that it applies to obsolete GNAT features, which was previously
21801         omitted. Second we contrast the behavior with that of the new
21802         Ada 2005 AI-368 restriction No_Obsolescent_Features.
21803         Preliminary rewriting of GNAT & libraries chapter in order to take
21804         into account default project locations & new project manager
21805         capabilities.
21807 2005-01-03  Robert Dewar  <dewar@adacore.com>
21809         * cstand.adb (Create_Operators): Clean up format and documentation of
21810         unary and binary operator result tables. No change in code, just
21811         reformatting and addition of comments.
21813         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
21814         sem_ch2.adb: Minor reformatting
21816         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
21817         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
21818         comments for Tree_Read and Tree_Write.
21820 2005-01-03  Pascal Obry  <obry@adacore.com>
21822         * exp_attr.ads: Minor reformatting.
21824 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
21826         * comperr.adb (Compiler_Abort): Add specialized message for GAP
21827         versions.
21829 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
21831         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
21832         whether the ancestor type is private, as may be the case with nested
21833         instantiations.
21835 2004-12-30  Sohail Somani <sohail@sohailsomani.com>
21837         PR ada/19128
21838         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
21840 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
21842         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
21843         * utils2.c (build_unary_op): Likewise.
21845 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21847         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
21849 2004-12-19  Richard Henderson  <rth@redhat.com>
21851         * trans.c (gigi): Update gimplify_body call.
21853 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
21855         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
21857 2004-12-07  Ed Falis  <falis@adacore.com>
21859         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
21860         current task being suspended.
21862         * init.c (__gnat_clear_exception): added to reset VxWorks exception
21863         count.
21864         (__gnat_map_signal): removed test for current task being suspended.
21866 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
21868         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
21869         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
21870         targets (such as AAMP).
21872 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
21874         * atree.adb (Visit_Itype): Create a new name for the generated itype,
21875         because the back-end may otherwise treat it as a redefinition of the
21876         old symbol.
21878 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
21880         * back_end.adb (Scan_Back_End_Switches): Accept --param.
21882         * lang-specs.h: Accept --param.
21884 2004-12-07  Vincent Celier  <celier@adacore.com>
21886         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
21887         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
21888         Current_Body_Suffix => Ada_Body_Suffix).
21889         Take into account Externally_Built attribute.
21891         * clean.adb (In_Extension_Chain): Always return False when one of the
21892         parameter is No_Project.
21893         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
21894         Ada_Language_Index).
21895         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
21896         Process_Languages for procedure Parse).
21898         * gnatcmd.adb (Carg_Switches): New table.
21899         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
21900         Adapt to name changes in package Prj (Current_Spec_Suffix =>
21901         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
21903         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
21904         Header_Num and function Hash are now declared in package Prj,
21905         not Prj.Com.
21907         * prj.adb (Suffix_Of): New function.
21908         (Set (Suffix)): New procedure.
21909         (Hash): One function moved from Prj.Com
21910         (Is_Present, Language_Processing_Data_Of): New functions
21911         (Set): Two new procedures
21912         (Add_Language_Name, Display_Language_Name): New procedures
21914         * prj.ads: (Suffix_Of): New function
21915         (Set (Suffix)): New procedure
21916         Add several types and tables for multi-language support.
21917         (Header_Num): Type moved from Prj.Com
21918         (Hash): Two functions moved from Prj.Com
21919         (Is_Present, Language_Processing_Data_Of): New functions
21920         (Set): Two new procedures
21921         (Add_Language_Name, Display_Language_Name): New procedures
21922         (Naming): Component name changes:
21923         Current_Spec_Suffix => Ada_Spec_Suffix,
21924         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
21925         Impl_Suffixes, Supp_Suffixes.
21926         (Project_Data): New components: Externally_Built, Supp_Languages,
21927         First_Language_Processing, Supp_Language_Processing, Default_Linker,
21928         Default_Linker_Path.
21930         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
21931         new package Language_Processing with its attributes (Compiler_Driver,
21932         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
21933         Binder_Driver, Default_Linker).
21935         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
21936         (Header_Num): Type moved to package Prj
21938         * prj-env.adb: Adapt to name changes in package Prj
21939         (Current_Spec_Suffix => Ada_Spec_Suffix,
21940         Current_Body_Suffix => Ada_Body_Suffix).
21942         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
21943         default to the project path, except the "-" is one of the directories
21944         in env var ADA_PROJECT_PATH.
21945         (Current_Project_Path): Global variable, replacing Project_Path
21946         that was in the body of Prj.Part.
21947         (Project_Path): New function
21948         (Set_Project_Path): New procedure
21949         Initialize Current_Project_Path during elaboration of the package
21950         Remove dependency on Prj.Com, no longer needed
21952         * prj-ext.ads (Project_Path): New function
21953         (Set_Project_Path): New procedure
21955         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
21956         suffix is defined for language <lang>.
21957         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
21958         accessing directly the components of Naming.
21959         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
21960         Reorganise of this package.
21961         Break procedure Check in several procedures.
21963         * prj-nmsc.ads: Replace all procedures (Ada_Check,
21964         Other_Languages_Check and Language_Independent_Check) with a single
21965         procedure Check.
21967         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
21968         Process_Languages, no longer needed.
21970         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
21971         Current_Project_Path.
21972         Remove elaboration code, moved to the body of Prj.Ext
21973         Use new function Prj.Ext.Project_Path instead of old variable
21974         Project_Path.
21975         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
21976         When comparing with project paths on the stack, first put the resolved
21977         path in canonical case.
21978         (Parse_Single_Project): Set the path name of the project file in the
21979         tree to the normalized path.
21981         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
21982         parameter Process_Languages, no longer needed.
21983         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
21984         Other_Languages_Check.
21986         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
21987         to store the resolved canonical path of the project file.
21988         Remove dependency to Prj.Com, no longer needed
21990         * prj-util.adb: Adapt to name changes in package Prj
21991         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
21992         Ada_Body_Suffix).
21994         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
21995         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
21996         Externally_Built, Include_Option, Language_Processing.
21998         * makegpr.adb: Numerous changes due to changes in packages
21999         Prj and Prj.Nmsc.
22001         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
22002         default to the project path, except whe "-" is one of the directories
22003         in env var ADA_PROJECT_PATH.
22004         (Gnatls): In verbose mode, add the new section "Project Search Path:"
22006 2004-12-07  Robert Dewar  <dewar@adacore.com>
22008         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
22010         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
22011         set -gnatR3m mode.
22013         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
22014         flag. No longer needed now that we handle this in gnat1drv.adb.
22016         * repinfo.ads: Minor reformatting
22018 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22019             Olivier Hainque  <hainque@adacore.com>
22020             Eric Botcazou  <ebotcazou@adacore.com>
22022         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
22023         TYPE_SIZE_UNIT of result type if SIZE is not specified.
22024         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
22025         of a bitfield, which we know is useless and causes trouble because of
22026         alignment implications.
22028         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
22029         BSS sections.
22030         (process_attributes): Clear DECL_COMMON again when a section attribute
22031         is present.
22032         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
22033         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
22034         (create_field_decl): Special case ADDRESSABLE negative to mean
22035         "no bitfield creation", to be used by make_aligning_type. Don't
22036         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
22037         fields claimed addressable still have to be bitfields. Use
22038         value_factor_p instead of a raw binop construction to check for the
22039         position's alignment.
22041 2004-12-07  Geert Bosch  <bosch@adacore.com>
22043         * eval_fat.adb: Revert previous change.
22045 2004-12-07  Thomas Quinot  <quinot@adacore.com>
22046             Ed Schonberg  <schonberg@adacore.com>
22048         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
22049         with an implicit dereference as its prefix, use
22050         Insert_Explicit_Dereference instead of merely rewriting the prefix into
22051         an explicit dereference. This ensures that a reference to the original
22052         prefix is generated, if appropriate.
22054         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
22055         dereference is rewritten to an explicit one, generate a reference to
22056         the entity denoted by its prefix using the original prefix node, so
22057         the dereference can be properly recorded as a read of the denoted
22058         access value, if appropriate.
22060         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
22061         emitting 'assigned but never read' warning on a variable on the basis
22062         that it has an access type.
22063         (Check_References): Emit unreferenced warning when the scope is a
22064         subprogram body.
22066 2004-12-07  Robert Dewar  <dewar@adacore.com>
22067             Ed Schonberg  <schonberg@adacore.com>
22069         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
22070         intrinsic
22072         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
22073         leaving call unchanged.
22074         This deals with the case where the pragma Import specified
22075         an external name, to be handled by the back end.
22077         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
22078         subprogram which is Imported with convention Intrinsic if an
22079         External_Name argument is specified.
22080         (Process_Import_Or_Interface): Properly diagnose link name argument.
22081         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
22082         with Sem_Ch6.Cannot_Inline.
22083         (Process_Inline): Provide separate warning for inapplicable inline
22084         pragma.
22085         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
22086         treatment is uniform on different targets.
22088 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
22090         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
22091         construct is rewritten, preserve end label to permit source navigation.
22093 2004-12-07  Thomas Quinot  <quinot@adacore.com>
22095         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
22096         Specific_Build_Stub_Target): New subprograms.
22097         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
22098         the PCS implementation used, using the above PCS-customized subprograms.
22099         Minor reformatting.
22100         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
22101         for generation of DSA code targeted to the PolyORB PCS.
22102         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
22103         implementation of the partition communication subsystem in ancillary
22104         subprograms.
22105         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
22106         PolyORB_Support.Build_Stub_Type): New subrograms containing the
22107         PCS-specific part of Add_Stub_Type.
22108         (Insert_Partition_Check): Use runtime library function to perform
22109         E.4(19) check.
22111         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
22112         (RE_Same_Partition): New entity, from s-parint.
22114         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
22116 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
22118         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
22119         Output the copyright message on a separate line from the version
22120         message.
22122 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
22124         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
22125         compile-time warning.
22127 2004-12-07  Robert Dewar  <dewar@adacore.com>
22129         * g-regpat.adb: (Match): Change a misuse of or to or else
22131 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
22133         * lib-xref.adb:
22134         (Generate_Reference): Handle properly a reference to an entry formal,
22135          when an accept statement has a pragma Unreferenced for it.
22137         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
22138         and the Has_Pragma_Unreferenced flag for each formal before analyzing
22139         the body, to ensure that warnings are properly emitted for each accept
22140         statement of a given task entry.
22142 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
22144         * Makefile.in: Add support for foreign threads on VMS.
22146 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22148         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
22149         Remove.
22150         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
22152         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
22154         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
22155         exception.
22156         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
22158 2004-12-07  Robert Dewar  <dewar@adacore.com>
22160         * nlists.adb (Prepend_Debug): Remove parameters and nest within
22161         Prepend.
22162         (Remove_Next_Debug): Same fix
22164         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
22165         maintain back pointers now, though we did not used to, and comments
22166         were out of date).
22167         (Prepend): Remove pragma Inline.
22168         (Remove_Next): Same cleanup
22170 2004-12-07  Thomas Quinot  <quinot@adacore.com>
22172         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
22173         used to record an implicit dereference as a read operation on its
22174         prefix when operating under -gnatc. Necessary to avoid spurious
22175         'variable assigned but never read' warnings in that mode.
22176         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
22177         is a non-overloaded implicit dereference, call the above subprogram to
22178         ensure proper recording of references.
22180 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
22182         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
22183         to be resolved later as part of Analyze_Iteration_Scheme's call to
22184         Make_Index.
22186 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
22188         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
22189         prefix is not a scalar type, place error message on prefix, not on
22190         type entity.
22192 2004-12-07  Bernard Banner  <banner@adacore.com>
22194         * vxaddr2line.adb: Add support for x86 vxworks
22196 2004-12-07  Thomas Quinot  <quinot@adacore.com>
22198         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
22199         documentation of the behaviour of these functions when passed an IP
22200         address that has no record in the system hosts database and no reverse
22201         record in the DNS.
22203         * cstand.adb, a-tags.ads: Fix typos in comment.
22205 2004-12-07  Robert Dewar  <dewar@adacore.com>
22207         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
22208         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
22209         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
22210         s-poosiz.ads: Minor reformatting
22212         * make.adb: Minor reformatting
22213         Add some ??? comments asking for more comments
22215         * s-poosiz.adb: Minor reformatting
22216         Add comments on alignment requirement
22218         * sinfo.ads: Remove obsolete comment and fix typo.
22220 2004-12-07  Vincent Celier  <celier@adacore.com>
22221             Sergey Rybin  <rybin@adacore.com>
22223         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
22224         Files" with the new tool and package names.
22225         Reformatting to suppress most of the warnings for line too long
22226         Document the new section "Project Search Path:" in the output of
22227         gnatls -v.
22228         Add gnatmetric section
22230 2004-12-07  Vincent Celier  <celier@adacore.com>
22232         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
22233         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
22234         and -eit to -ept. Added qualifier
22235         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
22237 2004-11-27  Andreas Schwab  <schwab@suse.de>
22239         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
22241 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
22243         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
22244         internal implementation unit GNAT.Sockets.Thin,
22245         as their usage for sockets is non-portable (using the read and write
22246         functions from the system runtime library is fine on UNIX but won't
22247         work under Windows).
22249         * mingw32.h: Update copyright notice.
22251 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
22253         * ada-tree.h: Minor reformatting of previous change to avoid lines
22254         longer than 79 characters.
22256 2004-11-25  Olivier Hainque  <hainque@adacore.com>
22258         * tb-gcc.c: GCC infrastructure based implementation of
22259         __gnat_backtrace.
22261 2004-11-24  Steven Bosscher  <stevenb@suse.de>
22263         * misc.c (gnat_post_options): Don't clear
22264         flag_inline_functions.
22266 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
22268         PR ada/17986
22269         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
22270         tree.
22272 2004-11-21  Andreas Jaeger  <aj@suse.de>
22274         * stylesw.adb: Change Style_Check_Subprogram_Order to
22275         Style_Check_Order_Subprograms.
22277 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
22279         * adaint.h, adaint.c
22280         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
22281         to avoid warnings.
22282         Add also a cast to kill another warning.
22283         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
22284         parameter with the priority class of the parent process instead of
22285         always using the NORMAL_PRIORITY_CLASS.
22286         (__gnat_dup): New function.
22287         (__gnat_dup2): New function.
22288         (__gnat_is_symbolic_link): Enable the effective body of this
22289         function when __APPLE__ is defined.
22291         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
22292         Update comments.
22294 2004-11-18  Olivier Hainque  <hainque@adacore.com>
22296         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
22297         address of which may be used to represent "others" and "all others"
22298         choices in exception tables, instead of the current harcoded
22299         (void *)0 and (void *)1.
22300         (Setup_Exception): Do nothing in the GNAT SJLJ case.
22302         * gigi.h (others_decl, all_others_decl): New decls representing the
22303         new Others_Value and All_Others_Value objects.
22304         (struct attrib): Rename "arg" component as "args", since GCC expects a
22305         list of arguments in there.
22307         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
22308         corresponding objects exported by a-exexpr, instead of hardcoded dummy
22309         addresses.
22311         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
22312         others_decl and all_others_decl instead of hardcoded dummy addresses
22313         to represent "others" and "all others" choices, which is cleaner and
22314         more flexible with respect to the possible eh pointer encoding policies.
22316         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
22317         (process_attributes): Account for the naming change of the "args"
22318         attribute list entry component.
22320         * decl.c (build_attr_list): Rename into prepend_attributes to allow
22321         cumulating attributes for different entities into a single list.
22322         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
22323         attributes for the current entity and propagate first subtype
22324         attributes to other subtypes.
22325         <E_Procedure>: Attribute arguments are attr->args and not
22326         attr->arg any more.
22327         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
22328         argument provided, as this is what GCC expects. Use NULL_TREE instead
22329         of 0 for trees.
22331 2004-11-18  Robert Dewar  <dewar@adacore.com>
22333         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
22334         Minor reformatting througout (including new function specs)
22335         Add ??? comments asking for clarification.
22337 2004-11-18  Thomas Quinot  <quinot@adacore.com>
22339         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
22340         incomplete duplicate implementation of this subprogram from butil.
22342 2004-11-18  Thomas Quinot  <quinot@adacore.com>
22344         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
22345         procedures factors the common processing for building an RPC receiver
22346         for an RCI package or an RACW type.
22347         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
22348         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
22349         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
22350         in use.
22351         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
22352         Add_RACW_Features.
22353         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
22354         Add_RAST_Features.
22355         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
22356         distribution subprogram identifiers that are either subprogram numbers
22357         or strings.
22358         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
22359         string distribution identifiers assigned to a given subprogram.
22360         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
22361         (Add_RAS_Dereference_TSS): Add comments.
22362         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
22363         is not referenced yet because it will be used by the PolyORB DSA
22364         implementation.
22365         (Insert_Partition_Check): Remove fossile code.
22366         (First_RCI_Subprogram_Id): Document this constant.
22367         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
22368         RAS_Access TSS.
22369         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
22370         replaced with calls to Get_Library_Unit_Name_String. Previously there
22371         were several instances of the same code in different locations in the
22372         compiler; this checkin completes the replacement of all of these
22373         instances with calls to a common subprogram.
22374         Minor reformatting.
22376         * sem_dist.adb: Remove comment noting that RPC receiver generation
22377         should be disabled for RACWs that implement RASs.
22378         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
22380         * sem_util.ads, sem_util.adb (Has_Stream): New function
22381         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
22382         qualified name of a library unit into the name buffer.
22383         (Note_Possible_Modification): Generate a reference only
22384         if the context comes from source.
22386         * snames.ads (PCS_Names): New subtype corresponding to names of
22387         supported implementations of the Partition Communication Subsystem
22388         (PCS) (i.e. the runtime library support modules for the distributed
22389         systems annex).
22391 2004-11-18  Robert Dewar  <dewar@adacore.com>
22392             Ed Schonberg  <schonberg@adacore.com>
22394         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
22395         (Has_Rep_Pragma): New function
22396         (Has_Attribute_Definition_Clause): New function
22397         (Record_Rep_Pragma): Moved here from sem_ch13.adb
22398         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
22400         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
22402         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
22403         (Expand_Pragma_Psect_Object): New procedure
22404         These procedures contain the revised and cleaned up processing for
22405         these two pragmas. This processing was formerly in Sem_Prag, but
22406         is more appropriately moved here. The cleanup involves making sure
22407         that the pragmas are properly attached to the tree, and that no
22408         nodes are improperly shared.
22410         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
22411         pragmas to Exp_Prag, which is more appropriate.
22412         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
22413         check for duplicates Remove use of Is_Psected flag, no longer needed.
22414         Use new Make_String_Literal function with string.
22416         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
22417         that are functions return universal values, that have to be converted
22418         to the context type.
22419         Use new Make_String_Literal function with string.
22420         (Get_Stream_Convert_Pragma): New function, replaces the use of
22421         Get_Rep_Pragma, which had to be kludged to work in this case.
22423         * freeze.adb: Use new Has_Rep_Pragma function
22425         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
22426         function with string.
22427         Use new Has_Rep_Pragma function.
22429         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
22430         string argument.
22432 2004-11-18  Robert Dewar  <dewar@adacore.com>
22434         * errout.ads, errout.adb: (First_Sloc): New function
22436         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
22437         check (-gnatyx) instead of being included as a redundant construct
22438         warning.
22440         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
22441         Style_Check_Order_Subprograms.
22443         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
22444         stylesw.adb: Add Style_Check_Xtra_Parens
22446         * usage.adb: Add line for -gnatyx (check extra parens)
22448         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
22450 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
22451             Robert Dewar  <dewar@adacore.com>
22453         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
22454         discriminant of a constrained subtype, analyze the copy of the
22455         corresponding constraint, because in some cases it may be only
22456         partially analyzed.
22457         Removes long-lived ??? comments.
22459         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
22460         handled controlled or secondary-stack expressions within the
22461         iteration_scheme of a loop.
22463         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
22464         bounds that may contain functions calls, to prevent memory leaks when
22465         the bound contains a call to a function that uses the secondary stack.
22466         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
22467         generate temporaries for loop bounds that might contain function calls
22468         that require secondary stack and/or finalization actions.
22470         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
22471         selected component and the selector is overloadable (not just a
22472         function) treat as function call, Analyze_Call will disambiguate if
22473         necessary.
22474         (Analyze_Selected_Component): Do not generate an actual subtype for the
22475         selected component if expansion is disabled. The actual subtype is only
22476         needed for constraint checks.
22477         (Analyze_Allocator): If restriction No_Streams is set, then do
22478         not permit objects to be declared of a stream type, or of a
22479         composite type containing a stream.
22481         * restrict.ads: Remove the a-stream entry from Unit_Array, since
22482         No_Streams no longer prohibits with'ing this package.
22484         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
22485         discriminants, but the parent base has unknown discriminants, there is
22486         no discriminant constraint to inherit. Such a discrepancy can arise
22487         when the actual for a formal type with unknown discriminants is a
22488         similar private type whose full view has discriminants.
22489         (Analyze_Object_Declaration): If restriction No_Streams is set, then
22490         do not permit objects to be declared of a stream type, or of a
22491         composite type containing a stream.
22493 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
22495         * exp_dbug.ads: Update documentation to reflect simpler encoding for
22496         protected operations.
22498         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
22499         generated name, it complicates decoding in gdb and hinders debugging
22500         of protected operations.
22501         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
22502         flag for the protected entry barrier function.
22503         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
22504         flag for the protected entry function.
22506 2004-11-18  Nicolas Setton  <setton@adacore.com>
22508         * expect.c: Define __unix__ when __APPLE__ is defined.
22510         * Makefile.in: Inform the value of the variable GMEM_LIB in the
22511         Darwin-specific section.
22513         * lang-specs.h: Change the placement of the %1 marker.
22514         Works around the fact that gcc adds -fPIC by default under Darwin.
22516 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
22518         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
22519         type of the object with the packed array type, set the Analyzed flag
22520         on the object if it is an entity or simple indexed component, to avoid
22521         spurious type errors.
22523 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
22525         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
22526         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
22527         separate line from the version message.
22529 2004-11-18  Ed Falis  <falis@adacore.com>
22531         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
22532         vthreads.
22533         (init_float): Eliminate initialization of floating point status for
22534         AE653. The instructions have no effect for vThreads.
22536 2004-11-18  Vincent Celier  <celier@adacore.com>
22538         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
22539         gnatbind is invoked with -shared.
22541 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
22543         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
22544         for Detect_Blocking which is redundant with the check done within the
22545         procedure Protected_Single_Entry_Call.
22546         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
22547         Detect_Blocking which is redundant with the check done within the
22548         procedure Protected_Single_Entry_Call.
22550 2004-11-18  Vincent Celier  <celier@adacore.com>
22552         * makegpr.adb (Compile): Put the compiling switches (in package
22553         Compiler and on the command line) immediately after "-c", instead of
22554         at the end of the command line invocation of the compiler, when
22555         compiling a non-Ada file.
22556         (Build_Global_Archive): When there is no need to rebuild the archive,
22557         set Global_Archive_Exists, so that the archive is passed to the linker
22558         if one is needed.
22560 2004-11-18  Robert Dewar  <dewar@adacore.com>
22561             Sergey Rybin  <rybin@adacore.com>
22563         * gnat_ugn.texi:
22564         Remove extra paren check from list of checks for redundant constructs
22565         Add documentation of new -gnatyx style check (check extra parens)
22566         Remove paragraph about gnatelim debug options.
22568         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
22569         objects rather than forbidding dependencies on the package Ada.Streams.
22571         * sinfo.ads: Add ??? note that we should document pragmas passed to
22572         back end.
22574         * g-expect.ads: Fix a few typos in the comments.
22576 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
22578         * misc.c (gnat_handle_option): Use %< and %> for quoting in
22579         warning message.
22581 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
22583         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
22585 2004-11-07  Andreas Schwab  <schwab@suse.de>
22587         * Makefile.in (install-gnatlib): Remove spurious hyphen.
22589 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
22591         PR ada/18228
22592         * Makefile.in (darwin): Set soext to .dylib.
22594 2004-10-26  Vincent Celier  <celier@gnat.com>
22595             Thomas Quinot   <quinot@act-europe.fr>
22597         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
22598         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
22599         there is no use of GNAT.Sockets.Constants.
22600         Remove remaining pragma Import for C_Write
22601         Remove C_Read and C_Write from internal implementation unit
22602         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
22603         the read and write functions from the system runtime library is fine
22604         on UNIX but won't work under Windows).
22606         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
22607         (Check_Selector): Use C_Recv instead of C_Read.
22608         Selectors are the GNAT.Sockets abstraction to perform a select()
22609         call on a set of descriptors. To allow abortion of an ongoing
22610         select operation, some data is written to a dedicated socket that
22611         is always monitored.
22612         Under Windows, the write and read library functions cannot operate
22613         on sockets, so we need to use send and recv instead, which is portable
22614         across all supported platforms.
22616         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
22617         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
22618         (using the read and write functions from the system runtime library is
22619         fine on UNIX but won't work under Windows).
22621 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
22623         * mlib-tgt-darwin.adb: New file.
22625         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22626         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
22627         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
22628         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
22629         subprogram body.
22631         * Makefile.in: Add support for building shared libraries under Darwin.
22632         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
22633         the low level EH init subprogram to be called from __gnat_initialize.
22635         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
22636         indicates which options to pass to the archive indexer.
22638         * mlib-utl.adb: Add support for calling ranlib with additional
22639         options. This is needed for instance under Mac OS X.
22640         (Ranlib_Options): New global variable, used to store the potential
22641         options to pass to ranlib.
22642         (Ar): Use Ranlib_Options when spawning ranlib.
22643         (Initialize): Set the value of ranlib option.
22645 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
22647         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
22648         instead of 8K, to reflect the real potential needs for stack-checking
22649         in the ZCX case.
22651 2004-10-26  Pascal Obry  <obry@gnat.com>
22653         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
22655         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
22656         Windows only the initial thread stack size can be set so it is good to
22657         start we a low stack size.
22658         The OS will adjust the size as needed.
22660 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
22661             Nicolas Setton  <setton@act-europe.fr>
22663         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
22664         "__unix__" instead of "unix".
22665         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
22666         sections were just mistakenly ignored. The former is
22667         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
22668         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
22669         of hpux. This prevents an unwanted definition of the symbol
22670         convert_addresses in adaint.o.
22672 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
22674         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
22675         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
22677 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
22679         * a-filico.ads, a-filico.adb: fix incorrect header.
22681 2004-10-26  Javier Miranda  <miranda@gnat.com>
22683         * a-ststio.ads: Fix typo in identifier
22685 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
22687         * sem_ch4.adb: Minor reformatting.
22689 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
22691         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
22692         enabled, check the result of unary and binary operations when the
22693         expression is the right-hand side of an assignment.
22695 2004-10-26  Vincent Celier  <celier@gnat.com>
22697         * clean.adb (Delete): Do not output warnings when in quiet output and
22698         not in verbose mode.
22699         (Force_Deletions): New Boolean flag, defaulted to False
22700         (Delete): Only delete a file if it is writable, and when
22701         Force_Deletions is True.
22702         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
22703         (Usage): Line for new switch -f
22704         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
22705         own.
22707 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
22709         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
22710         JM type only if its size matches that of the wrapper.  When a size is
22711         prescribed and the field is not aliased, remove the wrapper of a JM
22712         type only if the size is not greater than that of the packed array.
22713         (gnat_to_gnu_entity): Change the extension of packed array wrappers
22714         from LJM to JM.
22716 2004-10-26  Geert Bosch  <bosch@gnat.com>
22718         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
22719         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
22720         (Pred): Implement in terms of Succ.
22722 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
22724         * exp_aggr.adb (Safe_Component): An aggregate component that is an
22725         unchecked conversion is safe for in-place use if the expression of the
22726         conversion is safe.
22727         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
22728         be expandable in place even if the aggregate does not come from source.
22729         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
22730         designated object of an allocator in place, rather than building it
22731         first on the stack. The previous scheme forces a full copy of the array,
22732         and may be altogether unsusable if the size of the array is too large
22733         for stack allocation.
22735 2004-10-26  Robert Dewar  <dewar@gnat.com>
22737         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
22738         compares if the component is atomic.
22740         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
22741         array assignment if the component type is atomic.
22743 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
22744             Eric Botcazou  <ebotcazou@act-europe.fr>
22746         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
22747         is aliased and is a by_reference type, do not pass by copy.
22748         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
22749         detect whether the call is in the right side of an assignment or
22750         the expression of an object declaration.  Recurse on component
22751         association within aggregates.
22752         Call it in the condition that determines whether the temporary is
22753         necessary for correct stack-checking.
22755 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
22757         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
22758         RACW_Type, used in the PolyORB version.
22759         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
22760         version and the GARLIC version.
22762         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
22763         Rename RCI_Info to RCI_Locator for better consistency between the
22764         GARLIC and PolyORB versions of the distributed systems annex.
22765         (DSA_Implementation_Name): This enumeration lists the possible
22766         implementations of the Partition Communication Subsystem for the
22767         Distributed Systems Annex (DSA). The three available implementations
22768         are the dummy stub implementation (No_DSA), and two versions based on
22769         two different distribution runtime libraries: GARLIC and PolyORB. Both
22770         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
22771         technology.
22772         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
22773         that organization.
22775         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
22776         between the GARLIC and PolyORB versions of the distributed systems
22777         annex.
22778         Remove RE_Unbounded_Reclaim_Pool since it is unused.
22780 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
22782         * gnat1drv.adb: Suppress calling the back end when
22783         Frontend_Layout_On_Target is true.
22785 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
22787         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
22788         Set_Read_Only): New subprograms.
22789         These new routines allow the user to set or unset the Owner execute
22790         and Owner write permission flags on a file.
22792         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
22793         GNAT.OS_Lib.Set_Executable instead of rolling our own.
22795 2004-10-26  Matthew Gingell  <gingell@gnat.com>
22797         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
22799 2004-10-26  Pascal Obry  <obry@gnat.com>
22801         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
22802         memory before the faulting page we properly test the process read
22803         access for this address using appropriate Win32 routine.
22804         (HPUX sections): guard with "__hpux__" instead of "hpux".
22806 2004-10-26  Robert Dewar  <dewar@gnat.com>
22808         * lib-xref.adb (Generate_Reference): Don't complain about reference to
22809         entry parameter if pragma Unreferenced set, since we do not properly
22810         handle the case of multiple parameters.
22812 2004-10-26  Vincent Celier  <celier@gnat.com>
22814         * prj-env.adb: (Contains_ALI_Files): New Boolean function
22815         (Ada_Objects_Path.Add): For a library project, add to the object path
22816         the library directory only if there is no object directory or if the
22817         library directory contains ALI files.
22818         (Set_Ada_Paths.Add.Recursive_Add): Ditto
22820 2004-10-26  Vincent Celier  <celier@gnat.com>
22822         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
22823         extension of library projects.
22825         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
22826         path defaults to ".:<prefix>/lib/gnat".
22827         (Parse): For an extending all project, allow direct import of a project
22828         that is virtually extended.
22830         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
22831         the specified name is directly imported, return its ID. Otherwise, if
22832         an extension of this project is imported, return the ID of the
22833         extension.
22835 2004-10-26  Robert Dewar  <dewar@gnat.com>
22837         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
22838         (Sub3): New procedure, used by Scaled_Divide
22839         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
22840         correct more than one instance of failure to propagate carries
22841         correctly.
22842         (Double_Divide): Handle overflow case of largest negative number
22843         divided by minus one.
22845         * s-arit64.ads (Double_Divide): Document that overflow can occur in
22846         the case of a quotient value out of range.
22847         Fix comments.
22849 2004-10-26  Robert Dewar  <dewar@gnat.com>
22851         * s-bitops.adb (Bit_Eq): Remove redundant check.
22853         * s-bitops.ads: Minor comment updates
22854         Change some occurrences of Address to System.Address
22856         * s-carsi8.ads: Fix minor cut-and-paste error in comments
22858 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
22860         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
22861         accessibility check to prefix that is a protected operation.
22863 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
22865         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
22866         empty, post message on stub.
22868 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
22869             Javier Miranda  <miranda@gnat.com>
22871         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
22872         current instance appears within a unit that is directly in the context
22873         of the main unit.
22874         Used to determine whether the body of the instance should be analyzed
22875         immediately after its spec, to make its subprogram bodies available
22876         for front-end inlining.
22877         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
22878         constraint is not allowed on the component type (AARM 12.5.3(3))
22880 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
22882         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
22883         'Storage_Pool): enhance, document & limit detection of non-sharable
22884         internal pools.
22886         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
22888         * s-pooglo.ads: Add more documentation now that this pool is properly
22889         documented.
22891 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
22893         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
22894         or protected type with discriminants, do not constrain the
22895         corresponding record type if the subtype declaration has no
22896         discriminant constraints. This can be the case in source code, or in
22897         the subtype declaration created to rename an actual type within an
22898         instantiation.
22900 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
22902         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
22903         different kind of stub (possibly wrong name for file), do not check
22904         for conformance.
22905         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
22906         includes call to some function that returns an unconstrained type, do
22907         not inline.
22909 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
22911         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
22912         appear in the code for the main unit. Dependencies among units in the
22913         context of the main unit are established when those other units are
22914         compiled. Otherwise spurious elaboration constraints can generate
22915         incorrect elaboration circularities.
22917 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
22918             Ed Schonberg   <schonberg@gnat.com>
22920         * sem_util.adb (Is_Aliased_View): Defend against the case where this
22921         subprogram is called with a parameter that is not an object name. This
22922         situation arises for some cases of illegal code, which is diagnosed
22923         later, and in this case it is wrong to call Is_Aliased, as that might
22924         cause a compiler crash.
22925         (Explain_Limited_Type): Refine previous fix to include
22926         inherited components of derived types, to provide complete information.
22928         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
22929         is the prival for a protected object.
22930         It is necessary to mark this entity as a variable, in addition to
22931         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
22932         modified to avoid checking the Aliased flag on entities that are not
22933         objects. (Checking that flag for non-objects is erroneous and could
22934         lead to a compiler crash).
22936 2004-10-26  Robert Dewar  <dewar@gnat.com>
22938         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
22939         X_Frac = 0.5, then we know that the number X must be positive.
22940         (Succ): Remove the same redundant test, and also fix the primary test
22941         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
22942         Minor reformatting
22943         (Decompose): Add fuller comments to spec
22945 2004-10-26  Pascal Obry  <obry@gnat.com>
22947         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
22948         validity (process must have read access). Set to 0 in all other cases.
22949         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
22950         violation on Win32.
22951         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
22952         segmentation violation.
22954 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
22956         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
22957         whose type is a constructed subtype of an aliased object with an
22958         unconstrained nominal subtype, convert the actual to the constructed
22959         subtype before taking its address.
22961 2004-10-26  Vincent Celier  <celier@gnat.com>
22963         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
22964         (Is_Path_Name_Case_Sensitive): New function
22966         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
22967         (Base_Name, Simple_Name, Current_Directory, Compose,
22968         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
22969         the result.
22971 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
22972             Vasiliy Fofanov  <fofanov@act-europe.fr>
22973             Vincent Celier   <celier@gnat.com>
22975         * gnat_ugn.texi: Generalize "finding memory problems" section into a
22976         "memory management issues" section and document some of the useful
22977         memory pools provided as part of the GNAT library.
22978         Remove "virtual" from declaration of A::method2 in
22979         the simple example of Ada/C++ mixed system.
22980         Library Projects may be virtually extended: their virtual extensions
22981         are not Library Projects.
22982         Added section on extending project hierarchies.
22984 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
22986         * adaint.c (__gnat_get_libraries_from_registry): Cast value
22987         to LPBYTE.
22988         (__gnat_portable_spawn): Remove const.
22990         * mingw32.h (MAXPATHLEN): Check for previous definition.
22992 2004-10-17  Matthias Klose  <doko@debian.org>
22994         * gnatvsn.ads: Set gnat library version to 4.0.
22996 2004-10-05  Vincent Celier  <celier@gnat.com>
22998         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
23000 2004-10-04  Laurent GUERBY <laurent@guerby.net>
23002         PR ada/15156
23003         * Makefile.in: Define and use RANLIB_FLAGS.
23005 2004-10-04  Pascal Obry  <obry@gnat.com>
23007         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
23008         other x86 platforms).
23010 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
23012         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
23013         in general and triggers stack alignment adjustment for thread entry
23014         points on targets where this is necessary.
23016 2004-10-04  Bernard Banner  <banner@gnat.com>
23018         PR ada/13897
23019         * Makefile.in: Add section for powerpc linux
23020         Add variant i-vxwork-x86.ads
23022         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
23024 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
23026         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
23027         table registration calls when need be. Ensures no reference to the crt
23028         ctors symbol are issued in the SJLJ case, which avoids possible
23029         undefined symbol errors in the case of modules to be statically linked
23030         with the kernel.
23032 2004-10-04  Javier Miranda  <miranda@gnat.com>
23034         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
23035         in-line the code corresponding to subprogram Analyze_Actuals. In
23036         addition, analyze the actuals only in case of subprogram call.
23038 2004-10-04  Ed Falis  <falis@gnat.com>
23040         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
23042 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
23044         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
23045         in the documentation.
23047 2004-10-04  Robert Dewar  <dewar@gnat.com>
23049         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
23050         IF and CASE.
23051         (Analyze_Block_Statement): Add circuitry to detect following dead code
23052         (Check_Unreachable_Code): Handle case of block exit
23054 2004-10-04  Robert Dewar  <dewar@gnat.com>
23056         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
23057         (XMatchD): Avoid warning for Logic_Error call
23059 2004-10-04  Robert Dewar  <dewar@gnat.com>
23061         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
23062         consider expressions buried within a procedure actual to be an actual.
23063         This caused some blowups with uses of packed slices within a procedure
23064         actual.
23066 2004-10-04  Robert Dewar  <dewar@gnat.com>
23068         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
23069         longer need to be initialized to zero.
23070         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
23071         initialized to zero.
23073         * checks.adb (Expr_Known_Valid): Packed arrays are now always
23074         considered valid, even if the representation is modular. That's correct
23075         now that we no longer initialize packed modular arrays to zero.
23077         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
23078         suffixes. These are now documented as the only cases in which the
23079         debugger ignores outer records.
23080         Previously, the spec allowed arbitrary suffixes for this purpose.
23081         Change name of LJM to JM for packed array pad records
23082         Create separate section on packed array handling, and add a whole new
23083         set of comments to this section describing the situation with packed
23084         modular types and justification requirements depending on endianness.
23086 2004-10-04  Robert Dewar  <dewar@gnat.com>
23088         * a-except.adb: Add a comment for last change
23090         * einfo.ads: Minor spelling correction in comment
23092         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
23094         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
23095         messages.
23097         * sem_util.ads: Minor comment update
23099 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
23101         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
23102         Inline_Always when in Configurable_Run_Time mode.
23104         * sem_prag.adb (Process_Convention): If entity is an inherited
23105         subprogram, apply convention to parent subprogram if in same scope.
23106         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
23107         when in Configurable_Run_Time mode.
23109 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
23111         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
23112         class_wide type after component list has been inherited.
23114 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
23116         * sem_ch12.adb (Check_Generic_Actuals): New predicate
23117         Denotes_Previous_Actual, to handle properly the case of a private
23118         actual that is also the component type of a subsequent array actual.
23119         The visibility status of the first actual is not affected when the
23120         second is installed.
23121         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
23122         make fully recursive the treatment of formals of packages declared
23123         with a box.
23124         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
23125         the above on exit from an instantiation.
23126         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
23127         current instantiation which is now complete.
23128         (Analyze_Package_Instantiation): No instantiated body is needed if the
23129         main unit is generic. Efficient, and avoid anomalies when a instance
23130         appears in a package accessed through rtsfind.
23132 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
23134         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
23135         do not generate a declaration for a temporary if the call is part of a
23136         library-level instantiation.
23138 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
23140         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
23141         searching for a limited component to flag.
23143         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
23144         expansion of Input, to account for the fact that the implicit call
23145         generated by the attribute reference must freeze the user-defined
23146         stream subprogram. This is only relevant to 'Input, because it can
23147         appear in an object declaration, prior to the body of the subprogram.
23149         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
23150         expansion can proceed and further errors uncovered.
23151         (Minor clean up): Fix cases of using | instead of \ for continuation
23152         messages.
23154 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23156         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
23158         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
23159         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
23160         Use gcc_assert and gcc_unreachable.
23162         * decl.c (gnat_to_gnu_entity, case object): Check and process a
23163         specified alignment before validating size.
23164         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
23165         stripped-down declaration for the type of the inner field when making
23166         a JM type.
23168         * utils.c (finish_record_type): Do not compute the size in units
23169         incrementally. Instead compute it once for the rep clause case.
23170         Use gcc_assert and gcc_unreachable.
23172 2004-10-04  Vincent Celier  <celier@gnat.com>
23174         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
23175         in file name.
23176         (Is_Valid_Path_Name): Take '/' as a directory separator.
23178 2004-10-04  Vincent Celier  <celier@gnat.com>
23180         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
23181         (Extended_Project) only if Extended_Project is defined, to avoid
23182         assertion error.
23183         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
23184         resolved path.
23185         (Parse_Single_Project): Ditto.
23187         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
23188         Add_To_Project_Path for virtual projects.
23190 2004-10-04  Vincent Celier  <celier@gnat.com>
23192         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
23193         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
23194         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
23195         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
23196         parameter Options_2.
23198         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
23199         Build_Dynamic_Library with an empty Options_2.
23201         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
23202         default anymore.
23204         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
23205         directory separator, if any.
23206         (Gprmake): Do not allow mains on the command line for library projects.
23207         Do not attempt to link when the project is a library project.
23208         (Library_Opts): New table to store Library_Options.
23209         (Build_Library): If Library_Options is specified, pass these options
23210         when building a shared library.
23212 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
23214         * s-tposen.adb (Service_Entry): The object must be always unlocked at
23215         the end of this procedure now that the unlock operation was inserted
23216         by the expander.
23218 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
23220         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
23221         corresponding to the Preallocated_Stacks flags in System.
23222         (Get_Target_Parameters): Including the processing for
23223         Preallocated_Stacks.
23225         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
23226         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
23227         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
23228         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
23229         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
23230         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
23231         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
23232         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
23233         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
23234         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
23235         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
23236         used to signal whether the compiler creates the required stacks and
23237         descriptors for the different tasks (when True) or it is done by the
23238         underlying operating system at run time (when False).
23239         It is initially set to False in all targets.
23241         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
23242         if it is supported by the target.
23243         (Make_Task_Create_Call): Pass the stack address if it has been
23244         previously created. Otherwise pass a Null_Address.
23246         * snames.adb: Add _stack.
23248         * snames.ads: Add Name_uStack. Required to allow the expander to
23249         statically allocated task stacks.
23251         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
23252         Stack_Address argument.
23253         Check that its value is equal to Null_Address because this target does
23254         not support the static stack allocation.
23256 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
23258         * usage.adb: Change "pragma inline" to "pragma Inline" in information
23259         and error messages
23261 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
23263         * exp_dist.adb: Split declaration of asynchronous flag out of
23264         Add_RACW_Read_Attribute.
23265         Minor reformatting for better alignment with PolyORB version.
23266         Store the entity for the asynchronous flag of an RACW, rather than the
23267         expression, in the asynchronous flags table. This will allow this flag
23268         to be used in other subprograms beside Add_RACW_Read_Attribute.
23270 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
23272         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
23273         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
23274         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
23275         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
23276         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
23277         sockets constant MSG_NOSIGNAL (Linux-specific).
23278         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
23279         all Send operations.
23280         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
23281         from trigerring SIGPIPE.
23282         Rename components to avoid clash with Ada 2005 possible reserved
23283         word 'interface'.
23284         (Check_Selector): When the select system call returns with an error
23285         condition, propagate Socket_Error to the caller.
23287 2004-10-01  Jan Hubicka  <jh@suse.cz>
23289         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
23291 2004-09-23  Robert Dewar  <dewar@gnat.com>
23293         PR ada/17540
23294         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
23295         instead do this at freeze time (we won't do it if there is an address
23296         clause).
23297         Change "pragma inline" to "pragma Inline" in information and error
23298         messages.
23299         Minor reformatting.
23301         * freeze.adb (Check_Address_Clause): Remove previous change, not the
23302         right way of doing things after all.
23303         (Freeze_Entity): For object, set Is_Public for imported entities
23304         unless there is an address clause present.
23306 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
23308         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
23309         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
23310         ensures proper handling of types with rep clauses, which might have
23311         their TYPE_SIZE set already.
23313 2004-09-21  Robert Dewar  <dewar@gnat.com>
23315         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
23316         packed array types in both little- and big-endian cases. This change
23317         ensures that we no longer count on the unused bits being initialized
23318         for such types (and in particular ensures that equality testing will
23319         only read the relevant bits).
23320         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
23321         These changes mean that we no longer need to initialize small packed
23322         arrays.
23323         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
23324         optimization to an LJM field as to its parent field.
23326         * ada-tree.h, trans.c, utils.c, utils2.c:
23327         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
23329 2004-09-20  Jan Hubicka  <jh@suse.cz>
23331         * utils.c (gnat_finalize): Remove.
23332         (end_subprog_body): Directly call cgraph_finalize_function;
23333         do not lower the nested functions.
23335 2004-09-20  Robert Dewar  <dewar@gnat.com>
23337         PR ada/17540
23338         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
23339         if an address clause is present, since that means that the Import
23340         should be ignored.
23342 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
23344         * 5tsystem.ads: Removed, no longer used.
23346 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
23347             Zack Weinberg  <zack@codesourcery.com>
23349         * ada-tree.def: Use tree_code_class enumeration constants
23350         instead of code letters.
23351         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
23352         Update for new tree-class enumeration constants.
23354 2004-09-17  Vincent Celier  <celier@gnat.com>
23356         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
23357         capabilities of the general project manager.
23359 2004-09-09  Vincent Celier  <celier@gnat.com>
23361         * a-direct.ads: Add pragma Ada_05
23362         (Directory_Entry_Type): Give default value to component Kind to avoid
23363         not initialized warnings.
23365         * a-direct.adb (Current_Directory): Remove directory separator at the
23366         end.
23367         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
23368         an existing directory.
23369         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
23370         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
23371         Convert the result to File_Size.
23373         * prj.ads: (Project_Error): New exception
23375         * prj-attr.adb: Except in procedure Initialize, Fail comes from
23376         Prj.Com, not from Osint.
23377         (Attrs, Package_Attributes): Tables moved to private part of spec
23378         (Add_Attribute, Add_Unknown_Package): Moved to new child package
23379         Prj.Attr.PM.
23380         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
23381         Prj.Project_Error after call to Fail.
23382         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
23383         Fail. Check that package name is not already in use.
23385         * prj-attr.ads: Comment updates to indicate that all subprograms may be
23386         used by tools, not only by the project manager, and to indicate that
23387         exception Prj.Prj_Error may be raised in case of problem.
23388         (Add_Unknown_Package, Add_Attribute): Moved to new child package
23389         Prj.Attr.PM.
23390         (Attrs, Package_Attributes): Table instantiations moved from the body to
23391         the private part to be accessible from Prj.Attr.PM body.
23393         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
23394         from new package Prj.Attr.PM.
23395         (Parse_Attribute_Declaration): Call Add_Attribute from new package
23396         Prj.Attr.PM.
23398         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
23400         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
23401         instead of Elaboration_Checks).
23403         * a-calend.adb: Minor reformatting
23405 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23407         * gigi.h (maybe_pad_type): New declaration.
23408         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
23410         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
23412         * cuintp.c: Convert to use buildN.
23414         * decl.c (maybe_pad_type): No longer static.
23415         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
23416         target pointer.
23417         Convert to use buildN.
23419         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
23420         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
23421         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
23422         RHS.
23423         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
23424         (gnat_gimplify_expr, case ADDR_EXPR): New case.
23425         Convert to use buildN.
23427         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
23428         TREE_READONLY for const.
23429         Convert to use buildN.
23431         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
23432         (create_var_decl): Refine when TREE_STATIC is set.
23433         Convert to use buildN.
23435 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
23437         * gnat_ugn.texi: Delete text relating to checking of ali and object
23438         consistency.
23440         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
23441         routines.
23443 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
23445         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
23446         pragmas recognized by GNAT.
23448         * gnat_rm.texi: Document pragma Detect_Blocking.
23450         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
23451         raise Program_Error if called from a protected operation.
23453         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
23454         the protected action nesting level.
23455         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
23456         protected action nesting level.
23457         (Unlock): When pragma Detect_Blocking is active decrease the protected
23458         action nesting level.
23460         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
23461         Protected_Action_Nesting.
23463         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
23464         Common_ATCB record. It contains the dynamic level of protected action
23465         nesting for each task. It is needed for checking whether potentially
23466         blocking operations are called from protected operations.
23467         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
23468         Detect_Blocking is active or not in the partition.
23470         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
23471         raise Program_Error if called from a protected operation.
23472         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
23473         Program_Error if called from a protected operation.
23474         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
23475         Program_Error if called from a protected operation.
23477         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
23478         raise Program_Error if called from a protected operation.
23480         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
23481         raise Program_Error if called from a protected operation, and increase
23482         the protected action nesting level.
23483         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
23484         Program_Error if called from a protected operation, and increase the
23485         protected action nesting level.
23486         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
23487         protected action nesting level.
23489         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
23490         raise Program_Error if called from a protected operation, and increase
23491         the protected action nesting level.
23492         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
23493         Program_Error if called from a protected operation, and increase the
23494         protected action nesting level.
23495         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
23496         raise Program_Error if called from a protected operation.
23497         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
23498         active, raise Program_Error if called from a protected operation.
23499         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
23500         protected action nesting level.
23502         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
23503         insertion of the statement raising Program_Error. The run time
23504         contains the required machinery for handling that.
23506         * sem_util.ads: Change comment associated to procedure
23507         Check_Potentially_Blocking_Operation.
23508         This procedure does not insert a call for raising the exception because
23509         that is currently done by the run time.
23511         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
23513         * init.c: Add the global variable __gl_detect_blocking that indicates
23514         whether pragma Detect_Blocking is active (1) or not (0). Needed for
23515         making the pragma available at run time.
23516         (__gnat_set_globals): Pass and update the detect_blocking parameter.
23518         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
23519         pragma Detect_Blocking is active.
23521         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
23523         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
23524         DB is found in the ali file. Any unit compiled with pragma
23525         Detect_Blocking active forces its effect in the whole partition.
23527         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
23528         Detect_Blocking is active and delay is called from a protected
23529         operation.
23531         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
23532         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
23533         Detect_Blocking is active (0 otherwise).
23534         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
23535         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
23536         otherwise).
23538 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
23540         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
23541         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
23542         package.
23544         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
23545         (Register_Receiving_Stub): Add Subp_Info formal parameter.
23546         Update API in placeholder implemetation of s-parint to reflect changes
23547         in distribution runtime library.
23549         * sem_ch3.adb (Expand_Derived_Record): Rename to
23550         Expand_Record_Extension.
23552         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
23553         primitive operations of potentially distributed object types that have
23554         non-controlling anonymous access formals.
23556         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
23557         subprogram.
23558         New implementation of expansion for remote access-to-subprogram types,
23559         based on the RACW infrastructure.
23560         This version of sem_dist is compatible with PolyORB/DSA as well as
23561         GLADE.
23563         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
23564         Asynchrronous that applies to a remote access-to-subprogram type, mark
23565         the underlying RACW type as asynchronous.
23567         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
23568          __gnat_using_gnu_linker to 1.
23570         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
23571         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
23572         GNAT.Perfect_Hash_Generators, and remove the empty
23573         GNAT.Perfect_Hash package.
23575         * atree.adb: Minor reformatting
23577         * exp_ch3.adb (Expand_Derived_Record): Rename to
23578         Expand_Record_Extension.
23579         (Build_Record_Init_Proc.Build_Assignment): The default expression in
23580         a component declaration must remain attached at that point in the
23581         tree so New_Copy_Tree copies it if the enclosing record type is derived.
23582         It is therefore necessary to take a copy of the expression when building
23583         the corresponding assignment statement in the init proc.
23584         As a side effect, in the case of a derived record type, we now see the
23585         original expression, without any rewriting that could have occurred
23586         during expansion of the ancestor type's init proc, and we do not need
23587         to go back to Original_Node.
23589         * exp_ch3.ads (Expand_Derived_Record): Rename to
23590         Expand_Record_Extension.
23592         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
23593         Returns the RACW type used to implement a remote access-to-subprogram
23594         type.
23595         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
23596         New subprograms. Used to create a proxy tagged object for a remote
23597         subprogram. The proxy object is used as the designated object
23598         for RAS values on the same partition (unless All_Calls_Remote applies).
23599         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
23600         System.Partition_Interface.Get_Unique_Remote_Pointer.
23601         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
23602         Renamed from Add_RAS_*_Attribute.
23603         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
23604         subprograms.
23605         New implementation of expansion for remote access-to-subprogram types,
23606         based on the RACW infrastructure.
23608         * exp_dist.ads (Copy_Specification): Update comment to note that this
23609         function can copy the specification from either a subprogram
23610         specification or an access-to-subprogram type definition.
23612 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
23614         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
23615         in an instance, between an explicit subprogram an one inherited from a
23616         type derived from an actual.
23618         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
23619         add a polling call if the subprogram is to be inlined by the back-end,
23620         to avoid repeated calls with multiple inlinings.
23622         * checks.adb (Apply_Alignment_Check): If the expression in the address
23623         clause is a call whose name is not a static entity (e.g. a dispatching
23624         call), treat as dynamic.
23626 2004-09-09  Robert Dewar  <dewar@gnat.com>
23628         * g-trasym.ads: Minor reformatting
23630         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
23631         packed arrays, since unused bits are expected to be zero for a
23632         comparison.
23634 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
23636         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
23637         comment.
23639 2004-09-09  Pascal Obry  <obry@gnat.com>
23641         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
23642         enable map file generation. Add the right option to generate the map
23643         file if Map_File is set to True.
23645         * gnatdll.adb (Gen_Map_File): New variable.
23646         (Syntax): Add info about new -m (Map_File) option.
23647         (Parse_Command_Line): Add support for -m option.
23648         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
23649         Minor reformatting.
23651 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
23653         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
23654         new gnatdist implementation.
23655         Define a subpackage isolating the output routines specific to this
23656         verbose mode.
23658 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
23660         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
23662         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
23664 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
23666         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
23667         internal unit.
23669         * opt.ads: Add Ada_Version_Runtime constant used to decide which
23670         version of the language is used to compile the run time.
23672 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
23674         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
23675         of variable length temporaries for function return now that the
23676         back-end and gigi support it.
23678 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23680         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
23682         * trans.c (struct stmt_group): Delete field GLOBAL.
23683         (gnat_init_stmt_group): Do not initialize it.
23684         (call_to_gnu): Use save_expr, not protect_multiple_eval.
23685         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
23686         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
23687         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
23688         (start_stmt_group): Likewise.
23689         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
23691         * utils2.c (ggc.h): Include.
23692         (build_call_raise): Call build_int_cst, not build_int_2.
23694         * utils.c (gnat_init_decl_processing): Fix arg to
23695         build_common_tree_nodes.
23696         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
23697         (gnat_define_builtin): Set built_in_decls.
23698         (init_gigi_decls): Call build_int_cst, not build_int_2.
23700         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
23701         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
23702         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
23703         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
23704         SET_TYPE_MODULE): Use them.
23705         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
23706         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
23707         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
23708         SET_TYPE_ADA_SIZE): Likewise.
23709         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
23710         (DECL_CONST_CORRESPONDING_VAR,
23711         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
23712         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
23713         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
23714         (TYPE_RM_SIZE_NUM): New macro.
23715         (TYPE_RM_SIZE): Modified to use above.
23717         * cuintp.c: (build_cst_from_int): New function.
23718         (UI_To_gnu): Use it.
23720         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
23721         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
23722         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
23723         MIN_EXPR for the size, copy it into new.
23725 2004-09-01  Robert Dewar  <dewar@gnat.com>
23727         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
23728         packed indexed component where array is an IN OUT formal. This
23729         generated garbage code previously.
23731         * gnat_ugn.texi: Document -fverbose-asm
23733         * gnat-style.texi: Minor updates (note that boolean constants and
23734         variables are joined with AND/OR rather than short circuit forms).
23736 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
23738         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
23739         it is an upward conversion of an untagged type with no representation
23740         change.
23742 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
23744         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
23745         System.Partition_Interface.
23747         * checks.adb (Apply_Access_Checks): Do not generate checks when
23748         expander is not active (but check for unset reference to prefix of
23749         dereference).
23751         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
23752         pragma Debug as an if statement with a constant condition, for
23753         consistent treatment of entity references contained within the
23754         enclosed procedure call.
23756 2004-09-01  Vincent Celier  <celier@gnat.com>
23758         * bindgen.adb: (Set_EA_Last): New procedure
23759         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
23760         Set_EA_Last.
23761         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
23762         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
23763         linked without errors.
23764         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
23765         ST and EA.
23766         (Gen_Exception_Table_C): Correct same bugs
23768         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
23770         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
23771         on Windows, make sure that the drive letter is in upper case.
23773         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
23774         Windows, when the drive letter is added and Case_Sensitive is True, the
23775         drive letter is forced to upper case.
23777         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
23778         to Options_2 for the call to MLib.Utl.Gcc.
23780         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
23781         directory separator when defining BASE_DIR.
23783 2004-09-01  Pascal Obry  <obry@gnat.com>
23785         * gprcmd.adb (Extend): Do not output trailing directory separator. This
23786         is not needed and it confuses Windows GNU/make which does not report
23787         directory terminated by a slash as a directory.
23788         (gprcmd): Idem for "pwd" internal command.
23790         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
23791         target names rewrite to fix regressions with recent version of
23792         GNU/make. Starting with GNU/make 3.80 the pipe character was not
23793         handled properly anymore.
23795 2004-09-01  Andreas Schwab  <schwab@suse.de>
23797         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
23798         * raise.c [!IN_RTS]: Undef abort.
23800 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
23802         * utils2.c (build_allocator): Use ssize_int.
23804         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
23806 2004-08-27  Andreas Schwab  <schwab@suse.de>
23808         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
23810 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
23811             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23813         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
23815 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
23817         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
23818         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
23819         * utils.c (init_gigi_decls): Likewise.
23820         * utils2.c (build_call_raise, build_allocator): Likewise.
23822 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
23824         * utils.c (gnat_init_decl_processing): Adjust
23825         build_common_tree_nodes call.
23827 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
23829         * utils2.c (build_allocator): Use build_int_cst for negative
23830         size types.
23832 2004-08-18  Richard Henderson  <rth@redhat.com>
23834         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
23836 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
23838         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
23839         call.s
23840         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
23841         (gnat_to_gnu): Likewise.
23843 2004-08-16  Pascal Obry  <obry@gnat.com>
23845         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
23846         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
23847         option and not mdll anymore. Update comment.
23849 2004-08-16  Pascal Obry  <obry@gnat.com>
23851         * bld.adb (Put_Include_Project): Properly handle directory separators
23852         on Windows.
23854 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
23856         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
23857         decreasing the number of allocated junk nodes while searching for the
23858         appropriate subprogram.
23860 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
23862         * cuintp.c (UI_To_gnu): Use build_int_cst..
23863         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
23864         * utils.c (init_gigi_decls): Likewise.
23865         * utils2.c (build_call_raise): Likewise.
23867 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
23869         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
23870         for a global aliased object with a variable size and an unconstrained
23871         nominal subtype, pretend there is no initializer if the one we have is
23872         incomplete, and avoid referencing an inexistant component in there. The
23873         part we have will be rebuilt anyway and the reference may confuse
23874         further operations.
23876 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
23878         * einfo.ads: Minor reformatting
23880         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
23881         restrictions in the ALI if we only want to warn about violations.
23883 2004-08-13  Vincent Celier  <celier@gnat.com>
23885         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
23886         when creating a new Unit_Record in table Units.
23888         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
23889         that are violated, if any.
23891         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
23892         add directory separator if path already ends with a directory separator.
23894 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
23896         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
23897         unit, this is an attempt to inline a construct that is not available in
23898         the current restricted mode, so abort rather than trying to continue.
23900         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
23901         discriminants that rename those of the parent, recover names of
23902         original discriminants for the constraint on the full view of the
23903         parent.
23904         (Complete_Private_Subtype): Do not create a subtype declaration if the
23905         subtype is an itype.
23907         * gnat_rm.texi: Added section on implementation of discriminated
23908         records with default values for discriminants.
23910 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
23912         PR ada/15601
23913         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
23914         the second operand is overloaded.
23916 2004-08-10  Richard Henderson  <rth@redhat.com>
23918         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
23919         add __builtin_alloca.
23921 2004-08-10  Richard Henderson  <rth@redhat.com>
23923         * config-lang.in (boot_language): Yes.
23925 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
23927         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
23928         from complaining on potential uninitialized reference.
23929         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
23930         new specification and test explicitly for non-zero return value.
23932         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
23933         returning C.int, to avoid using a derived boolean type.
23935         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
23936         Duplicate_Subexpr_No_Checks in preference to direct use of
23937         Remove_Side_Effects and New_Copy_Tree.
23938         Clear Comes_From_Source on prefix of 'Size attribute reference.
23940         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
23941         g-socthi-vxworks.adb: Change calls to
23942         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
23943         and test explicitly for non-zero return value.
23945         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
23946         (Is_Socket_In_Set): Declare imported function as returning C.int, to
23947         avoid using a derived boolean type.
23949 2004-08-09  Albert Lee  <lee@gnat.com>
23951         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
23953 2004-08-09  Pascal Obry  <obry@gnat.com>
23955         * gnat_ugn.texi: Document new way to build DLLs on Windows using
23956         GCC's -shared option.
23958         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
23959         Options_2 parameter (options put after object files).
23961 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
23963         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
23964         ignore overflows on low and high bounds of an index to also account for
23965         differences in signedness between sizetype and gnu_index_subtype.
23966         These are as legitimate as the ones caused by a lower TYPE_PRECISION
23967         on sizetype.
23969 2004-08-09  Robert Dewar  <dewar@gnat.com>
23971         * s-solita.ads, s-solita.adb: Minor reformatting
23973         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
23974         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
23975         obsolescent section
23976         Add note that No_Implicit_Conditionals does not suppress
23977         run time constraint checks.
23979         * vms_conv.ads: Minor reformatting
23981         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
23982         and necessary for following change).
23983         (Mark): Return new format Mark_Id containing sec stack address
23984         (Release): Use sec stack address from Mark_Id avoiding Self call
23986         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
23987         pointer (cleanup and necessary for following change).
23988         Define Mark_Id as record containing address of secondary stack, that way
23989         Release does not need to find the stack again, decreasing the number of
23990         calls to Self and improving efficiency.
23992         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
23994         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
23995         case variable into the individual case branches when possible.
23997         * sem_ch11.adb: Minor reformatting
23999         * prj.ads: Correct spelling of suffixs
24001         * prj-nmsc.adb: Minor reformatting
24002         Correct spelling suffixs throughout (also in identifiers)
24004         * freeze.adb: Minor spelling correction
24006         * exp_ch2.adb: Cleanups to handling of Current_Value
24007         (no functional effect).
24009         * bld.adb: Correct spelling of suffixs
24011         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
24013 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
24015         PR ada/15408
24016         * sem_ch7.adb (Install_Private_Declarations): In the body of the
24017         package or of a child, private entities are both immediately_visible
24018         and not hidden.
24020 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
24022         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
24023         there are no range checks on the value of the literal.
24025         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
24026         wrapped is the triggering alternative of an asynchronous select, action
24027         statements mustbe inserted before the select itself.
24029         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
24030         case where the prefix is a protected function call.
24031         (Resolve_Attribute, case 'Access): The attribute reference on a
24032         subprogram is legal in a generic body if the subprogram is declared
24033         elsewhere.
24035 2004-08-09  Vincent Celier  <celier@gnat.com>
24037         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
24038         languages, otherwise building the library may fail with unresolved
24039         symbols.
24040         (Compile_Sources): Do not build libraries if -c switch is used
24042         * gnatlink.adb (Process_Args): New switches -M and -Mmap
24043         (Write_Usage): If map file creation is supported, output new switches
24044         -M and -Mmap.
24045         (Gnatlink): When -M is specified, add the necessary switch(es) to the
24046         gcc call, when supported.
24048         * Makefile.in: Added indepsw.o to the object list for gnatlink
24049         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
24051         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
24052         indepsw.adb, indepsw.ads: New files.
24054 2004-08-09  Bernard Banner  <banner@gnat.com>
24056         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
24058         * Makefile.in: add section for vxworks x86
24060 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
24062         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
24063         per-object constrained components where the discriminant is of an
24064         Access type.
24065         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
24066         the parent initialization procedure for derived Unchecked_Unions.
24067         Instead, derived Unchecked_Unions build their own initialization
24068         procedure.
24069         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
24070         Check the body of the subprogram for details.
24071         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
24072         functions for derived Unchecked_Union types by introducing a condition.
24073         Allow the creation of TSS equality functions for Unchecked_Unions.
24074         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
24075         Add formal parameter Discr to function signature. Discr is used to
24076         control the generated case statement for Unchecked_Union types.
24077         (Make_Eq_If): Rename formal parameter Node to E in function signature.
24079         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
24080         Unchecked_Unions.
24081         Check the body of the subprogram for details.
24082         (Expand_Composite_Equality): Augment composite type equality to include
24083         correct handling of Unchecked_Union components.
24084         (Expand_N_In): Add condition to detect illegal membership tests when the
24085         subtype mark is a constrained Unchecked_Union and the expression lacks
24086         inferable discriminants, and build a Raise_Program_Error node.
24087         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
24088         to detect types that contain components of unconstrained Unchecked_Union
24089         subtype. Add condition to detect equality between types that have an
24090         unconstrained Unchecked_Union component, and build a Raise_Program_Error
24091         node. Add condition to detect equality between Unchecked_Union types
24092         that lack inferable discriminants, and build a Raise_Program_Error node.
24093         Otherwise build a TSS equality function call.
24094         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
24095         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
24096         with the operand lacking inferable discriminants, and build a Raise_
24097         Program_Error node.
24098         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
24099         composite equality.
24100         (Has_Inferable_Discriminants): Implement new predicate for objects and
24101         expressions of Unchecked_Union type. Check the body of subprogram for
24102         details.
24103         (Has_Unconstrained_UU_Components): Add function
24104         Component_Is_Unconstrained_UU. It is used to detect whether a single
24105         component is of an unconstrained Unchecked_Union subtype. Add function
24106         Variant_Is_Unconstrained_UU. It is used to detect whether a single
24107         component inside a variant is of an unconstrained Unchecked_Union type.
24109         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
24110         inferred discriminant values. Add condition to generate a case
24111         statement with an inferred discriminant as the switch.
24112         (Make_Component_List_Assign): Introduce a Boolean flag that determines
24113         the behaviour of the subprogram in the presence of an Unchecked_Union.
24114         Add condition to trigger the usage of the inferred discriminant value
24115         as the generated case statement switch.
24116         (Make_Field_Assign): Introduce a Boolean flag that determines the
24117         behaviour of the subprogram in the presence of an Unchecked_Union. Add
24118         condition to trigger the usage of the inferred discriminant value as
24119         the right-hand side of the generated assignment.
24121         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
24122         parameter generation when dealing with Unchecked_Unions.
24124         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
24125         checks for Unchecked_Unions.
24127         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
24129         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
24130         Raise_Program_Error nodes for the execution of Read and Write
24131         attributes of Unchecked_Union types and the execution of Input and
24132         Output attributes of Unchecked_Union types that lack default
24133         discriminant values.
24135         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
24136         Unchecked_Union. Add procedure Check_Component. It is used to inspect
24137         per-object constrained components of Unchecked_Unions for being
24138         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
24139         check individual components withing a variant.
24141         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
24142         comparison of Unchecked_Unions.
24143         (Resolve_Equality_OP): Remove guard that prevents equality between
24144         Unchecked_Unions.
24146         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
24147         of component subtypes for Unchecked_Union components.
24148         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
24149         since it is the actual subtype.
24151         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
24152         pass of Unchecked_Union subtypes as generic actuals to formal types
24153         that lack known_discriminant_parts or that are derived Unchecked_Union
24154         types, and do nothing. In any other case, produce an error message.
24156         * sem_ch3.adb (Analyze_Component_Declaration): Add function
24157         Contains_POC. It determines whether a constraint uses the discriminant
24158         of an enclosing record type.
24159         Add condition to detect per-object constrained component and set the
24160         appropriate flag.
24161         (Derived_Type_Declaration): Remove guard that prevents derivation from
24162         Unchecked_Union types.
24163         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
24164         Union subtypes.
24166         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
24167         references to Unchecked_Union discriminants.
24169         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
24170         formal generation when dealing with Unchecked_Unions.
24171         (Set_Actual_Subtypes): Add condition to prevent generation of actual
24172         subtypes for Unchecked_Unions.
24174         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
24175         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
24176         completions of discriminated partial views by Unchecked_Unions and
24177         produce an error message.
24179 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24181         * trans.c (struct stmt_group): New field, GLOBAL.
24182         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
24183         (struct elab_info): New struct.
24184         (elab_info_list, gnu_elab_proc_stack): New variables.
24185         (Compilation_Unit_to_gnu): New procedure.
24186         (gigi): Call it and also handle elaboration procs we've saved.
24187         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
24188         global field from parent.
24189         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
24190         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
24191         (start_stmt_group): Initialize global field from parent.
24192         (add_decl_expr): Set to global for current statement group.
24193         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
24194         post.
24196         * utils.c (global_bindings_p): True when no current_function_decl; no
24197         longer check current_binding_level.
24199 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
24201         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
24202         choice.
24204         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
24206 2004-08-06  Andreas Schwab  <schwab@suse.de>
24208         * utils.c (gnat_define_builtin): Remove second parameter of
24209         make_decl_rtl.
24210         (begin_subprog_body): Likewise.
24212 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
24214         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
24215         optimization, not supported by the tree-ssa back-end.
24217 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
24219         * s-mastop-irix.adb: Update comments.
24221         * a-except.adb (Exception_Information): Raise Constraint_Error if
24222         exception Id is Null_Id.
24223         This is required behavior, which is more reliably and clearly checked
24224         at the top level interface level.
24226 2004-07-26  Javier Miranda  <miranda@gnat.com>
24228         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
24229         call if a component has no default_expression and the box is used.
24231         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
24232         default_expression and you use box, it behaves as if you had declared a
24233         stand-alone object.
24234         (Resolve_Record_Aggregate): If a component has no default_expression and
24235         you use box, it behaves as if you had declared a stand-alone object.
24237         * sem_ch10.adb (Install_Siblings): Do not make visible the private
24238         entities of private-with siblings.
24240 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
24242         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
24243         for a component of an itype, set the parent pointer for analysis,
24244         there is no list in which to insert it.
24246         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
24247         bona-fide renamings, not for inherited operations.
24249         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
24250         actual for a formal that is an access parameter, create local
24251         finalization list even if the expression is not an aggregate.
24253 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
24255         PR ada/16213
24256         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
24257         Diagnose properly illegal subprogram renamings that are library units.
24259 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
24261         PR ada/15588
24262         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
24263         conversion rewritten as an unchecked conversion, check that original
24264         expression is a variable.
24266         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
24267         unchecked_conversion, create new node rather than rewriting in place,
24268         to preserve original construct.
24270 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24272         * gigi.h (gnat_expand_body): Deleted.
24274         * Make-lang.in: (trans.o): Depends on function.h.
24276         * misc.c: (gnat_expand_body): Moved to here.
24278         * trans.c (gnat_expand_body_1): Deleted.
24279         (gnat_expand_body): Moved from here.
24280         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
24281         (add_stmt): Check for marked visited with global_bindings_p.
24282         (gnat_gimplify_expr, case COMPONENT_REF): New case.
24283         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
24285         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
24286         VIEW_CONVERT_EXPR if not operation type.
24288         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
24289         fat pointer.
24291         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
24292         changes: reformatting of negation operators, removing unneeded
24293         inequality comparison with zero, converting equality comparisons with
24294         zero to negations, changing int/0/1 to bool/false/true, replace calls
24295         to gigi_abort with abort, and various other similar changes.
24297 2004-07-26  Vincent Celier  <celier@gnat.com>
24299         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
24300         "setup".
24302         * make.adb (Gnatmake): Fail when a library is not present and there is
24303         no object directory.
24305         * mlib-prj.adb (Check_Library): No need to check if the library needs
24306         to be rebuilt if there is no object directory, hence no object files
24307         to build the library.
24309         * opt.ads (Setup_Projects): New Boolean flag.
24311         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
24312         Location.
24313         Create directory when Kind /= "" and in "gnat setup". Report error if
24314         directory cannot be created.
24315         (Ada_Check): Create library interface copy dir if it does not exist
24316         and we are in "gnat setup".
24317         (Find_Sources): No error if in "gnat setup" and no Ada sources were
24318         found.
24319         (Language_Independent_Check): Create object directory, exec directory
24320         and/or library directory if they do not exist and we are in
24321         "gnat setup".
24323         * vms_conv.ads: (Command_Type): New command Setup.
24325         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
24327         * vms_data.ads: Add qualifiers/switches for new built-in command
24328         "setup".
24330 2004-07-25  Richard Henderson  <rth@redhat.com>
24332         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
24333         DECL_IGNORED_P on RESULT_DECL.
24335 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
24337         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
24338         allocation and potentially overflowing update with
24339         Tailored_Exception_Information. Use the sec-stack free procedural
24340         interface to output Exception_Information instead.
24342         * a-except.adb (To_Stderr): New subprogram for character, and string
24343         version moved from a-exextr to be visible from other separate units.
24344         (Tailored_Exception_Information): Remove the procedural version,
24345         previously used by the default Last_Chance_Handler and not any more.
24346         Adjust various comments.
24348         * a-exexda.adb: Generalize the exception information procedural
24349         interface, to minimize the use of secondary stack and the need for
24350         local buffers when the info is to be output to stderr:
24351         (Address_Image): Removed.
24352         (Append_Info_Character): New subprogram, checking for overflows and
24353         outputing to stderr if buffer to fill is of length 0.
24354         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
24355         (Append_Info_Address, Append_Info_Exception_Name,
24356         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
24357         Append_Info_Basic_Exception_Traceback,
24358         Append_Info_Exception_Information): New subprograms.
24359         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
24360         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
24361         Exception_Info_Maxlength, Exception_Name_Length,
24362         Exception_Message_Length): New subprograms.
24363         (Exception_Information): Use Append_Info_Exception_Information.
24364         (Tailored_Exception_Information): Use
24365         Append_Info_Basic_Exception_Information.
24366         Export services for the default Last_Chance_Handler.
24368         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
24369         other separate units.
24371 2004-07-20  Vincent Celier  <celier@gnat.com>
24373         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
24375 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
24377         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
24378         emit itype references for the designated types of component types that
24379         are declared outside of the full record declaration, and that may
24380         denote a partial view of that record type.
24382 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
24384         PR ada/15607
24385         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
24386         which is the designated type in an access component declaration, to the
24387         list of incomplete dependents of the parent type, to avoid elaboration
24388         issues with out-of-scope subtypes.
24389         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
24390         full view of the parent.
24392 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
24394         PR ada/15610
24395         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
24396         entities that are hidden, such as references to generic actuals
24397         outside an instance.
24399 2004-07-20  Javier Miranda  <miranda@gnat.com>
24401         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
24402         support to the new notation.
24403         (Analyze_Selected_Component): Add call to Try_Object_Operation.
24405 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
24407         * s-taprob.adb: Adding the elaboration code required for initializing
24408         the tasking soft links that are common to the full and the restricted
24409         run times.
24411         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
24412         restricted run time has been moved to the package
24413         System.Soft_Links.Tasking.
24415         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
24416         restricted run time has been moved to the package
24417         System.Soft_Links.Tasking.
24419         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
24421         * s-solita.ads, s-solita.adb: New files.
24423 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24425         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
24426         Case_Statement_to_gnu): Split off from gnat_to_gnu.
24427         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
24428         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
24429         Exception_Handler_to_gnu_zcx): Likewise.
24431 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
24433         * gigi.h (builtin_function): Declare.
24435 2004-07-15  Robert Dewar  <dewar@gnat.com>
24437         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
24438         reformatting
24440         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
24441         access values as an example of a warning.
24443         * gnat_rm.texi: Document new attribute Has_Access_Values
24445         * gnat-style.texi: Document that box comments belong on nested
24446         subprograms
24448         * sem_util.ads (Has_Access_Values): Improved documentation
24450         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
24452         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
24453         (Process_Interface_Name): Call to this new procedure
24454         (Set_Extended_Import_Export_External_Name): Call to this new procedure
24456         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
24458         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
24460         * einfo.ads: Minor comment typo fixed
24462 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
24464         * snames.adb: Add _atcb.
24466         * snames.ads: Add Name_uATCB.
24468         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
24469         (in the expanded code) when using the restricted run time.
24471         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
24472         a in parameter in order to allow ATCBs to be preallocated (in the
24473         expanded code).
24475         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
24476         order to allow ATCBs to be preallocated. In case of error, the ATCB is
24477         deallocated in System.Tasking.Stages.
24479         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
24480         order to allow ATCBs to be preallocated.
24482         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
24483         here. It was previously done in Initialize_ATCB.
24485         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
24487         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
24488         Restricted run time.
24490         * exp_ch3.adb: When using the Restricted run time, pass the
24491         preallocated Ada_Task_Control_Block when creating a task.
24493 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
24495         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
24496         function call that is itself an actual in an enclosing call, diagnose
24497         problem here rather than assuming that resolution will catch it.
24499         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
24500         the local copy of a generic unit for a formal package, and the generic
24501         is a child unit, install private part of ancestors before compiling
24502         private part of spec.
24504         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
24505         use scope entities rather than tree structures, to handle properly
24506         parent units that are instances rewritten as bodies for inlining
24507         purposes.
24509         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
24510         Remove_Parents): Handle properly a parent unit that is an
24511         instantiation, when the unit has been rewritten as a body for inlining
24512         purposes.
24514         * par.adb (Goto_List): Global variable to collect goto statements in a
24515         given unit, for use in detecting natural loops.
24517         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
24518         use in detecting natural loops.
24520         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
24521         backwards goto's, and rewrite as a infinite loop, to improve locality
24522         of temporaries.
24524         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
24525         subcomponent that includes an indexed reference, to prevent the
24526         generation of copies that would miscompile the desired assignment
24527         statement.
24528         (Build_Task_Image_Decls): Add a numeric suffix to
24529         generated name for string variable, to avoid spurious conflicts with
24530         the name of the type of a single protected object.
24532         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
24533         loop with an explicit exit statement, to avoid generating an
24534         out-of-range value with 'Succ leading to spurious constraint_errors
24535         when compiling with -gnatVo.
24537 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
24539         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
24540         might not be analyzed yet, even if its Etype is already set (case of an
24541         unchecked conversion built using Unchecked_Convert_To, for example).
24542         If the prefix has already been analyzed, this will be a nop anyway.
24544         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
24545         controller type, or an assignment of a record type with controlled
24546         components, copy only user data, and leave the finalization chain
24547         pointers untouched.
24549 2004-07-15  Vincent Celier  <celier@gnat.com>
24551         * make.adb (Collect_Arguments): Improve error message when attempting
24552         to compile a source not part of any project, when -x is not used.
24554         * prj.ads: (Defined_Variable_Kind): New subtype
24556         * prj-attr.adb (Register_New_Package): Two new procedures to register
24557         a package with or without its attributes.
24558         (Register_New_Attribute): Mew procedure to register a new attribute in a
24559         package.
24560         New attribute oriented subprograms: Attribute_Node_Id_Of,
24561         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
24562         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
24563         Next_Attribute.
24564         New package oriented subprograms: Package_Node_Id_Of,
24565         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
24567         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
24568         type.
24569         (Package_Node_Id): Now a private, self initialized type
24570         (Register_New_Package): New procedure to register a package with its
24571         attributes.
24572         New attribute oriented subprograms: Attribute_Node_Id_Of,
24573         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
24574         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
24575         Next_Attribute.
24576         New package oriented subprograms: Package_Node_Id_Of,
24577         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
24579         * prj-dect.adb (Parse_Attribute_Declaration,
24580         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
24582         * prj-makr.adb (Make): Parse existing project file before creating
24583         other files. Fail if there was an error during parsing.
24585         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
24586         new spec of Prj.Attr.
24588         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
24589         to new spec of Prj.Attr.
24591 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24593         * utils2.c: Fix typo in comment.
24595 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24597         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
24598         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
24600 2004-07-14  Andreas Schwab  <schwab@suse.de>
24602         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
24604 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24606         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
24607         object type.
24608         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
24609         TYPE_STUB_DECL.
24611         * misc.c (gnat_types_compatible_p): New function.
24612         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
24613         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
24615         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
24616         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
24617         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
24618         (mark_visited): Don't mark dummy type.
24619         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
24620         parameter, we must remove any LJM building from GNU_NAME.
24621         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
24622         (pos_to_constructor): Use int_const_binop.
24623         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
24624         PARM_DECL.
24626         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
24627         (gnat_pushlevel): Set TREE_USE on BLOCK node.
24628         (gnat_install_builtins): Add __builtin_memset.
24630 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
24632         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
24633         for a renaming, stabilize the initialization expression if we are at a
24634         local level.  At the local level, uses of the renaming may be performed
24635         by a direct dereference of the initializing expression, and we don't
24636         want possible variables there to be evaluated for every use.
24638         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
24639         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
24640         them on the way.  Account for the fact that we may introduce side
24641         effects in the process.
24643 2004-07-13  Richard Henderson  <rth@redhat.com>
24645         * misc.c (default_pass_by_ref): Use pass_by_reference.
24647 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
24649         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
24650         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
24652 2004-07-08  Richard Henderson  <rth@redhat.com>
24654         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
24655         commentary.
24657 2004-07-06  Vincent Celier  <celier@gnat.com>
24659         * vms_conv.ads: Minor reformatting.
24660         Alphabetical order for enumerated values of type Command_Type, to have
24661         the command in alphabetical order for the usage.
24663         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
24664         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
24666         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
24668         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
24669         (Add_Archive_Path): Only add the global archive if there is one.
24670         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
24671         or not any object file to put in the global archive, and don't build
24672         a global archive if there is none.
24673         (X_Switches): New table
24674         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
24675         in the X_Switches table, if any.
24676         (Initialize): Make sure the X_Switches table is empty
24677         (Scan_Arg): Record -X switches in table X_Switches
24679         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
24681         * make.adb: Minor comment fix
24683         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
24684         invoked with directory information, add the directory in front of the
24685         path.
24687         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
24688         invoked with directory information, add the directory in front of the
24689         path.
24691         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
24692         when Keep_Temporary_Files is False.
24693         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
24694         directory information, add the directory in front of the path.
24695         When not on VMS, handle new switch -dn before the command to set
24696         Keep_Temporary_Files to True.
24697         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
24698         everywhere.
24700         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
24701         invoked with directory information, add the directory in front of the
24702         path.
24704 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
24706         * snames.ads, snames.adb (Name_Stub): New name for the distributed
24707         systems annex.
24709         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
24710         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
24712         * g-socket.adb (To_Timeval): Fix incorrect conversion of
24713         Selector_Duration to Timeval for the case of 0.0.
24715         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
24716         documentation from Evolve_And_Then.
24718 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
24720         * s-taprop-tru64.adb, s-taprop-os2.adb,
24721         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
24723 2004-07-06  Robert Dewar  <dewar@gnat.com>
24725         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
24726         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
24727         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
24728         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
24729         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
24730         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
24731         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
24732         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
24733         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
24734         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
24735         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
24736         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
24737         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
24738         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
24739         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
24740         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
24741         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
24742         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
24743         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
24744         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
24745         vms_data.ads: Minor reformatting,
24746         Fix bad box comment format.
24748         * gnat_rm.texi: Fix minor grammatical error
24750         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
24752         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
24753         more cases of discriminated records to be recognized as not needing a
24754         secondary stack.
24755         (Has_Access_Values): New function.
24757         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
24759         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
24760         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
24761         with LRM terminology).
24762         Change terminology in comments primitive type => elementary type.
24764 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
24766         PR ada/15602
24767         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
24768         parameters do not impose any requirements on the presence of a body.
24770 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
24772         PR ada/15593
24773         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
24774         compilation unit and is in an open scope at the point of instantiation,
24775         assume that a body may be present later.
24777 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
24779         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
24780         Improve error message when specified size is not supported.
24782         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
24783         is never a primitive operation.
24785 2004-07-05  Andreas Schwab  <schwab@suse.de>
24787         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
24788         RECORD_OR_UNION_CHECK.
24789         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
24791 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
24793         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
24794         dependency on xgnatugn, instead build it via a submake.
24795         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
24797 2004-07-04  Richard Henderson  <rth@redhat.com>
24799         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
24801 2004-07-01  Richard Henderson  <rth@redhat.com>
24803         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
24804         * utils.c (max_size): Likewise.
24806 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24808         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
24809         and rest_of_type_compilation; add arg to create_*_decl.
24810         (annotate_decl_with_node): Deleted.
24811         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
24812         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
24813         (get_current_block_context, gnat_pushdecl): New declarations.
24814         (gnat_init_stmt_group): Likewise.
24815         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
24816         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
24817         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
24818         (gnat_init): Call gnat_init_stmt_group.
24819         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
24820         (gnu_pending_elaboration_list): Deleted.
24821         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
24822         (gigi): Rearrange initialization calls and move some to last above.
24823         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
24824         Delete calls to add_decl_expr; add arg to create_*_decl.
24825         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
24826         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
24827         begin_subprog_body and call it.
24828         Don't push and pop ggc context.
24829         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
24830         (add_stmt): Remove handling of DECL_EXPR from here.
24831         If not in function, mark visited.
24832         (add_decl_expr): Put global at top level.
24833         Check for cases of DECL_INITIAL we have to handle here.
24834         (process_type): Add extra arg to create_type_decl.
24835         (build_unit_elab): Rework to just gimplify.
24836         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
24837         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
24838         (get_pending_elaborations, pending_elaborations_p): Likewise.
24839         (push_pending_elaborations, pop_pending_elaborations): Likewise.
24840         (get_elaboration_location, insert_elaboration_list): Likewise.
24841         (gnat_binding_level): Renamed from ada_binding_level.
24842         (init_gnat_to_gnu): Don't clear pending_elaborations.
24843         (global_bindings_p): Treat as global if no current_binding_level.
24844         (set_current_block_context): New function.
24845         (gnat_pushdecl): Renamed from pushdecl; major rework.
24846         All callers changed.
24847         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
24848         (finish_record_type): Call call pushdecl for stub decl.
24849         (function_nesting_depth): Deleted.
24850         (begin_subprog_body): Delete obsolete code.
24851         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
24853 2004-06-28  Robert Dewar  <dewar@gnat.com>
24855         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24856         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
24857         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
24858         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
24859         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
24861         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
24862         deal with problem of inefficient slices on machines with strict
24863         alignment, when the slice is a component of a composite.
24865         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
24866         machines, we need the check there as well.
24868 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
24870         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
24871         determine safe copying direction for overlapping slice assignments
24872         when component is controlled.
24874         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
24875         formal derived type in the actual for a formal package are visible in
24876         the enclosing instance.
24878 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
24880         PR ada/15600
24881         * sem_util.adb (Trace_Components): Diagnose properly an illegal
24882         circularity involving a private type whose completion includes a
24883         self-referential component.
24884         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
24885         renaming or an instantiation from an implicit derived operation.
24887 2004-06-28  Pascal Obry  <obry@gnat.com>
24889         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
24890         DLL.
24891         (Library_File_Name_For): Idem.
24893 2004-06-28  Matthew Gingell  <gingell@gnat.com>
24895         * g-traceb.ads: Add explanatory note on the format of addresses
24896         expected by addr2line.
24898 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
24900         * Makefile.in: Force debugging information on s-tasdeb.adb,
24901         a-except.adb and s-assert.adb needed by the debugger.
24903 2004-06-28  Vincent Celier  <celier@gnat.com>
24905         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
24906         Need_To_Build_Lib.
24907         (Gnatmake): Ditto.
24909         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
24911         * prj.adb: Minor reformatting
24912         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
24914         * prj.ads: Comment updates
24915         Minor reformatting
24916         (Project_Data): Change Flag1 to Need_To_Build_Lib.
24917         Remove Flag2: not used.
24919         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
24920         declaration.
24922         * gnat_ugn.texi: Put a "null;" declaration in one project file example
24924         * gnat_rm.texi: Document Empty declarations "null;".
24926         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
24927         front of the linker options.
24928         (Link_Foreign): Put the global archives and the libraries in front of
24929         the linker options.
24931 2004-06-28  Javier Miranda  <miranda@gnat.com>
24933         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
24934         (RTU_Loaded): Code cleanup
24935         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
24936         withed predefined units.
24938         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
24939         explicitly withed predefined units.
24940         Fix typo in comment
24942         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
24943         explicitly withed predefined units.
24945 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24947         * ada-tree.def (DECL_STMT): Deleted.
24948         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
24949         (DECL_STMT_VAR): Deleted.
24950         * decl.c: add_decl_stmt now add_decl_expr.
24951         * gigi.h: Likewise.
24952         * trans.c: Likewise.
24953         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
24954         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
24955         (add_stmt): Only handle padded type here.
24956         (add_stmt_with_node): Allow gnat_node to not be present.
24957         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
24958         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
24959         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
24960         make a SAVE_EXPR for the entire fat pointer.
24961         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
24962         (create_index_type): Make a DECL_EXPR.
24963         (end_subprog_body): Don't call allocate_struct_function here but
24964         do clear cfun.
24966 2004-06-25  Pascal Obry  <obry@gnat.com>
24968         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
24969         Relocatable from Build_Dynamic_Library call.
24971         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
24972         Relocatable are now synonym.
24974         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
24976         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
24977         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
24978         call.
24980         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
24981         Lib_Address and Relocatable.
24982         (Default_DLL_Address): Removed.
24984         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24985         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
24986         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
24987         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
24988         (Default_DLL_Address): Removed.
24990         * mlib-tgt-mingw.adb: Ditto.
24991         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
24993         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
24994         the initial thread stack size.
24996         * a-strmap.ads: Move package L to private part as it is not used in
24997         the spec. Found while reading code.
24999 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
25001         * tracebak.c: Introduce support for a GCC infrastructure based
25002         implementation of __gnat_backtrace.
25004         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
25005         any more. Use accessors instead. This eases maintenance and relaxes
25006         some alignment constraints.
25007         (_GNAT_Exception structure): Remove the Ada specific fields
25008         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
25009         a-exexpr.adb.
25010         (is_handled_by, __gnat_eh_personality): Replace component references to
25011         exception structure by use of the new accessors.
25013         * init.c (__gnat_initialize): Adjust comments to match the just
25014         reverted meaning of the -static link-time option.
25016         * adaint.c (convert_addresses): Arrange not to define a stub for
25017         mips-irix any more, as we now want to rely on a real version from a
25018         recent libaddr2line.
25020         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
25021         the personality routine can use them and not have to rely on a C
25022         counterpart of the record anymore. This simplifies maintenance and
25023         relaxes the constraint of having Standard'Maximum_Alignment match
25024         BIGGEST_ALIGNMENT.
25025         Update comments, and add a section on the common header alignment issue.
25027 2004-06-25  Geert Bosch  <bosch@gnat.com>
25029         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
25030         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
25032 2004-06-25  Robert Dewar  <dewar@gnat.com>
25034         * gnat_rm.texi: Fix section on component clauses to indicate that the
25035         restriction on byte boundary placement still applies for bit packed
25036         arrays.
25037         Add comment on stack usage from Initialize_Scalars
25039         * gnat_ugn.texi: Add documentation for -gnatyLnnn
25041         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
25042         limiting nesting level.
25044         * usage.adb: Add line for -gnatyLnnn switch
25046         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
25047         sem_ch13.adb, exp_aggr.adb: Minor reformatting
25049         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
25050         type as well as on the subtype. This corrects a problem in freeze in
25051         setting alignments of atomic types.
25053         * sem_eval.ads: Minor comment typo fixed
25055         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
25056         level.  Minor reformatting.
25058         * fname.adb (Is_Predefined_File_Name): Require a letter after the
25059         minus sign. This means that file names like a--b.adb will not be
25060         considered predefined.
25062         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
25063         record Test new flag and give diagnostic for bad component clause.
25064         (Freeze_Entity): Set alignment of array from component alignment in
25065         cases where this is safe to do.
25067         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
25068         arrays.
25070         * cstand.adb: (Create_Standard): Set alignment of String to 1
25072         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
25074         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
25075         code in the common constrained array cases.
25077         * a-storio.adb: Change implementation to avoid possible alignment
25078         problems on machines requiring strict alignment (data should be moved
25079         as type Buffer, not type Elmt).
25081         * checks.adb (Apply_Array_Size_Check): Improve these checks by
25082         killing the overflow checks which we really do not need (64-bits is
25083         enough).
25085 2004-06-25  Vincent Celier  <celier@gnat.com>
25087         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
25088         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
25089         inconditionally for the main project.
25090         (Recursive_Add_Archives.Add_Archive_Path): New procedure
25091         (Link_Executables.Check_Time_Stamps): New procedure
25092         (Link_Executables.Link_Foreign): New procedure
25093         Changes made to reduce nesting level of this package
25094         (Check): New procedure
25095         (Add_Switches): When not in quiet output, check that a switch is not
25096         the concatenation of several valid switches. If it is, issue a warning.
25097         (Build_Global_Archive): If the global archive is rebuilt, linking need
25098         to be done.
25099         (Compile_Sources): Rebuilding a library archive does not imply
25100         rebuilding the global archive.
25101         (Build_Global_Archive): New procedure
25102         (Build_Library): New name for Build_Archive, now only for library
25103         project
25104         (Check_Archive_Builder): New procedure
25105         (Create_Global_Archive_Dependency_File): New procedure
25106         (Gprmake): Call Build_Global_Archive before linking
25107         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
25108         throughout.
25109         (Scan_Arg): Display the Copyright notice when -v is used
25111         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
25112         for gnatls.
25114         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
25115         COMPILE.
25116         Add new GNAT LIST qualifier /FILES=
25117         Added qualifier /DIRECTORY= to GNAT METRIC
25118         Added qualifier /FILES= to GNAT METRIC
25119         Added qualifier /FILES to GNAT PRETTY
25121         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
25122         to take into account both versions of the switch.
25124         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
25125         always be the last switch to the gcc driver. Disable switch storing so
25126         that switches automatically added by the gcc driver are not put in the
25127         ALI file.
25129         * prj.adb (Project_Empty): Take into account changes in components of
25130         Project_Data.
25132         * prj.ads (Languages_Processed): New enumaration value All_Languages.
25134         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
25135         used. Split Boolean component Ada_Sources_Present in two Boolean
25136         components Ada_Sources_Present and Other_Sources_Present.
25137         Minor reformatting
25139         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
25140         instead of Sources_Present.
25141         (Set_Ada_Paths.Add.Recursive_Add): Ditto
25143         * prj-nmsc.adb: Minor reformatting
25144         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
25145         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
25146         Check_Ada_Naming_Scheme.
25147         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
25148         throughout.
25150         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
25151         In_Limited.
25152         Make sure that all cycles where there is at least one "limited with"
25153         are detected.
25154         (Parse_Single_Project): New Boolean parameter In_Limited
25156         * prj-proc.adb (Recursive_Check): When Process_Languages is
25157         All_Languages, call first Prj.Nmsc.Ada_Check, then
25158         Prj.Nmsc.Other_Languages_Check.
25160         * prj-proc.adb (Process): Use Ada_Sources_Present or
25161         Other_Sources_Present (instead of Sources_Present) depending on
25162         Process_Languages.
25164         * lang-specs.h: Keep -g and -m switches in the same order, and as the
25165         last switches.
25167         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
25168         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
25169         False.
25170         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
25171         False.
25173         * lib.ads (Disable_Switch_Storing): New procedure.
25175         * make.adb: Modifications to reduce nesting level of this package.
25176         (Check_Standard_Library): New procedure
25177         (Gnatmake.Check_Mains): New procedure
25178         (Gnatmake.Create_Binder_Mapping_File): New procedure
25179         (Compile_Sources.Compile): Add switch -gnatez as the last option
25180         (Display): Never display -gnatez
25182         * Makefile.generic:
25183         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
25185         * gnatcmd.adb (Check_Project): New function
25186         (Process_Link): New procedure to reduce nesting depth
25187         (Check_Files): New procedure to reduce the nesting depth.
25188         For GNAT METRIC, include the inherited sources in extending projects.
25189         (GNATCmd): When GNAT LS is invoked with a project file and no files,
25190         add the list of files from the sources of the project file. If this list
25191         is too long, put it in a temp text files and use switch -files=
25192         (Delete_Temp_Config_Files): Delete the temp text file that contains
25193         a list of source for gnatpp or gnatmetric, if one has been created.
25194         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
25195         in the project file is too large, create a temporary text file that
25196         list them and pass it to the tool with "-files=<temp text file>".
25197         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
25199         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
25200         generated file is in not in Ada.
25202         * gnatls.adb: Remove all parameters And_Save that are no longer used.
25203         (Scan_Ls_Arg): Add processing for -files=
25204         (Usage): Add line for -files=
25206         * g-os_lib.adb (On_Windows): New global constant Boolean flag
25207         (Normalize_Pathname): When on Windows and the path starts with a
25208         directory separator, make sure that the resulting path will start with
25209         a drive letter.
25211         * clean.adb (Clean_Archive): New procedure
25212         (Clean_Project): When there is non-Ada code, delete the global archive,
25213         the archive dependency files, the object files and their dependency
25214         files, if they exist.
25215         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
25217 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
25219         * sinfo.ads: Fix typo in comment.
25221         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
25222         the TSS for remote access-to-subprogram types, since these TSS are
25223         always present once the type has been analyzed.
25224         (RAS_E_Dereference): Same.
25226         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
25227         reference raises Bad_Attribute, mark the reference as analyzed so the
25228         node (and any children resulting from rewrites that could have occurred
25229         during the analysis that ultimately failed) is not analyzed again.
25231         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
25233         * exp_dist.adb: Minor comment fix.
25235         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
25236         type is an anonymous access type, no unchecked deallocation of the
25237         allocated object can occur. If the object is controlled, attach it with
25238         a count of 1. This allows attachment to the Global_Final_List, if
25239         no other relevant list is available.
25240         (Get_Allocator_Final_List): For an anonymous access type that is
25241         the type of a discriminant or record component, the corresponding
25242         finalisation list is the one of the scope of the type.
25244 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
25246         * sem_ch3.adb (Replace_Type): When computing the signature of an
25247         inherited subprogram, use the first subtype if the derived type
25248         declaration has no constraint.
25250         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
25251         before applying previous optimization. Minor code cleanup.
25253         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
25254         placed at the beginning of an unpacked record without explicit
25255         alignment, a slice of it will be aligned and does not need a copy when
25256         used as an actual.
25258 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
25260         PR ada/15591
25261         PR ada/15592
25262         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
25263         reference is written with expressions mimicking parameters.
25265 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
25267         PR ada/15589
25268         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
25269         STEP 2a. The constraints of a full type declaration of a derived record
25270         type are checked for conformance with those declared in the
25271         corresponding private extension declaration. The message
25272         "not conformant with previous declaration" is emitted if an error is
25273         detected.
25275 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
25277         * g-traceb.ads: Document the need for -E binder switch in the spec.
25279         * g-trasym.ads: Document the need for -E binder switch in the spec.
25281 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
25283         * sem_prag.adb: Add handling of pragma Detect_Blocking.
25285         * snames.h, snames.ads, snames.adb: Add entry for pragma
25286         Detect_Blocking.
25288         * s-rident.ads: Change reference to pragma Detect_Blocking.
25290         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
25291         system.ads.
25293         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
25294         to indicate whether pragma Detect_Blocking is active.
25296         * par-prag.adb: Add entry for pragma Detect_Blocking.
25298         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
25299         of not handling WITH.
25300         Note that this replaces the previous update which was incorrect.
25302 2004-06-25  Javier Miranda  <miranda@gnat.com>
25304         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
25305         use-clauses to have a clean environment.
25307         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
25308         the installation of the use-clauses to stablish a clean environment in
25309         case of compilation of a separate unit; otherwise the call to
25310         use_one_package is protected by the barrier Applicable_Use.
25312         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
25313         the installation of the use-clauses to stablish a clean environment in
25314         case of compilation of a separate unit.
25315         (End_Use_Clauses): Minor comment cleanup.
25317 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
25319         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
25321 2004-06-23  Richard Henderson  <rth@redhat.com>
25323         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
25325 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25327         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
25328         now bool instead of int.
25329         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
25330         * trans.c (gnu_switch_label_stack): New function.
25331         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
25332         elaboration of renamed entity returns.
25333         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
25334         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
25335         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
25336         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
25337         DECL_SIZE_UNIT and simplify variable-sized case.
25338         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
25339         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
25340         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
25341         (build_unit_elab): Disable for now.
25342         * utils.c (mark_visited): New function.
25343         (pushdecl): Walk tree to call it for global decl.
25344         (update_pointer_to): Update all variants of pointer and ref types.
25345         Add arg to COMPONENT_REF.
25346         (convert): Likewise.
25347         Move check for converting between variants lower down.
25348         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
25349         (build_allocator): Don't force type of MODIFY_EXPR.
25350         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
25351         put_var_into_stack.
25353 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25355         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
25356         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
25357         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
25358         subprograms.
25359         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
25360         all callers changed.
25361         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
25362         the way that EXIT_STMT finds the loop label.
25363         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
25364         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
25365         (add_stmt): Use annotate_with_locus insted of setting directly.
25366         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
25367         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
25368         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
25369         (build_vms_descriptor): Add extra args to ARRAY_REF.
25370         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
25371         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
25372         New cases.
25373         (build_binary_op): Don't make explicit CONVERT_EXPR.
25374         Add extra rgs to ARRAY_REF.
25376 2004-06-14  Pascal Obry  <obry@gnat.com>
25378         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
25379         Windows.  Fix minor typo.
25381         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
25382         which is now supported on Windows. With this implementation using the
25383         Library Project feature is no different on Windows than on UNIX.
25385 2004-06-14  Vincent Celier  <celier@gnat.com>
25387         * makegpr.adb (Compile_Sources): Nothing to do when there are no
25388         non-Ada sources.
25390         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
25392         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
25393         found, show the project name and the path of the previously parsed
25394         project file.
25396 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
25398         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
25399         array, avoid copying the actual before the call.
25401 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
25403         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
25404         Instead, allocate memory on worst-case alignment assumptions, and then
25405         return an aligned address within the allocated zone.
25407 2004-06-14  Robert Dewar  <dewar@gnat.com>
25409         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
25410         elab entities in predefined units in No_Run_Time_Mode.
25411         (Gen_Adainit_C): Same fix
25412         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
25413         units in No_Run_Time_Mode
25414         (Gen_Elab_Calls_C): Same fix
25416         * symbols-vms-alpha.adb: Minor reformatting
25418         * g-debpoo.ads: Minor reformatting
25420         * lib.adb (In_Same_Extended_Unit): Version working on node id's
25422         * lib.ads (In_Same_Extended_Unit): Version working on node id's
25424         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
25425         working on nodes.
25427         * make.adb: Minor reformatting
25429         * par-ch12.adb: Minor reformatting
25431         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
25433         * prj-strt.adb: Minor reformatting
25435         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
25436         be more general.
25438         * sem_attr.adb: Minor reformatting
25440         * sem_ch7.adb: Minor reformatting
25442         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
25443         for type in the same unit as the object declaration.
25445         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
25446         static string expressions and not just string literals.
25447         Minor reformatting
25448         (Set_Warning): Reset restriction warning flag for restriction pragma
25449         Implement pragma Profile_Warnings
25450         Implement pragma Profile (Restricted)
25451         Give obolescent messages for old restrictions and pragmas
25453         * snames.h, snames.ads, snames.adb: Add new entry for pragma
25454         Profile_Warnings.
25456         * s-rident.ads: Add declarations for restrictions required by profile
25457         Restricted and profile Ravenscar.
25459         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
25461         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
25462         configuration pragmas.
25464 2004-06-11  Vincent Celier  <celier@gnat.com>
25466         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
25467         gnatsym, when symbol policy is Restricted.
25469         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
25470         gnatsym, when symbol policy is Restricted.
25472         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
25473         read the symbol file.
25474         (Finalize): Fail in symbol policy Restricted if a symbol in the original
25475         symbol file is not in the object files. Do not create a new symbol file
25476         when symbol policy is Restricted.
25478         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
25479         in Scng.
25481         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
25482         Restricted.
25483         (Usage): Line for new switch -R
25485         * make.adb (Initialize): When the platform is not VMS, add the
25486         directory where gnatmake is invoked in the front of the path, if
25487         gnatmake is invoked with directory information.  Change the Scan_Args
25488         while loop to a for loop.
25489         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
25490         if Depth is equal or greater than the proposed depth, there is nothing
25491         to do.
25492         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
25493         instead of 0.
25495         * prj.ads: Add new symbol policy Restricted.
25497         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
25498         with the new parameters Check_All_Labels and Case_Location.
25500         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
25501         (Library_Symbol_File needs to be defined).
25503         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
25504         and Case_Location If Check_All_Labels is True, check that all values of
25505         the string type are used, and output warning(s) if they are not.
25507         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
25508         and Case_Location.
25510         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
25512         * gnat_ugn.texi: Update documentation about the library directory in
25513         Library Projects.
25515         * makegpr.adb (Display_Command): In verbose mode, also display the
25516         value of the CPATH env var, when the compiler is gcc.
25517         (Initialize): Change the Scan_Args while loop to a for loop
25518         (Compile_Individual_Sources): Change directory to object directory
25519         before compilations.
25521         * symbols.ads: New symbol policy Restricted.
25523 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
25525         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
25526         is now taken care of internally in the Exception_Propagation package
25527         and does not require clients assistance any more.
25529         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
25530         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
25531         functions. Helpers to maintain a predicate required in the handling of
25532         occurrence transfer between tasks.
25533         This is now handled internally and does not require clients assistance
25534         for the setup/propagate separation anymore.
25535         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
25536         allocation strategy, handle the Setup_And_Not_Propagated predicate and
25537         document.
25539         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
25540         raise_after_setup, now that everything is handled internally within the
25541         setup/propagation engine.
25543 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
25545         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
25546         Add additional conditions for the case of an actual being a simple
25547         name or literal. Improve inlining by preventing the generation
25548         of temporaries with a short lifetime (one use).
25550 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
25552         PR ada/15587
25553         * einfo.ads: Minor comment updates for Has_Completion and
25554         E_Constant list of flags.
25556         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
25557         and constant redeclarations now set the Has_Completion flag of their
25558         defining identifiers.
25560         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
25561         Inspect_Deferred_Constant_Completion.
25562         Used to detect private deferred constants that have not been completed
25563         either by a constant redeclaration or pragma Import. Emits error message
25564         "constant declaration requires initialization expression".
25566         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
25567         completes a deferred constant.
25569 2004-06-11  Geert Bosch  <bosch@gnat.com>
25571         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
25573         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
25574         calculating exponent for scaling denormal numbers.
25575         (Leading_Part): Properly raise Constraint_Error for zero or negative
25576         Adjustment.
25577         (Remainder): Properly raise Constraint_Error for zero divisor.
25579 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
25581         * sem_util.adb: Minor reformatting.
25583         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
25584         dereference when accessing the entry parameter record.
25585         (Check_Array_Type): Always check for possible implicit dereference.
25586         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
25587         Abort if a pointer is still present (denoting that an implicit
25588         dereference was left in the tree by the front-end).
25590         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
25591         dereference when accessing the entry parameter record.
25592         (Check_Array_Type): Always check for possible implicit dereference.
25593         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
25594         Abort if a pointer is still present (denoting that an implicit
25595         dereference was left in the tree by the front-end).
25597 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
25599         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
25600         message, like the compiler itself does. Easier to parse the output.
25602         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
25604         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
25605         be base names, and not includes directories.
25607 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
25609         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
25610         so that dependencies are properly taken into account by make.
25612 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
25614         PR ada/15622
25615         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
25616         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
25618 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
25620         * Makefile.in (install-gnatlib): install target-specific run-time files.
25622         * Make-lang.in: Remove obsolete targets.
25624 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
25626         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
25627         specification, to catch misuses of program unit names.
25629         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
25630         superfluous conversions in an instance.
25632 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
25634         PR ada/15403
25635         * sem_ch12.adb (Save_References): If operator node has been folded to
25636         enumeration literal, associated_node must be discarded.
25638 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
25640         * s-stchop-vxworks.adb: Add required pragma Convention to
25641         Task_Descriptor because it is updated by a C function.
25643 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
25645         PR ada/15568
25646         * Makefile.in: Remove target specific SO_OPT on IRIX
25648 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25650         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
25651         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
25652         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
25653         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
25654         (STMT_STMT, USE_STMT): New statement codes.
25655         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
25656         * ada-tree.h: Reflect above changes.
25657         (struct tree_loop_id): Deleted.
25658         (union lang_tree_node, struct lang_decl, struct lang_type):
25659         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
25660         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
25661         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
25662         (IS_ADA_STMT): New macro.
25663         * decl.c (annotate_decl_with_node): New function.
25664         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
25665         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
25666         Call add_stmt_with_node to do needed assignments.
25667         Add call to update setjmp buffer directly, not via EXPR_STMT.
25668         (maybe_variable): Argment GNAT_NODE deleted.
25669         * gigi.h (maybe_variable): Likewise.
25670         (make_transform, add_stmt_with_node, set_block_for_group): New.
25671         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
25672         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
25673         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
25674         (set_lineno, set_lineno_from_sloc): Likewise.
25675         (record_code_position, insert_code_for): Likewise.
25676         (gnat_poplevel): Now returns void.
25677         (end_subprog_body): Now takes argument.
25678         * misc.c (cgraph.h, tree-inline.h): New includes.
25679         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
25680         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
25681         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
25682         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
25683         (gnat_parse_file): Don't set immediate_size_expand.
25684         Call cgraph functions.
25685         (gnat_expand_expr): Remove most cases.
25686         (record_code_position, insert_code_for): Remove from here.
25687         * trans.c (toplev.h, tree-gimple.h): Now included.
25688         (discard_file_names): Deleted.
25689         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
25690         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
25691         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
25692         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
25693         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
25694         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
25695         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
25696         (set_block_for_group, add_stmt_list): Likewise.
25697         (start_stmt_group): Renamed from start_block_stmt.
25698         (end_stmt_group): Likewise, from end_block_stmt.
25699         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
25700         (gigi): Don't set discard_file_names or call set_lineno.
25701         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
25702         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
25703         Numerous changes throughout to reflect new names and complete
25704         function-at-a-time implementation.
25705         (gnat_expand_stmt): Delete or comment out all cases.
25706         (process_inlined_subprograms): Use add_stmt.
25707         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
25708         call set_lineno; also remove unneeded block handling.
25709         (process_type): Remove unneeded block handling.
25710         (build_unit_elab): Remove calls to deleted functions.
25711         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
25712         (tree-dump.h): Likewise.
25713         (struct ada_binding_level): Add field jmpbuf_decl.
25714         (gnat_define_builtin, gnat_install_builtins): New.
25715         (gnat_gimplify_function, gnat_finalize): Likewise.
25716         (gnat_poplevel): No longer return BLOCK, set it instead.
25717         Remove code dealing with nested functions.
25718         (gnat_init_decl_processing): Also set size_type_node.
25719         Call gnat_install_builtins.
25720         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
25721         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
25722         Remove special-case for "main".
25723         (end_subprog_body): Add arg and rework for tree-ssa.
25724         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
25725         Add case for BOOLEAN_TYPE.
25726         * utils2.c (rtl.h): Now include.
25727         (build_call_raise): Test Debug_Flag_NN directly.
25728         (build_call_alloc_dealloc): Don't use local stack allocation for now.
25729         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
25730         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
25732 2004-06-07  Robert Dewar  <dewar@gnat.com>
25734         * a-direct.ads, einfo.ads: Minor comment updates
25736         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
25737         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
25738         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
25739         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
25740         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
25742         * s-interr-sigaction.adb: Remove unreferenced variable
25743         (Attached_Interrupts).  Minor reformatting.
25744         Avoid use of variable I (replace by J).
25746         * par-ch10.adb: Fix text of one error message
25748         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
25749         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
25750         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
25751         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
25752         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
25753         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
25754         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
25755         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
25756         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
25757         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
25758         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
25759         2005 support.
25761 2004-06-07  Doug Rupp  <rupp@gnat.com>
25763         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
25765         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
25767         * mlib-tgt-vms-ia64.adb: New file.
25769         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
25770         Add mlib-tgt-vms-ia64.adb
25771         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
25772         Move to alpha specific ifeq section.
25773         Add VMS specific versions of symbols.adb
25774         Renaming of 5q vms files.
25776         * 5qsystem.ads renamed to system-vms_64.ads.
25778 2004-06-07  Vincent Celier  <celier@gnat.com>
25780         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
25781         explain that when a time of day corresponding to the non existing hour
25782         on the day switching to DST is specified, Split may return a different
25783         value for Seconds.
25785         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
25786         to GNAT PRETTY.
25788         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
25789         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
25791         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
25792         to False.
25793         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
25794         the linking options.
25795         (Build_Library.Check_Libs): On VMS, if there is a dependency on
25796         g-trasym.ads, set Gtrasymobj_Needed to True.
25798         * prj-attr.adb: Add new package Metrics for gnatmetric
25800         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
25801         canonical case to take into account files with upper case characters on
25802         Windows.
25803         (Ada_Check): Load the reference symbol file name in the name buffer to
25804         check it, not the symbol file name.
25806         * snames.ads, snames.adb: Add standard name Metrics (name of project
25807         file package for gnatmetric).
25809         * vms_conv.ads: Add Metric to Comment_Type
25811         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
25813         * vms_data.ads: Add qualifiers for GNAT METRIC
25815         * makegpr.adb (Link_Executables): Take into account the switches
25816         specified in package Linker of the main project.
25818 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
25820         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
25821         the index of the last element is Units.Last, not Units.Table'Last
25822         (which is usually not a valid index within the actually allocated
25823         storage for the table).
25825         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
25826         determines whether to generate a call to a checked storage pool
25827         Dereference action.
25828         Generate such a call only for a dereference that either comes from
25829         source, or is the result of rewriting a dereference that comes from
25830         source.
25832 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
25834         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
25836 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
25838         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
25839         file level, elaborate the stride for inner dimensions in alignment
25840         units, not bytes.
25842         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
25843         in a comment.
25845 2004-06-07  Javier Miranda  <miranda@gnat.com>
25847         * exp_ch6.adb: Correct wrong modification in previous patch
25849 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
25851         * g-trasym.ads: Corrected comment to properly reflect level of support
25852         on VMS.
25854 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
25856         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
25857         includes case of a variable referenced on the left hand side of an
25858         assignment, therefore remove redundant code. Variables and prefixes of
25859         indexed or selected components are now marked as referenced on left
25860         hand side. Warnings are now properly emitted when variables or prefixes
25861         are assigned but not read.
25863         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
25864         left hand side referenced variables. Private access types do not
25865         produce the warning "variable ... is assigned but never read".
25866         Add also additional checks to left hand side referenced variables.
25867         Aliased, renamed objects and access types do not produce the warning
25868         "variable ... is assigned but never read" since other entities may read
25869         the memory location.
25871 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
25873         * Makefile.in: In the powerpc/vxworks-specific section, restore
25874         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
25875         by mistake).
25877 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
25879         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
25880         predefined operators.
25881         Removes spurious type errors from g-trasym-vms.adb.
25883         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
25884         distinct from the operator appearing in the source, call appropriate
25885         routine to insert conversions when needed, and complete resolution of
25886         node.
25887         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
25888         interpretations for rewritten right operand.
25889         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
25890         the other operand is overloaded and the context is a type conversion.
25892 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25894         * ada-tree.def (BLOCK_STMT): Now has two operands.
25895         (BREAK_STMT): New.
25897         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
25899         * gigi.h: (gnat_poplevel): Now returns a tree.
25901         * trans.c (end_block_stmt): Add arg; all callers changed.
25902         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
25903         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
25904         (add_stmt): Set TREE_TYPE.
25905         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
25906         (gnat_expand_stmt, case BREAK_STMT): New case.
25908         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
25910 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
25912         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
25913         procedure Set_Stack_Size that is not needed.
25915 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
25917         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
25918         used for gnatpp input file and for the files upon which it depends
25920 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
25922         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
25924 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
25926         * gnatvsn.ads: Bump version numbers appropriately.
25927         Add new build type.
25929 2004-06-07  Pascal Obry  <obry@gnat.com>
25931         * gnat_ugn.texi: Improve comments about imported names and link names
25932         on Windows. Add a note about the requirement to use -k gnatdll's option
25933         when working with a DLL which has stripped stdcall symbols (no @nn
25934         suffix).
25936 2004-05-27  Vincent Celier  <celier@gnat.com>
25938         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
25939         COMMENTS_LAYOUT=UNTOUCHED
25941         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
25942         symbols-vms-alpha.adb
25944 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
25946         * sem.ads: Clarify documentation on checks suppression.
25948         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
25950 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
25952         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
25953         the case of multiple derivations.
25954         (Is_Object_Reference): For a selected component, verify that the prefix
25955         is itself an object and not a value.
25957         * sem_ch12.adb (Same_Instantiated_Constant): New name for
25958         Same_Instantiated_Entity.
25959         (Same_Instantiated_Variable): Subsidiary to
25960         Check_Formal_Package_Instance, to recognize actuals for in-out generic
25961         formals that are obtained from a previous formal package.
25962         (Instantiate_Subprogram_Body): Emit proper error when
25963         generating code and the proper body of a stub is missing.
25965         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
25966         has a universal interpretation, do the disambiguation here.
25968         * exp_ch4.adb (Expand_N_Type_Conversion,
25969         Expand_N_Unchecked_Type_Conversion): Special handling when target type
25970         is Address, to avoid typing anomalies when Address is a visible integer
25971         type.
25973         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
25974         to determine whether a subprogram should not be marked Pure, even when
25975         declared in a pure package.
25977 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
25979         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
25981         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
25982         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
25983         Update the documentation about the Ravenscar profile, following the
25984         definition found in AI-249.
25986         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
25987         setting the Profile (Ravenscar). This must be done in addition to
25988         setting the required restrictions.
25990         * rtsfind.ads: Add the set of operations defined in package
25991         Ada.Interrupts.
25993         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
25994         restriction.
25996 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
25998         lang-specs.h: Always require -c or -S and always redirect to /dev/null
25999         if -gnatc or -gnats is passed.
26001 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
26003         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
26004         a significant reference. Warnings are now properly emitted when a
26005         discriminated type is not referenced.
26007         * lib-xref.adb (Generate_Reference): A deferred constant completion,
26008         record representation clause or record type discriminant does not
26009         produce a reference to its corresponding entity. Warnings are now
26010         properly emitted when deferred constants and record types are not
26011         referenced.
26013 2004-05-27  Geert Bosch  <bosch@gnat.com>
26015         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
26016         Fixes ACATS Annex G tests.
26018 2004-05-27  Robert Dewar  <dewar@gnat.com>
26020         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
26021         handling WITH
26023 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
26025         * s-interr.adb (Server_Task): Take into account case of early return
26026         from sigwait under e.g. linux.
26028 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
26030         * gnat_ugn.texi: Add description for the new gnatpp options:
26031          -rnb - replace the original source without creating its backup copy
26032          -c0 - do not format comments
26034 2004-05-24  Geert Bosch  <bosch@gnat.com>
26036         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
26037         with 192 bits of precision, sufficient to reduce a double-extended
26038         arguments X with a maximum relative error of T'Machine_Epsilon, for X
26039         in -2.0**32 .. 2.0**32.
26040         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
26041         reduction by the processor, which only uses a 68-bit approximation of
26042         Pi.
26043         (Tan): Always reduce arguments and compute function either using
26044         the processor's fptan instruction, or by dividing sin and cos as needed.
26046 2004-05-24  Doug Rupp  <rupp@gnat.com>
26048         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
26049         gcc error on 32/64 bit VMS.
26051 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
26053         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
26054         since this is what we get for stack overflows although not documented
26055         as such.
26056         Document the issues which may require adjustments to our signal
26057         handlers.
26059 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
26061         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
26062         enclosing dynamic scope if the instantiation is within a generic unit.
26064 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
26066         * exp_dbug.ads: Fix typo.
26068         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
26069         Rename it to its proper name: system-linux-ia64.ads
26070         (stamp-gnatlib1): Remove extra target specific run time files when
26071         setting up the rts directory.
26073 2004-05-24  Javier Miranda  <miranda@gnat.com>
26075         * einfo.ads, einfo.adb (Limited_Views): Removed.
26076         (Limited_View): New attribute that replaces the previous one. It is
26077         now a bona fide package with the limited-view list through the
26078         first_entity and first_private attributes.
26080         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
26081         limited-private-with clause.
26082         (Install_Limited_Withed_Unit): Install the private declarations of a
26083         limited-private-withed package. Update the installation of the shadow
26084         entities according to the new structure (see Build_Limited_Views)
26085         (Build_Limited_Views): Replace the previous implementation of the
26086         limited view by a package entity that references the first shadow
26087         entity plus the first shadow private entity (required for limited-
26088         private-with clause)
26089         (New_Internal_Shadow_Entity): Code cleanup.
26090         (Remove_Limited_With_Clause): Update the implementation to undo the
26091         new work carried out by Build_Limited_Views.
26092         (Build_Chain): Complete documentation.
26093         Replace Ada0Y by Ada 0Y in comments
26094         Minor reformating
26096         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
26097         types the level of accessibility depends on the enclosing type
26098         declaration.
26100         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
26101         entities. Complete documentation of previous change.
26103 2004-05-24  Robert Dewar  <dewar@gnat.com>
26105         * namet.adb: Minor reformatting
26106         Avoid use of name I (replace by J)
26107         Minor code restructuring
26109         * sem_ch6.adb: Minor reformatting
26111         * lib-writ.adb: Do not set restriction as active if this is a
26112         Restriction_Warning case.
26114         * sem_prag.adb: Reset restriction warning flag if real pragma
26115         restriction encountered.
26117         * s-htable.adb: Minor reformatting
26118         Change rotate count to 3 in Hash (improves hash for small strings)
26120         * 5qsystem.ads: Add comments for type Address (no literals allowed).
26122         * gnat_ugn.texi: Add new section of documentation "Code Generation
26123         Control", which describes the use of -m switches.
26125 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
26127         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
26128         through the DECL_INITIAL for renamed variables.
26130 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
26132         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
26134 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
26136         * exp_dbug.ads: Correct comments concerning handling of overloading,
26137         since we no longer use $ anymore.
26139 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
26141         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
26142         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
26143         with illegal subunits.
26145 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
26147         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
26148         body with front-end inlining enabled, check whether an inline pragma
26149         appears immediately after the body and applies to it.
26151         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
26152         enabled and the pragma appears after the body of the subprogram.
26154 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26156         Part of function-at-a-time conversion
26158         * misc.c (adjust_decl_rtl): Deleted.
26159         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
26160         Define.
26162         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
26163         (add_decl_stmt, add_stmt, block_has_vars): New functions.
26164         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
26166         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
26167         when making a decl.
26168         (gnat_to_gnu_entity): Likewise.
26169         Use add_stmt to update setjmp buffer.
26170         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
26171         flush_addressof.
26172         No longer call adjust_decl_rtl.
26173         (DECL_INIT_BY_ASSIGN_P): New macro.
26174         (DECL_STMT_VAR): Likewise.
26176         * trans.c (gigi): Call start_block_stmt to make the outermost
26177         BLOCK_STMT.
26178         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
26179         Call start_block_stmt and end_block_stmt temporarily.
26180         Use gnat_expand_stmt instead of expand_expr_stmt.
26181         (add_decl_stmt): New function.
26182         (tree_transform): Call it.
26183         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
26184         (end_block_stmt): Set type and NULL_STMT.
26185         (gnat_expand_stmt): Make recursize call instead of calling
26186         expand_expr_stmt.
26187         (gnat_expand_stmt, case DECL_STMT): New case.
26188         (set_lineno_from_sloc): Do nothing if global.
26189         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
26190         (start_block_stmt, add_stmt, end_block_stmt): New functions.
26191         (build_block_stmt): Call them.
26192         (gnat_to_code): Don't expand NULL_STMT.
26193         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
26194         args.
26195         (tree_transform): Likewise.
26196         (tree_transform, case N_Null_Statement): Return NULL_STMT.
26197         (gnat_expand_stmt, case NULL_STMT): New case.
26198         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
26199         IF_STMT_TRUE.
26201         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
26202         TREE_ADDRESSABLE.
26204         * utils.c (create_var_decl): Do not call expand_decl or
26205         expand_decl_init.
26206         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
26207         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
26208         here.
26209         (struct e_stack): Add chain_next to GTY.
26210         (struct binding_level): Deleted.
26211         (struct ada_binding_level): New struct.
26212         (free_block_chain): New.
26213         (global_binding_level, clear_binding_level): Deleted.
26214         (global_bindings_p): Rework to see if no chain.
26215         (kept_level_p, set_block): Deleted.
26216         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
26217         new data structure and work directly on BLOCK node.
26218         (gnat_poplevel): Similarly.
26219         (get_decls): Look at BLOCK_VARS.
26220         (insert_block): Work directly on BLOCK node.
26221         (block_has_var): New function.
26222         (pushdecl): Rework for new binding structures.
26223         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
26224         poplevel.
26225         (build_subprog_body): Likewise.
26226         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
26228         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
26230         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
26231         (DECL_STMT_VAR): Likewise.
26233 2004-05-17  Robert Dewar  <dewar@gnat.com>
26235         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
26236         procedure
26238         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
26239         of restriction synonyums by using
26240         Restrict.Process_Restriction_Synonyms.
26242         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
26244         * s-restri.ads (Tasking_Allowed): Correct missing comment
26246         * s-rident.ads: Add entries for restriction synonyms
26248         * ali.adb: Fix some problems with badly formatted ALI files that can
26249         result in infinite loops.
26251         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
26252         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
26253         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
26254         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
26255         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
26256         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
26257         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
26258         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
26259         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
26260         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
26261         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
26262         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
26263         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
26264         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
26265         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
26266         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
26267         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
26268         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
26269         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
26270         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
26271         to Task_Id (minor cleanup).
26273 2004-05-17  Vincent Celier  <celier@gnat.com>
26275         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
26276         directory separator.
26278         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
26279         project being extended, if Languages is not declared in extending
26280         project.
26282 2004-05-17  Javier Miranda  <miranda@gnat.com>
26284         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
26285         limited view of a visible sibling.
26287 2004-05-14  Robert Dewar  <dewar@gnat.com>
26289         * gnat_ugn.texi: Minor change to -gnatS documentation
26291         * sprint.adb: Remove some instances of Assert (False) and for this
26292         purpose replace them by output of a ??? string.
26294         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
26295         Assert (False).
26297         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
26298         flag processing. This was suppressing required dependencies in
26299         No_Run_Time mode and is not needed since the binder does not generate
26300         references for things in libgnat anyway.
26302         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
26303         warning.
26305 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
26307         * gnat_ugn.texi: Document AIX-specific issue with initialization of
26308         resolver library.
26310         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
26311         action for the case of an actual parameter in an init proc call.
26313 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
26315         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
26316         subtype, check visible entities in base type.
26318         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
26319         actions if the object is a renaming.
26321         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
26322         Check_Formal_Package_Instance, to determine more precisely when the
26323         formal and the actual denote the same entity.
26325 2004-05-14  Javier Miranda  <miranda@gnat.com>
26327         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
26329         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
26330         corresponding to a private_with must be removed from visibility; it
26331         will be made visible later, just before we analyze the private part of
26332         the package.
26333         (Check_Private_Child_Unit): Allow private_with clauses in public
26334         siblings.
26335         (Install_Siblings): Make visible the private entities of private-withed
26336         siblings.
26337         (Install_Withed_Unit): Do not install the private withed unit if we
26338         are compiling a package declaration and the Private_With_OK flag was
26339         not set by the caller. These declarations will be installed later,
26340         just before we analyze the private part of the package.
26342         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
26343         during the evaluation of the expression that initializes the object,
26344         decorate it with the expected type to avoid cascade errors.
26345         Code cleanup.
26347         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
26348         subprogram we have to install the private_with clauses after its
26349         specification has been analyzed (as documented in AI-262.TXT).
26351         * sem_ch8.adb (Has_Private_With): New function. Determines if the
26352         current compilation unit has a private with on a given entity.
26353         (Find_Direct_Name): Detect the Beaujolais problem described in
26354         AI-262.TXT
26356         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
26357         provides the functionality of the function Is_Ancestor that was
26358         previously available in sem_ch10. It has been renamed to avoid
26359         overloading.
26361         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
26363 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26365         * utils.c (build_vms_descriptor): Use SImode pointers.
26367 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
26369         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
26371 2004-05-14  GNAT Script  <nobody@gnat.com>
26373         * Make-lang.in: Makefile automatically updated
26375 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
26377         Renaming of target specific files for clarity
26379         * Makefile.in: Rename GNAT target specific files.
26381         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
26382         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
26383         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
26384         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
26385         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
26386         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
26387         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
26388         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
26389         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
26390         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
26391         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
26392         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
26393         51osinte.adb, 51osinte.ads, 51system.ads,
26394         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
26395         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
26396         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
26397         56tpopsp.adb, 57system.ads, 58system.ads,
26398         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
26399         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
26400         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
26401         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
26402         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
26403         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
26404         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
26405         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
26406         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
26407         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
26408         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
26409         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
26410         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
26411         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
26412         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
26413         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
26414         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
26415         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
26416         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
26417         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
26418         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
26419         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
26420         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
26421         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
26422         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
26423         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
26424         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
26425         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
26426         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
26427         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
26428         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
26429         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
26430         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
26431         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
26432         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
26433         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
26434         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
26435         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
26436         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
26437         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
26439         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
26440         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
26441         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
26442         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
26443         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
26444         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
26445         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
26446         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
26447         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
26448         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
26449         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
26450         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
26451         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
26452         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
26453         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
26454         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
26455         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
26456         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
26457         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
26458         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
26459         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
26460         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
26461         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
26462         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
26463         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
26464         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
26465         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
26466         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
26467         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
26468         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
26469         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
26470         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
26471         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
26472         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
26473         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
26474         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
26475         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
26476         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
26477         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
26478         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
26479         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
26480         s-osinte-vms.ads, s-osinte-vxworks.adb,
26481         s-osinte-vxworks.ads, s-osprim-mingw.adb,
26482         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
26483         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
26484         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
26485         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
26486         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
26487         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
26488         s-stchop-vxworks.adb, s-taprop-dummy.adb,
26489         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
26490         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
26491         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
26492         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
26493         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
26494         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
26495         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
26496         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
26497         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
26498         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
26499         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
26500         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
26501         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
26502         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
26503         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
26504         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
26505         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
26506         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
26507         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
26508         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
26509         system-irix-o32.ads, system-linux-x86_64.ads,
26510         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
26511         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
26512         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
26513         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
26514         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
26515         system-vxworks-mips.ads, system-vxworks-ppc.ads,
26516         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
26517         above.
26519 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
26521         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
26523 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
26525         Merge from tree-ssa-20020619-branch.
26527         * config-lang.in (boot_language, build_by_default): Set
26528         to no.
26529         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
26530         (max_size): Add static chain op for call_expr.
26532 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
26534         PR target/15331
26535         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
26537 2004-05-11  Roger Sayle  <roger@eyesopen.com>
26539         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
26540         COND_EXPR.
26542 2004-05-10  Doug Rupp  <rupp@gnat.com>
26544         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
26545         system.aux_dec.
26547         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
26549         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
26551         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
26552         Fixes undefined symbols in IA64 gnatlib.
26554         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
26556         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
26557         Short_Address). This will be moved to system.auxdec.
26559 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
26561         * sem_util.adb: Replace test for presence of a node that is always
26562         present with a call to Discard_Node.
26564         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
26565         Analyze on the library unit node after generation of distribution stub
26566         constructs.  The call was a no-op because Unit_Node has already been
26567         Analyzed, and the tree fragments for the distribution stubs are
26568         analyzed as they are inserted in Exp_Dist.
26569         Update comment regarding to distribution stubs to reflect that we
26570         do not generate stub in separate files anymore.
26572         * einfo.ads: Clarify the fact that a tagged private type has the
26573         E_Record_Type_With_Private Ekind.
26575         * erroutc.adb: Minor reformatting
26577         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
26578         values if line length is increased using -gnatyM (noticed during code
26579         reading).
26581         * eval_fat.adb: Minor reformatting
26582         Put spaces around exponentiation operator
26584 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
26586         PR ada/15005
26587         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
26588         has been rewritten as an explicit dereference, retrieve type of
26589         original node to check for possibly unconstrained record type.
26591 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
26593         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
26594         overriding, use the operation of the parent unconditionally.
26596         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
26597         operation when either operand is a literal, to avoid further
26598         ambiguities.
26600         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
26601         overridden by a previous explicit declaration, mark the previous entity
26602         as overriding.
26604         * sem_disp.adb (Check_Dispatching_Operation): New predicate
26605         Is_Visibly_Controlled, to determine whether a declaration of a
26606         primitive control operation for a derived type overrides an inherited
26607         one. Add warning if the explicit declaration does not override.
26609 2004-05-10  Vincent Celier  <celier@gnat.com>
26611         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
26612         some cases when the sources are no longer present.
26614         * make.adb (Collect_Arguments): Fail if an external source, not part
26615         of any project need to be compiled, when switch -x has not been
26616         specified.
26618         * makeusg.adb: Document new switch -x
26620         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
26621         defaulted to False.
26623         * switch-m.adb (Scan_Make_Switches): New switch -x
26625         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
26626         gnatmake switch -x.
26628         * gnat_ugn.texi: Document new gnatmake switch -x
26630 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
26632         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
26634         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
26635         (process_attributes): Likewise.
26637 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
26639         * s-inmaop.ads: Fix spelling mistake in one of the comments.
26641 2004-05-10  Robert Dewar  <dewar@gnat.com>
26643         * gnat_ugn.texi: Document that for config pragma files, the maximum
26644         line length is always 32767.
26646         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
26647         literals is now allowed.
26649         * gnat-style.texi: Remove statement about splitting long lines before
26650         an operator rather than after, since we do not follow this rule at all.
26651         Clarify rule (really lack of rule) for spaces around exponentiation
26653         * sem_elim.adb: Allow concatenation of string literals as well as a
26654         single string literal for pragma arguments.
26656         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
26658         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
26659         written for append case.
26661         * frontend.adb: Changes to avoid checking max line length in config
26662         pragma files.
26664         * g-os_lib.ads: Minor reformatting
26666         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
26667         wrong in any case. Instead use standard value. Noticed during code
26668         reading.
26670         * opt.ads (Max_Line_Length): New field, used to implement removal of
26671         limitation on length of lines when scanning config pragma files.
26673         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
26674         makeutl.ads, makeutl.adb: Minor reformatting
26676         * scn.adb: Do not check line length while scanning config pragma files
26677         Do not check line length while scanning out license information
26679         * scng.adb: Changes to avoid line length checks while parsing config
26680         pragma files.
26682 2004-05-10  GNAT Script  <nobody@gnat.com>
26684         * Make-lang.in: Makefile automatically updated
26686 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
26688         * osint.adb (Find_Program_Name): Fix handling of VMS version
26689         number.
26691 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
26693         * g-os_lib.ads (Invalid_Time): New constant
26695         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
26696         return OS_Time instead of time_t to match what is imported by Ada.
26697         Now return -1 if the file doesn't exist, instead of a random value
26699 2004-05-05  Robert Dewar  <dewar@gnat.com>
26701         * usage.adb: Add line for -gnatR?s switch
26703         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
26705         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
26706         and for Match (Data_First, Data_last)
26708         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
26709         written when we are dealing with multi-unit files.
26711 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
26713         * Makefile.in: Remove unused targets and variables.
26715 2004-05-05  Vincent Celier  <celier@gnat.com>
26717         * switch-m.adb: New gnatmake switch -eI
26719         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
26720         of new gnatmake switch -eInnn.
26722         * makegpr.adb: Take into account new parameters Index and Src_Index in
26723         Prj.Util.
26725         * clean.adb: Implement support for multi-unit sources, including new
26726         switch -i.
26728         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
26729         Src_Index.
26731         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
26732         (Extract_From_Q): New out parameter Index
26733         (Mark, Is_Marked): Subprograms moved to Makeutl
26734         (Switches_Of): New parameter Source_Index
26735         (Add_Switch): New parameter Index
26736         (Check): New parameter Source_Index
26737         (Collect_Arguments): New parameter Source_Index
26738         (Collect_Arguments_And_Compile): New parameter Source_Index
26739         (Compile): New parameter Source_Index
26740         Put subprograms in alphabetical order
26741         Add support for multi-source sources, including in project files.
26743         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
26744         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
26745         Make.
26747         * makeusg.adb: New gnatmake switch -eInnn
26749         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
26750         Prj.Util.Value_Of.
26752         * opt.ads (Main_Index): New variable, defaulted to 0.
26754         * osint.ads, osinte.adb (Add_File): New parameter Index
26755         (Current_Source_Index): New function
26757         * prj.adb: Take into account new components Index and Src_Index
26759         * prj.ads (String_Element): New component Index
26760         (Variable_Value): New component Index
26761         (Array_Element): New component Src_Index
26763         * prj-attr.adb: Indicate that optional index may be specified for
26764         attributes Main, Executable, Spec, Body and some of Switches.
26766         * prj-attr.ads (Attribute_Kind): New values for optional indexes
26767         (Attribute_Record): New component Optional_Index
26769         * prj-com.ads (File_Name_Data): New component Index
26771         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
26773         * prj-env.adb (Put): Output optional index
26775         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
26776         attributes Spec and Body.
26778         * prj-nmsc.adb: Process optional indexes
26780         * prj-pp.adb: Ouput "at" for optional indexes
26782         * prj-proc.adb: Take into account optional indexes
26784         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
26785         Optional_Index. For string literal,
26786         process optional index when Optional_Index is True.
26787         (Parse_Expresion): New Boolean parameter Optional_Index
26789         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
26790         (Set_Source_Index_Of): New procedure
26792         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
26793         index.
26795         * prj-util.ads (Executable_Of): New parameter Index
26796         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
26797         New parameter Src_Index, defaulted to 0.
26799 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
26801         PR ada/15257
26802         * sem_ch3.adb (Access_Definition): If this is an access parameter
26803         whose designated type is imported through a limited_with clause, do
26804         not add the enclosing subprogram to the list of private dependents of
26805         the type.
26807 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
26809         PR ada/15258
26810         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
26811         a limited_with clause, and the other is its non-limited view.
26813 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
26815         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
26817         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
26818         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
26819         Stand.Boolean_Literals to produce references to entities
26820         Standard_False and Standard_True from compile-time computed boolean
26821         values.
26823         * stand.ads (Boolean_Literals): New variable, provides the entity
26824         values for False and True, for use by the expander.
26826 2004-05-05  Doug Rupp  <rupp@gnat.com>
26828         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
26829         5vinmaop.adb: Unchecked convert Short_Address vice Address
26831         * adaint.c, raise.c: Caste CRTL function return value
26832         to avoid gcc error on 32/64 bit IVMS.
26834         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
26835         target = IA64/VMS.
26837         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
26839         * 5qsystem.ads (Address): Declare as Long_Integer
26840         (Short_Address): Declare as 32 bit subtype of Address
26841         Declare  abstract address operations to avoid gratuitous ambiguities.
26843 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
26845         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
26846         instead of the old Boolean_Entry_Barriers.
26847         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
26849 2004-05-05  GNAT Script  <nobody@gnat.com>
26851         * Make-lang.in: Makefile automatically updated
26853 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
26855         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
26857 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
26859         PR ada/15152
26860         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
26861         alone. Replacing object references by literals is inappropriate in a
26862         so low level context.
26864 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
26866         * a-exexpr.adb: Add comments
26868 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
26870         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
26871         declare the Ancestor_Tags array in Type_Specific_Data with a small size
26872         without risking a bounds check error when accessing one of its
26873         components.
26874         (Type_Specific_Data): Define Ancestor_Tags as a small array.
26875         This prevents us from hitting a limitation during the debug info
26876         generation when using stabs.
26878         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
26879         small array.
26880         This prevents us from hitting a limitation during the debug info
26881         generation when using stabs.
26883 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
26885         lang-specs.h: Remove -gnatz* from specs.
26887 2004-05-03  Vincent Celier  <celier@gnat.com>
26889         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
26891         * Make-lang.in, Makefile.in: Add gprmake
26893 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
26895         * sem_aggr.adb: Fix typo in comment.
26897 2004-05-03  Robert Dewar  <dewar@gnat.com>
26899         * make.adb: Minor reformatting
26901         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
26903         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
26904         so that it works when address is not a private type.
26906         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
26907         properly with rewritten unchecked conversions. This prevents
26908         order-of-elaboration issues that can otherwise arise.
26909         (Minimum_Size): Don't check size of access types under VMS
26911         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
26912         interpretations of integer literals as type System.Address.
26914         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
26915         (Is_Descendent_Of): New function
26917 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
26919         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
26920         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
26921         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
26923         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
26924         of the old Max_Entry_Queue_Depth.
26926         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
26927         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
26928         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
26930         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
26931         New entry for proper handling of Max_Entry_Queue_Depth.
26932         New entry for proper handling of No_Dynamic_Interrupts.
26934         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
26935         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
26936         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
26937         the GNAT specific restriction Max_Entry_Queue_Depth.
26938         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
26939         the GNAT specific restriction No_Dynamic_Interrupts.
26941         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
26942         instead of the old Boolean_Entry_Barriers.
26943         Use the new restriction No_Dynamic_Attachment instead of the old
26944         No_Dynamic_Interrupts.
26946         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
26947         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
26949         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
26950         of the old Max_Entry_Queue_Depth.
26952 2004-05-03  GNAT Script  <nobody@gnat.com>
26954         * Make-lang.in: Makefile automatically updated
26956 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
26958         * checks.adb (Enable_Range_Check): If the prefix of an index component
26959         is an access to an unconstrained array, perform check unconditionally.
26961 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26963         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
26964         Component_Clause.
26966 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
26968         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
26969         alternate stack setting. There was no support for the tasking cases
26970         and the changes eventually caused a number of side-effect failures in
26971         the non-tasking case too.
26973 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
26975         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
26976         -gnats is passed.
26978 2004-04-29  Vincent Celier  <celier@gnat.com>
26980         * make.adb (Gnatmake): Increase max size of argument array for
26981         gnatbind for the potential addition of -F.
26982         If there are Stand-Alone Library projects, invoke gnatbind with -F to
26983         be sure that elaboration flags will be checked.
26985         * switch-c.adb: Correct call to Scan_Pos for -gnateI
26987 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
26989         * sem_warn.adb (Check_References): Move '<access-variable> may be
26990         null' warning out of under Warn_On_No_Value_Assigned.
26992 2004-04-29  Ed Falis  <falis@gnat.com>
26994         * gnat_ugn.texi: Fixed texi error
26996 2004-04-29  Robert Dewar  <dewar@gnat.com>
26998         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
26999         abstract operations if they come from predefined files.
27001         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
27002         Dynamic, not RM).
27004         * s-addope.adb: Correct obvious error in mod function
27006 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
27008         * Makefile.in: Add target pairs for powerpc darwin*
27009         tasking support.
27011         * a-intnam-darwin.ads, s-osinte-darwin.adb,
27012         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
27014 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
27016         * Makefile.in: Add target macro definitions for s390*-linux*.
27017         * system-linux-s390.ads: New file.
27018         * system-linux-s390x.ads: New file.
27020 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
27022         * gnat_ugn.texi: Correct argument to @setfilename.
27024 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
27026         * a-exexpr.adb (Unwind_Word): New data type.
27027         (Unwind_Exception): Use it as type of Private1 and Private2.
27029         * raise.c (db_action_for): Fix debug printf.
27031 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
27033         * a-wtmoio.ads: Formal type must be a modular type, not a signed
27034         integer type.
27036 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27038         * decl.c (gnat_to_gnu_entity, case object): Call
27039         __builtin_update_setjmp_buf.
27041         * gigi.h (update_setjmp_buf): Deleted.
27042         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
27044         * misc.c: (update_setjmp_buf): Deleted.
27046         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
27047         around block of RTL.
27049         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
27051 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
27053         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
27054         subprogram for which no pragma All_Calls_Remote applies, store the
27055         address of the real subprogram in the underlying record type, so local
27056         dereferences do not go through the PCS.
27058 2004-04-26  Robert Dewar  <dewar@gnat.com>
27060         * i-c.ads: Add some type qualifications to avoid ambiguities when
27061         compiling with s-auxdec.ads and a non-private address type.
27063 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
27065         * Makefile.rtl: Fix error in previous check-in:
27066         Add s-addope.o to non tasking object list (rather than tasking object
27067         list).
27069 2004-04-26  Javier Miranda  <miranda@gnat.com>
27071         * sem_aggr.adb: Fix typo in comments
27072         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
27073         Required to check the null-exclusion attribute.
27075         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
27076         case of anonymous access types in record and array components. For a
27077         component definition the level is the same of the enclosing composite
27078         type.
27080         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
27081         that are anonymous access types the level of accessibility depends on
27082         the enclosing type declaration. In order to have this information, set
27083         the scope of the anonymous access type to the enclosing record type
27084         declaration.
27085         (Array_Type_Declaration): In case of components that are anonymous
27086         access types the level of accessibility depends on the enclosing type
27087         declaration. In order to have this information, set the scope of the
27088         anonymous access type to the enclosing array type declaration.
27090         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
27091         access type.
27093         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
27094         renaming of anonymous access-to-constant types allowed if and only if
27095         the renamed object is access-to-constant.
27097         * sem_util.adb (Type_Access_Level): In case of anonymous access types
27098         that are component_definition or discriminants of a nonlimited type,
27099         the level is the same as that of the enclosing component type.
27101 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
27103         * sem_elim.adb: Some minor code reorganization from code reading. Fix
27104         misprint in the function name (File_Name_Match).
27106 2004-04-23  Laurent GUERBY <laurent@guerby.net>
27108         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
27109         install.
27111 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
27113         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
27115 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
27117         * adaint.c (__gnat_try_lock): No longer requires that the parent
27118         directory be writable, the directory itself is enough.
27119         (gnat_is_absolute_path): Change profile, so that the call from
27120         GNAT.OS_Lib can be made more efficient.
27122         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
27123         from GNAT.OS_Lib can be made more efficient.
27125         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
27126         one copy of the file name. Found by code reading.
27128 2004-04-23  Vincent Celier  <celier@gnat.com>
27130         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
27131         Correct documentation on gnatmake switches transmitted to the compiler
27133         * ali.ads: Minor comment fix
27135 2004-04-23  Javier Miranda  <miranda@gnat.com>
27137         * sem_ch6.adb: (Confirming Types): Code cleanup
27139         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
27140         subprogram types: E_Anonymous_Access_Subprogram_Type and
27141         E_Anonymous_Access_Protected_Subprogram_Type.
27143 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
27145         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
27146         whether a pragma All_Calls_Remote applies to the subprogram on which
27147         'Access is taken.
27148         No functional change is introduced by this revision; the new parameter
27149         will be used to allow calls to local RCI subprograms to be optimized
27150         to not use the PCS in the case where no pragma All_Calls_Remote applies,
27151         as is already done in the PolyORB implementation of the DSA.
27153         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
27154         whether a pragma All_Calls_Remote applies to the subprogram on which
27155         'Access is taken.
27156         No functional change is introduced by this revision; the new parameter
27157         will be used to allow calls to local RCI subprograms to be optimized
27158         to not use the PCS in the case where no pragma All_Calls_Remote applies,
27159         as is already done in the PolyORB implementation of the DSA.
27161 2004-04-23  Robert Dewar  <dewar@gnat.com>
27163         * Makefile.rtl: Add entry for s-addope.o in run time library list
27164         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
27165         * s-addope.ads, s-addope.adb: New files.
27167         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
27168         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
27169         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
27170         System.Address to be non-private and signed.
27172         * sem_elim.adb: Minor reformatting (fairly extensive)
27173         Some minor code reorganization from code reading
27174         Add a couple of ??? comments
27176 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27178         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
27179         (tree_transform, case N_If_Statement): Remove non-determinism.
27181         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
27183 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
27185         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
27186         Eliminate' section.
27188         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
27189         no longer used as a parameter name for Eliminate pragma).
27191 2004-04-22  Laurent GUERBY <laurent@guerby.net>
27193         PR optimization/14984
27194         PR optimization/14985
27195         * trans.c (gigi): Fix non determinism leading to bootstrap
27196         comparison failures.
27198 2004-04-21  Pascal Obry  <obry@gnat.com>
27200         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
27201         passed to spawnvp() to properly handle program pathname with spaces on
27202         Win32.
27204 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
27206         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
27207         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
27208         unlocked in case of exceptions.
27210 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
27212         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
27213         This function does not exist anymore.
27215 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
27217         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
27219         * link.c: Move variables to the __gnat name space.
27221         * Makefile.in: list link.o explicitly when needed.
27223         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
27225 2004-04-21  Javier Miranda  <miranda@gnat.com>
27227         * einfo.adb (Original_Access_Type): New subprogram
27228         (Set_Original_Access_Type): New subprogram
27229         (Write_Field21_Name): Write the name of the new field
27231         * einfo.ads (Original_Access_Type): New field present in access to
27232         subprogram types.
27233         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
27234         E_Anonymous_Access_Protected_Subprogram_Type.
27236         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
27237         subprogram types.
27239         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
27240         to anonymous access to subprogram types.
27242         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
27243         to subprogram types.
27245         * sem_ch3.adb (Access_Definition): Complete decoration of entities
27246         corresponding to anonymous access to subprogram types.
27247         (Analyze_Component_Declaration): Add new actual to the call to
27248         subprogram replace_anonymous_access_to_protected_subprogram.
27249         (Array_Type_Declaration): Add new actual to the call to subprogram
27250         replace_anonymous_access_to_protected_subprogram.
27251         (Process_Discriminants): Add new actual to the call to subprogram
27252         replace_anonymous_access_to_protected_subprogram.
27253         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
27255         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
27256         formal.
27258         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
27259         access to subprogram types.
27261         * sem_util.adb (Has_Declarations): Addition of package_specification
27262         nodes.
27264 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
27266         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
27267         inlined flags to renamed entity only if in current unit.
27269 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
27271         * s-parint.ads: Add DSA implementation marker.
27273         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
27274         value of System.Partition_Interface.DSA_Implementation to determine
27275         what version of the distributed systems annex is available (no
27276         implementation, GLADE, or PolyORB).
27278 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
27280         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
27282 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27284         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
27285         with new type if alias sets differ.
27286         Fixes ACATS c41103b.
27288 2004-04-21  Vincent Celier  <celier@gnat.com>
27290         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
27291         Add array Lang_Args for the language specific compiling argument
27292         switches.
27294         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
27296 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
27298         * gnat_rm.texi: Update the descripton of the Eliminate pragma
27299         according to the recent changes in the format of the parameters of the
27300         pragma (replacing Homonym_Number with Source_Location).
27302 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
27304         * 5isystem.ads: Removed, unused.
27306         * gnat_rm.texi: Redo 1.13 change.
27308 2004-04-19  Robert Dewar  <dewar@gnat.com>
27310         * s-stoele.ads: Clean up definition of Storage_Offset (the new
27311         definition is cleaner, avoids the kludge of explicit Standard operator
27312         references, and also is consistent with a visible System.Address with
27313         no visible operations.
27315         * s-geveop.adb: Add declarations to avoid assumption of visible
27316         operations on type System.Address (since these might not be available
27317         if Address is a non-private type for which the operations
27318         are made abstract).
27320         * sem_eval.adb: Minor reformatting
27322         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
27323         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
27324         reformatting (new function spec format).
27326         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
27327         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
27328         s-caun64.adb: Add declarations to avoid assumption of visible
27329         operations on type System.Address (since these might not be available
27330         if Address is a non-private type for which the operations are made
27331         abstract).
27333         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
27335         * exp_intr.adb: Minor comment update
27337         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
27339         * 5omastop.adb: Add declarations to avoid assumption of visible
27340         operations on type System.Address (since these might not be available
27341         if Address is a non-private type for which the operations
27342         are made abstract).
27344 2004-04-19  Vincent Celier  <celier@gnat.com>
27346         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
27348         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
27349         defaulted to Ada.
27351         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
27352         defaulted to Ada.
27353         Call Check with Process_Languages.
27354         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
27355         with Process_Languages.
27356         (Recursive_Check): New Boolean parameter Process_Languages. Call
27357         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
27358         Process_Languages.
27360         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
27362         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
27363         parameter Ada_Main, defaulted to True.
27364         Check for Ada specific characteristics only when Ada_Main is True.
27366         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
27368         * prj.adb: (Project_Empty): Add new Project_Data components.
27370         * prj.ads: New types and tables for non Ada languages.
27371         (Project_Data): New components Languages, Impl_Suffixes,
27372         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
27373         Include_Path, Include_Data_Set.
27375         * prj-env.ads, prj-env.adb: Minor reformatting
27377         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
27378         Put subprograms in alphabetical order
27380         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
27381         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
27382         Opt.Follow_Links.
27384         * mlib-prj.adb: Back out modification in last version, as they are
27385         incorrect.
27386         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
27388         * make.adb: (Mains): Moved to package Makeutl
27389         (Linker_Opts): Moved to package Makeutl
27390         (Is_External_Assignment): Moved to package Makeutl
27391         (Test_If_Relative_Path): Moved to package Makeutl
27392         (Gnatmake): Move sorting of linker options to function
27393         Makeutl.Linker_Options_Switches.
27395         * makeutl.ads, makeutl.adb: New files.
27397         * Makefile.in: Add makeutl.o to the object files for gnatmake
27399         * makeusg.adb: Add line for new switch -eL.
27401         * gnatls.adb (Image): New function.
27402         (Output_Unit): If in verbose mode, output the list of restrictions
27403         specified by pragmas Restrictions.
27405         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
27406         Text_IO.
27408         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
27409         needed, to put it in the range 1970 (included) - 2026 (excluded).
27410         (Time_Of): Do not shift Unix_Min_Year (1970).
27411         Shift the date by multiple of 56 years, if needed, to put it in the
27412         range 1970 (included) - 2026 (excluded).
27414         * adaint.h, adaint.c (__gnat_set_executable): New function.
27416 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27418         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
27419         and pop GC context.
27420         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
27421         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
27422         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
27423         (tree_transform, case N_Code_Statement): Likewise.
27424         (gnat_expand_stmt, case LABEL_STMT): Don't look at
27425         LABEL_STMT_FIRST_IN_EH.
27426         (gnat_expand_stmt, case ASM_STMT): New case.
27428         * utils2.c (build_unary_op): Properly set TREE_READONLY of
27429         UNCONSTRAINED_ARRAY_REF.
27431         * utils.c (poplevel): Temporarily push/pop GC context around inline
27432         function expansion.
27434         * decl.c (maybe_variable): Properly set TREE_READONLY of
27435         UNCONSTRAINED_ARRAY_REF.
27436         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
27438         * ada-tree.def: (ASM_STMT): New.
27440         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
27441         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
27442         ASM_STMT_INPUT): New.
27443         (ASM_STMT_CLOBBER): Likewise.
27445 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
27447         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
27448         general rcheck mechanism to raise Program_Error for E.4(18), instead
27449         of a custom raiser in System.Partition_Interface.
27450         Part of general cleanup work before PolyORB integration.
27452         * snames.ads, snames.adb: Add new runtime library entities and names
27453         for PolyORB DSA.
27455         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
27456         exp_dist.
27457         (Build_Subprogram_Id): New subprogram provided by exp_dist
27458         Code reorganisation in preparation for PolyORB integration.
27460         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
27461         exp_dist.
27462         (Build_Subprogram_Id): New subprogram provided by exp_dist
27464         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
27465         actual parameter types for call to dereference of an
27466         access-to-subprogram type.
27468         * rtsfind.ads: Add new runtime library entities and names for PolyORB
27469         DSA.
27471         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
27472         instead, which has the same behaviour here since we never pass it a
27473         NULL pointer.
27475         * link.c (run_path_option, Solaris case): Use -Wl, as for other
27476         platforms.
27478         * Makefile.in: adjust object file lists for gnatlink and gnatmake
27479         to account for new dependency upon Interfaces.C.Strings + link.o
27480         For x86 FreeBSD, use 86numaux.
27482         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
27483         from Mlib.Tgt to Mlib.
27485         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
27486         target-independent.
27488         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
27489         target-specific versions of this subprogram, now implemented as a
27490         target-independent function in Mlib.
27492         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
27493         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
27494         (Linker_Library_Path_Option): Remove target-specific versions of this
27495         subprogram, now implemented as a target-independent function in Mlib.
27497         * atree.adb: (Allocate_Initialize_Node): New subprogram.
27498         Factors out node table slots allocation.
27499         (Fix_Parents): New subprogram.
27500         Encapsulate the pattern of fixing up parent pointers for syntactic
27501         children of a rewritten node.
27502         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
27503         (Rewrite): Use New_Copy when creating saved copy of original node.
27504         (Replace): Use Copy_Node to copy nodes.
27506 2004-04-19  Javier Miranda  <miranda@gnat.com>
27508         * sprint.adb (Sprint_Node_Actual): Give support to the new
27509         Access_To_Subprogram node available in Access_Definition nodes. In
27510         addition, give support to the AI-231 node fields: null-exclusion,
27511         all-present, constant-present.
27513         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
27515         * sinfo.ads, sinfo.adb:
27516         New field Access_To_Subprogram_Definition in Access_Definition nodes
27518         * sem_ch6.adb (Process_Formals): Move here the code that creates and
27519         decorates internal subtype declaration corresponding to the
27520         null-excluding formal. This code was previously in Set_Actual_Subtypes.
27521         In addition, carry out some code cleanup on this code. In case of
27522         access to protected subprogram call
27523         Replace_Anonymous_Access_To_Protected_Subprogram.
27524         (Set_Actual_Subtypes): Code cleanup.
27526         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
27527         Find_Type in case of anonymous access renamings. Add warning in case of
27528         null-excluding attribute used in anonymous access renaming.
27530         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
27531         subprogram
27533         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
27534         subprogram.
27535         (Access_Definition): In case of anonymous access to subprograms call
27536         the corresponding semantic routine to decorate the node.
27537         (Access_Subprogram_Declaration): Addition of some comments indicating
27538         some code that probably should be added here. Detected by comparison
27539         with the access_definition subprogram.
27540         (Analyze_Component_Declaration): In case of access to protected
27541         subprogram call Replace_Anonymous_Access_To_Protected.
27542         (Array_Type_Declaration): In case of access to protected subprogram call
27543         Replace_Anonymous_Access_To_Protected_Subprogram.
27544         (Process_Discriminants): In case of access to protected subprogram call
27545         Replace_Anonymous_Access_To_Protected_Subprogram.
27547         * par.adb (P_Access_Definition): New formal that indicates if the
27548         null-exclusion part was present.
27549         (P_Access_Type_Definition): New formal that indicates if the caller has
27550         already parsed the null-excluding part.
27552         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
27553         (P_Identifier_Declarations): Code cleanup and give support to renamings
27554         of anonymous access to subprogram types.
27555         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
27556         (P_Array_Type_Definition): Give support to AI-254.
27557         (P_Component_Items): Give support to AI-254.
27558         (P_Access_Definition): New formal that indicates if the header was
27559         already parsed by the caller.
27560         (P_Access_Type_Definition): New formal that indicates if the caller has
27561         already parsed the null-excluding part.
27563         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
27564         call to P_Access_Definition.
27566 2004-04-19  Geert Bosch  <bosch@gnat.com>
27568         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
27569         the delicate semantics of floating-point to integer conversion.
27570         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
27572         * eval_fat.adb (Machine_Mantissa): Moved to spec.
27573         (Machine_Radix): New function.
27575         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
27576         conversion checks.
27577         (Machine_Radix): New function also for use in conversion checks.
27579 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
27581         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
27583         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
27584         to decorate the access-to-protected subprogram and the equivalent type.
27586         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
27587         to anonymous access to subprogram types.
27589         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
27590         constant-folding, for legality checks in contexts that require an RM
27591         static expression.
27593         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
27594         temporary but stack checking is not enabled, increment serial number
27595         to so that symbol generation is consistent with and without stack
27596         checking.
27598         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
27599         independent on whether stack checking is enabled, caller must check
27600         the corresponding flag.
27602         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
27603         range checks.
27604         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
27605         parent if it has discriminants.
27606         (Build_Derived_Private_Type): Constructed full view does
27607         not come from source.
27608         (Process_Discriminants): Default discriminants on a tagged type are
27609         legal if this is the internal completion of a private untagged
27610         derivation.
27612         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
27613         no constraint checks, because it corresponds to an existing object.
27615         * sem_prag.adb (Process_Convention): Pragma applies
27616         only to subprograms in the same declarative part, i.e. the same unit,
27617         not the same scope.
27619         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
27620         ignore type mismatch on a numeric conversion if expression comes from
27621         expansion.
27623 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
27625         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
27626         Homonym_Number parameter, add processing for Source_Location parameter
27627         corresponding.
27628         (Check_Eliminated): Remove the check for homonym numbers, add the check
27629         for source location traces.
27631         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
27632         with Arg_Source_Location corresponding to the changes in the format of
27633         the pragma.
27635         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
27636         Eliminate pragma corresponding to the changes in the format of the
27637         pragma: Homonym_Number is replaced with Source_Location, two ways of
27638         distinguishing homonyms are mutially-exclusive.
27640 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
27642         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
27644         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
27645         No_Dollar_In_Label, no longer necessary, as it is always True.
27646         (Strip_Suffixes): Likewise.
27648 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
27650         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
27651         modulus for compatibility with size clause on targets with 16-bit
27652         Integer.
27654         * layout.adb (Discrimify): In the case of private types, set Vtyp to
27655         full type to fix type mismatches on calls to size functions for
27656         discriminant-dependent array components.
27658 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
27660         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
27661         lib.
27663 2004-04-19  Pascal Obry  <obry@gnat.com>
27665         * mdll-utl.adb (Locate): New version is idempotent.
27667 2004-04-17  Laurent Guerby <laurent@guerby.net>
27669         PR ada/14988 (partial)
27670         * impunit.adb: Fix typo.
27672 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
27674         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
27675         and install-rts-cert targets.  Remove all gnatlib and gnattools
27676         targets and all other rts-* targets (moved to libada).  Remove (now)
27677         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
27678         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
27680 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27682         * trans.c (tree_transform): Shortcut returning error_mark_node for
27683         statements in annotate_only_mode.
27684         (tree_transform, case N_Label, case N_Return_Statement,
27685         N_Goto_Statement): Make statement tree instead of generating code.
27686         (tree_transform, case N_Assignment_Statement): No longer check
27687         type_annotate_only.
27688         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
27689         RETURN_STMT): New.
27690         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
27691         New fcns.
27692         (gnat_to_gnu): Collect any RTL generated and deal with it.
27693         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
27694         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
27695         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
27697         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
27699         * ada-tree.def (EXPR_STMT): Fix typo in name.
27700         (BLOCK_STMT, IF_STMT): New nodes.
27702         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
27703         LABEL_STMT_FIRST_IN_EH): New macros.
27704         (RETURN_STMT_EXPR): Likewise.
27706         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
27707         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
27709 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
27711         * atree.ads: Correct documentation on extended nodes.
27713         * link.c: Set run_path_option for FreeBSD.
27715 2004-04-08  Vincent Celier  <celier@gnat.com>
27717         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
27718         one of the ALI file, do not link with DEC lib.
27720         * par.adb Remove the last two characters ("%s" or "%b") when checking
27721         if a language defined unit may be recompiled.
27723 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
27725         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
27726         removal of abstract operation leaves no possible interpretation for
27727         expression.
27729         * sem_eval.adb (Eval_Qualified_Expression): Use
27730         Set_Raises_Constraint_Error on node when needed, so that it does not
27731         get optimized away by subsequent optimizations.
27733         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
27734         operands even when they are not wrapped in a type conversion.
27736 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
27738         * sem_prag.adb (Set_Exported): Warn about making static as result of
27739         export only when the export is coming from source. This may be not
27740         be true e.g. on VMS where we expand export pragmas for exception codes
27741         together with imported or exported exceptions, and we don't want the
27742         user to be warned about something he didn't write.
27744 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
27746         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
27747         duplication between normal entities and those declared as renamings.
27748         No functional change.
27750         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
27751         inline functions returning an unconstrained result.
27753 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
27755         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
27756         conform to what other front-ends do.
27758 2004-04-08  Doug Rupp  <rupp@gnat.com>
27760         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
27761         libraries.
27763 2004-04-06  Pascal Obry  <obry@gnat.com>
27765         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
27767         * osint.adb (Program_Name): Do not look past a directory separator.
27769 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
27771         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
27773         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
27774         requirement for preserving a copy of the original assignment node.
27776         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
27778 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
27780         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
27781         when supported.
27783 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
27785         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
27786         operator calls in functional notation, and apply
27787         Universal_Interpretation to operands, not to their type.
27789 2004-04-06  Robert Dewar  <dewar@gnat.com>
27791         * 5wdirval.adb: Minor reformatting
27793 2004-04-06  Ed Falis  <falis@gnat.com>
27795         * gnat_rm.texi: Improve a reference to the GCC manual
27797 2004-04-05  Vincent Celier  <celier@gnat.com>
27799         * adaint.h, adaint.c: Add function __gnat_named_file_length
27801         * impunit.adb: Add Ada.Directories to the list
27803         * Makefile.in: Add VMS and Windows versions of
27804         Ada.Directories.Validity package body.
27806         * Makefile.rtl: Add a-direct and a-dirval
27808         * mlib-tgt.ads: Minor comment update.
27810         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
27811         a-direct.ads, a-direct.adb: New files.
27813 2004-04-05  Vincent Celier  <celier@gnat.com>
27815         PR ada/13620
27816         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
27817         just to the compiler.
27819 2004-04-05  Robert Dewar  <dewar@gnat.com>
27821         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
27822         returned string is 1.
27824         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
27826         * eval_fat.ads: Minor reformatting
27828         * g-curexc.ads: Document that lower bound of returned string values
27829         is always one.
27831         * gnatlink.adb: Add ??? comment for previous change
27832         (need to document why this is VMS specific)
27834         * s-stoele.ads: Minor reformatting
27836         * tbuild.ads: Minor reformatting throughout (new function specs)
27838         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
27839         after WITH.
27841         * scng.adb: Minor reformatting
27843 2004-04-05  Geert Bosch  <bosch@gnat.com>
27845         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
27846         (Leading_Part): Still perform truncation to machine number if the
27847         specified radix_digits is greater or equal to machine_mantissa.
27849 2004-04-05  Javier Miranda  <miranda@gnat.com>
27851         * par-ch3.adb: Complete documentation of previous change
27852         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
27853         (aliased must appear before constant).
27855         * par-ch4.adb: Complete documentation of previous change.
27857         * par-ch6.adb: Complete documentation of previous change.
27859         * sinfo.ads: Fix typo in commment.
27861 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
27863         * sem_ch3.adb (Inherit_Components): If derived type is private and has
27864         stored discriminants, use its discriminants to constrain parent type,
27865         as is done for non-private derived record types.
27867         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
27868         Ada 2005 AI-310: an abstract non-dispatching operation is not a
27869         candidate interpretation in an overloaded call.
27871         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
27872         expression is Null and target type is not an access type (e.g. a
27873         non-private address type).
27875 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
27877         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
27878         statement whose right-hand side is an inlined call, save a copy of the
27879         original assignment subtree to preserve enough consistency for
27880         Analyze_Assignment to proceed.
27882         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
27883         complete assignment subtree which is now unnecessary, as the expansion
27884         of inlined call has been improved to preserve a consistent assignment
27885         tree.  Note_Possible_Modification must be called only
27886         after checks have been applied, or else unnecessary checks will
27887         be generated.
27889         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
27890         of explicit dereferences that do not Come_From_Source:
27891          - be selective on cases where we must go back to the dereferenced
27892            pointer (an assignment to an implicit dereference must not be
27893            recorded as modifying the pointer);
27894          - do not rely on Original_Node being present (Analyze_Assignment
27895            calls Note_Possible_Modification on a copied tree).
27897         * sem_warn.adb (Check_References): When an unset reference to a pointer
27898         that is never assigned is encountered, prefer '<pointer> may be null'
27899         warning over '<pointer> is never assigned a value'.
27901 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
27903         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
27904         the ABI.
27906 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
27908         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
27909         libexc. We currently don't reference anything in this library and
27910         linking it in triggers linker warnings we don't want to see.
27912         * init.c: Update comments.
27914 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27916         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
27917         * utils.c (create_field_decl): Likewise.
27918         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
27920 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
27922         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
27923         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
27924         Add info directory entry and category.
27926 2004-04-02  Jan Hubicka  <jh@suse.cz>
27928         * utils.c: Include function.h
27929         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
27931 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
27933         PR ada/14150
27934         * Make-lang.in: Clean up generation of documentation
27936         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
27938         * xgnatug.adb: Removed, replaced by xgnatugn.adb
27940         * xgnatugn.adb: Replaces xgnatug.adb
27942         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
27944         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
27946         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
27947         gnat_ug_wnt.texi: Removed.
27949 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
27951         * utils2.c: Update copyright notice.
27953 2004-04-01  Robert Dewar  <dewar@gnat.com>
27955         * checks.adb: Minor reformatting throughout
27956         Note that prev checkin added RM reference to alignment warning
27958 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
27960         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
27961         non-static when building aggregate for bit-packed array.
27963         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
27964         function call that is itself the actual in a procedure call, build
27965         temporary for it.
27967         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
27968         a string literal, create a temporary for it, constant folding only
27969         handles scalars here.
27971 2004-04-01  Vincent Celier  <celier@gnat.com>
27973         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
27974         Error_Msg_SP): New empty procedures to instantiate the Scanner.
27975         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
27976         tokens.
27977         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
27978         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
27979         and get the checksum.
27981         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
27982         already in the Q.
27983         Increase the Marking_Label at the end of the Multiple_Main_Loop,
27984         instead of at the beginning.
27986         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
27987         directly.
27988         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
27989         on VMS.
27991         * osint.ads (Multi_Unit_Index_Character): New Character global variable
27993         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
27994         not '~' directly.
27996         * par.adb: Remove test on file name to detect language defined units.
27997         Add test on unit name, after parsing, to detect language defined units
27998         that are not compiled with -gnatg (except System.RPC and its children)
28000         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
28001         following units without style checking.
28003         * switch-c.adb: Change -gnatC to -gnateI
28005         * usage.adb: Document new switch -gnateInnn
28007         * scng.adb (Accumulate_Token_Checksum): New procedure
28008         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
28009         word or literal number.
28010         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
28011         numbers.
28013 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
28015         * a-tasatt.adb,
28016         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
28017         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
28018         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
28019         5vtpopde.adb: Add missing 'constant' keywords.
28021 2004-04-01  Javier Miranda  <miranda@gnat.com>
28023         * par-ch4.adb: (P_Allocator): Code cleanup
28025         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
28026         attribute.
28028         * sinfo.ads: Complete documentation of previous change
28030 2004-04-01  Pascal Obry  <obry@gnat.com>
28032         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
28033         only on VMS.  This special handling was done because an old GNU/ld bug
28034         on Windows which has been fixed.
28036 2004-04-01  GNAT Script  <nobody@gnat.com>
28038         * Make-lang.in: Makefile automatically updated
28040 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28042         * decl.c (gnat_to_gnu_entity, make_type_from_size):
28043         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
28044         * trans.c (tree_transform, convert_with_check): Likewise.
28045         * utils.c (gnat_signed_or_unsigned_type): Likewise.
28046         (build_vms_descriptor, unchecked_convert): Likewise.
28047         * utils2.c (nonbinary_modular_operation): Likewise.
28049 2004-03-29  Javier Miranda  <miranda@gnat.com>
28051         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
28052         (Install_Null_Excluding_Check): Local subprogram that determines whether
28053         an access node requires a runtime access check and if so inserts the
28054         appropriate run-time check.
28055         (Apply_Access_Check): Call Install_Null_Excluding check if required
28056         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
28058         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
28060         * einfo.ads: Fix typo in comment
28062         * exp_ch3.adb (Build_Assignment): Generate conversion to the
28063         null-excluding type to force the corresponding run-time check.
28064         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
28065         type to force the corresponding run-time check.
28067         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
28068         the null-excluding type to force the corresponding run-time check.
28070         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
28071         case of access types unless they have the null-excluding attribute.
28073         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
28074         part.
28076         * exp_util.ads: Fix typo in comment
28078         * par.adb (P_Null_Exclusion): New subprogram
28079         (P_Subtype_Indication): New formal that indicates if the null-excluding
28080         part has been scanned-out and it was present
28082         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
28084         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
28085         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
28086         type to force the corresponding run-time check
28087         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
28088         components
28089         (Resolve_Array_Aggregate): Carry out some static checks
28090         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
28092         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
28093         attribute must be set only if specified by means of the null-excluding
28094         part. In addition, we must also propagate the access-constant attribute
28095         if present.
28096         (Access_Subprogram_Declaration, Access_Type_Declaration,
28097         Analyze_Component_Declaration, Analyze_Object_Declaration,
28098         Array_Type_Declaration, Process_Discriminants,
28099         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
28100         and carry out some static checks.
28101         (Build_Derived_Access_Type): Set the null-excluding attribute
28102         (Derived_Type_Declaration, Process_Subtype): Carry out some static
28103         checks.
28105         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
28107         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
28109         * sem_ch6.adb (Process_Formals): Carry out some static checks.
28110         (Set_Actual_Subtypes): Generate null-excluding subtype if the
28111         null-excluding part was present; it is not required to be done here in
28112         case of anonymous access types.
28113         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
28114         value.
28116         * sem_res.adb (Resolve_Actuals): Carry out some static check
28117         (Resolve_Null): Allow null in anonymous access
28119         * sinfo.adb: New subprogram Null_Exclusion_Present
28120         All_Present and Constant_Present available on access_definition nodes
28122         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
28123         object_declaration, derived_type_definition, component_definition,
28124         discriminant_specification, access_to_object_definition,
28125         access_function_definition, allocator, access_procedure_definition,
28126         access_definition, parameter_specification, All_Present and
28127         Constant_Present flags available on access_definition nodes.
28129 2004-03-29  Robert Dewar  <dewar@gnat.com>
28131         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
28132         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
28133         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
28134         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
28135         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
28136         sem_prag.adb: Updates to handle multiple units/file
28138         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
28140         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
28141         sem_util.adb: Minor reformatting
28143         * sem_ch12.adb: Add comment for previous change
28145 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
28147         * osint.adb (Executable_Prefix): Set Exec_Name to the current
28148         executable name when not initialized. Otherwise, use its current value.
28150         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
28151         initialize it to another executable name than the current one. This
28152         allows to configure paths for an executable name (gnatmake) different
28153         from the current one (gnatdist).
28155 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
28157         * exp_ch6.adb (Expand_Call): A call to a function declared in the
28158         current unit cannot be inlined if it appears in the body of a withed
28159         unit, to avoid order of elaboration problems in gigi.
28161         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
28162         information for protected (wrapper) operation as well, to simplify gdb
28163         use.
28165         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
28166         protected body, indicate that the entity for the generated spec comes
28167         from source, to ensure that references are properly generated for it.
28168         (Build_Body_To_Inline): Do not inline a function that returns a
28169         controlled type.
28171         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
28172         apply convention to homonyms that are declared explicitly.
28174         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
28175         that renames an equality operator and the operands are overloaded,
28176         resolve them with the declared formal types, before rewriting as an
28177         operator.
28179 2004-03-29  GNAT Script  <nobody@gnat.com>
28181         * Make-lang.in: Makefile automatically updated
28183 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
28185         * memtrack.adb: Log realloc calls, which are treated as free followed
28186         by alloc.
28188 2004-03-25  Vincent Celier  <celier@gnat.com>
28190         * prj-makr.adb (Process_Directories): Detect when a file contains
28191         several units. Do not include such files in the config pragmas or
28192         in the naming scheme.
28194         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
28195         Resolve links only when not in Trusted_Mode.
28196         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
28197         Do not resolve links for the display names.
28199         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
28200         resolve links when computing the display names.
28202 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
28204         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
28205         attribute reference does not denote a subtype, it can be any
28206         expression that has a classwide type, potentially after an implicit
28207         dereference.  In particular, the prefix can be a view conversion for
28208         a classwide type (for which Is_Object_Reference holds), but it can
28209         also be a value conversion for an access-to-classwide type. In the
28210         latter case, there is an implicit dereference, and the original node
28211         for the prefix does not verify Is_Object_Reference.
28213         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
28214         conversion of a discriminant-dependent component of a mutable object
28215         is one itself.
28217 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
28219         * freeze.adb (Freeze_Entity): When an inherited subprogram is
28220         inherited, has convention C, and has unconstrained array parameters,
28221         place the corresponding warning on the derived type declaration rather
28222         than the original subprogram.
28224         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
28225         indication on renaming declaration, if formal has a box and actual
28226         is absent.
28228         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
28229         determine whether to generate an implicit or explicit reference to
28230         the renamed entity.
28232         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
28233         subprogram renaming comes from a defaulted formal subprogram in an
28234         instance.
28236 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
28238         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
28239         value expressions to ensure that calls within a component definition
28240         will be checked (since those are evaluated during the record type's
28241         elaboration).
28243 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
28245         * s-tpobop.adb: Code clean up:
28246         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
28247         code.
28248         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
28250 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
28252         * Makefile.in: Clean up in the ravenscar run time.
28254 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28256         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
28257         of No_Strict_Aliasing to build_pointer_type_for_mode.
28258         * utils.c (update_pointer_to): Walk pointer and ref chains.
28260 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
28262         * ali.ads: Fix Comment about Dynamic_Elab.
28264         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
28265         Has_RACW, Is_Generic, etc.)
28266         (Output_Object, Gnatls): Take into account ALI files not attached to
28267         an object.
28269 2004-03-22  Vincent Celier  <celier@gnat.com>
28271         * gprep.adb: Change all String_Access to Name_Id
28272         (Is_ASCII_Letter): new function
28273         (Double_File_Name_Buffer): New procedure
28274         (Preprocess_Infile_Name): New procedure
28275         (Process_Files): New procedure
28276         (Gnatprep): Check if output and input are existing directories.
28277         Call Process_Files to do the real job.
28279 2004-03-22  Robert Dewar  <dewar@gnat.com>
28281         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
28282         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
28284 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
28286         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
28287         case when the source contains only comments.
28289 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
28291         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
28292         declaration for a child subprogram body that acts as a spec, indicate
28293         that the entity in the declaration needs debugging information.
28295         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
28296         full view if the subtype is created for a constrained record component;
28297         gigi has enough information to construct the record, and there is no
28298         place in the tree for the declaration.
28300         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
28301         serial number for the dummy body that is built for analysis, to avoid
28302         inconsistencies in the generation of internal names when compiling
28303         with -gnatN.
28305 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
28307         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
28308         object.
28310 2004-03-22  GNAT Script  <nobody@gnat.com>
28312         * Make-lang.in: Makefile automatically updated
28314 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28316         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
28317         * trans.c (tree_transform, emit_index_check): Likewise.
28318         * utils.c (build_template): Likewise.
28319         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
28320         (maybe_unconstrained_array, unchecked_convert): Likewise.
28321         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
28322         (build_unary_op): Likewise.
28323         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
28324         (fill_vms_descriptor): Likewise.
28325         (build_call_alloc_dealloc): Likewise.
28326         ALIGN is unsigned.
28327         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
28329 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
28331         PR other/14630
28332         * gnat_ug.texi: Add info directory category and entry.
28333         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
28334         gnat_ug_wnt.texi: Regenerate.
28336 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
28338         * ada-tree.h: Update copyright notice.
28339         Minor reformatting.
28341 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
28343         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
28344         as regular exception objects and not as mere integers representing the
28345         condition code.  The latter approach required some dynamics to mask off
28346         severity bits, which did not fit well into the GCC table based model.
28347         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
28348         exception data objects. We don't it and it would conflict with the other
28349         external symbol we have to generate for such exceptions.
28351         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
28352         the special code for VMS exceptions, since these are now represented
28353         as regular exceptions objects.
28355 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28357         * decl.c (debug_no_type_hash): Remove.
28358         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
28359         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
28361 2004-03-19  Laurent Guerby <laurent@guerby.net>
28363         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
28364         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
28366 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28368         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
28369         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
28370         (TYPE_RM_SIZE_INT): Directly use type.values.
28371         (TREE_LOOP_ID): Clean up check.
28372         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
28373         TYPE_VALUES, not TYPE_FIELDS.
28374         * trans.c (convert_with_check): Delay access of bounds of basetype
28375         until sure is numeric.
28377 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
28379         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
28381         Code clean up:
28382         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
28383         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
28384         Specific.Set instead of direct call to e.g pthread_setspecific.
28386 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
28388         * adaint.c: Update comments.
28390         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
28391         GNATLIB_SHARED for FreeBSD.
28393 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
28395         * init.c [VxWorks]: Do not fix the stack size for the environment task.
28396         When needed (stack checking) the stack size is retrieved
28397         from the VxWorks kernel.
28399         * Makefile.in: Flag -nostdinc is required when building the run time
28400         for avoiding looking for files in the base compiler.
28401         Add the VxWorks specific version of the package body for
28402         System.Stack_checking.Operations (5zstchop.adb).
28404         * Make-lang.in: Add the object file for
28405         System.Stack_Checking.Operations.
28407         * Makefile.rtl: Add object file for the package
28408         System.Stack_Checking.Operations.
28410         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
28412         * s-stache.ads, s-stache.adb: Move the operations related to stack
28413         checking from this package to package System.Stack_Checking.Operations.
28414         This way, stack checking operations are only linked in the final
28415         executable when using the -fstack-check flag.
28417 2004-03-18  Doug Rupp  <rupp@gnat.com>
28419         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
28420         Reorganize ifeq's.
28422         * 5qsystem.ads, 5xcrtl.ads: New files.
28424 2004-03-18  Vincent Celier  <celier@gnat.com>
28426         * prj.adb (Reset): Reset hash table Files_Htable
28428         * prj-env.adb (Source_Paths, Object_Paths): New tables.
28429         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
28430         the procedures Add_To_Path_File.
28431         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
28432         making sure that each directory is present only once and, for object
28433         dirs, when a directory already present is added, the duplicate is
28434         removed and the directory is always put as the last in the table.
28435         Write the path files at the end of these accumulations.
28437         * prj-nmsc.adb (Record_Source): Add source file name in hash table
28438         Files_Htable for all sources.
28440         * prj-proc.adb (Process): Remove restrictions between not directly
28441         related extending projects.
28443 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
28445         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
28446         (Find_Sources): Minor speed optimization.
28448         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
28449         parameter Trusted_Mode.
28451 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
28453         * scn.adb (Determine_License): Take into account a degenerated case
28454         when the source contains only comments.
28456 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
28458         * sem_warn.adb (Check_References): For a warning on a selected
28459         component that does not come from source, locate an uninitialized
28460         component of the record type to produce a more precise error message.
28462 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
28464         * 3zsoccon.ads: Fix multicast options.
28466         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
28467         in the spec.
28469 2004-03-15  Robert Dewar  <dewar@gnat.com>
28471         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
28472         pragma used for a private type.
28474         * lib-xref.adb (Generate_Reference): Do not generate warning if
28475         reference is in a different unit from the pragma Unreferenced.
28477         * 5vtpopde.adb: Minor reformatting
28478         Fix casing of To_Task_ID
28480         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
28481         flag if we have an unchecked conversion to an access type in the same
28482         unit.
28484 2004-03-15  Geert Bosch  <bosch@gnat.com>
28486         * a-ngcoty.adb (Modulus): In alternate formula for large real or
28487         imaginary parts, use Double precision throughout.
28489         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
28490         we want to be able to compile run-time with -gnata for testing, but
28491         this may also be instantiated in user code that is compiled with -gnata.
28493 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
28495         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
28496         codes. Having a separate type for this is useful to enforce consistency
28497         throughout the various run-time units.
28498         (Exception_Data): Use Exception_Code for Import_Code.
28500         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
28501         Natural and Integer in various places.
28502         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
28503         with the severity bits masked off.
28504         (Register_VMS_Exception): Handle the additional exception data pointer
28505         argument.
28507         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
28508         component, now reflected by an exported accessor.
28509         (is_handled_by): New routine to compute whether the propagated
28510         occurrence matches some handler choice specification. Extracted out of
28511         get_action_description_for, and expanded to take care of the VMS
28512         specifities.
28513         (get_action_description_for): Use is_handled_by instead of an explicit
28514         complex condition to decide if the current choice at hand catches the
28515         propagated occurrence.
28517         * raise.h (Exception_Code): New type for C.
28519         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
28520         System.Standard_Library.Exception_Code, to allow references from the
28521         pragma import/export expander.
28523         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
28524         New accessors to allow easy access to GNAT exception data
28525         characteristics.
28526         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
28527         redundant Handled_By_Others component, helper for the personality
28528         routine which will now be able to call the appropriate exception data
28529         accessor instead.
28531         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
28532         component of Standard_Exception_Type to be the closest possible to
28533         Exception_Code in System.Standard_Library, that we cannot get at this
28534         point. Expand a ??? comment to notify that this type node should
28535         probably be rewritten later on.
28537         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
28538         registration call to include a pointer to the exception object in the
28539         arguments.
28541         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
28542         instead of int and explicit bitmasks.
28544 2004-03-15  Vincent Celier  <celier@gnat.com>
28546         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
28547         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
28549         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
28550         longer needed now that it is in the spec of
28551         System.Tasking.Task_Attributes.
28553         * adaint.h, adaint.c: (__gnat_create_output_file): New function
28555         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
28557         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
28559         * make.adb (Gnatmake): Do not check the executable suffix; it is being
28560         taken care of in Scan_Make_Arg.
28561         (Scan_Make_Arg): Add the executable suffix only if the argument
28562         following -o, in canonical case, does not end with the executable
28563         suffix.  When in verbose mode and executable file name does not end
28564         with executable suffix, output the executable name, in canonical case.
28566         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
28567         to avoid warnings when instantiating Ada.Task_Attributes.
28568         Minor reformating.
28570         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
28571         in the correct order.
28573         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
28574         redirect standard output and error to a file for the invocation of the
28575         compiler, then read the file.
28577         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
28578         directory, instead of the Value.
28579         (Find_Source_Dirs): Remove useless code & comments.
28581 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
28583         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
28584         tagged type is inherited, and the parent operation is not frozen yet,
28585         force generation of a freeze node for the inherited operation, so the
28586         corresponding dispatch entry is properly initialized.
28587         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
28588         when looking for user-defined equality operation.
28590         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
28591         boolean when locating primitive equality of tagged component.
28593         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
28594         bit-aligned field and the right-hand side a string literal, introduce
28595         a temporary before expanding assignment into a loop.
28597         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
28598         priority in full, to ensure that any expanded subepxressions of it are
28599         elaborated in the scope of the init_proc.
28601         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
28602         after object declaration, skipping over code that may have been
28603         generated for validity checks.
28605         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
28606         discriminants, ignore the known discriminants of its full view, if
28607         any, to check legality.
28609         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
28610         component if type has unknown discriminants.
28611         (Analyze_Private_Extension_Declaration): Discriminant constraint is
28612         null if type has unknown discriminants.
28614         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
28615         for end label when present.
28617         * s-fileio.adb (Open): When called with a C_Stream, use given name for
28618         temporary file, rather than an empty string.
28620 2004-03-15  Ed Falis  <falis@gnat.com>
28622         * s-thread.adb: Removed, no longer used.
28624 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28626         * decl.c (target.h): Now include.
28627         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
28628         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
28629         (validate_size): For POINTER_TYPE, get smallest size permitted on
28630         machine.
28632         * fe.h: Sort Einfo decls and add Set_Mechanism.
28634         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
28635         (ada/decl.o): Depends on target.h.
28637         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
28638         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
28640 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
28642         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
28644         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
28645         Insert_Dereference_Action when rewriting an implicit dereference into
28646         an explicit one, this will be taken care of during expansion of the
28647         explicit dereference.
28648         (Expand_N_Slice): Same. Always do the rewriting, even for the case
28649         of non-packed slices, since the dereference action generated by
28650         expansion of the explicit dereference is needed in any case.
28651         (Expand_N_Selected_Component): When rewriting an implicit dereference,
28652         analyze and resolve the rewritten explicit dereference so it is seen
28653         by the expander.
28654         (Insert_Dereference_Action): This procedure is now called only for the
28655         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
28656         dereferences that do not come from source (including explicit
28657         dereferences resulting from rewriting implicit ones), but do not
28658         recursively insert a check for the dereference nodes contained within
28659         the check.
28660         (Insert_Dereference_Action): Clarify and correct comment.
28662 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
28664         PR ada/14131
28665         Move language detection to the top level.
28666         * config-lang.in: Build by default.
28668 2004-03-05  Robert Dewar  <dewar@gnat.com>
28670         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
28672         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
28673         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
28674         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
28675         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
28676         unchecked conversion to spec to avoid warnings.
28678         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
28679         to Task_ID
28681         * 7stpopsp.adb: Correct casing in To_Task_ID call
28683         * a-strsea.ads, a-strsea.adb: Minor reformatting
28685         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
28687         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
28688         Adjust Max_Msg_Length to be clearly large enough.
28690         * fe.h: Define In_Same_Source_Unit
28692         * osint.adb: Add pragma Warnings Off to suppress warnings
28693         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
28694         aliasing warnings.
28696         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
28698         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
28700         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
28702         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
28704         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
28706         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
28707         node. We now do generate them for gcc back end.
28709         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
28710         warning.
28712         * sinput-c.adb: Fix bad name in header.
28713         Add pragma Warnings Off to suppress aliasing warning.
28715         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
28717         * snames.h, snames.ads, snames.adb: Add entry for pragma
28718         No_Strict_Aliasing.
28720 2004-03-05  Vincent Celier  <celier@gnat.com>
28722         * prj-com.ads: Add hash table Files_Htable to check when a file name
28723         is already a source of another project.
28725         * prj-nmsc.adb (Record_Source): Before recording a new source, check
28726         if its file name is not already a source of another project. Report an
28727         error if it is.
28729         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
28730         source file name, call gnatpp with all the sources of the main project.
28732         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
28733         of file names.
28735         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
28736         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
28737         /RUNTIME_SYSTEM=, converted to --RTS=
28738         /NOTABS, converted to -notabs
28740 2004-03-05  Pascal Obry  <obry@gnat.com>
28742         * make.adb: Minor reformatting.
28744 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
28746         Part of implemention of AI-262.
28747         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
28749         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
28750         procedure.
28752         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
28753         when component type is a partially constrained class-wide subtype.
28754         (Constrain_Discriminated_Type): If parent type has unknown
28755         discriminants, a constraint is illegal, even if full view has
28756         discriminants.
28757         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
28758         with unknown discriminants whose full view is a discriminated record.
28760         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
28761         flag, to handle properly derivations of tagged types with unknown
28762         discriminants.
28763         (Analyze_Package_Spec, Analyze_Package_Body): Install
28764         Private_With_Clauses before analyzing private part or body.
28766         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
28767         Has_Discriminants can be true for a given type (documentation).
28769 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
28771         * s-restri.ads: Fix license (GPL->GMGPL).
28773         * s-tassta.adb: Minor reformatting.
28775         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
28776         by calls to Exit_One_ATC_Level, since additional clean up is performed
28777         by this function.
28779         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
28780         by calls to Exit_One_ATC_Level, since additional clean up is performed
28781         by this function.
28783 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28785         * trans.c: Reflect GCC changes to fix bootstrap problem.
28786         Add warning for suspicious aliasing unchecked conversion.
28788 2004-03-05  GNAT Script  <nobody@gnat.com>
28790         * Make-lang.in: Makefile automatically updated
28792 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
28794         * ali.adb (Read_Instantiation_Instance): Do not modify the
28795         current_file_num when reading information about instantiations, since
28796         this corrupts files in later references.
28798 2004-03-02  Vincent Celier  <celier@gnat.com>
28800         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
28801         before checking if it is read-only.
28803         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
28804         of SRC_DIRS and eliminate duplicates.
28806         * gprcmd.adb: Replace command "path" with command "path_sep" to return
28807         the path separator.
28808         (Usage): Document path_sep
28810         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
28811         C++ compiler. No need for a script.
28812         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
28813         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
28814         subst.
28816         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
28817         where there are Ada sources.
28818         (Set_Ada_Paths): Only add to the include path the source dirs of project
28819         with Ada sources.
28820         (Add_To_Path): Add the Display_Values of the directories, not their
28821         Values.
28823         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
28824         data.
28826         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
28827         is not No_Name.
28828         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
28829         Value is canonicalized.
28830         (Language_Independent_Check): Do not copy Value to Display_Value when
28831         canonicalizing Value.
28833         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
28834         path to find limited with cycles.
28835         (Parse_Single_Project): Use canonical cased path to find the end of a
28836         with cycle.
28838 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
28840         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
28841         and not a child unit.
28843         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
28844         appear in a with_clause.
28846         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
28847         only happen in type_annotate mode, do not try to elaborate it.
28849         * exp_util.adb (Force_Evaluation): If expression is a selected
28850         component on the left of an assignment, use a renaming rather than a
28851         temporary to remove side effects.
28853         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
28854         inlined instance body, which is analyzed before the end of the
28855         enclosing scope.
28857 2004-03-02  Robert Dewar  <dewar@gnat.com>
28859         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
28860         sem_ch4.adb: Use new feature for substitution of keywords in VMS
28862         * errout.ads, errout.adb: Implement new circuit for substitution of
28863         keywords in VMS.
28865         * sem_case.adb (Analyze_Choices): Place message properly when case is
28866         a subtype reference rather than an explicit range.
28868         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
28870 2004-03-02  Doug Rupp  <rupp@gnat.com>
28872         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
28874 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
28876         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
28878 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28880         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
28881         BLKmode bitfield.
28883 2004-02-25  Robert Dewar  <dewar@gnat.com>
28885         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
28886         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
28887         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
28888         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
28889         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
28890         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
28891         the defining instance of the type to avoid aliasing problems.
28892         Fix copyright header.  Fix bad comments in package header.
28894         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
28896 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
28898         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
28899         rewritten as references when aliased through an address clause.
28901         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
28902         whether call can be interpreted as an indirect call to the result of a
28903         parameterless function call returning an access subprogram.
28905 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
28907         Code clean up:
28908         * exp_ch7.adb (Make_Clean): Remove generation of calls to
28909         Unlock[_Entries], since this is now done by Service_Entries directly.
28911         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
28913         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
28914         Requeue_Call for better code readability. Change spec and update calls:
28915         PO_Service_Entries now unlock the PO on exit.
28916         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
28917         PO_Service_Entries.
28919         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
28921         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
28923 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
28925         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
28926         protected subprogram call and analyzing the result of such expanding
28927         in case when the called protected subprogram is eliminated.
28929         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
28930         names.
28932 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
28934         * Makefile.in: Clean ups.
28936 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
28938         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
28939         protected operations if original subprogram is flagged as eliminated.
28940         (Expand_N_Subprogram_Body): For a protected operation, create
28941         discriminals for next operation before checking whether the operation
28942         is eliminated.
28944         * exp_ch9.adb (Expand_N_Protected_Body,
28945         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
28946         for internal protected operations if the original subprogram is
28947         eliminated.
28949         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
28950         declared in a single protected object.
28952 2004-02-23  Vincent Celier  <celier@gnat.com>
28954         * prj-attr.adb: Make attribute Builder'Executable an associative array,
28955         case insensitive if file names are case insensitive, instead of a
28956         standard associative array.
28958         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
28959         them as case insensitive on platforms where the file names are case
28960         sensitive.
28962         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
28963         project file has already been parsed that canonical path are compared.
28965 2004-02-23  Robert Dewar  <dewar@gnat.com>
28967         * sinput-c.ads: Correct bad unit title in header
28969         * freeze.adb: Minor reformatting
28971 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28973         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
28974         nonaddressable COMPONENT_REF that is removing padding that we are
28975         taking the address of, take the address of the padded record instead
28976         if item is variable size.
28978 2004-02-20  Robert Dewar  <dewar@gnat.com>
28980         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
28982 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
28984         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
28985         itype references for the constrained designated type of a component
28986         whose base type is already frozen.
28988 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
28990         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
28991         avoid GCC warnings.
28993 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
28995         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
28996         identifier for a phantom package that rewrites the formal package
28997         declaration with a box. The Add semantic decorations for the defining
28998         identifier from the original node (that represents the formal package).
29000 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
29002         * Make-lang.in (ada/stamp-sdefault): Use the top level
29003         move-if-change.
29005 2004-02-19  Richard Henderson  <rth@redhat.com>
29007         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
29009 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
29011         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
29012         Scan_ALI can be used for multiple ALI files without reinitializing
29013         between calls.
29015 2004-02-18  Robert Dewar  <dewar@gnat.com>
29017         * debug.adb: Minor reformatting.
29019 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29021         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
29022         to zero if there is an address clause.
29024 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
29026         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
29028 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
29030         * layout.adb (Layout_Component_List): Revise generation of call to
29031         discriminant-checking function to pass selections of all of the type's
29032         discriminants rather than just the variant-controlling discriminant.
29034 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
29036         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
29037         fail in the current setup and triggers spurious system error messages.
29038         Pretend it occurred and failed instead.
29040 2004-02-18  Vincent Celier  <celier@gnat.com>
29042         * bld.adb: Mark FLDFLAGS as saved
29043         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
29044         it is not the root project.  Put each directory to be
29045         extended between double quotes to prevent it to be expanded on Windows.
29046         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
29047         the project file. Set them back to their initial values if they have not
29048         been set in the project file.
29050         * gprcmd.adb: (Gprdebug, Debug): New global variables
29051         (Display_Command): New procedure
29052         (Usage): Document new command "linkopts"
29053         Call Display_Command when env var GPRDEBUG has the value "TRUE"
29054         Implement new command "linkopts"
29055         Remove quotes that may be around arguments for "extend"
29056         Always call Normalize_Pathname with arguments formatted for the platform
29058         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
29059         Change @echo to @$(display) in target clean to be able to clean silently
29061         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
29063         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
29064         canonical case.
29066         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
29067         = Extending_All when current project is an extending all project.
29069         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
29070         set to True only for LINK command, after Unix switch -o.
29071         (Process_Arguments): Set Output_File_Expected to True for LINK command
29072         after Unix switch -o. When Output_File_Expected is True, never add an
29073         extension to a file name.
29075         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
29076         option file name, only to the --for-linker= switch.
29077         (Option_File_Name): If option file name do not end with ".opt", append
29078         "/OPTIONS".
29080 2004-02-18  GNAT Script  <nobody@gnat.com>
29082         * Make-lang.in: Makefile automatically updated
29084 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
29086         * Make-lang.in (stamp-sdefault): Do not depend on
29087         move-if-change.
29089 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
29091         * config-lang.in: Disable Ada by default until probe logic for
29092         a bootstrap Ada compiler can be moved to the top level configure
29093         script.
29095 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
29097         * decl.c (components_to_record): Don't claim that the internal fields
29098         we make to hold the variant parts are semantically addressable, because
29099         they are not.
29101         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
29102         adjust the comment describing the modular type form when we can use it.
29103         (Install_PAT): Account for the Esiz renaming.
29105         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
29106         sc_onstack context indication before raising the exception to which
29107         the signal is mapped. Allows better handling of later signals possibly
29108         triggered by the resumed user code if the exception is handled.
29110 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
29112         * 5zinit.adb: Removed, no longer used.
29114 2004-02-12  Robert Dewar  <dewar@gnat.com>
29116         * ali.adb: Remove separating space between parameters on R line. Makes
29117         format consistent with format used by the binder for Set_Globals call.
29119         * atree.ads, atree.adb: Minor reformatting (new function header format)
29121         * bindgen.adb: Add Run-Time Globals documentation section containing
29122         detailed documentation of the globals passed from the binder file to
29123         the run time.
29125         * gnatls.adb: Minor reformatting
29127         * init.c (__gnat_set_globals): Add note pointing to documentation in
29128         bindgen.
29130         * lib-writ.ads, lib-writ.adb: Remove separating space between
29131         parameters on R line.
29132         Makes format consistent with format used by the binder for Set_Globals
29133         call.
29135         * osint.ads: Add 2004 to copyright notice
29136         Minor reformatting
29138         * snames.ads: Correct capitalization of FIFO_Within_Priorities
29139         Noticed during code reading, documentation issue only
29141         * usage.adb: Remove junk line for obsolete C switch
29142         Noticed during code reading
29144 2004-02-12  Vincent Celier  <celier@gnat.com>
29146         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
29147         extend for each directory, so that multiple /** directories are
29148         extended individually.
29149         (Recursive_Process): Set the default for LANGUAGES to ada
29151         * gprcmd.adb: Define new command "ignore", to do nothing.
29152         Implement new comment "path".
29154         * Makefile.generic: Suppress output when SILENT is set
29155         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
29156         used, so that the correct compiler is invoked.
29157         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
29158         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
29160 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
29162         * Makefile.in: Clean ups and remove obsolete targets.
29164 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
29166         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
29167         predicate declared in exp_util.
29169         * exp_util.adb: Add comments.
29171         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
29172         visibility before compiling context of the subunit.
29174         * sem_res.adb (Check_Parameterless_Call): If the context expects a
29175         value but the name is a procedure, do not attempt to analyze as a call,
29176         in order to obtain more telling diagnostics.
29178         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
29179         'Access on parameterless function calls.
29180         (Normalize_Actuals): For a parameterless function call with missing
29181         actuals, defer diagnostic until resolution of enclosing call.
29183         * sem_util.adb (Wrong_Type): If the context type is an access to
29184         subprogram and the expression is a procedure name, suggest a missing
29185         'attribute.
29187 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
29188             Nathanael Nerode  <neroden@gcc.gnu.org>
29190         PR ada/6637
29191         PR ada/5911
29192         Merge with libada-branch:
29193         * config-lang.in: Build libada only when ada is built.
29195 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
29197         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
29198         for a tagged type, verify that both formals have the same type.
29200         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
29201         temporary when the formal is an in-parameter and the actual a possibly
29202         unaligned slice.
29204         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
29205         when expansion is disabled, to ensure proper name capture with
29206         overloaded literals.  Condition can be of any boolean type, resolve
29207         accordingly.
29209         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
29210         renaming is for a formal subprogram with a default operator name, and
29211         there is a usable operator that is visible at the point of
29212         instantiation.
29214 2004-02-09  Robert Dewar  <dewar@gnat.com>
29216         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
29217         rewrite to ignore errors in ali files, intended to allow tools downward
29218         compatibility with new versions of ali files.
29220         * ali.ads: Add new parameter Ignore_Errors
29222         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
29223         duplicating the error message giving the file with restrictions.
29225         * debug.adb: Add debug flag I for gnatbind
29227         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
29228         operators for the case where the operator is a defining operator.
29230         * exp_ch3.adb: Minor reformatting (new function spec format).
29232         * exp_ch4.adb: Add comment for previous change, and make minor
29233         adjustment to loop to always check for improper loop termination.
29234         Minor reformatting throughout (new function spec format).
29236         * gnatbind.adb: Implement -di debug flag for gnatbind
29238         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
29240         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
29242         * lib-load.adb: Fix bad assertion.
29243         Found by testing and code reading.
29244         Minor reformatting.
29246         * lib-load.ads: Minor reformatting.
29248         * lib-writ.adb: There is only one R line now.
29250         * lib-writ.ads: Add documentation on making downward compatible changes
29251         to ali files so old tools work with new ali files.
29252         There is only one R line now.
29253         Add documentation on format incompatibilities (with special GPS note)
29255         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
29257         * par-load.adb: Minor reformatting
29259         * sem_ch8.adb: Fix to error message from last update
29260         Minor reformatting and restructuring of code from last update
29262         * par-prag.adb, snames.adb, snames.ads, snames.h,
29263         sem_prag.adb: Implement pragma Profile.
29265         * stylesw.adb: Implement -gnatyN switch to turn off all style check
29266         options.
29268         * usage.adb: Add line for -gnatyN switch
29270         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
29272 2004-02-09  Albert Lee  <lee@gnat.com>
29274         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
29276 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
29278         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
29279         slices.
29281         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
29282         is nested in an instance that is not frozen yet, to avoid
29283         order-of-elaboration problems in gigi.
29285         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
29286         body the attribute is legal.
29288 2004-02-09  Robert Dewar  <dewar@gnat.com>
29290         * s-rident.ads: Minor comment correction
29292         * targparm.adb: Remove dependence on uintp completely. There was
29293         always a bug in Make in that it called Targparm before initializing
29294         the Uint package. The old code appeared to get away with this, but
29295         the new code did not! This caused an assertion error in gnatmake.
29297         * targparm.ads: Fix bad comment, restriction pragmas with parameters
29298         are indeed fully supported.
29300 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
29302         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
29304 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
29306         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
29307         with targetm.calls.promote_prototypes.
29309 2004-02-04  Robert Dewar  <dewar@gnat.com>
29311         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
29312         ali.ads, gprcmd.adb: Minor reformatting
29314         * bindgen.adb: Output restrictions string for new style restrictions
29315         handling
29317         * impunit.adb: Add s-rident.ads (System.Rident) and
29318         s-restri (System.Restrictions)
29320         * lib-writ.adb: Fix bug in writing restrictions string (last few
29321         entries wrong)
29323         * s-restri.ads, s-restri.adb: Change name Restrictions to
29324         Run_Time_Restrictions to avoid conflict with package name.
29325         Add circuit to read and acquire run time restrictions.
29327 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
29329         * restrict.ads, restrict.adb: Use the new restriction
29330         No_Task_Attributes_Package instead of the old No_Task_Attributes.
29332         * sem_prag.adb: No_Task_Attributes is a synonym of
29333         No_Task_Attributes_Package.
29335         * snames.ads, snames.adb: New entry for proper handling of
29336         No_Task_Attributes.
29338         * s-rident.ads: Adding restriction No_Task_Attributes_Package
29339         (AI-00249) that supersedes the GNAT specific restriction
29340         No_Task_Attributes.
29342 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
29344         * sem_prag.adb:
29345         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
29346          body, an identifier may be wrapped in an unchecked conversion.
29348 2004-02-04  Vincent Celier  <celier@gnat.com>
29350         * lib-writ.ads: Comment update for the W lines
29352         * bld.adb: (Expression): An empty string list is static
29354         * fname-uf.adb: Minor comment update
29356         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
29358         * gnatbind.adb: Initialize Cumulative_Restrictions with the
29359         restrictions on the target.
29361 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
29363         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
29364         gen_rtx.
29366 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
29368         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
29370 2004-02-02  Vincent Celier  <celier@gnat.com>
29372         * gprcmd.adb (Check_Args): If condition is false, print the invoked
29373         comment before the usage.
29374         Gprcmd: Fail when command is not recognized.
29375         (Usage): Document command "prefix"
29377         * g-md5.adb (Digest): Process last block.
29378         (Update): Do not process last block. Store remaining characters and
29379         length in Context.
29381         * g-md5.ads (Update): Document that several call to update are
29382         equivalent to one call with the concatenated string.
29383         (Context): Add fields to allow new Update behaviour.
29385         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
29386         defaulted to False.
29387         When May_Fail is True and no existing file can be found, return No_File.
29389         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
29390         functions.
29392         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
29393         spec file name instead on the W line.
29395 2004-02-02  Robert Dewar  <dewar@gnat.com>
29397         * ali.adb: Read and acquire info from new format restrictions lines
29399         * bcheck.adb: Add circuits for checking restrictions with parameters
29401         * bindgen.adb: Output dummy restrictions data
29402         To be changed later
29404         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
29405         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
29406         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
29407         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
29408         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
29410         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
29411         the warning message on access to possibly uninitialized variable S)
29412         Minor changes for new restrictions handling.
29414         * gnatbind.adb: Minor reformatting
29415         Minor changes for new restrictions handling
29416         Move circuit for -r processing here from bcheck (cleaner)
29418         * gnatcmd.adb, gnatlink.adb: Minor reformatting
29420         * lib-writ.adb: Output new format restrictions lines
29422         * lib-writ.ads: Document new R format lines for new restrictions
29423         handling.
29425         * s-restri.ads/adb: New files
29427         * Makefile.rtl: Add entry for s-restri.ads/adb
29429         * par-ch3.adb: Fix bad error messages starting with upper case letter
29430         Minor reformatting
29432         * restrict.adb: Major rewrite throughout for new restrictions handling
29433         Major point is to handle restrictions with parameters
29435         * restrict.ads: Major changes in interface to handle restrictions with
29436         parameters. Also generally simplifies setting of restrictions.
29438         * snames.ads/adb: New entry for proper handling of No_Requeue
29440         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
29441         restriction counting.
29442         Other minor changes for new restrictions handling
29444         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
29445         Restriction_Warnings now allows full parameter notation
29446         Major rewrite of Restrictions for new restrictions handling
29448 2004-02-02  Javier Miranda  <miranda@gnat.com>
29450         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
29451         syntax rule for object renaming declarations.
29452         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
29453         component definitions.
29455         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
29456         components.
29457         (Array_Type_Declaration): Give support to access components. In addition
29458         it was also modified to reflect the name of the object in anonymous
29459         array types. The old code did not take into account that it is possible
29460         to have an unconstrained anonymous array with an initial value.
29461         (Check_Or_Process_Discriminants): Allow access discriminant in
29462         non-limited types.
29463         (Process_Discriminants): Allow access discriminant in non-limited types
29464         Initialize the new Access_Definition field in N_Object_Renaming_Decl
29465         node.  Change Ada0Y to Ada 0Y in comments
29467         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
29468         equality operators.
29469         Change Ada0Y to Ada 0Y in comments
29471         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
29472         renamings Change Ada0Y to Ada 0Y in comments
29474         * sem_type.adb (Find_Unique_Type): Give support to the equality
29475         operators for universal access types
29476         Change Ada0Y to Ada 0Y in comments
29478         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
29480         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
29481         field.
29482         (N_Object_Renaming_Declaration): Addition of Access_Definition field
29483         Change Ada0Y to Ada 0Y in comments
29485         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
29486         component definition and object renaming nodes
29487         Change Ada0Y to Ada 0Y in comments
29489 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
29491         * restrict.adb: Use the new restriction identifier
29492         No_Requeue_Statements instead of the old No_Requeue for defining the
29493         restricted profile.
29495         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
29496         No_Requeue_Statements.
29498         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
29499         that supersedes the GNAT specific restriction No_Requeue. The later is
29500         kept for backward compatibility.
29502 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
29504         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
29505         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
29506         pragma and fix incorrect ones.
29508         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
29509         warning if the pragma is redundant.
29511 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
29513         * 5staprop.adb: Add missing 'constant' keywords.
29515         * Makefile.in: use consistent value for SYMLIB on
29516         platforms where libaddr2line is supported.
29518 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29520         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
29521         annotating types.
29523 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
29525         * init.c (__gnat_install_handler): Setup an alternate stack for signal
29526         handlers in the environment thread. This allows proper propagation of
29527         an exception on stack overflows in this thread even when the builtin
29528         ABI stack-checking scheme is used without support for a stack reserve
29529         region.
29531         * utils.c (create_field_decl): Augment the head comment about bitfield
29532         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
29533         here, because the former is not accurate enough at this point.
29534         Let finish_record_type decide instead.
29535         Don't make a bitfield if the field is to be addressable.
29536         Always set a size for the field if the record is packed, to ensure the
29537         checks for bitfield creation are triggered.
29538         (finish_record_type): During last pass over the fields, clear
29539         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
29540         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
29541         from DECL_BIT_FIELD.
29543 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
29545         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
29546         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
29547         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
29549 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
29551         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
29553         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
29554         (ZCX_By_Default): Likewise.
29555         (Front_End_ZCX_Support): Likewise.
29557         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
29558         (Initialize_Lock): Mark Level unreferenced.
29559         (Sleep): Mark Reason unreferenced.
29560         (Timed_Sleep): Likewise.
29561         (Wakeup): Likewise.
29562         (Exit_Task): Use Result.
29563         (Check_No_Locks): Mark Self_ID unreferenced.
29565         * 5gtasinf.adb (New_Sproc): Make Attr constant.
29566         (Bound_Thread_Attributes): Make Sproc constant.
29567         (New_Bound_Thread_Attributes): Likewise.
29569 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
29571         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
29572         one-dimensional array an slice assignments, when component type is
29573         controlled.
29575         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
29576         component type is controlled, and control_actions are in effect, use
29577         TSS procedure rather than generating inline code.
29579         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
29580         arrays with controlled components.
29582 2004-01-26  Vincent Celier  <celier@gnat.com>
29584         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
29585         command line for the non VMS case.
29587         * gnatlink.adb (Process_Binder_File): When building object file, if
29588         GNU linker is used, put all object paths between quotes, to prevent ld
29589         error when there are unusual characters (such as '!') in the paths.
29591         * Makefile.generic: When there are sources in Ada and the main is in
29592         C/C++, invoke gnatmake with -B, instead of -z.
29594         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
29595         from VMS_Conversion.
29596         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
29597         specification of argument file on the command line.
29599 2004-01-26  Bernard Banner  <banner@gnat.com>
29601         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
29603 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
29605         * snames.adb: Update copyright notice.
29606         Add info on slice assignment for controlled arrays.
29608 2004-01-23  Robert Dewar  <dewar@gnat.com>
29610         * exp_aggr.adb: Minor reformatting
29612         * exp_ch9.adb: Minor code clean up
29613         Minor reformatting
29614         Fix bad character in comment
29616         PR ada/13471
29617         * targparm.adb (Get_Target_Parameters): Give clean abort error on
29618         unexpected end of file, along with more detailed message.
29620 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29622         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
29623         PAT.
29625         * decl.c (copy_alias_set): New function.
29626         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
29628 2004-01-23  Doug Rupp  <rupp@gnat.com>
29630         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
29631         lib$${file} in case subsequent character is not a separator.
29633 2004-01-23  Vincent Celier  <celier@gnat.com>
29635         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
29636         when the GCC version is at least 3.
29638         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
29639         Remove all "Opt.", to prepare for opt split
29641         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
29642         Extends_All. Set to True when the project parsed is an extending all
29643         project. Fails for importing an extending all project only when the
29644         imported project is an extending all project.
29645         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
29646         depending on the value of Extends_All returned.
29648         * prj-proc.adb (Process): Check that no project shares its object
29649         directory with a project that extends it, directly or indirectly,
29650         including a virtual project.
29651         Check that no project extended by another project shares its object
29652         directory with another also extended project.
29654         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
29655         Kind = N_With_Clause
29657         * prj-tree.ads: Minor reformatting
29658         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
29660 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
29662         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
29663         applies to a type with an incomplete view, use full view in Name of
29664         clause, for consistency with uses of Get_Attribute_Definition_Clause.
29666 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
29668         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
29669         SCHED_RR, since other values are not supported by this policy.
29670         (Initialize): Move initialization of mutex attribute to package
29671         elaboration, to prevent early access to this variable.
29673         * Makefile.in: Remove mention of Makefile.adalib, unused.
29675         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
29676         1ssecsta.ads: Removed, unused.
29678 2004-01-21  Javier Miranda  <miranda@gnat.com>
29680         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
29681         entity if already built in the current scope.
29683         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
29684         reminder in internal scopes. Required for nested limited aggregates.
29686 2004-01-21  Doug Rupp  <rupp@gnat.com>
29688         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
29689         VMS. Replace all occurences of libgnat- and libgnarl- with
29690         libgnat$(hyphen) and libgnarl$(hyphen).
29691         Fixed shared library build problem on VMS.
29693 2004-01-21  Robert Dewar  <dewar@gnat.com>
29695         * mlib-prj.adb: Minor reformatting
29697 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
29699         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
29700         'constant' keywords for declaration of pointers that are not modified.
29702         * exp_pakd.adb: Fix English in comment.
29704 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
29706         PR ada/10889
29707         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
29708         copy all attributes of the parent, including the foreign language
29709         convention.
29711 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
29713         PR ada/10565
29714         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
29715         for 'delay until' statement.
29717 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
29719         * Make-lang.in: Replace $(docdir) with doc.
29720         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
29721         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
29722         to use consistent MAKEINFO rule.
29723         (ada.man, ada.srcman): Dummy entry.
29724         (ADA_INFOFILES): Define.
29725         (ada.info, ada.srcinfo): New rules.
29727 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
29729         * utils.c: Update copyright notice, missed in previous change.
29731 2004-01-19  Vincent Celier  <celier@gnat.com>
29733         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
29734         args if Bind is True. Set First_ALI, if not already done.
29735         (Build_Library): For Stand Alone Libraries, extract from one ALI file
29736         an eventual --RTS switch, for gnatbind, and all backend switches +
29737         --RTS, for linking.
29739 2004-01-19  Robert Dewar  <dewar@gnat.com>
29741         * sem_attr.adb, memtrack.adb: Minor reformatting
29743 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
29745         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
29746         that rename enumeration literals. This is properly done in sem_eval.
29748         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
29749         to functions that rename enumeration literals.
29751         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
29752         functions that rename enumeration literals.
29754 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
29756         * Make-lang.in (utils.o): Depend on target.h.
29757         * utils.c: Include target.h.
29758         (process_attributes): Use targetm.have_named_sections instead
29759         of ASM_OUTPUT_SECTION_NAME.
29761 2004-01-16  Andreas Jaeger  <aj@suse.de>
29763         * Makefile.in: Add $(DESTDIR).
29765 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
29767         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
29768         also when not defining if a Size clause applies. That information is
29769         not to be ignored.
29771 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
29773         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
29774         symbolic links for the shared gnat run time when needed.
29776 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
29778         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
29779         for writing, and terminate with an error message if not.
29781 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
29783         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
29784         warning on an access to subprogram in an instance, when the target
29785         type is declared in the same generic unit.
29786         (Eval_Attribute): If 'access is known to fail accessibility check,
29787         rewrite as a raise statement.
29789 2004-01-15  GNAT Script  <nobody@gnat.com>
29791         * Make-lang.in: Makefile automatically updated
29793 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
29795         * Make-lang.in (ada.srcextra): Dummy entry.
29797 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
29799         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
29801 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
29803         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
29804         components that are initialized with aggregates.
29806 2004-01-13  Vincent Celier  <celier@gnat.com>
29808         * gnatlink.adb (Process_Binder_File): To find directory of shared
29809         libgcc, if "gcc-lib" is not a subdirectory, look for the last
29810         subdirectory "lib" in the path of the shared libgnat or libgnarl.
29812         * make.adb (Gnatmake): If GCC version is at least 3, link with
29813         -shared-libgcc, when there is at least one shared library project.
29815         * opt.ads (GCC_Version): New integer constant.
29817         * adaint.c (get_gcc_version): New function.
29819 2004-01-13  Robert Dewar  <dewar@gnat.com>
29821         * sem_dist.adb, sem_res.adb, sem_util.adb,
29822         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
29823         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
29825 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
29827         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
29828         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
29829         declarations.
29831 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
29833         * misc.c: Remove trailing spaces.
29834         Update copyright notice missed in previous change.
29836         PR ada/13572
29837         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
29838         prefix/share/make
29840         * Makefile.generic: Update copyright.
29841         Add license notice.
29843         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
29844         of prefix/share/make.
29846         * Makefile.prolog: Update copyright.
29847         Add license notice.
29849 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
29851         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
29852         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
29853         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
29854         instead of String.
29856         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
29857         signature.
29859 2004-01-12  Javier Miranda  <miranda@gnat.com>
29861         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
29862         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
29863         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
29864         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
29865         Component_Definition node.
29867 2004-01-12  Ed Falis  <falis@gnat.com>
29869         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
29871 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
29873         * link.c: Change default libgnat kind to STATIC for FreeBSD.
29875 2004-01-12  Bernard Banner  <banner@gnat.com>
29877         * Makefile.in: map 86numaux to a-numaux for x86_64
29879 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
29881         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
29882         generated to rename a generic actual, go to the actual itself, the
29883         subtype is not a user-visible entity.
29885         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
29886         part is a private subtype, reset the visibility of its full view, if
29887         any, to be consistent.
29889         PR ada/13417
29890         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
29891         to use a generic package G as a formal package for another generic
29892         declared within G.
29894 2004-01-12  Robert Dewar  <dewar@gnat.com>
29896         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
29898         * usage.adb: Remove mention of obsolete -gnatwb switch
29899         Noticed during code reading
29901 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
29903         * 1ssecsta.adb: Minor changes for -gnatwa warnings
29905 2004-01-12  GNAT Script  <nobody@gnat.com>
29907         * Make-lang.in: Makefile automatically updated
29909 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
29911         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
29913 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
29915         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
29917 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
29919         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
29920         Update comment and copyright date.
29921         * stamp-xgnatug: Delete.
29923 2004-01-05  Robert Dewar  <dewar@gnat.com>
29925         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
29926         be modified by the binder generated main program if the -D switch is
29927         used.
29929         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
29930         imported functions (since now we expect this to be done for imported
29931         functions)
29933         * 5vtaprop.adb: Add several ??? for sections requiring more comments
29934         Minor reformatting throughout
29936         * 5zinit.adb: Minor reformatting
29937         Add 2004 to copyright date
29938         Minor changes to avoid -gnatwa warnings
29939         Correct some instances of using OR instead of OR ELSE (noted while
29940         doing reformatting)
29942         * sprint.adb: Minor updates to avoid -gnatwa warnings
29944         * s-secsta.ads, s-secsta.adb:
29945         (SS_Get_Max): New function to obtain high water mark for ss stack
29946         Default_Secondary_Stack is not a constant since it may be modified by
29947         the binder generated main program if the -D switch is used.
29949         * switch-b.adb: New -Dnnn switch for binder
29951         * switch-c.adb:
29952         Make -gnatg imply all warnings currently in -gnatwa
29954         * vms_conv.adb: Minor reformatting
29955         Add 2004 to copyright notice
29956         Add 2004 to printed copyright notice
29958         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
29959         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
29960         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
29961         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
29962         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
29963         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
29964         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
29965         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
29966         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
29967         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
29968         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
29969         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
29970         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
29971         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
29972         checks.adb, clean.adb, cstand.adb, einfo.ads,
29973         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
29974         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
29975         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
29976         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
29977         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
29978         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
29979         Minor reformatting and code clean ups.
29980         Minor changes to prevent -gnatwa warnings
29982         * ali.adb: Minor reformatting and cleanup of code
29983         Acquire new SS indication of secondary stack use from ali files
29985         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
29986         (since now we expect this to be done for imported functions)
29988         * bindgen.adb: Generate call to modify default secondary stack size if
29989         -Dnnn switch given
29991         * bindusg.adb: Add line for new -D switch
29993         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
29994         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
29995         Add circuitry for both records and arrays to avoid gigi
29996         processing if the type involved has non-bit-aligned components
29998         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
29999         N_String_Literal node always references an E_String_Literal_Subtype
30000         entity. This may not be true in the future.
30001         (Possible_Bit_Aligned_Component): Move processing of
30002         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
30004         * exp_ch6.adb (Expand_Thread_Body): Pick up
30005         Default_Secondary_Stack_Size as variable so that we get value modified
30006         by possible -Dnnn binder parameter.
30008         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
30009         (Type_May_Have_Bit_Aligned_Components): New function.
30011         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
30012         (Type_May_Have_Bit_Aligned_Components): New function.
30014         * fe.h: (Set_Identifier_Casing): Fix prototype.
30015         Add declaration for Sem_Elim.Eliminate_Error_Msg.
30016         Minor reformatting.
30018         * freeze.adb (Freeze_Entity): Add RM reference to error message about
30019         importing constant atomic/volatile objects.
30020         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
30021         unless explicit Pure_Function pragma given, to avoid insidious bug of
30022         call to non-pure imported function getting eliminated.
30024         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
30025         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
30026         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
30027         Add 2004 to printed copyright notice
30029         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
30030         stack used.
30032         * Makefile.rtl: Add entry for g-sestin.o
30033         g-sestin.ads: New file.
30035         * mdll.adb: Minor changes to avoid -gnatwa warnings
30037         * mlib-tgt.adb: Minor reformatting
30039         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
30040         New switch Sec_Stack_Used (GNAT, GNATBIND)
30041         Make Default_Secondary_Stack_Size a variable instead of a constant,
30042         so that it can be modified by the new -Dnnn bind switch.
30044         * rtsfind.adb (Load_Fail): Give full error message in configurable
30045         run-time mode if all_errors mode is set. This was not done in the case
30046         of a file not found, which was an oversight.
30047         Note if secondary stack unit is used by compiler.
30049         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
30050         ineffective elaborate all pragmas on non-visible packages (this
30051         happened when a renamed subprogram was called). Now the elaborate all
30052         always goes on the package containing the renaming rather than the one
30053         containing the renamed subprogram.
30055         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
30056         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
30058         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
30059         has an Etype that references an E_String_Literal.
30060         (Eval_String_Literal): Avoid assumption that N_String_Literal node
30061         always references an E_String_Literal_Subtype entity. This may not
30062         be true in the future.
30064         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
30065         pragma location.
30067         * sem_res.adb (Resolve): Specialize msg for function name used in proc
30068         call.
30070 2004-01-05  Ed Falis  <falis@gnat.com>
30072         * g-debuti.adb: Replaced direct boolean operator with short-circuit
30073         form.
30075 2004-01-05  Vincent Celier  <celier@gnat.com>
30077         * bld.adb: Minor comment updates
30078         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
30079         of Item_Name).
30081         * make.adb (Gnatmake): Special process for files to compile/check when
30082         -B is specified. Fail when there are only foreign mains in attribute
30083         Main of the project file and -B is not specified. Do not skip bind/link
30084         steps when -B is specified.
30086         * makeusg.adb: Document new switch -B
30088         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
30090         * switch-m.adb: (Scan_Make_Switches): Process -B switch
30092         * vms_data.ads: Add new GNAT PRETTY qualifier
30093         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
30095 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30097         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
30098         case.
30100         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
30101         Set_Identifier_Casing.
30103         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
30104         has size that overflows.
30106 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
30108         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
30109         -gnatwa warning on static condition.
30111 2004-01-05  Doug Rupp  <rupp@gnat.com>
30113         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
30115 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
30117         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
30118         all attributes, including read-only attribute.
30120 2004-01-05  Pascal Obry  <obry@gnat.com>
30122         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
30123         library naming scheme.
30125         * mlib-prj.adb (Build_Library): Generate different names for the static
30126         or dynamic version of the GNAT runtime. This is needed to support the
30127         new shared library naming scheme.
30128         (Process_Binder_File): Add detection of shared library in binder file
30129         based on the new naming scheme.
30131         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
30132         scheme for the shared runtime libraries.
30134         * Makefile.in:
30135         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
30136         scheme.
30137         (install-gnatlib): Do not create symlinks for shared libraries.
30138         (gnatlib-shared-default): Idem.
30139         (gnatlib-shared-dual-win32): New target. Not used for now as the
30140         auto-import feature does not support arrays/records.
30141         (gnatlib-shared-win32): Do not create copy for the shared libraries.
30142         (gnatlib-shared-vms): Fix shared runtime libraries names.
30144         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
30145         dependent runtime shared library name.
30147 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
30149         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
30150         than the object.
30152 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
30154         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
30155         protected objects when allocator has a subtype indication, not a
30156         qualified expression. Note that qualified expressions may have to be
30157         checked when limited aggregates are implemented.
30159         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
30160         pure, emit warning.
30161         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
30162         subprogram is imported, remove warning.
30164 2004-01-05  Geert Bosch  <bosch@gnat.com>
30166         * s-poosiz.adb: Update copyright notice.
30167         (Allocate): Use Task_Lock to protect against concurrent access.
30168         (Deallocate): Likewise.
30170 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
30172         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
30173         comment.
30175 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
30177         * gnat_ug.texi: Force a CVS commit by updating copyright.
30178         * gnat_ug_vxw.texi: Regenerate.
30179         * gnat_ug_wnt.texi: Regenerate.
30180         * gnat_ug_vms.texi: Regenerate.
30181         * gnat_ug_unx.texi: Regenerate.
30183 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
30185         * trans.c: Remove uses of "register" specifier in
30186         declarations of local variables.
30188 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
30190         * stamp-xgnatug: New stamp file.
30191         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
30192         (ada/doctools/xgnatug): Add $(build_exeext).
30193         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
30194         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
30196 2003-12-17  Ed Falis  <falis@gnat.com>
30198         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
30199         eliminate warning.
30201         * a-exextr.adb: Add context clause for
30202         Ada.Exceptions.Last_Chance_Handler.
30204 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
30206         * cstand.adb (Create_Standard): Change the way how the declaration of
30207         the Duration type is created (making it the same way as it is for all
30208         the other standard types).
30210 2003-12-17  Robert Dewar  <dewar@gnat.com>
30212         * s-crtl.ads: Fix header format
30213         Change Pure to Preelaborate
30215 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
30217         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
30218         the expression type only if it is declared in the current unit.
30220         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
30221         are universal and already analyzed, as can occur in constrained
30222         subcomponents that depend on discriminants, when one constraint is a
30223         subtype mark.
30225         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
30226         type Any_Fixed is legal as the argument of a conversion, if only one
30227         fixed-point type is in context.
30229 2003-12-17  GNAT Script  <nobody@gnat.com>
30231         * Make-lang.in: Makefile automatically updated
30233 2003-12-15  Robert Dewar  <dewar@gnat.com>
30235         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
30236         sec stack size.
30238 2003-12-15  Vincent Celier  <celier@gnat.com>
30240         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
30241         (Gnatchop): Do not set failure status when reporting the number of
30242         warnings.
30244 2003-12-15  Doug Rupp  <rupp@gnat.com>
30246         * s-ctrl.ads: New file.
30248         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
30250         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
30251         (GNATBIND_OBJS): Add ada/s-crtl.o.
30253         * Makefile.in [VMS]: Clean up ifeq rules.
30255         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
30256         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
30257         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
30258         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
30259         s-tasdeb.adb: Update copyright.
30260         Import System.CRTL.
30261         Make minor modifications to use System.CRTL declared functions instead
30262         of importing locally.
30264 2003-12-15  GNAT Script  <nobody@gnat.com>
30266         * Make-lang.in: Makefile automatically updated
30268 2003-12-11  Ed Falis  <falis@gnat.com>
30270         * 5zinit.adb: Clean up.
30272         * 5zintman.adb (Notify_Exception): replaced case statement with a call
30273         to __gnat_map_signal, imported from init.c to support
30274         signal -> exception mappings that depend on the vxWorks version.
30276         * init.c:
30277         Created and exported __gnat_map_signal to support signal -> exception
30278         mapping that is dependent on the VxWorks version.
30279         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
30281 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
30283         * 5wosinte.ads: Link with -mthreads switch.
30285 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
30287         * init.c (__gnat_install_handler [NetBSD]): Set
30288         __gnat_handler_installed, as done on all other platforms.
30289         Remove duplicated code.
30291 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
30293         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
30295 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
30297         * sinfo.ads: Fix inconsistent example code in comment.
30299 2003-12-11  Robert Dewar  <dewar@gnat.com>
30301         * a-tiinau.adb: Add a couple of comments
30303         * sem_ch3.adb: Minor reformatting
30305         * sem_prag.adb:
30306         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
30307         Minor reformatting throughout
30309 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
30311         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
30312         bounds of a loop, create a separate block in order to generate proper
30313         cleanup actions to prevent memory leaks.
30315         * sem_res.adb (Resolve_Call): After a call to
30316         Establish_Transient_Scope, the call may be rewritten and relocated, in
30317         which case no further processing is needed.
30319         * sem_util.adb: (Wrong_Type): Refine previous fix.
30320          Fixes ACATS regressions.
30322         PR ada/13353
30323         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
30324         be inlined.
30326 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
30328         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
30329         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
30330         obsolete files.
30332         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
30333         (rts-zfp): Ditto.
30335 2003-12-08  Robert Dewar  <dewar@gnat.com>
30337         * 7sintman.adb: Minor reformatting
30339         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
30340         standard linker options to get standard libraries linked. We now plan
30341         to provide dummy versions of these libraries to match the appropriate
30342         configurable run-time (e.g. if a library is not needed at all, provide
30343         a dummy empty library).
30345         * targparm.ads: Configurable_Run_Time mode no longer affects linker
30346         options (-L parameters and standard libraries). What we plan to do is
30347         to provide dummy libraries where the libraries are not required.
30349         * gnatbind.adb: Minor comment improvement
30351 2003-12-08  Javier Miranda  <miranda@gnat.com>
30353         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
30354         aggregate in the parent. Otherwise constants with limited aggregates
30355         are not supported. Add new formal to pass the component type (Ctype).
30356         It is required to call the corresponding IP subprogram in case of
30357         default initialized components.
30358         (Gen_Assign): In case of default-initialized component, generate a
30359         call to the IP subprogram associated with the component.
30360         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
30361         of aggregate with default initialized components.
30362         (Has_Default_Init_Comps): Improve implementation to recursively check
30363         all the present expressions.
30365         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
30366         to indicate that the initialization call corresponds to a
30367         default-initialized component of an aggregate.
30368         In case of default initialized aggregate with tasks this parameter is
30369         used to generate a null string (this is just a workaround that must be
30370         improved later). In case of discriminants, this parameter is used to
30371         generate a selected component node that gives access to the discriminant
30372         value.
30374         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
30375         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
30376         allocated aggregates with default-initialized components.
30378         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
30379         the box notation is used in positional aggregates.
30381 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
30383         * lib.ads: Fix typo in comment
30385 2003-12-08  Vincent Celier  <celier@gnat.com>
30387         * prj.adb (Project_Empty): New component Unkept_Comments
30388         (Scan): Remove procedure; moved to Prj.Err.
30390         * prj.ads (Project_Data): New Boolean component Unkept_Comments
30391         (Scan): Remove procedure; moved to Prj.Err.
30393         * prj-dect.adb: Manage comments for the different declarations.
30395         * prj-part.adb (With_Record): New component Node
30396         (Parse): New Boolean parameter Store_Comments, defaulted to False.
30397         Set the scanner to return ends of line and comments as tokens, if
30398         Store_Comments is True.
30399         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
30400         comments are associated with these nodes. Store the node IDs in the
30401         With_Records.
30402         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
30403         With_Records.
30404         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
30405         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
30406         current project. Call Tree.Restore afterwards. Set the various nodes
30407         for comment storage (Next_End, End_Of_Line, Previous_Line,
30408         Previous_End).
30410         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
30411         defaulted to False.
30413         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
30414         to False. When Truncated is True, truncate the string, never go to the
30415         next line.
30416         (Write_End_Of_Line_Comment): New procedure
30417         (Print): Process comments for nodes N_With_Clause,
30418         N_Package_Declaration, N_String_Type_Declaration,
30419         N_Attribute_Declaration, N_Typed_Variable_Declaration,
30420         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
30421         Process nodes N_Comment.
30423         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
30424         without comments and there are some comments, set the flag
30425         Unkept_Comments to True.
30426         (Scan): If there are comments, set the flag Unkept_Comments to True and
30427         clear the comments.
30428         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
30429         (Next_End_Nodes: New table
30430         (Comment_Zones_Of): New function
30431         (Scan): New procedure; moved from Prj. Accumulate comments in the
30432         Comments table and set end of line comments, comments after, after end
30433         and before end.
30434         (Add_Comments): New procedure
30435         (Save, Restore, Seset_State): New procedures
30436         (There_Are_Unkept_Comments): New function
30437         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
30438         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
30439         procedures.
30440         (First_Comment_After, First_Comment_After_End): New functions
30441         (First_Comment_Before, First_Comment_Before_End): New functions
30442         (Next_Comment): New function
30443         (End_Of_Line_Comment, Follows_Empty_Line,
30444         Is_Followed_By_Empty_Line): New functions
30445         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
30446         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
30447         (Set_Next_Comment): New procedure
30448         (Default_Project_Node): Associate comment before if the node can store
30449         comments.
30451         * scans.ads (Token_Type): New enumeration value Tok_Comment
30452         (Comment_Id): New global variable
30454         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
30455         defaulted to False.
30456         (Scan): Store position of start of comment. If comments are tokens, set
30457         Comment_Id and set Token to Tok_Comment when scanning a comment.
30458         (Set_Comment_As_Token): New procedure
30460         * sinput-p.adb: Update Copyright notice
30461         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
30462         that no longer exists.
30464 2003-12-08  Javier Miranda  <miranda@gnat.com>
30466         * sem_aggr.adb: Add dependence on Exp_Tss package
30467         Correct typo in comment
30468         (Resolve_Aggregate): In case of array aggregates set the estimated
30469         type of the aggregate before calling resolve. This is needed to know
30470         the name of the corresponding IP in case of limited array aggregates.
30471         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
30472         in case of default initialized array components.
30474         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
30475         types. Required to give support to limited aggregates in generic
30476         formals.
30478 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
30480         * sem_ch3.adb (Check_Initialization): For legality purposes, an
30481         inlined body functions like an instantiation.
30482         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
30483         until bounds are analyzed, to diagnose premature use of type.
30485         * sem_util.adb (Wrong_Type): Improve error message when the type of
30486         the expression is used prematurely.
30488 2003-12-08  GNAT Script  <nobody@gnat.com>
30490         * Make-lang.in: Makefile automatically updated
30492 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
30494         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
30495         they are automatically generated by Make-lang.in and cause nothing but
30496         maintenance troubles.
30498 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
30500         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
30501         version of this unit).
30503 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
30505         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
30506         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
30507         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
30508         the body of System.Interrupt_Management common to several targets.
30509         Update copyright notice when appropriate.
30511         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
30512         constant.
30514         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
30515         to ensure that the kernel fills in the interrupted context structure
30516         before calling a signal handler, which is necessary to be able to
30517         unwind past it. Update the copyright notice.
30519 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
30521         * a-elchha.ads: New file.
30523         * a-elchha.adb: New default last chance handler. Contents taken from
30524         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
30526         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
30527         is moved to a-elchha.adb to provide a target-independent default last
30528         chance handler.
30530         * Makefile.rtl: Add a-elchha.o
30532         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
30534 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
30536         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
30537         declared in an instance, do not inline the call if the instance is not
30538         frozen yet, to prevent order of elaboration problems.
30540         * sem_prag.adb: Add comments for previous fix.
30542 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
30544         * g-table.adb: Use the right variable in Set_Item.
30545         Update copyright notice.
30547 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
30549         * Makefile.in: Remove unused rules.
30551 2003-12-05  Vincent Celier  <celier@gnat.com>
30553         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
30554         -nostdlib. Not needed here after all.
30556 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
30558         PR ada/11724
30559         * adaint.h, adaint.c, g-os_lib.ads:
30560         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
30561         on some platforms (including FreeBSD), it is a 64 bit value.
30562         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
30564 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
30566         * gnatvsn.ads (Library_Version): Now contain only the relevant
30567         version info.
30568         (Verbose_Library_Version): New constant.
30570         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
30571         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
30572         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
30574         * gnatlbr.adb: Clean up: replace Library_Version by
30575         Verbose_Library_Version.
30577         * make.adb, lib-writ.adb, exp_attr.adb:
30578         Clean up: replace Library_Version by Verbose_Library_Version.
30580         * 5lintman.adb: Removed.
30582         * Makefile.in:
30583         Update and simplify computation of LIBRARY_VERSION.
30584         Fix computation of GSMATCH_VERSION.
30585         5lintman.adb is no longer used: replaced by 7sintman.adb.
30587 2003-12-03  Robert Dewar  <dewar@gnat.com>
30589         * exp_ch5.adb:
30590         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
30591         name. Modified to consider small non-bit-packed arrays as troublesome
30592         and in need of component-by-component assigment expansion.
30594 2003-12-03  Vincent Celier  <celier@gnat.com>
30596         * lang-specs.h: Process nostdlib as nostdinc
30598         * back_end.adb: Update Copyright notice
30599         (Scan_Compiler_Arguments): Process -nostdlib directly.
30601 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
30603         * Makefile.in:
30604         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
30605         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
30606         included in HIE_NONE_TARGET_PAIRS.
30608 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
30610         * sem_attr.adb:
30611         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
30612         is legal in an instance, because legality is cheched in the template.
30614         * sem_prag.adb:
30615         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
30616         appplied to an unchecked conversion of a formal parameter.
30618         * sem_warn.adb:
30619         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
30620         variables.
30622 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
30624         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
30625         routines. The second one is new functionality to deal with backtracing
30626         through signal handlers.
30627         (unwind): Split into the two separate subroutines above.
30628         Update the documentation, and deal properly with sizeof (REG) different
30629         from sizeof (void*).
30631 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
30633         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
30634         so that the debugger can reliably access the value of the parameter,
30635         and therefore is able to display the exception name when an exception
30636         breakpoint is reached.
30638 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
30640         * fmap.adb: Fix typo in warning message.
30642         * g-socket.ads, g-socket.adb: Make Free a visible instance of
30643         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
30645 2003-12-01  Vincent Celier  <celier@gnat.com>
30647         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
30648         ther is no Afile.
30649         (Build_Library): Get the switches only if Default_Switches is declared
30650         in package Binder.
30652 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
30654         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
30655         actuals that are indexed components, reanalyze actual to ensure that
30656         packed array references are properly expanded.
30658         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
30659         attempted assignment to a discriminant.
30661 2003-12-01  Robert Dewar  <dewar@gnat.com>
30663         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
30664         reformatting.
30666         * switch-c.adb: Minor reformatting of comments
30668 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
30670         * Makefile.in: Clean ups.
30672 2003-12-01  GNAT Script  <nobody@gnat.com>
30674         * Make-lang.in: Makefile automatically updated
30676 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
30678         * 5wsystem.ads: Disable zero cost exception, not ready yet.
30680 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
30682         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
30683         to force serialization.
30685 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
30687         * g-socket.ads, g-socket.adb:
30688         Clarify documentation of function Stream. Introduce a Free procedure
30689         to release the returned Stream once it becomes unused.
30691         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
30693 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
30695         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
30696         since NT 4 cannot handle timeout values that are too large,
30697         e.g. DWORD'Last - 1.
30699 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
30701         * exp_ch4.adb:
30702         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
30703         in procedure calls and whose expansion must be deferred.
30705         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
30706         is in exp_ch4.
30708         * sem_ch3.adb:
30709         (Build_Derived_Array_Type): Create operator for unconstrained type
30710         if ancestor is unconstrained.
30712 2003-11-26  Vincent Celier  <celier@gnat.com>
30714         * make.adb (Project_Object_Directory): New global variable
30715         (Change_To_Object_Directory): New procedure
30716         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
30717         of Change_Dir directly. Do not change working directory to object
30718         directory of main project after each compilation.
30719         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
30720         directly.
30721         Change to object directory of main project before binding step.
30722         (Initialize): Initialize Project_Object_Directory to No_Project
30724         * mlib-prj.adb:
30725         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
30726         binding a Stand-Alone Library.
30728         * output.adb: Update Copyright notice
30729         (Write_Char): Output buffer when full
30731 2003-11-26  Robert Dewar  <dewar@gnat.com>
30733         * sem_ch13.adb: (Check_Size): Reset size if size is too small
30735         * sem_ch13.ads:
30736         (Check_Size): Fix documentation to include bit-packed array case
30738         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
30740         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
30742         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
30744 2003-11-24  Arnaud Charlet <charlet@act-europe.fr>
30746         PR ada/13142
30747         * utils.c (init_gigi_decls): Change name of built-in setjmp to
30748         __builtin_setjmp, since this is apparently needed by recent
30749         non Ada changes.
30751 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
30753         * adadecode.c: Only include ctype.h if not IN_GCC.
30754         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
30756 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
30758         * Makefile.in:
30759         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
30760         signals and interrupts.
30762         * 5zintman.ads: New File.
30764         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
30765         add exception signals to the set of unmasked signals.
30767         * 5ztaprop.adb:
30768         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
30769         between signals and interrupts.
30770         Add to Unblocked_Signal_Mask the set of signals that are in
30771         Keep_Unmasked.
30773         * 7sinmaop.adb:
30774         Adding a check to see whether the Interrupt_ID we want to unmask is in
30775         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
30776         reason is that the index type of the Keep_Unmasked array is not always
30777         Interrupt_ID; it may be a subtype of Interrupt_ID.
30779 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
30781         * exp_util.adb:
30782         (Remove_Side_Effects): Condition constantness of object created for a
30783          an unchecked type conversion on the constantness of the expression
30784          to ensure the correct value for 'Constrained when passing components
30785          of view-converted class-wide objects.
30787 2003-11-24  Robert Dewar  <dewar@gnat.com>
30789         * par-load.adb (Load): Improve handling of misspelled and missing units
30790         Removes several cases of compilation abandoned messages
30792         * lib.adb: (Remove_Unit): New procedure
30794         * lib.ads: (Remove_Unit): New procedure
30796         * lib-load.adb: Minor reformatting
30798 2003-11-24  Vincent Celier  <celier@gnat.com>
30800         * make.adb:
30801         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
30802         (Marking_Label): Label to mark processed source files. Incremented for
30803         each executable.
30804         (Gnatmake): Increase Marking_Labet for each executable
30805         (Is_Marked): Compare against marking label
30806         (Mark): Mark with marking label
30808 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
30810         * s-thread.ads:
30811         Move the declaration of the TSD for System.Threads to System.Soft_Links.
30812         Add some comments.
30814         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
30815         (rts-cert): build a single relocatable object for the run-time lib.
30816         Fix perms.
30818 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
30820         * Make-lang.in:
30821         Use gnatls rather than gcc to obtain the location of GNAT RTL for
30822         crosstools build.
30824 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
30826         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
30827         can not use it as before (that is, as a variable) when dumping it into
30828         the tree file. Add a local variable to store the result of this
30829         function and to be used as the string to be written into the tree.
30831         * scn.adb (Initialize_Scanner): Add comments explaining the recent
30832         changes.
30834         * sinput.adb (Source_First, Source_Last): In case of
30835         Internal_Source_File, replace returning attributes of
30836         Internal_Source_Ptr (which is wrong) with returning attributes of
30837         Internal_Source.
30839 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
30841         * sem_ch3.adb:
30842         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
30843         used for implicit concatenation operators.
30844         Code cleanup.
30846         * sem_elab.adb:
30847         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
30848         task bodies that are in the scope of a Suppress pragma.
30849         (Check_A Call): Use the flag to prevent spurious elaboration checks.
30851         * sinfo.ads, sinfo.adb:
30852         New flag No_Elaboration_Check on function/procedure calls, to properly
30853         suppress checks on calls in task bodies that are within a local suppress
30854         pragma.
30856         * exp_ch4.adb:
30857         (Expand_Concatenate_Other): Use the proper integer type for the
30858         expression for the upper bound, to avoid universal_integer computations
30859         when possible.
30861 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
30863         * .cvsignore: Delete.
30865 2003-11-21  Andreas Schwab  <schwab@suse.de>
30867         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
30869 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
30871         * 5wsystem.ads: Enable zero cost exception.
30873 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
30875         * 5ztiitho.adb: Remove an unreferenced variable.
30877 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
30879         * adaint.c: For FreeBSD, use mkstemp.
30881 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
30883         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
30885 2003-11-21  Robert Dewar  <dewar@gnat.com>
30887         * bld.adb: Remove useless USE of gnatvsn
30889         * gnatchop.adb: Minor reformatting
30890         Clean up version handling to be more consistent
30892         * gnatxref.adb: Minor reformatting
30894         * gprcmd.adb: Minor reformatting
30895         Fix output of copyright to be more consistent with other tools
30897 2003-11-21  Vincent Celier  <celier@gnat.com>
30899         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
30901 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
30903         * atree.adb (Initialize): Add initializations for global variables
30904         used in New_Copy_Tree.
30906         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
30907         Internal_Source_File as the actual).
30908         Put the set of statements creating Any_Character before the set of
30909         statements creating Any_Array to have Any_Character fully initialized
30910         when it is used in creating Any_Array.
30912         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
30913         not call Scan in case if the actual is Internal_Source_File
30914         Add 2003 to copyright note.
30916         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
30917         processing Internal_Source_File.
30919         * types.ads: Add the constant Internal_Source_File representing the
30920         source buffer for artificial source-code-like strings created within
30921         the compiler (the definition of Source_File_Index is changed).
30923 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
30925         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
30926         56system.ads: New file, FreeBSD version.
30928 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
30930         * Make-lang.in (ada.extraclean): Delete.
30932 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
30934         * gnatmem.adb: Clean up verbose output.
30936         * gprcmd.adb: Change copyright to FSF.
30938 2003-11-19  Vincent Celier  <celier@gnat.com>
30940         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
30941         and Version (ignored).
30943         * symbols.ads: (Policy): New type
30944         (Initialize): New parameter Reference, Symbol_Policy and
30945         Library_Version.
30946         Remove parameter Force.
30947         Minor reformatting.
30949         * snames.ads, snames.adbadb: New standard names
30950         Library_Reference_Symbol_File and Library_Symbol_Policy
30952         * mlib-prj.adb:
30953         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
30954         project.
30956         * mlib-tgt.adb:
30957         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
30959         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
30961         * prj.adb: (Project_Empty): New component Symbol_Data
30963         * prj.ads: (Policy, Symbol_Record): New types
30964         (Project_Data): New component Symbol_Data
30966         * prj-attr.adb:
30967         New attributes Library_Symbol_File, Library_Symbol_Policy and
30968         Library_Reference_Symbol_File.
30970         * prj-nmsc.adb:
30971         (Ada_Check): When project is a Stand-Alone library project, process
30972         attribute Library_Symbol_File, Library_Symbol_Policy and
30973         Library_Reference_Symbol_File.
30975         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
30976         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
30977         5sml-tgt.adb (Build_Dynamic_Library): New parameter
30978         Symbol_Data (ignored).
30980         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
30981         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
30982         functions Option_File_Name and Version_String. Set new options of
30983         gnatsym related to symbol file, symbol policy and reference symbol
30984         file.
30986         * 5vsymbol.adb:
30987         Extensive modifications to take into account the reference symbol file,
30988         the symbol policy, the library version and to put in the symbol file the
30989         minor and major IDs.
30991         * bld.adb (Process_Declarative_Items): Put second argument of
30992         gprcmd to_absolute between single quotes, to avoid problems with
30993         Windows.
30995         * bld-io.adb: Update Copyright notice.
30996         (Flush): Remove last character of a line, if it is a back slash, to
30997         avoid make problems.
30999         * gnatsym.adb:
31000         Implement new scheme with reference symbol file and symbol policy.
31002         * g-os_lib.ads: (Is_Directory): Clarify comment
31004 2003-11-19  Robert Dewar  <dewar@gnat.com>
31006         * atree.adb: Move New_Copy_Tree global variables to head of package
31008         * errout.adb: Minor reformatting
31010 2003-11-19  Javier Miranda  <miranda@gnat.com>
31012         * sem_ch4.adb: (Diagnose_Call): Improve error message.
31013         Add reference to Ada0Y (AI-50217)
31015         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
31016         sem_util.adb: Add reference to AI-50217
31018         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
31020         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
31022         * sem_aggr.adb: Complete documentation of AI-287 changes
31024         * par-ch4.adb: Document previous changes.
31026         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
31027         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
31028         Ada0Y (AI-50217)
31030         * exp_aggr.adb: Add references to AI-287 in previous changes
31032 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
31034         * exp_ch6.adb:
31035         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
31036         in the rewriting is the result of an inlined call.
31038         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
31039         parameter is a type conversion, use original node to construct the
31040         post-call assignment, because expression may have been rewritten, e.g.
31041         if it is a packed array.
31043         * sem_attr.adb:
31044         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
31045         body, just as it is in an instance.
31046         Categorization routines
31048         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
31049         Instantiate_Object): Set proper sloc reference for message on missing
31050         actual.
31052 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
31054         * Makefile.in: Add FreeBSD libgnat pairs.
31056         * usage.adb: Fix typo in usage message.
31058 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
31060         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
31061         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
31062         pragma Thread_Body.
31063         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
31065         * s-thread.adb: This file is now a dummy implementation of
31066         System.Thread.
31068 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
31070         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
31072 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
31074         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
31075         instanciation references in the parent type description.
31077 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31079         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
31081         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
31082         TYPE_PRECISION directly from esize.
31084 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
31086         * cstreams.c:
31087         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
31089         * init.c: Initialization routines for FreeBSD
31091         * link.c: Link info for FreeBSD
31093         * sysdep.c: Add the case of FreeBSD
31095 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
31097         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
31098         already called in System.Threads.
31100         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
31101         environment task, as it has been moved to System.Threads.Initialization.
31103 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
31105         * adaint.c (__gnatlib_install_locks): Only reference
31106         __gnat_install_locks on VMS, since other platforms can avoid using
31107         --enable-threads=gnat
31109 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31111         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
31113         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
31114         TYPE_PACKED_ARRAY_TYPE_P.
31115         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
31117         Part of PR ada/12806
31118         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
31119         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
31121 2003-11-17  Vincent Celier  <celier@gnat.com>
31123         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
31124         to False.
31125         Do not set exit status to Failure when Warning is True.
31126         (Gnatchop): Make errors "no compilation units found" and
31127         "no source files written" warnings only.
31129         * make.adb (Gnatmake): When using a project file, set
31130         Look_In_Primary_Dir to False.
31131         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
31132         and Local_Configuration_Pragmas in the project where they are declared
31133         not an extending project which might have inherited them.
31135         * osint.adb (Locate_File): If Name is already an absolute path, do not
31136         look for a directory.
31138         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
31139         -gnats (Check_Syntax) is used, issue only a warning, not an error.
31141         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
31142         in objects of type Variable_Value.
31144         * prj.ads: (Variable_Value): New component Project
31146         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
31147         is in a project extended by Project.
31149         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
31150         Project of Variable_Values to this new parameter value.
31151         (Expression): Set component Project of Variable_Values.
31152         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
31153         Set the component Project in array elements.
31155 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
31157         * errout.adb: (Initialize): Add initialization for error nodes.
31159         * sem_ch12.adb (Initialize): Add missing initializations for
31160         Exchanged_Views and Hidden_Entities.
31162 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
31164         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
31165         already instantiated tree for use in subsequent inlining.
31166         (Analyze_Associations, Instantiate_Formal_Subprogram,
31167         Instantiate_Object): improve error message for mismatch in
31168         instantiations.
31170         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
31171         instantiations of subprograms declared in instances.
31173 2003-11-17  Javier Miranda  <miranda@gnat.com>
31175         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
31176         executed only under the Extensions_Allowed flag.
31178 2003-11-17  Robert Dewar  <dewar@gnat.com>
31180         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
31181         zeroes suppressed.
31182         (Address_Image): Fix bug of returning 0x instead of 0x0
31183         Minor reformatting (function specs).
31185         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
31186         (missed case of 33-63)
31188         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
31190         * s-thread.adb: Add comments for pragma Restriction
31192         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
31193         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
31195 2003-11-17  Ed Falis  <falis@gnat.com>
31197         * s-thread.adb: Added No_Tasking restriction for this implementation.
31199 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
31201         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
31202         instanciation references in the parent type description.
31204 2003-11-17  GNAT Script  <nobody@gnat.com>
31206         * Make-lang.in: Makefile automatically updated
31208 2003-11-16  Jason Merrill  <jason@redhat.com>
31210         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
31211         and TAGS files that include them for each front end.
31213 2003-11-14  Andreas Jaeger  <aj@suse.de>
31215         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
31216         is the canonical version.
31217         * misc.c (gnat_handle_option): Likewise.
31219         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
31221         * 5nsystem.ads: New file for x86_64-linux-gnu.
31223 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
31225         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
31227         * comperr.adb: Fix logic in previous change.
31229 2003-11-13  Vincent Celier  <celier@gnat.com>
31231         * 5bml-tgt.adb (Build_Dynamic_Library): Use
31232         Osint.Include_Dir_Default_Prefix instead of
31233         Sdefault.Include_Dir_Default_Name.
31235         * gnatlbr.adb: Update Copyright notice
31236         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
31237         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
31238         instead of Sdefault.Object_Dir_Default_Name
31240         * gnatlink.adb:
31241         (Process_Binder_File): Never suppress the option following -Xlinker
31243         * mdll-utl.adb:
31244         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
31245         Sdefault.Object_Dir_Default_Name.
31247         * osint.ads, osint.adb:
31248         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
31249         Minor reformatting.
31251         * vms_conv.ads: Minor reformating
31252         Remove GNAT STANDARD and GNAT PSTA
31254         * vms_conv.adb:
31255         Allow GNAT MAKE to have several files on the command line.
31256         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
31257         Sdefault.Object_Dir_Default_Name.
31258         Minor Reformating
31259         Remove data for GNAT STANDARD
31261         * vms_data.ads:
31262         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
31263         Remove data for GNAT STANDARD
31264         Remove options and documentation for -gnatwb/-gnatwB: these warning
31265         options no longer exist.
31267 2003-11-13  Ed Falis  <falis@gnat.com>
31269         * 5zthrini.adb: (Init_RTS): Made visible
31271         * 5zthrini.adb:
31272         (Register): Removed unnecessary call to taskVarGet that checked whether
31273          an ATSD was already set as a task var for the argument thread.
31275         * s-thread.adb:
31276         Updated comment to reflect that this is a VxWorks version
31277         Added context clause for System.Threads.Initialization
31278         Added call to System.Threads.Initialization.Init_RTS
31280 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
31282         * 5zthrini.adb:
31283         (Init_RTS): New procedure, for the initialization of the run-time lib.
31285         * s-thread.adb:
31286         Remove dependancy on System.Init, so that this file can be used in the
31287         AE653 sequential run-time lib.
31289 2003-11-13  Robert Dewar  <dewar@gnat.com>
31291         * bindgen.adb: Minor reformatting
31293 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
31295         * checks.adb:
31296         (Apply_Discriminant_Check): Do no apply check if target type is derived
31297         from source type with no applicable constraint.
31299         * lib-writ.adb:
31300         (Ensure_System_Dependency): Do not apply the style checks that may have
31301         been specified for the main unit.
31303         * sem_ch8.adb:
31304         (Find_Selected_Component): Further improvement in error message, with
31305         RM reference.
31307         * sem_res.adb:
31308         (Resolve): Handle properly the case of an illegal overloaded protected
31309         procedure.
31311 2003-11-13  Javier Miranda  <miranda@gnat.com>
31313         * exp_aggr.adb:
31314         (Has_Default_Init_Comps): New function to check the presence of
31315         default initialization in an aggregate.
31316         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
31317         extension aggregate of a limited record. In addition, a new formal
31318         was added to do not initialize the record controller (if any) during
31319         this recursive expansion of ancestors.
31320         (Init_Controller): Add support for limited record components.
31321         (Expand_Record_Aggregate): In case of default initialized components
31322         convert the aggregate into a set of assignments.
31324         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
31325         describing the new syntax.
31326         Nothing else needed to be done because this subprogram delegates part of
31327         its work to P_Precord_Or_Array_Component_Association.
31328         (P_Record_Or_Array_Component_Association): Give support to the new
31329         syntax for default initialization of components.
31331         * sem_aggr.adb:
31332         (Resolve_Aggregate): Relax the strictness of the frontend in case of
31333         limited aggregates.
31334         (Resolve_Record_Aggregate): Give support to default initialized
31335         components.
31336         (Get_Value): In case of default initialized components, duplicate
31337         the corresponding default expression (from the record type
31338         declaration). In case of default initialization in the *others*
31339         choice, do not check that all components have the same type.
31340         (Resolve_Extension_Aggregate): Give support to limited extension
31341         aggregates.
31343         * sem_ch3.adb:
31344         (Check_Initialization): Relax the strictness of the front-end in case
31345         of aggregate and extension aggregates. This test is now done in
31346         Get_Value in a per-component manner.
31348         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
31349         expression corresponds to a limited aggregate. This test is now done
31350         in Get_Value.
31352         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
31353         Box_Present flag.
31355         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
31356         present in an N_Component_Association node
31358 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
31360         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
31361         type-conformant entry only if they are homographs.
31363 2003-11-13  GNAT Script  <nobody@gnat.com>
31365         * Make-lang.in: Makefile automatically updated
31367 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
31369         * adadecode.c: Use <> form of include for ctype.h.
31370         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
31372 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
31374         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
31375         Works around PR middle-end/6552.
31377 2003-11-10  Ed Falis  <falis@gnat.com>
31379         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
31381         * 5zinit.adb: (Install_Handler): Moved back to spec
31382         (Install_Signal_Handlers): Deleted
31384         * 5zthrini.adb: Added context clause for System.Storage_Elements
31385         (Register): Only handles creation of taskVar; initialization moved to
31386         Thread_Body_Enter.
31387         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
31388         Added declaration of environment task secondary stack and
31389         initialization.
31391         * s-thread.adb: Implement bodies for thread body processing
31393         * s-thread.ads:
31394         Added comment identifying supported targets for pragma Thread_Body.
31396 2003-11-10  Pascal Obry  <obry@gnat.com>
31398         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
31399         GNAT_MAX_PATH_LEN.
31401         * s-fileio.adb:
31402         (Open): Properly check for string length before copying into the buffer.
31403         Raises Name_Error if buffer is too small. Note that this was a potential
31404         buffer overflow.
31406 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
31408         * bindgen.adb, comperr.adb: Code clean ups.
31409         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
31411 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
31413         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
31415 2003-11-10  Vincent Celier  <celier@gnat.com>
31417         * gprcmd.adb:
31418         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
31419         installation.
31421         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
31423         * prj.adb: (Project_Empty): Add new boolean component Virtual
31425         * prj.ads: (Virtual_Prefix): New constant string
31426         (Project_Data): New boolean component Virtual
31428         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
31429         a library project is extended by a virtual extending project.
31431         * prj-part.adb:
31432         Modifications throughout to implement extending-all project, including:
31433         (Virtual_Hash, Processed_Hash): New hash tables
31434         (Create_Virtual_Extending_Project): New procedure
31435         (Look_For_Virtual_Projects_For): New procedure
31437         * prj-proc.adb:
31438         (Process): After checking the projects, if main project is an
31439         extending-all project, set the object directory of all virtual extending
31440         project to the object directory of the main project.
31441         Adjust error message when a virtual extending project has the same
31442         object directory as an project being extended.
31443         (Recursive_Process): If name starts with the virtual prefix, set Virtual
31444         to True in the project data.
31446         * prj-tree.adb:
31447         (Default_Project_Node): Add new boolean component Extending_All
31448         (Is_Extending_All): New function
31449         (Set_Is_Extending_All): New procedure
31451         * prj-tree.ads: (Is_Extending_All): New function
31452         (Set_Is_Extending_All): New procedure
31453         (Project_Node_Record): New boolean component Extending_All
31455         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
31457         * vms_data.ads:
31458         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
31460         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
31461         "gprcmd prefix" to define it.
31463 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
31465         * einfo.ads: Fix a typo and remove an extraneous word in comments.
31467         * lib-load.adb:
31468         (Create_Dummy_Package_Unit): Set the scope of the entity for the
31469         created dummy package to Standard_Standard, not to itself, to
31470         defend other parts of the front-end against encoutering a cycle in
31471         the scope chain.
31473         * sem_ch10.adb:
31474         (Analyze_With_Clause): When setting the entities for the successive
31475         N_Expanded_Names that constitute the name of a child unit, do not
31476         attempt to go further than Standard_Standard in the chain of scopes.
31477         This case arises from the placeholder units created by
31478         Create_Dummy_Package_Unit in the case of a with_clause for a
31479         nonexistent child unit.
31481 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
31483         * exp_ch6.adb:
31484         (Expand_Thread_Body): Place subprogram on scope stack, so that new
31485         declarations are given the proper scope.
31487         * sem_ch13.adb:
31488         (Check_Expr_Constants): Reject an expression that contains a constant
31489         created during expansion, and that appears after the object to which
31490         the address clause applies.
31492         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
31493         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
31494         that uses 'Range of a function call with controlled components, so
31495         that the function result can be finalized before starting the loop.
31497         * sem_ch8.adb:
31498         (Find_Selected_Component): Improve error message when prefix is
31499         an implicit dereference of an incomplete type.
31501 2003-11-10  Robert Dewar  <dewar@gnat.com>
31503         * opt.ads: New Print_Standard flag for -gnatS switch
31505         * sem_ch13.adb: Remove some additional checks for unaligned arrays
31507         * cstand.adb (Create_Standard): Print out package standard if -gnatS
31508         switch set
31510         * debug.adb: Update doc for -gnatds to discuss relationship with new
31511         -gnatS flag
31513         * sinfo.adb: Add new field Entity_Or_Associated_Node
31515         * sinfo.ads: Add new field Entity_Or_Associated_Node
31516         Update documentation for Associated_Node and Entity fields to clarify
31517         relationship and usage.
31519         * sprint.adb:
31520         (Write_Id): Properly process Associated_Node field in generic template
31522         * switch-c.adb:
31523         Recognize new -gnatS switch for printing package Standard
31524         This replaces gnatpsta
31526         * usage.adb:
31527         Add line for  new -gnatS switch for printing package Standard
31528         This replaces gnatpsta
31530 2003-11-10  Andreas Jaeger  <aj@suse.de>
31532         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
31533         integer.
31535 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
31537         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
31538         by gnat1.
31540 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
31542         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
31543         no longer needed.
31545         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
31547         * sysdep.c: Add handling of cygwin.
31549 2003-11-10  GNAT Script  <nobody@gnat.com>
31551         * Make-lang.in: Makefile automatically updated
31553 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
31555         PR 12950
31556         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
31557         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
31558         Replace GNAT_ROOT by GCC_ROOT.
31560         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
31562 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
31564         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
31565         and update for changed meaning of GET_MODE_BITSIZE.
31567 2003-11-04  Doug Rupp  <rupp@gnat.com>
31569         * sysdep.c: Problem discovered during IA64 VMS port.
31570         [VMS] #include <unixio.h> to get proper prototypes.
31572         * adaint.c:
31573         Issues discovered/problems fixed during IA64 VMS port.
31574         [VMS] #define _POSIX_EXIT for proper semantics.
31575         [VMS] #include <unixio.h> for proper prototypes.
31576         [VMS] (fork): #define IA64 version.
31577         (__gnat_os_exit): Remove unnecessary VMS specific code.
31579 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31581         Part of PR ada/12806
31582         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
31583         tree, not integer.
31585         * decl.c:
31586         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
31587         not integer.
31589         * targtyps.c, decl.c, misc.c,
31590         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
31591         routines to work around change in FP sizing semantics in GCC.
31593         * utils.c:
31594         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
31596         * gigi.h: (enumerate_modes): New function.
31598         * Make-lang.in: (ada/misc.o): Add real.h.
31600         * misc.c: (enumerate_modes): New function.
31602 2003-11-04  Robert Dewar  <dewar@gnat.com>
31604         * 3vtrasym.adb: Minor reformatting
31605         Use terminology encoded/decoded name, rather than C++ specific notion
31606         of mangling (this is the terminology used throughout GNAT).
31608         * einfo.h: Regenerated
31610         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
31612         * exp_ch6.adb:
31613         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
31615         * par-prag.adb: Add dummy entry for Thread_Body pragma
31617         * rtsfind.ads:
31618         Add entries for System.Threads entities for thread body processing
31620         * sem_attr.adb:
31621         (Analyze_Pragma, Access attributes): Check these are not applied to a
31622         thread body, since this is not permitted
31624         * sem_prag.adb: Add processing for Thread_Body pragma.
31625         Minor comment fix.
31627         * sem_res.adb:
31628         (Resolve_Call): Check for incorrect attempt to call a thread body
31629          procedure with a direct call.
31631         * snames.ads, snames.adb: Add entry for Thread_Body pragma
31632         Add names associated with thread body expansion
31634         * snames.h: Add entry for Thread_Body pragma
31636         * s-thread.adb: Add entries for thread body processing
31637         These are dummy bodies so far
31639         * s-thread.ads: Add documentation on thread body handling.
31640         Add entries for thread body processing.
31642 2003-11-04  Javier Miranda  <miranda@gnat.com>
31644         * sem_ch10.adb:
31645         (Build_Limited_Views): Return after posting an error in case of limited
31646         with_clause on subprograms, generics, instances or generic renamings
31647         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
31648         on subprograms, generics, instances or generic renamings
31650 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
31652         * raise.c (setup_to_install): Correct mistake in last revision; two
31653         arguments out of order.
31655         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
31656         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
31657         notice, missed in previous change.
31658         Remove trailing blanks and other style errors introduced in previous
31659         change.
31661 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
31663         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
31664         rid of the wrapper for a LJM type, ensuring we don't do that if the
31665         field is addressable.  This avoids potential low level type view
31666         mismatches later on, for instance in a by-reference argument passing
31667         process.
31669 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31671         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
31672         aligned at byte boundary.
31674 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
31676         * decl.c (components_to_record): Do not delete the empty variants from
31677         the end of the union type.
31679 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
31681         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
31682         operation for a derived type, an explicit declaration may use a local
31683         subtype of Boolean.
31685 2003-11-04  Vincent Celier  <celier@gnat.com>
31687         * make.adb (Gnatmake): Allow main sources on the command line with a
31688         library project when it is only for compilation (no binding or
31689         linking).
31691 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
31693         * Makefile.in: Remove many duplicate variables.
31695 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
31697         * Make-lang.in (dvi): Move targets to $(docobjdir).
31698         (gnat_ug_vms.dvi): Simplify rule and adjust target.
31699         (gnat_ug_wnt.dvi): Likewise.
31700         (gnat_ug_unx.dvi): Likewise.
31701         (gnat_ug_vxw.dvi): Likewise.
31702         (gnat_rm.dvi): Likewise.
31703         (gnat-style.dvi): Likewise.
31705 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
31707         * gigi.h: Missed commit from update for C90.
31709 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
31711         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
31713 2003-10-31  Andreas Schwab  <schwab@suse.de>
31715         * raise.c (get_action_description_for): Fix typo in last change.
31717 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
31719         PR ada/12761
31720         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
31721         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
31723 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
31725         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
31726         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
31727         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
31728         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
31729         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
31731 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
31733         * 3vtrasym.adb:
31734         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
31735         numbers when symbol name is too long.
31737 2003-10-30  Ed Falis  <falis@gnat.com>
31739         * g-signal.ads, g-signal.adb: New files
31741         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
31743         * Makefile.rtl: Introduce GNAT.Signals
31745 2003-10-30  Robert Dewar  <dewar@gnat.com>
31747         * freeze.adb: Minor reformatting
31749         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
31751         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
31752         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
31753         New handling of Id_Check parameter to improve recognition of keywords
31754         used as identifiers.
31755         Update copyright notice to include 2003
31757 2003-10-29  Robert Dewar  <dewar@gnat.com>
31759         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
31760         sem_ch10.adb: Minor reformatting
31762         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
31763         (Expand_Assign_Record): Test right hand side for bit unaligned as well
31765 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
31767         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
31768         Support for TBK$SYMBOLIZE-based symbolic traceback.
31770 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
31772         * exp_disp.adb:
31773         Revert previous change, that did not work well when pragma No_Run_Time
31774         was used in conjunction with a run-time other than ZFP.
31776 2003-10-29  Vincent Celier  <celier@gnat.com>
31778         * make.adb:
31779         (Gnatmake): When there are no Ada mains in attribute Main, disable the
31780          bind and link steps only is switch -z is not used.
31782 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
31784         * Makefile.generic: Remove duplicated setting of CC.
31786         * Makefile.prolog: Set CC to gcc by default, to override make's
31787         default (cc).
31789         * einfo.h: Regenerated.
31791 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
31793         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
31794         current body, after compiling subunit.
31796         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
31797         when in deleted code, because gigi needs properly ordered freeze
31798         actions to annotate types.
31800         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
31801         prevent the premature freezing of record type that contains
31802         subcomponents with a private type that does not yet have a completion.
31804 2003-10-29  Javier Miranda  <miranda@gnat.com>
31806         * sem_ch12.adb:
31807         (Analyze_Package_Instantiation): Check that instances can not be used in
31808         limited with_clauses.
31810         * sem_ch8.adb:
31811         (Analyze_Package_Renaming): Check that limited withed packages cannot
31812         be renamed. Improve text on error messages related to limited
31813         with_clauses.
31815         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
31817         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
31818         Update copyright notice.
31820         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
31821         (Install_Limited_Context_Clauses): New subprogram that isolates all the
31822         checks required for limited context_clauses and installs the limited
31823         view.
31824         (Install_Limited_Withed_Unit): Complete its documentation.
31825         (Analyze_Context): Check that limited with_clauses are only allowed in
31826         package specs.
31827         (Install_Context): Call Install_Limited_Context_Clauses after the
31828         parents have been installed.
31829         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
31830         package as 'From_With_Type'; this mark indicates that the limited view
31831         is installed. Used to check bad usages of limited with_clauses.
31832         (Build_Limited_Views): Do not add shadow entities to the scope's list
31833         of entities. Do not add real entities to the Non_Limited_Views chain.
31834         Improve error notification.
31835         (Remove_Context_Clauses): Remove context clauses in two phases:
31836         limited views first and regular views later (to maintain the
31837         stack model).
31838         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
31839         its visible entities.
31841 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
31843         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
31844         with any type that Is_Fixed_Point_Type.
31846         * sinfo.ads: Fix documentation for Associated_Node attribute.
31848 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
31850         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
31851         both '-gnatc' and '-gnatt' are specified.
31853         * atree.adb (Initialize): Add initialization for Node_Count (set to
31854         zero).
31856 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31858         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
31859         do not consider as Pure.
31861         Part of implementation of function-at-a-time:
31863         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
31864         (tree_transform): Add new argument to build_component_ref.
31865         (tree_transform, case N_Assignment_Statement): Make and return an
31866         EXPR_STMT.
31867         (tree_transform): If result IS_STMT, set flags and return it.
31868         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
31870         * utils2.c (build_simple_component_ref, build_component_ref): Add new
31871         arg, NO_FOLD_P.
31872         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
31873         (build_allocator): Likewise.
31875         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
31876         Add new arg to build_component_ref.
31877         (maybe_unconstrained_array, unchecked_convert): Likewise.
31879         * ada-tree.def (EXPR_STMT): New code.
31881         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
31883         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
31884         build_component_ref calls.
31886         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
31888         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
31889         (build_component_ref): Add new argument, NO_FOLD_P.
31891 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
31893         * Makefile.generic: Add missing substitution on object_deps handling.
31895         PR ada/5909
31896         * Make-lang.in (check-ada): Enable ACATS test suite.
31898 2003-10-27  Robert Dewar  <dewar@gnat.com>
31900         * exp_ch3.adb:
31901         (Freeze_Array_Type): We do not need an initialization routine for types
31902         derived from String or Wide_String. They should be treated the same
31903         as String and Wide_String themselves. This caused problems with the
31904         use of Initialize_Scalars.
31906         * exp_ch5.adb:
31907         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
31908         composites. This allows use of component clauses that are not byte
31909         aligned.
31911         * sem_prag.adb:
31912         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
31913         is an attempt to pack an array of atomic objects.
31915         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
31917 2003-10-27  Pascal Obry  <obry@gnat.com>
31919         * g-dirope.adb:
31920         (Basename): Check for drive letters in a pathname only on DOS based OS.
31922 2003-10-27  Vincent Celier  <celier@gnat.com>
31924         * make.adb:
31925         (Gnatmake): When unable to change dir to the object dir, display the
31926         content of the parent dir of the obj dir, to try to understand why this
31927         happens.
31929 2003-10-27  GNAT Script  <nobody@gnat.com>
31931         * Make-lang.in: Makefile automatically updated
31933 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
31935         * sem_ch12.adb:
31936         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
31937         should not be done in Save/Restore_Scope_Stack, because it is performed
31938         locally.
31940         * sem_ch8.adb:
31941         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
31942         whether use clauses should be removed/restored.
31944         * sem_ch8.ads:
31945         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
31946         whether use clauses should be removed/restored.
31948 2003-10-26  Andreas Jaeger  <aj@suse.de>
31950         * Makefile.in: Remove duplicated lines.
31952 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
31954         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
31955         minimize the differences with ACT tree.
31957         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
31958         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
31959         Gnatvsn.Gnat_Static_Version_String to reduce differences between
31960         ACT and FSF trees.
31962 2003-10-24  Pascal Obry  <obry@gnat.com>
31964         PR ada/12014
31965         * adadecode.c (ostrcpy): New function.
31966         (__gnat_decode): Use ostrcpy of strcpy.
31967         (has_prefix): Set first parameter a const.
31968         (has_suffix): Set first parameter a const.
31969         Update copyright notice. Fix source name in header.
31970         Removes a trailing space.
31972 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
31974         * exp_disp.adb:
31975         Remove the test against being in No_Run_Time_Mode before generating a
31976         call to Register_Tag. It is redundant with the test against the
31977         availability of the function Register_Tag.
31979 2003-10-24  Vincent Celier  <celier@gnat.com>
31981         * g-catiio.adb: (Month_Name): Correct spelling of February
31983         * make.adb: (Mains): New package
31984         (Initialize): Call Mains.Delete
31985         (Gnatmake): Check that each main on the command line is a source of a
31986         project file and, if there are several mains, each of them is a source
31987         of the same project file.
31988         (Gnatmake): When a foreign language is specified in attribute Languages,
31989         no main is specified on the command line and attribute Mains is not
31990         empty, only build the Ada main. If there is no Ada main, just compile
31991         the Ada sources and their closure.
31992         (Gnatmake): If a main is specified on the command line with directory
31993         information, check that the source exists and, if it does, that the path
31994         is the actual path of a source of a project.
31996         * prj-env.adb:
31997         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
31998         Full_Path is True, return the full path instead of the simple file name.
31999         (Project_Of): New function
32001         * prj-env.ads:
32002         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
32003         defaulted to False.
32004         (Project_Of): New function
32006 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
32008         * Makefile.generic:
32009         Ensure objects of main project are always checked and rebuilt if needed.
32010         Set CC to gcc by default.
32011         Prepare new handling of link by creating a global archive (not activated
32012         yet).
32014         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
32015         stringt.h: Update copyright notice. Remove trailing blanks.
32016         Fix source name in header.
32018 2003-10-24  Robert Dewar  <dewar@gnat.com>
32020         * sem_ch12.adb: Minor reformatting
32022         * sem_ch3.adb:
32023         Minor reformatting (including new function return style throughout)
32025         * sem_ch3.ads:
32026         Minor reformatting (including new function return style throughout)
32028 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
32030         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
32031         stringt.h: Update copyright notice. Remove trailing blanks.
32032         Fix source name in header.
32034 2003-10-24  GNAT Script  <nobody@gnat.com>
32036         * Make-lang.in: Makefile automatically updated
32038 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
32040         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
32041         stringt.h: Convert to ISO C90 declarations and definitions.
32043 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
32045         PR ada/11978
32046         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
32047         External_Tag attribute definition clauses.
32049 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
32051         PR ada/7613
32052         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
32053         child unit, generate a fully qualified name to avoid spurious errors
32054         when the context contains renamings of different child units with
32055         the same simple name.
32057         * exp_dbug.ads: Add documentation on name qualification for renamings
32058         of child units.
32060 2003-10-23  Robert Dewar  <dewar@gnat.com>
32062         * g-regpat.ads, g-regpat.adb: Minor reformatting
32064 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
32066         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
32068 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32070         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
32071         Machine call.
32073         * urealp.h: (Machine): Update to proper definition.
32075 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
32077         * init.c, adaint.c: Minor reformatting.
32079 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
32081         * adaint.c (w32_epoch_offset): Define static const at file level.
32082         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
32083         rather than t_create, t_access in call to GetFileTime. Use union
32084         to convert between FILETIME and  unsigned long long.
32085         (__gnat_file_time_name): Test for invalid file handle.
32086         (__gnat_set_filetime_name): Support win32 targets using
32087         w32api SetFileTime.
32089 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
32091         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
32093         * ctrl_c.c (__gnat_int_handler): Remove declaration.
32095         * decl.c (creat_concat_name):  Const-ify prefix.
32097         * adaint.c: Include ctype.h if __MINGW32__.
32098         (__gnat_readlink): Mark arguments as possibly unused.
32099         (__gnat_symlink): Likewise.
32100         (__gnat_is_symbolic_link): Likewise.
32101         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
32102         declaration
32103         (__gnat_file_time_name): Don't declare struct stat statbuf when
32104         not needed.
32105         (__gnat_is_absolute_path): Add parenthesis around condition of
32106         'if' statement to avoid warning.
32107         (__gnat_plist_init): Specify void as parameter.
32108         (plist_enter): Likewise.
32109         (plist_leave): Likewise.
32110         (remove_handle): Make static. Initialize prev.
32112 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
32114         PR ada/10110
32115         * Makefile.in: Disable build of gnatpsta.
32116         * cstreams.c (__gnat_full_name): Minor improvements and clean up
32117         of previous change.
32119 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
32121         * tracebak.c (MAX): Avoid redefinition warning.
32123         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
32124         Change msg to const char *.
32125         (__gnat_install_handler): Remove ss, unused.
32126         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
32127         to const char *.
32128         * cstreams.c (__gnat_full_name): Declare p only when used.
32129         (__gnat_full_name) [sgi] Return buffer.
32131 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
32133         * mingw32.h: New file.
32134         * gnat_wrapper.adb: New file.
32136 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
32138         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
32139         string match a pre compiled regular expression (the corresponding
32140         version of the function working on a raw regular expression)
32141         Fix typos in various comments
32142         Update copyright notice in spec
32144 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
32146         * exp_ch3.adb:
32147         (Component_Needs_Simple_Initialization): Return False when the type is a
32148         packed bit array. Revise spec comments to document this case.
32150         * exp_prag.adb:
32151         (Expand_Pragma_Import): Set any expression on the imported object to
32152         empty to avoid initializing imported objects (in particular this
32153         covers the case of zero-initialization of bit arrays).
32154         Update copyright notice.
32156 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
32158         * sem_ch12.adb:
32159         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
32160         a subunit is missing.
32161         (Instantiate_Subprogram_Body): If body of function is missing, set type
32162         of return expression explicitly in dummy body, to prevent cascaded
32163         errors when a subunit is missing.
32164         Fixes PR 5677.
32166         * sem_ch3.adb:
32167         (Access_Subprogram_Declaration): Verify that return type is valid.
32168         Fixes PR 8693.
32170         * sem_elab.adb:
32171         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
32172         generic.
32173         Fixes PR 12318.
32175         * sem_util.adb:
32176         (Corresponding_Discriminant): If the scope of the discriminant is a
32177         private type without discriminant, use its full view.
32178         Fixes PR 8247.
32180 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
32182         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
32183         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
32184         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
32185         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
32186         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
32187         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
32188         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
32189         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
32190         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
32191         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
32192         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
32193         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
32194         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
32195         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
32196         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
32197         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
32198         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
32199         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
32200         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
32201         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
32202         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
32203         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
32204         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
32205         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
32206         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
32207         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
32208         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
32209         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
32210         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
32211         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
32212         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
32213         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
32214         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
32215         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
32216         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
32217         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
32218         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
32219         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
32220         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
32221         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
32222         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
32223         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
32224         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
32225         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
32226         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
32227         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
32228         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
32229         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
32230         vms_conv.ads, vms_conv.adb, vms_data.ads,
32231         vxaddr2line.adb: Files added. Merge with ACT tree.
32233         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
32234         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
32235         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
32236         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
32237         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
32238         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
32239         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
32240         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
32241         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
32242         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
32244         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
32245         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
32246         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
32247         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
32248         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
32249         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
32250         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
32251         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
32252         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
32253         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
32254         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
32255         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
32256         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
32257         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
32258         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
32259         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
32260         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
32261         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
32262         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
32263         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
32264         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
32265         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
32266         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
32267         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
32268         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
32269         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
32270         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
32271         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
32272         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
32273         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
32274         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
32275         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
32276         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
32277         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
32278         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
32279         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
32280         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
32281         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
32282         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
32283         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
32284         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
32285         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
32286         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
32287         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
32288         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
32289         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
32290         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
32291         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
32292         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
32293         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
32294         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
32295         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
32296         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
32297         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
32298         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
32299         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
32300         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
32301         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
32302         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
32303         checks.adb, checks.ads, cio.c, comperr.adb,
32304         comperr.ads, csets.adb, cstand.adb, cstreams.c,
32305         debug_a.adb, debug_a.ads, debug.adb, decl.c,
32306         einfo.adb, einfo.ads, errout.adb, errout.ads,
32307         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
32308         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
32309         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
32310         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
32311         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
32312         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
32313         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
32314         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
32315         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
32316         fe.h, fmap.adb, fmap.ads, fname.adb,
32317         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
32318         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
32319         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
32320         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
32321         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
32322         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
32323         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
32324         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
32325         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
32326         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
32327         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
32328         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
32329         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
32330         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
32331         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
32332         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
32333         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
32334         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
32335         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
32336         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
32337         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
32338         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
32339         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
32340         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
32341         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
32342         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
32343         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
32344         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
32345         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
32346         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
32347         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
32348         layout.adb, lib.adb, lib.ads, lib-list.adb,
32349         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
32350         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
32351         link.c, live.adb, make.adb, make.ads,
32352         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
32353         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
32354         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
32355         misc.c, mkdir.c, mlib.adb, mlib.ads,
32356         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
32357         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
32358         namet.adb, namet.ads, namet.h, nlists.ads,
32359         nlists.h, nmake.adt, opt.adb, opt.ads,
32360         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
32361         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
32362         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
32363         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
32364         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
32365         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
32366         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
32367         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
32368         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
32369         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
32370         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
32371         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
32372         prj-util.adb, prj-util.ads, raise.c, raise.h,
32373         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
32374         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
32375         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
32376         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
32377         scans.ads, scn.adb, scn.ads, s-crc32.adb,
32378         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
32379         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
32380         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
32381         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
32382         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
32383         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
32384         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
32385         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
32386         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
32387         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
32388         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
32389         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
32390         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
32391         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
32392         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
32393         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
32394         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
32395         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
32396         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
32397         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
32398         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
32399         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
32400         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
32401         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
32402         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
32403         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
32404         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
32405         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
32406         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
32407         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
32408         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
32409         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
32410         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
32411         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
32412         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
32413         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
32414         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
32415         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
32416         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
32417         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
32418         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
32419         stringt.adb, stringt.ads, stringt.h, style.ads,
32420         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
32421         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
32422         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
32423         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
32424         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
32425         table.adb, table.ads, targparm.adb, targparm.ads,
32426         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
32427         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
32428         ttypes.ads, types.ads, types.h, uintp.adb,
32429         uintp.ads, uintp.h, uname.adb, urealp.adb,
32430         urealp.ads, urealp.h, usage.adb, utils2.c,
32431         utils.c, validsw.adb, validsw.ads, widechar.adb,
32432         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
32433         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
32434         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
32435         gnatvsn.ads: Merge with ACT tree.
32437         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
32439 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
32441         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
32442         (gnat_ug_vmx.info): Likewise.
32443         (gnat_ug_vxw.info): Likewise.
32444         (gnat_ug_wnt.info): Likewise.
32445         (gnat_rm.info): Likewise.
32446         (gnat-style.info): Likewise.
32448         * Make-lang.in (ada.install-info): Remove target.
32449         (info): New target.
32450         (install-info): Likewise.
32451         (gnat_ug_unx.info): Simplify rule.
32452         (gnat_ug_vmx.info): Likewise.
32453         (gnat_ug_vxw.info): Likewise.
32454         (gnat_ug_wnt.info): Likewise.
32455         (gnat_rm.info): Likewise.
32456         (gnat-style.info): Likewise.
32458 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
32460         * Make-lang.in: Replace uses of $(target_alias) with
32461         $(target_noncanonical).
32462         * ada/Makefile.in: Remove unused mention of $(target_alias).
32464 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
32466         * Make-lang.in (ada.info): Replace with ...
32467         (info): ... this.
32468         (ada.dvi): Replace with ...
32469         (dvi): ... this.
32471 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
32473         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
32474         initialize dconstp5 and dconstmp5.
32476 2003-09-28  Richard Henderson  <rth@redhat.com>
32478         * trans.c (tree_transform): Update call to expand_asm_operands.
32480 2003-09-21  Richard Henderson  <rth@redhat.com>
32482         * trans.c, utils.c: Revert.
32484 2003-09-21  Richard Henderson  <rth@redhat.com>
32486         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
32487         change to const.
32489 2003-09-04  Michael Matz  <matz@suse.de>
32491         * misc.c: Include "target.h".
32492         * Make-lang.in (misc.o): Add dependency on target.h.
32494 2003-09-03  DJ Delorie  <dj@redhat.com>
32496         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
32497         hook.
32499 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
32501         * Makefile.in: Update substitutions to match changes to
32502         configure.  Use include directives instead of @-insertions
32503         to read in host and target fragments.  Add a rule to
32504         regenerate ada/Makefile.
32506 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
32508         * lang-options.h: Remove.
32509         * lang.opt: Add help text.
32511 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
32513         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
32514         calls.
32516 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
32518         * misc.c (gnat_handle_option): Don't handle filenames.
32520 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
32522         * Make-lang.in: Replace PWD with PWD_COMMAND.
32523         * Makefile.adalib: Likewise.
32524         * Makefile.in: Likewise.
32526 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
32528         * misc.c (gnat_argv): Revert last change.
32529         (gnat_handle_option, gnat_init_options): Copy arguments.
32531 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
32533         * misc.c (gnat_argv): Make const.
32535 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
32537         * misc.c (save_argc, save_argv): Keep non-static!
32539 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
32541         * misc.c (save_argc, save_argv): Make static.
32542         (gnat_init_options): New prototype.
32543         (gnat_init_options): Update.
32545 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
32547         * gnat_ug.texi: Remove unlikely characters from @vars.
32548         * gnat_ug_vms.texi: Regenerate.
32550 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
32552         * misc.c (record_code_position): Adjust emit_note call.
32554 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
32556         * misc.c (gnat_handle_option): Don't check for missing arguments.
32558 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
32560         * utils.c (end_subprog_body): Adjust expand_function_end call.
32562 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
32564         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
32565         Bind_Main_Program.
32567 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
32569         * lang.opt: Declare Ada.
32570         * misc.c (gnat_init_options): Update.
32572 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
32574         * utils.c (begin_subprog_body): Adjust init_function_start call.
32576 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
32578         * Make-lang.in: Update to use options.c and options.h.
32579         * misc.c: Include options.h not aoptions.h.
32580         (gnat_handle_option): Abort on unrecognized switch.
32581         (gnat_init_options): Request Ada switches.
32583 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
32585         * lang.opt: Add -Wall.
32586         * misc.c (gnat_handle_option): Handle it.
32588 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
32590         * misc.c (gnat_handle_option): Fix warnings.
32592 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
32594         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
32596 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
32598         * Make-lang.in: Update to handle command-line options.
32599         * lang.opt: New file.
32600         * misc.c: Include aoptions.h.
32601         (cl_options_count, cl_options): Remove.
32602         (gnat_handle_option): New.
32603         (gnat_decode_option): Remove.
32604         (LANG_HOOKS_DECODE_OPTION): Remove.
32605         (LANG_HOOKS_HANDLE_OPTION): Override.
32607 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
32609         * init.c, misc.c, trans.c, utils.c: Remove dead code.
32611 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
32613         * Makefile.in: Replace "host_canonical" with "host" for autoconf
32614         substitution.
32616 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
32618         * Make-lang.in: Update.
32619         * misc.c: Include opts.h. Define cl_options_count and cl_options.
32621 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
32623         * misc.c (gnat_init_options): Update.
32625 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
32627         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
32628         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
32629         __attribute__ ((__unused__)).
32631 2003-06-05  Jan Hubicka  <jh@suse.cz>
32633         * Make-lang.in:  Add support for stageprofile and stagefeedback
32635 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
32637         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
32638         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
32640 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
32642         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
32643         Remove non-VMS directive.
32644         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
32645         alternatives.
32646         (Examples of gnatls Usage): Remove VMS alternative.
32648 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
32650         PR ada/9953
32651         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
32652         and turn ZCX_By_Default back to False since the underlying support
32653         is not quite there yet.
32655 2003-06-01  Andreas Jaeger  <aj@suse.de>
32657         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
32658         and ROUND_TYPE_SIZE_UNIT.
32660 2003-05-22   Geert Bosch <bosch@gnat.com>
32662         * gnat_rm.texi : Remove reference to Ada Core Technologies.
32664 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
32666         * trans.c (tree_transform): Use location_t and input_location
32667         directly.
32668         (build_unit_elab): Likewise.
32669         * utils.c (create_label_decl): Likewise.
32671 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
32673         * trans.c (tree_transform, build_unit_elab,
32674         set_lineno): Rename lineno to input_line.
32675         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
32676         end_subprog_body): Likewise.
32677         * utils2.c (build_call_raise): Likewise.
32679 2003-05-01  Laurent Guerby <guerby@acm.org>
32681         PR ada/10546
32682         * 5iosinte.ads: Increase pthread_cond_t size to match recent
32683         LinuxThread and NPTL version, merge from ACT.
32685 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
32687         * utils.c (convert): No need to clear TREE_CST_RTL.
32689 2003-04-23   Geert Bosch <bosch@gnat.com>
32691         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
32692         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
32693         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
32694         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
32695         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
32696         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
32697         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
32698         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
32699         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
32700         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
32701         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
32702         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
32703         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
32704         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
32705         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
32706         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
32707         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
32708         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
32709         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
32710         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
32711         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
32712         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
32713         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
32714         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
32715         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
32716         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
32717         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
32718         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
32719         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
32720         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
32721         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
32722         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
32723         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
32724         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
32725         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
32726         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
32727         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
32728         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
32729         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
32730         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
32731         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
32732         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
32733         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
32734         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
32735         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
32736         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
32737         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
32738         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
32739         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
32740         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
32741         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
32742         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
32743         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
32744         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
32745         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
32746         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
32747         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
32748         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
32749         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
32750         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
32751         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
32752         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
32753         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
32754         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
32755         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
32756         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
32757         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
32758         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
32759         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
32760         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
32761         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
32762         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
32763         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
32764         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
32765         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
32766         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
32767         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
32768         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
32769         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
32770         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
32771         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
32772         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
32773         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
32774         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
32775         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
32776         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
32777         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
32778         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
32779         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
32780         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
32781         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
32782         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
32783         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
32784         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
32785         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
32786         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
32787         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
32788         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
32789         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
32790         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
32791         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
32792         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
32793         ali.adb, ali.ads, alloc.ads, argv.c,
32794         atree.adb, atree.ads, atree.h, aux-io.c,
32795         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
32796         binde.adb, binde.ads, binderr.adb, binderr.ads,
32797         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
32798         butil.adb, butil.ads, cal.c, calendar.ads,
32799         casing.adb, casing.ads, ceinfo.adb, checks.adb,
32800         checks.ads, cio.c, comperr.adb, comperr.ads,
32801         config-lang.in, csets.adb, csets.ads, csinfo.adb,
32802         cstand.adb, cstand.ads, cuintp.c, debug.adb,
32803         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
32804         dec-io.ads, dec.ads, deftarg.c, directio.ads,
32805         einfo.adb, einfo.ads, elists.adb, elists.ads,
32806         elists.h, errno.c, errout.adb, errout.ads,
32807         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
32808         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
32809         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
32810         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
32811         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
32812         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
32813         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
32814         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
32815         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
32816         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
32817         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
32818         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
32819         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
32820         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
32821         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
32822         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
32823         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
32824         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
32825         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
32826         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
32827         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
32828         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
32829         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
32830         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
32831         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
32832         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
32833         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
32834         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
32835         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
32836         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
32837         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
32838         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
32839         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
32840         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
32841         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
32842         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
32843         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
32844         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
32845         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
32846         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
32847         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
32848         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
32849         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
32850         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
32851         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
32852         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
32853         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
32854         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
32855         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
32856         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
32857         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
32858         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
32859         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
32860         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
32861         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
32862         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
32863         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
32864         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
32865         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
32866         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
32867         lib.adb, lib.ads, live.adb, live.ads,
32868         machcode.ads, make.adb, make.ads, makeusg.adb,
32869         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
32870         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
32871         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
32872         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
32873         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
32874         mlib.ads, namet.adb, namet.ads, nlists.adb,
32875         nlists.ads, opt.adb, opt.ads, osint-b.adb,
32876         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
32877         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
32878         osint.ads, output.adb, output.ads, par-ch10.adb,
32879         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
32880         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
32881         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
32882         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
32883         par-tchk.adb, par-util.adb, par.adb, par.ads,
32884         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
32885         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
32886         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
32887         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
32888         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
32889         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
32890         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
32891         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
32892         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
32893         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
32894         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
32895         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
32896         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
32897         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
32898         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
32899         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
32900         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
32901         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
32902         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
32903         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
32904         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
32905         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
32906         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
32907         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
32908         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
32909         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
32910         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
32911         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
32912         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
32913         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
32914         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
32915         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
32916         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
32917         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
32918         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
32919         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
32920         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
32921         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
32922         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
32923         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
32924         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
32925         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
32926         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
32927         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
32928         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
32929         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
32930         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
32931         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
32932         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
32933         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
32934         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
32935         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
32936         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
32937         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
32938         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
32939         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
32940         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
32941         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
32942         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
32943         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
32944         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
32945         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
32946         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
32947         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
32948         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
32949         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
32950         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
32951         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
32952         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
32953         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
32954         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
32955         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
32956         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
32957         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
32958         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
32959         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
32960         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
32961         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
32962         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
32963         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
32964         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
32965         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
32966         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
32967         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
32968         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
32969         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
32970         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
32971         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
32972         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
32973         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
32974         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
32975         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
32976         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
32977         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
32978         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
32979         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
32980         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
32981         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
32982         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
32983         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
32984         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
32985         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
32986         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
32987         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
32988         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
32989         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
32990         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
32991         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
32992         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
32993         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
32994         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
32995         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
32996         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
32997         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
32998         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
32999         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
33000         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
33001         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
33002         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
33003         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
33004         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
33005         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
33006         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
33007         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
33008         snames.ads, sprint.adb, sprint.ads, stand.adb,
33009         stand.ads, stringt.adb, stringt.ads, style.adb,
33010         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
33011         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
33012         switch-m.ads, switch.adb, switch.ads, system.ads,
33013         table.adb, table.ads, targparm.adb, targparm.ads,
33014         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
33015         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
33016         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
33017         ttypef.ads, ttypes.ads, types.adb, types.ads,
33018         uintp.adb, uintp.ads, uname.adb, uname.ads,
33019         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
33020         usage.adb, usage.ads, validsw.adb, validsw.ads,
33021         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
33022         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
33023         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
33024         formatting and other trivial changes from ACT.
33026 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
33028         * gigi.h, utils2.c (build_constructor):
33029         Rename gnat_build_constructor. Use build_constructor.
33030         * decl.c (gnat_to_gnu_entity)
33031         * trans.c (tree_transform, pos_to_constructor, extract_values)
33032         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
33033         (unchecked_convert)
33034         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
33035         (fill_vms_descriptor):
33036         Update to match.
33038 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
33040         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
33041         * misc.c (gnat_tree_size): New function.
33042         (LANG_HOOKS_TREE_SIZE): Override.
33044 2003-04-03  Jason Merrill  <jason@redhat.com>
33046         * misc.c (gnat_adjust_rli): #if 0.
33048 2003-03-31   Geert Bosch <bosch@gnat.com>
33050         PR ada/10020
33051         * link.c : Fix misspelled "const" keyword
33053 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
33055         PR c++/7086
33056         * utils2.c: Adjust calls to put_var_into_stack.
33058 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
33060         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
33062 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
33064         * misc.c (gnat_init): Update for new prototype.
33066 2003-03-05  Olivier Hainque  <hainque@gnat.com>
33068         ada/9961
33069         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
33070         warning, and fix return type for the IN_RTS && !SJLJ case.
33072 2003-03-04  Tom Tromey  <tromey@redhat.com>
33074         * Make-lang.in (ada.tags): New target.
33076 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
33078         ada/9911
33079         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
33080         wrapper, which name remains constant whatever underlying GCC
33081         scheme.
33083         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
33084         the stable interface needed for a-except.
33086 2003-03-02  Andreas Jaeger  <aj@suse.de>
33088         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33089         gnat_ug_wnt.texi: Regenerate.
33091 2003-03-02  Laurent Guerby <guerby@acm.org>
33093         * Makefile.in (install-gnatlib): Match previous change there
33094         so it works.
33096 2003-02-28  Andreas Schwab  <schwab@suse.de>
33098         * Make-lang.in (install-gnatlib): Change to ada directory before
33099         running make instead of using ada/Makefile directly.
33101 2003-02-18  Ben Elliston  <bje@redhat.com>
33103         Part of PR ada/9406
33104         * gnat_ug.texi (Binder output file): Grammar fix.
33106 2003-02-18  Ben Elliston  <bje@redhat.com>
33108         PR other/7350
33109         * 5qtaprop.adb (Sleep): Fix typo in comment.
33111 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
33113         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
33114         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33115         gnat_ug_wnt.texi: Regenerate.
33117 2003-02-03  Christian Cornelssen <ccorn@cs.tu-berlin.de>
33119         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
33120         be created if necessary.
33121         (ada.install-common): Let $(DESTDIR)$(bindir) be created
33122         if necessary.  Remove erroneous and redundant gnatchop
33123         installation commands.  Test for gnatdll before attempting
33124         to install it.
33125         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
33126         and gnatdll from all plausible locations.
33128 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
33130         * utils2.c (build_unary_op): Don't check flag_volatile.
33131         * gnat_ug.texi: Remove -fvolatile from example.
33132         * gnat_ug_vxw.texi: Likewise.
33134 2003-01-29  Laurent Guerby <guerby@acm.org>
33136         PR ada/8344
33137         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
33138         * Makefile.in: match previous change.
33139         * Make-lang.in: match previous change.
33141 2003-01-29      Joel Sherrill <joel@OARcorp.com>
33143         * 5rosinte.ads: Add SIGXCPU.
33144         * 5rtpopsp.adb: New file.
33145         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
33146         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
33147         specific file 5rtpopsp.adb.
33148         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
33149         is likely needed for all newlib targets.
33150         * init.c: Add RTEMS specific version of __gnat_initialize().
33152 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
33154         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
33156 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
33158         * init.c (__gnat_error_handler): Make msg const.
33160         * gmem.c (convert_addresses): Move declaration ...
33161         * adaint.h: ... here.
33162         * adaint.c (convert_addresses): Adapt addrs type to match
33163         prototype.
33165         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
33167 2003-01-24  Andreas Schwab  <schwab@suse.de>
33169         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
33170         size_t to avoid warning.
33172 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
33174         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
33176 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
33178         * gnat_rm.texi: Remove RCS version number.
33180         * ada-tree.h (union lang_tree_node): Add chain_next option.
33182 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
33184         * Make-lang.in (ada.install-info, ada.install-common,
33185         ada.uninstall): Prepend $(DESTDIR) to the destination
33186         directory in all (un)installation commands.
33187         * Makefile.in (install-gnatlib, install-rts): Ditto.
33189 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
33191         * gnat_rm.texi, gnat_ug.texi: Use @copying.
33192         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33193         gnat_ug_wnt.texi: Regenerate.
33195 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
33197         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
33198         only.
33199         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
33200         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
33201         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
33202         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
33203         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
33204         $(srcdir)/doc/include/gcc-common.texi.
33206 2002-12-15   Geert Bosch <bosch@gnat.com>
33208         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
33210 2002-12-14   Geert Bosch <bosch@gnat.com>
33212         PR ada/5690
33213         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
33214         case of a body created for a Renaming_As_Body, on which
33215         conformance checks are not performed.
33217 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
33219         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
33220         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
33221         not already included.
33222         * Make-lang.in: Update dependencies.
33224 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
33225         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
33226         solution to buffer overflow bug on GNU/Linux.
33228 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
33230         PR ada/5856
33231         PR ada/6919
33232         * bindgen.adb: Remove all references to Public_Version.
33233         * comperr.adb: Remove all references to Public_Version and
33234         GNATPRO_Version; correct bug reporting instructions.
33235         * comperr.ads: Change to match bug box.
33236         * gnatvsn.ads: Remove all references to Public version and
33237         GNATPRO version.
33239 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
33241         PR ada/6919
33242         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
33243         GNU/Linux.
33245         PR ada/6558
33246         * config-lang.in: Remove diff_excludes.
33248 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
33250         PR ada/8358
33251         * trans.c (gnu_pending_elaboration_lists): New GC root.
33252         (build_unit_elab): Use..
33254 2002-10-30   Geert Bosch <bosch@gnat.com>
33256         PR ada/6558
33257         * misc.c : Include optabs.h
33259         * Make-lang.in (misc.o): Add dependency on optabs.h
33261 2002-10-29   Geert Bosch <bosch@gnat.com>
33263         PR ada/6558
33264         * Make-lang.in (gnatbind): Depend on CONFIG_H
33266 2002-10-29  Geert bosch  <bosch@gnat.com>
33268         PR ada/6558
33269         * misc.c: Unrevert misc.c (1.13)
33271 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
33273         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
33274         maintainership comments.
33276 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
33278         PR ada/5904
33279         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
33280         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
33281         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
33282         7staprop.adb: Correct statements in comments about
33283         maintainership of GNAT.
33285         PR ada/5904
33286         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
33287         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
33288         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
33289         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
33290         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
33291         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
33292         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
33293         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
33294         comments about maintainership of GNAT.
33296         PR ada/6919 (forward port of patch for PR ada/5904)
33297         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
33298         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
33299         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
33300         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
33301         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
33302         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
33303         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
33304         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
33305         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
33306         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
33307         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
33308         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
33309         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
33310         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
33311         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
33312         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
33313         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
33314         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
33315         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
33316         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
33317         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
33318         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
33319         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
33320         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
33321         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
33322         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
33323         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
33324         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
33325         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
33326         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
33327         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
33328         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
33329         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
33330         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
33331         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
33332         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
33333         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
33334         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
33335         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
33336         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
33337         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
33338         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
33339         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
33340         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
33341         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
33342         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
33343         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
33344         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
33345         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
33346         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
33347         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
33348         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
33349         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
33350         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
33351         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
33352         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
33353         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
33354         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
33355         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
33356         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
33357         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
33358         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
33359         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
33360         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
33361         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
33362         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
33363         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
33364         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
33365         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
33366         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
33367         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
33368         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
33369         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
33370         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
33371         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
33372         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
33373         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
33374         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
33375         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
33376         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
33377         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
33378         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
33379         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
33380         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
33381         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
33382         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
33383         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
33384         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
33385         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
33386         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
33387         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
33388         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
33389         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
33390         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
33391         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
33392         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
33393         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
33394         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
33395         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
33396         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
33397         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
33398         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
33399         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
33400         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
33401         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
33402         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
33403         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
33404         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
33405         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
33406         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
33407         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
33408         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
33409         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
33410         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
33411         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
33412         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
33413         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
33414         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
33415         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
33416         par-endh.adb par-labl.adb par-load.adb par-prag.adb
33417         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
33418         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
33419         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
33420         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
33421         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
33422         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
33423         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
33424         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
33425         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
33426         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
33427         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
33428         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
33429         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
33430         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
33431         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
33432         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
33433         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
33434         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
33435         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
33436         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
33437         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
33438         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
33439         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
33440         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
33441         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
33442         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
33443         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
33444         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
33445         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
33446         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
33447         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
33448         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
33449         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
33450         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
33451         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
33452         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
33453         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
33454         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
33455         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
33456         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
33457         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
33458         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
33459         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
33460         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
33461         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
33462         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
33463         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
33464         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
33465         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
33466         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
33467         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
33468         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
33469         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
33470         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
33471         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
33472         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
33473         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
33474         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
33475         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
33476         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
33477         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
33478         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
33479         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
33480         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
33481         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
33482         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
33483         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
33484         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
33485         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
33486         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
33487         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
33488         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
33489         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
33490         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
33491         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
33492         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
33493         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
33494         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
33495         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
33496         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
33497         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
33498         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
33499         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
33500         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
33501         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
33502         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
33503         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
33504         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
33505         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
33506         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
33507         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
33508         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
33509         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
33510         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
33511         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
33512         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
33513         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
33514         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
33515         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
33516         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
33517         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
33518         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
33519         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
33520         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
33521         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
33522         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
33523         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
33524         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
33525         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
33526         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
33527         stringt.ads stringt.h style.adb style.ads stylesw.adb
33528         stylesw.ads switch.adb switch.ads sysdep.c system.ads
33529         table.adb table.ads targparm.adb targparm.ads targtyps.c
33530         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
33531         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
33532         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
33533         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
33534         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
33535         usage.ads utils.c utils2.c validsw.adb validsw.ads
33536         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
33537         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
33538         xtreeprs.adb: Correct statements in comments about maintainership
33539         of GNAT.
33541 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
33543         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
33544         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
33545         * gnatvsn.ads: Gnat_Version_String is now a function.
33546         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
33547         copy the C version_string into a String and return it.
33548         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
33549         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
33550         Remove pragma Ident (Gnat_Version_String).  If this was the
33551         sole use of package Gnatvsn, remove the with statement too.
33552         * gnat1drv.adb: Tweak -gnatv output.
33554 2002-09-17  Richard Henderson  <rth@redhat.com>
33556         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
33557         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
33558         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
33559         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
33560         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
33561         and real_2expN instead of a loop.
33562         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
33563         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
33565 2002-08-25  Andre Leis <a.leis@gmx.net>
33566             David Billinghurst (David.Billinghurst@riotinto.com>
33568         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
33570 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
33572         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
33573         Remove $(CONFIG_H) dependency.
33575 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
33577         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
33579 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
33581         * adadecode.c (ada_demangle): Use xstrdup in lieu of
33582         xmalloc/strcpy.
33583         * misc.c (gnat_decode_option): Likewise.
33585 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
33587         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
33588         function approach did not work well because of a side effect (the
33589         function call could reallocate the table which was being indexed
33590         using its result). Fixes ada/4851. [RESURRECTED]
33592 2002-07-01  Roger Sayle  <roger@eyesopen.com>
33594         * ada/utils.c (builtin_function): Accept an additional parameter.
33596 2002-06-28  Andreas Jaeger  <aj@suse.de>
33598         PR ada/7144
33599         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
33600         <adi@thur.de>.
33602 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
33604         * Makefile.in (SHELL): Set to @SHELL@.
33606 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
33608         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
33609         array size calculation.
33611 2002-06-04  Andreas Jaeger  <aj@suse.de>
33613         * Make-lang.in (gnatbind): Readd rule that has been lost in last
33614         patch.
33616 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
33618         Merge from pch-branch:
33620         * config-lang.in (gtfiles): Add ada-tree.h.
33621         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
33622         (SET_TYPE_MODULUS): New.
33623         (SET_TYPE_INDEX): New.
33624         (SET_TYPE_DIGITS_VALUE): New.
33625         (SET_TYPE_RM_SIZE): New.
33626         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
33627         (SET_TYPE_ADA_SIZE): New.
33628         (SET_TYPE_ACTUAL_BOUNDS): New.
33629         (SET_DECL_CONST_CORRESPONDING_VAR): New.
33630         (SET_DECL_ORIGINAL_FIELD): New.
33631         (TREE_LOOP_ID): Correct typo.
33632         * decl.c: Use new macros.
33633         * utils.c: Include debug.h, use new macros.
33634         * utils2.c: Use new macros.
33636         * ada-tree.h: Update all macros for new tree description.
33637         (struct tree_loop_id): New.
33638         (union lang_tree_node): New.
33639         (struct lang_decl): New.
33640         (struct lang_type): New.
33641         * misc.c (gnat_mark_tree): Delete.
33642         (LANG_HOOKS_MARK_TREE): Delete.
33643         * trans.c (tree_transform): No longer any need to cast
33644         for TREE_LOOP_ID.
33646         * utils.c (struct language_function): New dummy structure.
33648         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
33649         (misc.o): Likewise.
33650         (utils.o): Likewise; also gtype-ada.h.
33651         * Make-lang.in (gnat1): Add dependency on s-gtype.
33652         (gnatbind): Add dependency on $(CONFIG_H).
33653         * utils.c: Correct last #include.
33654         (stuct e_stack): Remove unnecessary 'static'.
33655         (mark_e_stack): Remove unused prototype.
33657         * scn-nlit.adb: Remove whitespace after version number to
33658         keep lines under 80 chars.
33659         * snames.adb: Likewise.
33660         * treepr.ads: Likewise.
33662         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
33663         (misc.o): Likewise.
33664         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
33665         * config-lang.in (gtfiles): New.
33666         * decl.c: Use gengtype for roots.
33667         * gigi.h: Use gengtype for roots.
33668         * trans.c: Use gengtype for roots.
33669         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
33671 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
33673         * misc.c (gnat_init): Adjust setting of internal_error_function.
33675 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
33677         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
33678         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33679         gnat_ug_wnt.texi: Regenerate.
33681 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
33683         * 5ntaprop.adb (with System.OS_Primitives): Remove.
33685         * cstreams.c (max_path_len): Move from here ...
33686         * adaint.c (__gnat_max_path_len): ... to here.
33687         * adaint.c (__gnat_max_path_len): Declare.
33688         * g-dirope.adb (Max_Path): Adjust.
33689         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
33690         * i-cstrea.ads (max_path_len): Adjust.
33691         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
33692         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
33694         * Makefile.in, Make-lang.in: Documentation is now built in
33695         Make-lang.in.  Store Info and generated Texinfo files in the
33696         source directory.
33697         * gnat_ug.texi: Remove CVS keywords, correct version number.
33698         Set file name correctly.
33700         * gnat_ug_*.texi: Add.
33701         * .cvsignore: Ignore generated Texinfo files.
33703 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
33705         * ada.h: Add MI guard macro.
33706         (SUBTYPE): Define constants with an anonymous enum, not static
33707         const variables.
33708         (IN): Cast constants to appropriate type before use.
33710 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
33712         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
33713         (experimental)".
33715 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
33717         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
33718         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
33719         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
33720         (ALL_ADA_CFLAGS): Likewise.
33721         (ADA_INCLUDES): Likewise.
33722         Adapt for new working dir.
33723         (GNATBIND): Use Makefile.in version.
33724         (.SUFFIXES): Copy from Makefile.in.
33725         (ada-warn): Define.
33726         (.adb.o, .ads.o): Copy from Makefile.in.
33727         Added $(OUTPUT_OPTION).
33728         (GNAT1_C_OBJS): Moved from Makefile.in.
33729         Prefix with ada subdir.
33730         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
33731         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
33732         Adapt for new working dir.
33733         (EXTRA_GNATBIND_OBJS): Likewise.
33734         (ADA_BACKEND): Moved from Makefile.in.
33735         Renamed to avoid conflict with global BACKEND.
33736         Use that one.
33737         (TARGET_ADA_SRCS): Moved from Makefile.in.
33738         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
33739         Use ADA_BACKEND.
33740         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
33741         (ada_extra_files): Moved from Makefile.in.
33742         Prefix with ada subdir.
33743         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
33744         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
33745         (ada/nmake.ads): Likewise.
33746         (update-sources): Moved from Makefile.in.
33747         Prefix with ada subdir.
33748         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
33749         (ADA_TREE_H): Likewise.
33750         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
33751         (ada/memtrack.o): Likewise.
33752         (ada/adadecode.o): Likewise.
33753         Update dependencies.
33754         (ada/adaint.o): New.
33755         (ada/argv.o): Moved from Makefile.in.
33756         Prefix with ada subdir.
33757         Update dependencies.
33758         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
33759         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
33760         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
33761         Prefix with ada subdir.
33762         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
33763         (GNAT DEPENDENCIES): Regenerate.
33764         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
33765         toplevel Makefile.in.
33766         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
33767         (TARGET_ADA_SRCS): Removed.
33768         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
33769         (GNATBIND_OBJS): Likewise.
33770         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
33771         (BACKEND): Removed.
33772         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
33773         (TREE_H): Likewise.
33774         (ada_extra_files): Likewise.
33775         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
33776         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
33777         (update-sources): Likewise.
33778         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
33779         (ADA_TREE_H): Likewise.
33780         (adadecoce.o): Likewise.
33781         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
33782         (GNAT DEPENDENCIES): Likewise.
33784 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
33786         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
33787         * Makefile.in: Likewise.
33789 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
33791         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
33792         Restore $(CONFIG_H) and prefix.o dependencies.
33793         (ada.stage[1-4]): Depend on stage?-start.
33795         * Makefile.in (b_gnatb.c): Depend on interfac.o.
33797 2002-05-02  Jim Wilson  <wilson@redhat.com>
33799         * utils.c (finish_record_type): Change record_size to record_type.
33801 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
33803         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
33804         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
33805         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
33807 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
33809         * misc.c (gnat_parse_file): Update.
33811 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
33813         * misc.c (gnat_init): Don't set lang_attribute_common.
33815 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
33817         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
33819 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
33821         * gnat_ug.texi: New file.
33823         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
33824         instead of gfdl.texi
33826         * xgnatug.adb, ug_words: New files.
33828         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
33829         gnat_rm and gnat-style manuals.
33831 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
33833         * gigi.h (incomplete_type_error): Remove.
33834         * utils.c (incomplete_type_error): Remove.
33836 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
33838         * trans.c (tree_transform): Add has_scope argument to
33839         expand_start_stmt_expr.
33841 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
33843         * gigi.h (truthvalue_conversion): Rename.
33844         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
33845         * trans.c (tree_transform): Update.
33846         * utils2.c (truthvalue_conversion): Rename, update.
33847         (build_binary_op, build_unary_op): Update.
33849 2002-04-04  Laurent Guerby  <guerby@acm.org>
33851         * make.adb: Implement -margs, remove restriction about file name placement.
33852         * makeusg.adb: Documentation update.
33853         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
33854         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
33856 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
33858         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
33859         (builtin_function): Similarly.
33861 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
33863         * decl.c (gnat_to_gnu_entity): Update.
33864         * gigi.h (mark_addressable): Rename.
33865         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
33866         * trans.c (tree_transform): Update.
33867         * utils.c (create_var_decl): Update.
33868         * util2.c (build_binary_op, build_unary_op,
33869         fill_vms_descriptor): Update.
33870         (mark_addressable): Rename, update.
33872 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
33874         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
33875         Rename.
33876         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
33877         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
33878         * trans.c (tree_transform, convert_with_check): Update.
33879         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
33880         Rename.
33882 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
33884         * gigi.h (finish_incomplete_decl): Rename.
33885         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
33886         * utils.c (gnat_init_decl_processing): Don't set hook.
33887         (finish_incomplete_decl): Rename.
33889 2002-03-29  Andreas Schwab  <schwab@suse.de>
33891         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
33892         directory.
33894 2001-03-28  Robert Dewar <dewar@gnat.com>
33896         * checks.ads:
33897         (Remove_Checks): New procedure
33899         * checks.adb:
33900         (Remove_Checks): New procedure
33902         * exp_util.adb:
33903         Use new Duplicate_Subexpr functions
33904         (Duplicate_Subexpr_No_Checks): New procedure
33905         (Duplicate_Subexpr_No_Checks_Orig): New procedure
33906         (Duplicate_Subexpr): Restore original form (checks duplicated)
33907         (Duplicate_Subexpr): Call Remove_Checks
33909         * exp_util.ads:
33910         (Duplicate_Subexpr_No_Checks): New procedure
33911         (Duplicate_Subexpr_No_Checks_Orig): New procedure
33912         Add 2002 to copyright notice
33914         * sem_util.adb: Use new Duplicate_Subexpr functions
33916         * sem_eval.adb:
33917         (Eval_Indexed_Component): This is the place to call
33918         Constant_Array_Ref and to replace the value. We simply merge
33919         the code of this function in here, since it is now no longer
33920         used elsewhere. This fixes the problem of the back end not
33921         realizing we were clever enough to see that this was
33922         constant.
33923         (Expr_Val): Remove call to Constant_Array_Ref
33924         (Expr_Rep_Val): Remove call to Constant_Array_Ref
33925         Minor reformatting
33926         (Constant_Array_Ref): Deal with string literals (patch
33927         suggested by Zack Weinberg on the gcc list)
33929 2001-03-28  Ed Schonberg <schonber@gnat.com>
33931         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
33932         Duplicate_Subexpr_Move_Checks.
33934         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
33935         Duplicate_Subexpr_Move_Checks.
33937         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
33938         value of array exists before retrieving it (it may a private
33939         protected component in a function).
33941 2002-03-28   Geert Bosch <bosch@gnat.com>
33943         * prj-pp.adb : New file.
33945         * prj-pp.ads : New file.
33947 2002-03-28  Andreas Jaeger  <aj@suse.de>
33949         * Makefile.in (stamp-sdefault): Fix path for Makefile.
33951 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
33953         * misc.c (gnat_expand_expr): Move prototype.
33955 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
33957         * misc.c (insert_default_attributes): Remove.
33959 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
33961         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
33962         (gnat_init): Don't set hook.
33963         (gnat_expand_expr): Fix prototype.
33965 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
33967         * misc.c (ggc_p): Remove.
33969 2002-03-27  Geert Bosch  <bosch@gnat.com>
33971         * prj-makr.ads, prj-makr.adb : New files.
33973 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
33975         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
33976         (lang_mark_tree): Make static, rename.
33978 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
33980         * misc.c (maybe_build_cleanup): Remove.
33982 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
33984         * gigi.h (yyparse): Remove.
33986 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
33988         * gnat_rm.texi: Sync with ACT version.
33989           (From Ben Brosgol <brosgol@gnat.com>)
33991 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
33993         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
33994         (gnat_init): Remove old hook.
33996 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
33998         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
33999         (yyparse): Rename gnat_parse_file.
34001 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
34003         Delete all lines containing "$Revision:".
34004         * xeinfo.adb: Don't look for revision numbers.
34005         * xnmake.adb: Likewise.
34006         * xsinfo.adb: Likewise.
34007         * xsnames.adb: Likewise.
34008         * xtreeprs.adb: Likewise.
34010 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
34012         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
34013         gnat_tree_code_name): Delete.
34014         (tree_code_type, tree_code_length, tree_code_name): Define.
34015         (gnat_init): Don't try to copy into the various tree_code
34016         arrays.
34018 2002-03-11  Richard Henderson  <rth@redhat.com>
34020         * Makefile.in (.NOTPARALLEL): Add fake tag.
34022 2002-03-07  Geert Bosch  <bosch@gnat.com>
34024         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
34025         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
34026         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
34027         switch-m.adb, switch-m.ads : New files.
34029 2002-03-07  Geert Bosch  <bosch@gnat.com>
34031         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
34032         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
34033         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
34034         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
34035         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
34036         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
34037         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
34038         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
34039         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
34040         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
34041         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
34042         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
34043         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
34044         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
34045         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
34046         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
34047         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
34048         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
34049         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
34050         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
34051         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
34052         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
34053         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
34054         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
34055         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
34056         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
34057         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
34058         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
34059         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
34060         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
34061         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
34062         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
34063         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
34064         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
34065         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
34066         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
34067         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
34068         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
34069         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
34070         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
34071         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
34072         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
34073         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
34074         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
34075         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
34076         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
34077         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
34078         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
34079         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
34080         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
34081         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
34082         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
34083         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
34084         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
34085         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
34086         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
34087         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
34088         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
34089         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
34090         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
34091         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
34092         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
34093         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
34094         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
34095         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
34096         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
34097         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
34098         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
34099         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
34100         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
34101         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
34102         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
34103         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
34104         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
34105         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
34106         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
34107         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
34108         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
34109         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
34110         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
34111         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
34112         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
34113         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
34114         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
34115         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
34116         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
34117         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
34118         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
34119         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
34120         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
34121         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
34122         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
34123         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
34124         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
34125         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
34126         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
34127         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
34129         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
34130         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
34131         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
34132         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
34134         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
34135         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
34137         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
34138         to mdll-fil.ad[bs] and mdll-util.ad[bs]
34140         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
34141         from mdllfile.ad[bs] and mdlltool.ad[bs]
34143 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
34145         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
34146         lieu of explicit sizeof/sizeof.
34148 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
34150         * misc.c (copy_lang_decl): Remove.
34152 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
34154         * misc.c: Delete traditional-mode-related code copied from the
34155         C front end but not used, or used only to permit the compiler
34156         to link.
34158 2002-02-07  Richard Henderson  <rth@redhat.com>
34160         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
34161         * adaint.h (__gnat_to_gm_time): Update prototype.
34163 2002-01-30  Richard Henderson  <rth@redhat.com>
34165         * trans.c (tree_transform) [N_Loop_Statement]: Use
34166         expand_exit_loop_top_cond.
34168 2001-12-23  Richard Henderson  <rth@redhat.com>
34170         * utils.c (end_subprog_body): Push GC context around
34171         rest_of_compilation for nested functions.
34173 2001-12-23  Richard Henderson  <rth@redhat.com>
34175         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
34177 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
34179         * gnat-style.texi (Declarations and Types): Remove ancient style
34180         rule which was mandated by code generation issues.
34182         * gnat-style.texi (header): Add @dircategory, @direntry.
34183         (title page): Remove date.
34184         (general) Add @./@: where approriate, and two spaces after the
34185         full stop at the end of a sentence.  Use @samp markup when
34186         referring concrete lexical entities (keywords, attribute names
34187         etc.), and @syntax for ARM grammar elements. Use @r for English
34188         text in comments.  Use @emph for emphasis.  Change "if-statements"
34189         etc. to "if statements" (without @samp). Break long lines.  Make
34190         casing of section names consistent.
34191         (Identifiers): Use @samp markup for variable names.
34192         (Comments): Use @samp markup for comment characters. Line-end
34193         comments may follow any Ada code, not just statements.  Fix
34194         misspelling of "Integer" as "integer".
34195         (Loop statements): Do not use variable name "I", use "J".
34196         (Subprogram Declarations): Document alignment.
34197         (Subprogram Bodies, Block statements): Document empty line before
34198         "begin".
34200 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
34202         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
34203         function approach did not work well because of a side effect (the
34204         function call could reallocate the table which was being indexed
34205         using its result). Fixes ada/4851.
34207 2001-12-19  Robert Dewar <dewar@gnat.com>
34209         * bindgen.adb: Minor reformatting
34211         * cstand.adb: Minor reformatting
34213         * fmap.adb: Minor reformatting
34214         Change name from Add for Add_To_File_Map (Add is much too generic)
34215         Change Path_Name_Of to Mapped_Path_Name
34216         Change File_Name_Of to Mapped_File_Name
34217         Fix copyright dates in header
34219         * fmap.ads:
34220         Change name from Add for Add_To_File_Map (Add is much too generic)
34221         Change Path_Name_Of to Mapped_Path_Name
34222         Change File_Name_Of to Mapped_File_Name
34223         Fix copyright dates in header
34225         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
34226         Add use clause for Fmap.
34228         * make.adb: Minor reformatting
34230         * osint.adb: Minor reformatting.  Change of names in Fmap.
34231         Add use clause for Fmap.
34233         * prj-env.adb: Minor reformatting
34235         * prj-env.ads: Minor reformatting
34237         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
34238         error found (there were odd exceptions to this general rule in
34239         -gnatec/-gnatem processing)
34241 2001-12-19  Olivier Hainque <hainque@gnat.com>
34243         * raise.c (__gnat_eh_personality): Exception handling personality
34244         routine for Ada.  Still in rough state, inspired from the C++ version
34245         and still containing a bunch of debugging artifacts.
34246         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
34247         inspired from the C++ library.
34249         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
34250         exception handling integration.
34252 2001-12-19  Arnaud Charlet <charlet@gnat.com>
34254         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
34255         (HIE_SOURCES): Add s-secsta.ad{s,b}.
34256         (HIE_OBJS): Add s-fat*.o
34257         (RAVEN_SOURCES): Remove files that are no longer required. Add
34258         interrupt handling files.
34259         (RAVEN_MOD): Removed, no longer needed.
34261 2001-12-19  Robert Dewar <dewar@gnat.com>
34263         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
34264         Add 2001 to copyright date
34266         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
34267         need to force universal inlining for these cases.
34269 2001-12-19  Arnaud Charlet <charlet@gnat.com>
34271         * s-taprob.adb: Minor clean ups so that this unit can be used in
34272         Ravenscar HI.
34274         * exp_ch7.adb: Allow use of secondary stack in HI mode.
34275         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
34277 2001-12-19  Vincent Celier <celier@gnat.com>
34279         * prj-tree.ads (Project_Node_Record): Add comments for components
34280         Pkg_Id and Case_Insensitive.
34282 2001-12-19  Pascal Obry <obry@gnat.com>
34284         * g-socket.adb: Minor reformatting. Found while reading code.
34286 2001-12-19  Robert Dewar <dewar@gnat.com>
34288         * prj-tree.ads: Minor reformatting
34290 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
34292         * config-lang.in (diff_excludes): Remove.
34294 2001-12-17  Ed Schonberg <schonber@gnat.com>
34296         * sem_res.adb (Resolve_Selected_Component): do not generate a
34297         discriminant check if the selected component is a component of
34298         the argument of an initialization procedure.
34300         * trans.c (tree_transform, case of arithmetic operators): If result
34301         type is private, the gnu_type is the base type of the full view,
34302         given that the full view itself may be a subtype.
34304 2001-12-17  Robert Dewar <dewar@gnat.com>
34306         * sem_res.adb: Minor reformatting
34308         * trans.c (tree_transform, case N_Real_Literal): Add missing third
34309         parameter in call to Machine (unknown horrible effects from this
34310         omission).
34312         * urealp.h: Add definition of Round_Even for call to Machine
34313         Add third parameter for Machine
34315 2001-12-17  Ed Schonberg <schonber@gnat.com>
34317         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
34318         predefined units in No_Run_Time mode.
34320 2001-12-17  Richard Kenner <kenner@gnat.com>
34322         * misc.c (insn-codes.h): Now include.
34324 2001-12-17  Olivier Hainque <hainque@gnat.com>
34326         * a-except.adb: Preparation work for future integration of the GCC 3
34327         exception handling mechanism
34328         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
34329         to factorize previous code sequences and make them externally callable,
34330         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
34331         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
34332         Use the new notification routines.
34334 2001-12-17  Emmanuel Briot <briot@gnat.com>
34336         * prj-tree.ads (First_Choice_Of): Document the when others case
34338 2001-12-17  Arnaud Charlet <charlet@gnat.com>
34340         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
34341         HI-E mode, in order to support Ravenscar profile properly.
34343         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
34344         mode on 32 bits targets.
34346 2001-12-17  Vincent Celier <celier@gnat.com>
34348         * fmap.adb: Initial version.
34350         * fmap.ads: Initial version.
34352         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
34353         If search is successfully done, add to mapping.
34355         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
34357         * make.adb:
34358         (Gnatmake): Add new local variable Mapping_File_Name.
34359          Create mapping file when using project file(s).
34360          Delete mapping file before exiting.
34362         * opt.ads (Mapping_File_Name): New variable
34364         * osint.adb (Find_File): Use path name found in mapping, if any.
34366         * prj-env.adb (Create_Mapping_File): New procedure
34368         * prj-env.ads (Create_Mapping_File): New procedure.
34370         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
34371         (Mapping_File)
34373         * usage.adb: Add entry for new switch -gnatem.
34375         * Makefile.in: Add dependencies for fmap.o.
34377 2001-12-17  Ed Schonberg <schonber@gnat.com>
34379         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
34380         is a package instantiation rewritten as a package body.
34381         (Install_Withed_Unit): Undo previous change, now redundant.
34383 2001-12-17  Gary Dismukes <dismukes@gnat.com>
34385         * layout.adb:
34386         (Compute_Length): Move conversion to Unsigned to callers.
34387         (Get_Max_Size): Convert Len expression to Unsigned after calls to
34388         Compute_Length and Determine_Range.
34389         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
34390         Compute_Length and Determine_Range.
34391         Above changes fix problem with length computation for supernull arrays
34392         where Max (Len, 0) wasn't getting applied due to the Unsigned
34393         conversion used by Compute_Length.
34395 2001-12-17  Arnaud Charlet <charlet@gnat.com>
34397         * rtsfind.ads:
34398         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
34399          System.Secondary_Stack.
34400         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
34401          in HI-E mode.
34402         Remove unused entity RE_Exception_Data.
34404         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
34406         * rident.ads (No_Secondary_Stack): New restriction.
34408 2001-12-17  Joel Brobecker <brobecke@gnat.com>
34410         * gnat_rm.texi: Fix minor typos. Found while reading the section
34411         regarding "Bit_Order Clauses" that was sent to a customer.
34412         Very interesting documentation!
34414 2001-12-17  Robert Dewar <dewar@gnat.com>
34416         * sem_case.adb (Choice_Image): Avoid creating improper character
34417         literal names by using the routine Set_Character_Literal_Name. This
34418         fixes bombs in certain error message cases.
34420 2001-12-17  Arnaud Charlet <charlet@gnat.com>
34422         * a-reatim.adb: Minor reformatting.
34424 2001-12-17  Ed Schonberg <schonber@gnat.com>
34426         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
34427         case where the formal is an extension of another formal in the current
34428         unit or in a parent generic unit.
34430 2001-12-17  Arnaud Charlet <charlet@gnat.com>
34432         * s-tposen.adb: Update comments.  Minor reformatting.
34433         Minor code clean up.
34435         * s-tarest.adb: Update comments.  Minor code reorganization.
34437 2001-12-17  Gary Dismukes <dismukes@gnat.com>
34439         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
34440         when Java_VM.
34442 2001-12-17  Robert Dewar <dewar@gnat.com>
34444         * exp_attr.adb: Minor reformatting
34446 2001-12-17  Ed Schonberg <schonber@gnat.com>
34448         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
34449         derivations nested within a child unit: verify that the parent
34450         type is declared in an outer scope.
34452 2001-12-17  Robert Dewar <dewar@gnat.com>
34454         * sem_ch12.adb: Minor reformatting
34456 2001-12-17  Ed Schonberg <schonber@gnat.com>
34458         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
34459         warning if current unit is a predefined one, from which bodies may
34460         have been deleted.
34462 2001-12-17  Robert Dewar <dewar@gnat.com>
34464         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
34465         Fix header format. Add 2001 to copyright date.
34467         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
34468         which caused CE during compilation if checks were enabled.
34470 2001-12-17  Vincent Celier <celier@gnat.com>
34472         * make.adb:
34473         (Switches_Of): New function
34474         (Test_If_Relative_Path): New procedure
34475         (Add_Switches): Use new function Switches_Of
34476         (Collect_Arguments_And_Compile): Use new function Switches_Of.
34477         When using a project file, test if there are any relative
34478         search path. Fail if there are any.
34479         (Gnatmake): Only add switches for the primary directory when not using
34480         a project file. When using a project file, change directory to the
34481         object directory of the main project file. When using a project file,
34482         test if there are any relative search path. Fail if there are any.
34483         When using a project file, fail if specified executable is relative
34484         path with directory information, and prepend executable, if not
34485         specified as an absolute path, with the exec directory.  Make sure
34486         that only one -o switch is transmitted to the linker.
34488         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
34490         * prj-nmsc.adb:
34491         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
34492         when using a non standard naming scheme.
34493         (Check_Ada_Naming_Scheme): Make sure that error messages
34494         do not raise exceptions.
34495         (Is_Illegal_Append): Return True if there is no dot in the suffix.
34496         (Language_Independent_Check): Check the exec directory.
34498         * prj.adb (Project_Empty): Add new component Exec_Directory
34500         * prj.ads:
34501         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
34502         (Project_Data): Add component Exec_Directory
34504         * snames.adb: Updated to match snames.ads revision 1.215
34506         * snames.ads: Added Exec_Dir
34508 2001-12-17  Robert Dewar <dewar@gnat.com>
34510         * make.adb: Minor reformatting
34512         * prj-nmsc.adb: Minor reformatting
34514         * snames.adb: Updated to match snames.ads
34516         * snames.ads: Alphebetize entries for project file
34518 2001-12-17  Ed Schonberg <schonber@gnat.com>
34520         * trans.c (process_freeze_entity): Do nothing if the entity is a
34521         subprogram that was already elaborated.
34523 2001-12-17  Richard Kenner <kenner@gnat.com>
34525         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
34526         and Esize if object is referenced via pointer.
34528 2001-12-17  Ed Schonberg <schonber@gnat.com>
34530         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
34531         is discrete before analyzing choices.
34533 2001-12-17  Joel Brobecker <brobecke@gnat.com>
34535         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
34536         containing the name of the Ada Main Program. This string is mainly
34537         intended for the debugger.
34538         (Gen_Output_File_C): Do the equivalent change when generating a C file.
34540 2001-12-17  Robert Dewar <dewar@gnat.com>
34542         * ali.adb: Set new Dummy_Entry field in dependency entry
34544         * ali.ads: Add Dummy_Entry field to source dependency table
34546         * bcheck.adb (Check_Consistency): Ignore dummy D lines
34548         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
34550         * lib-writ.ads: Document dummy D lines for missing files.
34552         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
34554 2001-12-17  Robert Dewar <dewar@gnat.com>
34556         * ali.adb: Type reference does not reset current file.
34558         * ali.adb: Recognize and scan renaming reference
34560         * ali.ads: Add spec for storing renaming references.
34562         * lib-xref.ads: Add documentation for handling of renaming references
34564         * lib-xref.adb: Implement output of renaming reference.
34566         * checks.adb:
34567         (Determine_Range): Document local variables
34568         (Determine_Range): Make sure Hbound is initialized. It looks as though
34569          there could be a real problem here with an uninitialized reference
34570          to Hbound, but no actual example of failure has been found.
34572 2001-12-17  Laurent Pautet <pautet@gnat.com>
34574         * g-socket.ads:
34575         Fix comment of Shutdown_Socket and Close_Socket. These functions
34576         should not fail silently because if they are called twice, this
34577         probably means that there is a race condition in the user program.
34578         Anyway, this behaviour is consistent with the rest of this unit.
34579         When an error occurs, an exception is raised with the error message
34580         as exception message.
34582 2001-12-17  Robert Dewar <dewar@gnat.com>
34584         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
34585         that it happens before modification of Sloc values for -gnatD.
34587         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
34588         so that it happens before modification of Sloc values for -gnatD.
34590         * switch.adb: Minor reformatting
34592 2001-12-15  Richard Henderson  <rth@redhat.com>
34594         * sem_ch7.adb: Wrap comment.
34596 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
34598         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
34599         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
34600         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
34601         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
34602         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
34603         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
34604         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
34605         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
34606         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
34607         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
34608         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
34609         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
34610         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
34611         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
34612         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
34613         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
34614         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
34615         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
34616         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
34617         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
34618         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
34619         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
34620         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
34621         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
34622         spelling errors.
34624 2001-12-14  Vincent Celier <celier@gnat.com>
34626         * osint.adb(Create_Debug_File): When an object file is specified,
34627         put the .dg file in the same directory as the object file.
34629 2001-12-14  Robert Dewar <dewar@gnat.com>
34631         * osint.adb: Minor reformatting
34633         * lib-xref.adb (Output_Instantiation): New procedure to generate
34634         instantiation references.
34636         * lib-xref.ads: Add documentation of handling of generic references.
34638         * ali.adb (Read_Instantiation_Ref): New procedure to read
34639         instantiation references
34641         * ali.ads: Add spec for storing instantiation references
34643         * bindusg.adb: Minor reformatting
34645         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
34647         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
34649         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
34651         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
34653         * csets.ads:
34654         Fix header format
34655         Add 2001 to copyright date
34656         Add entry for Latin-5 (Cyrillic ISO-8859-5)
34658 2001-12-14  Matt Gingell <gingell@gnat.com>
34660         * adaint.c: mktemp is a macro on Lynx and can not be used as an
34661         expression.
34663 2001-12-14  Richard Kenner <kenner@gnat.com>
34665         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
34666         if operand is CONSTRUCTOR.
34668 2001-12-14  Ed Schonberg <schonber@gnat.com>
34670         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
34671         before emiting check on right-hand side, so that exception information
34672         is correct.
34674 2001-12-14  Richard Kenner <kenner@gnat.com>
34676         * utils.c (create_var_decl): Throw away initializing expression
34677         if just annotating types and non-constant.
34679 2001-12-14  Vincent Celier <celier@gnat.com>
34681         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
34682         Default_Ada_...
34684         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
34685         Remove functions.
34686         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
34688         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
34689         Remove functions.
34690         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
34692 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
34694         * ChangeLog: Remove piece of diff output.
34696 2001-12-14  Geert Bosch <bosch@gnat.com>
34698         * config-lang.in: Update copyright notice
34700         * layout.adb: Remove commented out code.
34702         * mdllfile.ads: Update copyright notice. Fix header format.
34704         * sem_case.ads: Likewise.
34706         * sem_ch3.adb: Minor reformatting.
34708 2001-12-12  Geert Bosch <bosch@gnat.com>
34710         * freeze.ads: Update copyright date.
34712         * g-comlin.ads: Minor reformatting.
34714         * gnat-style.texi: Fix typo.
34716 2001-12-12  Geert Bosch <bosch@gnat.com>
34718         *  einfo.h: Regenerate.
34720 2001-12-12  Ed Schonberg <schonber@gnat.com>
34722         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
34723         on known node types, rather than untyped fields. Further cleanups.
34725 2001-12-12  Robert Dewar <dewar@gnat.com>
34727         * sem_ch12.adb:
34728         (Save_Entity_Descendant): Minor comment update.
34729         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
34730          of an N_Attribute_Reference node. As per note below, this does not
34731         eliminate need for Associated_Node in attribute ref nodes.
34732         (Associated_Node): Documentation explicitly mentions attribute
34733         reference nodes, since this field is used in such nodes.
34735         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
34737 2001-12-12  Robert Dewar <dewar@gnat.com>
34739         * s-stalib.adb: Add more comments on with statements being needed
34741         * par-ch12.adb: Minor reformatting
34743         * prj-dect.ads: Fix copyright header
34745         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
34746         inputs fit in 32 bits, but the result still overflows.
34748         * s-fatgen.ads: Minor comment improvement
34750 2001-12-12  Ed Schonberg <schonber@gnat.com>
34752         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
34753         formal derived type, look for an inherited component from the full
34754         view of the parent, if any.
34756 2001-12-12  Robert Dewar <dewar@gnat.com>
34758         * checks.ads (Apply_Alignment_Check): New procedure.
34760         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
34761         ensure that the alignment of objects with address clauses is
34762         appropriate, and raise PE if not.
34764         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
34765         Exp_Pakd.Known_Aligned_Enough
34767         * mdllfile.ads: Minor reformatting
34769         * mlib-fil.ads: Minor reformatting
34771 2001-12-12  Ed Schonberg <schonber@gnat.com>
34773         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
34774         fix to any component reference if enclosing record has non-standard
34775         representation.
34777 2001-12-12  Vincent Celier <celier@gnat.com>
34779         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
34780         Iteration
34782 2001-12-12  Ed Schonberg <schonber@gnat.com>
34784         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
34785         sem_attr.
34787 2001-12-12  Robert Dewar <dewar@gnat.com>
34789         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
34791 2001-12-12  Emmanuel Briot <briot@gnat.com>
34793         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
34794         and it adds dependencies to system.io.
34796 2001-12-12  Pascal Obry <obry@gnat.com>
34798         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
34799         variable name.
34801 2001-12-11  Ed Schonberg <schonber@gnat.com>
34803         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
34804         that is the parent of other generics, the instance body replaces the
34805         instance node.  Retrieve the instance of the spec, which is the one
34806         that is visible in clients and within the body.
34808 2001-12-11  Vincent Celier <celier@gnat.com>
34810         * gnatmain.adb: Initial version.
34812         * gnatmain.ads: Initial version.
34814         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
34816         * snames.adb: Updated to match snames.ads.
34818         * snames.ads: Added Gnatstub.
34820 2001-12-11  Vincent Celier <celier@gnat.com>
34822         * prj-attr.adb (Initialization_Data): Change name from
34823         Initialisation_Data.
34825 2001-12-11  Emmanuel Briot <briot@gnat.com>
34827         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
34828         + and * applied to backslashed expressions like \r.
34830 2001-12-11  Vasiliy Fofanov <fofanov@gnat.com>
34832         * g-os_lib.ads: String_List type added, Argument_List type is now
34833         subtype of String_List.
34835 2001-12-11  Robert Dewar <dewar@gnat.com>
34837         * g-os_lib.ads: Change copyright to FSF
34838         Add comments for String_List type
34840 2001-12-11  Vincent Celier <celier@gnat.com>
34842         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
34843         string to the buffer).
34845 2001-12-11  Ed Schonberg <schonber@gnat.com>
34847         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
34848         sem_attr.
34850         * sem_attr.adb: Simplify previous fix for Address.
34851         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
34852         to avoid anomalies where the bound of the type appears to raise
34853         constraint error.
34855 2001-12-11  Robert Dewar <dewar@gnat.com>
34857         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
34858         handled.
34860 2001-12-11  Ed Schonberg <schonber@gnat.com>
34862         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
34863         renamed unit before checking for recursive instantiations.
34865 2001-12-11  Emmanuel Briot <briot@gnat.com>
34867         * prj.ads: Add comments for some of the fields.
34869 2001-12-11  Robert Dewar <dewar@gnat.com>
34871         * lib-xref.adb (Output_Refs): Don't output type references outside
34872         the main unit if they are not otherwise referenced.
34874 2001-12-11  Ed Schonberg <schonber@gnat.com>
34876         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
34877         code and diagnose additional illegal uses
34879         * sem_util.adb (Is_Object_Reference): An indexed component is an
34880         object only if the prefix is.
34882 2001-12-11  Vincent Celier <celier@gnat.com>
34884         * g-diopit.adb: Initial version.
34886         * g-diopit.ads: Initial version.
34888         * g-dirope.adb:
34889         (Expand_Path): Avoid use of Unbounded_String
34890         (Find, Wildcard_Iterator): Moved to child package Iteration
34892         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
34894 2001-12-11  Robert Dewar <dewar@gnat.com>
34896         * sem_attr.adb: Minor reformatting
34898 2001-12-11  Ed Schonberg <schonber@gnat.com>
34900         * sem_ch3.adb: Clarify some ???.
34902 2001-12-11  Robert Dewar <dewar@gnat.com>
34904         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
34905         Exp_Pakd.Known_Aligned_Enough
34907         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
34908         version is moved to Exp_Ch13.
34910 2001-12-11  Robert Dewar <dewar@gnat.com>
34912         * einfo.ads: Minor reformatting
34914         * exp_ch5.adb: Add comment for previous.change
34916         * ali.adb: New interface for extended typeref stuff.
34918         * ali.ads: New interface for typeref stuff.
34920         * checks.adb (Apply_Alignment_Check): New procedure.
34922         * debug.adb: Add -gnatdM for modified ALI output
34924         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
34926         * lib-xref.adb: Extend generation of <..> notation to cover
34927         subtype/object types. Note that this is a complete rewrite,
34928         getting rid of the very nasty quadratic algorithm previously
34929         used for derived type output.
34931         * lib-xref.ads: Extend description of <..> notation to cover
34932         subtype/object types. Uses {..} for these other cases.
34933         Also use (..) for pointer types.
34935         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
34937         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
34938         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
34940 2001-12-11  Vincent Celier <celier@gnat.com>
34942         * gnatcmd.adb:
34943         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
34944         Changed /BIND_ONLY to /ACTIONS=BIND
34945         Changed /LINK_ONLY to /ACTIONS=LINK
34947 2001-12-11  Ed Schonberg  <schonber@gnat.com>
34949         * sem_ch8.adb (Find_Selected_Component): improved search for a
34950         candidate package in case of error.
34952         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
34953         chain back on scope stack before reinstalling use clauses.
34955         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
34956         is enabled, do not kill the code for the condition, to preserve
34957         warning.
34959 2001-12-11  Robert Dewar <dewar@gnat.com>
34961         * checks.adb (Insert_Valid_Check): Apply validity check to expression
34962         of conversion, not to result of conversion.
34964 2001-12-11  Ed Schonberg <schonber@gnat.com>
34966         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
34967         before freezing parent. If the declarations are mutually recursive,
34968         an access to the current record type may be frozen before the
34969         derivation is complete.
34971 2001-12-05  Vincent Celier <celier@gnat.com>
34973         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
34974         -c /COMPILE_ONLY, -l /LINK_ONLY
34976         * opt.ads:
34977         (Bind_Only): New Flag
34978         (Link_Only): New flag
34980         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
34981         and -l (Link_Only)
34983         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
34985         * make.adb:
34986         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
34987         (Gnatmake): Set the step flags. Only perform a step if the
34988         corresponding step flag is True.
34989         (Scan_Make_Arg): Reset the bind and link step flags when -u
34990         or -gnatc has been specified.
34992 2001-12-05  Ed Schonberg <schonber@gnat.com>
34994         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
34995         get bounds from right operand.
34997         * sem_eval.adb: Minor reformatting
34999         * exp_util.adb (Make_Literal_Range): use bound of literal rather
35000         than Index'First, its lower bound may be different from 1.
35002         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
35003         and C48009J
35005 2001-12-05  Vincent Celier <celier@gnat.com>
35007         * prj-nmsc.adb Minor reformatting
35009         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
35010         set and libraries are not supported.
35012 2001-12-05  Ed Schonberg <schonber@gnat.com>
35014         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
35015         private view explicitly, so the back-end can treat as a global
35016         when appropriate.
35018 2001-12-05  Ed Schonberg <schonber@gnat.com>
35020         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
35021          unit, always replace instance node with new body, for ASIS use.
35023 2001-12-05  Vincent Celier <celier@gnat.com>
35025         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
35026         libraries are not supported and both attributes Library_Name and
35027         Library_Dir are specified.
35029         * prj-proc.adb (Expression): Set location of Result to location of
35030         first term.
35032         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
35033         (prj-nmsc is now importing MLib.Tgt)
35035         * prj-proc.adb: Put the change indicated above that was forgotten.
35037 2001-12-05  Robert Dewar <dewar@gnat.com>
35039         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
35041 2001-12-05  Ed Schonberg <schonber@gnat.com>
35043         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
35044         constraint, introduce explicit subtype declaration and derive from it.
35046         * sem_ch3.adb: Minor reformatting
35048 2001-12-05  Robert Dewar <dewar@gnat.com>
35050         * checks.adb (Determine_Range): Increase cache size for checks.
35051         Minor reformatting
35053         * exp_ch6.adb: Minor reformatting
35054         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
35055         a parameter whose root type is System.Address, since treating such
35056         subprograms as pure in the code generator is almost surely a mistake
35057         that will lead to unexpected results.
35059         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
35060         change handling of conversions.
35062         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
35064 2001-12-05  Ed Schonberg <schonber@gnat.com>
35066         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
35067         aggregate with static wrong size, attach generated Raise node to
35068         declaration.
35070 2001-12-05  Robert Dewar <dewar@gnat.com>
35072         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
35073         Fixes compilation abandoned bomb in B24009B.
35075 2001-12-05  Ed Schonberg <schonber@gnat.com>
35077         * sem_ch12.adb:
35078         Document use of Associated_Node on Selected_Components.
35079         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
35080         to clarify use of untyped descendant fields.
35082 2001-12-05  Robert Dewar <dewar@gnat.com>
35084         * prj-dect.ads: Add ??? comment
35085         Add 2001 to copyright notice (was not done in after all)
35087         * prj-part.adb: Minor reformatting. Reword one awkward error message.
35089         * prj.ads: Minor reformatting throughout, and add some ??? comments
35091         * snames.ads: Minor reformatting
35093 2001-12-05  Geert Bosch <bosch@gnat.com>
35095         * snames.adb: Autoupdate
35097 2001-12-05  Vincent Celier <celier@gnat.com>
35099         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
35101         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
35103         * prj-env.adb: Minor comment changes (modifying -> extends).
35105         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
35107         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
35108         Tok_Extends.
35110         * prj.adb (Initialize): Change Modifying to Extends.
35112         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
35114         * prj.ads: Minor comment change (Modifying -> extending).
35116         * snames.ads: Change modifying to extends.
35118 2001-12-05  Robert Dewar <dewar@gnat.com>
35120         * sem_warn.adb: Remove stuff for conditionals, we are not going to
35121         do this after all.
35123         * sem_warn.ads: Remove stuff for conditionals, we are not going to
35124         do this after all.  Add 2001 to copyright notice
35126 2001-12-04  Geert Bosch <bosch@gnat.com>
35128         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
35130 2001-12-04  Robert Dewar <dewar@gnat.com>
35132         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
35133         location if we already have errors. Stops some cases of cascaded
35134         errors.
35136         * errout.adb: Improve comment.
35138 2001-12-04  Robert Dewar <dewar@gnat.com>
35140         * sem_ch12.adb:
35141         (Analyze_Formal_Type_Definition): Defend against Error.
35142         (Analyze_Formal_Subprogram): Defend against Error.
35144         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
35145         remove following semicolon if present. Removes cascaded error.
35147 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
35149         * bindgen.adb:
35150         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
35151          exceptions equals 0.
35152         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
35153         Fixes PIWG E tests (which have to be run with -gnatL).
35155 2001-12-04  Robert Dewar <dewar@gnat.com>
35157         * einfo.ads: Minor reformatting
35159 2001-12-04  Ed Schonberg <schonber@gnat.com>
35161         * einfo.ads: Block_Node points to the identifier of the block, not to
35162         the block node itself, to preserve the link when the block is
35163         rewritten, e.g. within an if-statement with a static condition.
35165         * inline.adb (Cleanup_Scopes): recover block statement from block
35166         entity using new meaning of Block_Node.
35168         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
35169         identifier of block node, rather than to node itself.
35171 2001-12-04  Gary Dismukes <dismukes@gnat.com>
35173         * layout.adb:
35174         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
35175         (Discrimify): Go back to setting the Etypes of the selected component
35176         because the Vname component does not exist at this point and will
35177         fail name resolution. Also set Analyzed.
35178         Remove with and use of Sem_Res.
35180 2001-12-04  Arnaud Charlet <charlet@gnat.com>
35182         * Makefile.in: (HIE_SOURCES): add s-fat*.
35184 2001-12-04  Robert Dewar <dewar@gnat.com>
35186         * sem_attr.adb:
35187         (Compile_Time_Known_Attribute): New procedure.
35188         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
35189          proper range check.
35191 2001-12-04  Ed Schonberg <schonber@gnat.com>
35193         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
35194         processing discriminants to diagnose illegal default values.
35196 2001-12-04  Ed Schonberg <schonber@gnat.com>
35198         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
35199         access discriminant within a type extension that constrains its
35200         parent discriminants.
35202 2001-12-04  Ed Schonberg <schonber@gnat.com>
35204         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
35205         is malformed, use instance of Any_Id to allow analysis to proceed.
35207         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
35208         type definition is illegal.
35209         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
35210         misplaced.
35212 2001-12-04  Ed Schonberg <schonber@gnat.com>
35214         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
35215         constants.
35217 2001-12-04  Robert Dewar <dewar@gnat.com>
35219         * errout.adb: Minor reformatting
35221 2001-12-04  Robert Dewar <dewar@gnat.com>
35223         * exp_util.adb: Minor reformatting from last change
35225         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
35226         which is a rewriting of an expression, traverse the original
35227         expression to remove warnings that may have been posted on it.
35229 2001-12-04  Ed Schonberg <schonber@gnat.com>
35231         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
35232         record that has other packed components.
35234 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
35236         * adaint.c: Minor cleanups.
35238 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
35240         * adaint.c: Do not use utime.h on vxworks.
35242 2001-12-04  Arnaud Charlet <charlet@gnat.com>
35244         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
35245         more confusion than it solves.
35247 2001-12-04  Geert bosch <bosch@gnat.com>
35249         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
35251 2001-12-04  Geert Bosch  <bosch@gnat.com>
35253         * Makefile.in (update-sources): New target.
35254         For use by gcc_release script.
35256 2001-12-04  Ed Schonberg <schonber@gnat.com>
35258         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
35259         a configuration pragma, it is now legal wherever a pragma can appear.
35261 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
35263         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
35264         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
35265         is now @CROSS@ -DIN_GCC; update comment.
35267 2001-12-04  Robert Dewar <dewar@gnat.com>
35269         * einfo.adb (Has_Pragma_Pure_Function): New flag.
35270         Fix problem that stopped ceinfo from working
35272         * einfo.ads (Has_Pragma_Pure_Function): New flag.
35274         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
35276 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
35278         * gnatchop.adb:
35279         (File_Time_Stamp): New procedure.
35280         (Preserve_Mode): New boolean.
35281         (Write_Unit): Pass time stamp.
35282         Implement -p switch (preserve time stamps).
35284         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
35286         * gnatchop.adb: Do usage info for -p switch
35288         * adaint.h (__gnat_set_file_time_name): New function
35290         * adaint.c (__gnat_set_file_time_name): Implement
35292         * adaint.h: Fix typo
35294 2001-12-03  Robert Dewar <dewar@gnat.com>
35296         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
35297         have Associated_Node.
35299 2001-12-03  Robert Dewar <dewar@gnat.com>
35301         * prj-proc.adb: Minor reformatting
35303         * make.adb: Minor reformatting
35305 2001-12-03  Geert Bosch <bosch@gnat.com>
35307         * make.adb: Minor reformatting.
35309 2001-12-03 Robert Dewar  <dewar@gnat.com>
35311         * sem_ch12.adb: Minor reformatting
35313 2001-12-03  Ed Schonberg <schonber@gnat.com>
35315         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
35316         push Standard on the stack before analyzing the instance body,
35317         in order to have a clean visibility environment.
35319         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
35321 2001-12-03  Ed Schonberg <schonber@gnat.com>
35323         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
35324         instantiation of a body that contains an inlined body.
35326 2001-12-03  Ed Schonberg <schonber@gnat.com>
35328         * sem_ch12.adb:
35329         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
35330         to prevent freezing within formal packages.
35331         (Freeze_Subprogram_Body): If body comes from another instance that
35332         appeared before its own body, place freeze node at end of current
35333         declarative part, to prevent a back-end crash.
35334         (Inline_Instance_Body): Handle properly a package instance within
35335         a subprogram instance that is a child unit.
35337 2001-12-01  Graham Stott  <grahams@redhat.com>
35339         * Makefile.in (misc.o): Add missing $(srcdir) prefix
35340         and add optabs.h dependency.
35342         * misc.c: Include optabs.h
35343         (gnat_tree_code_type): Make static and const.
35344         (gnat_tree_code_length): Likewise.
35345         (gnat_tree_code_name): Likewise.
35346         (update_setjmp_buf): Obtain operands mode from insn_data.
35348 2001-11-29  Richard Henderson  <rth@redhat.com>
35350         * init.c: Remove obsolete dwarf2 frame.h section.
35352 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
35354         * Make-lang.in (ada.generated-manpages): New dummy target.
35356 2001-11-29  Ed Schonberg <schonber@gnat.com>
35358         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
35359         into Command, an array conversion is illegal here. Uncovered by
35360         ACATS B460005.
35362 2001-11-28  Geert Bosch <bosch@gnat.com>
35364         * init.c: Minor whitespace changes.
35366 2001-11-28  Doug Rupp <rupp@gnat.com>
35368         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
35369         signal stack.
35371 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
35373         * misc.c (gnat_expand_constant): Move declaration above
35374         definition of lang_hooks.
35375         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
35376         (gnat_init): lang_expand_constant no longer exists.
35378         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
35379         always have vprintf.
35380         (gnat_init): Always call set_internal_error_function.
35382 2001-11-27  Andreas Jaeger  <aj@suse.de>
35384         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
35386 2001-11-27  Laurent Guerby  <guerby@acm.org>
35388         * Makefile.in: Regenerate Ada dependencies.
35390 2001-11-26  Richard Henderson  <rth@redhat.com>
35392         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
35393         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
35394         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
35396 2001-11-25  Laurent Guerby  <guerby@acm.org>
35398         * sysdep.c (rts_get_*): Fix style.
35400 2001-11-19  Laurent Guerby  <guerby@acm.org>
35402         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
35403         since it is of no apparent use and cause warnings.
35405 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
35407         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
35408         static too.
35409         (gnat_init): Don't return NULL.
35410         (finish_parse): Remove.
35412 2001-11-17  Laurent Guerby  <guerby@acm.org>
35414         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
35415         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
35416         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
35417         * lang-spec.h: Add missing struct field to silence warnings.
35418         * sysdep.c (rts_get_*): Provide K&R prototype.
35419         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
35420         * traceback.c (Unlock_Task, Lock_Task): Likewise.
35421         * tracebak.c (__gnat_backtrace): Remove unused variable.
35422         * utils.c (end_subprog_body): Move to K&R style.
35424 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35426         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
35428 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
35430         * misc.c (gnat_init): Change prototype.  Include the
35431         functionality of the old init_parse and init_decl_processing.
35432         (gnat_init_decl_processing): New prototype.
35433         (init_parse): Remove.
35434         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
35436 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
35438         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
35439         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
35440         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
35441         set_yydebug): Remove.
35443 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
35445         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
35446         (struct lang_hooks): Constify.
35447         (language_string, lang_identify): Remove.
35448         * utils.c (init_decl_processing): Update.
35450 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
35452         * misc.c: Include langhooks-def.h.
35453         * Makefile.in: Update.
35455 2001-10-30  Robert Dewar <dewar@gnat.com>
35457         * style.adb:
35458         (Check_Identifier): Rewrite circuit to be compatible with use of letters
35459         in the upper half of ASCII.
35460         (Check_Identifier): Minor reformatting
35462 2001-10-30  Geert Bosch <bosch@gnat.com>
35464         * (Associated_Node, Set_Associated_Node): Do not check for
35465         Freeze_Entity.
35467 2001-10-30  Robert Dewar <dewar@gnat.com>
35469         * a-reatim.ads: Minor reformatting
35471 2001-10-30  Robert Dewar <dewar@gnat.com>
35473         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
35474         undocumented declarations.
35476 2001-10-30  Pascal Obry <obry@gnat.com>
35478         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
35479         to the binder and linker.
35480         Minor style fix.
35482         * mdll.ads: Fix layout.  Update copyright notice.
35484         * mdll.adb: Fix layout.  Update copyright notice.
35486 2001-10-30  Robert Dewar <dewar@gnat.com>
35488         * usage.adb: Minor fix to output for -gnaty.
35490 2001-10-30  Ed Schonberg <schonber@gnat.com>
35492         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
35493         to accommodate all its possible values.
35495         * a-reatim.adb (Split): Special-case handling of Time_Span_First
35496         and of small absolute values of T.
35498 2001-10-30  Richard Kenner <kenner@gnat.com>
35500         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
35501         set_mem_attributes since not needed and wrong if RESULT if a REG;
35502         fixes ACATS failures.
35504 2001-10-30  Geert Bosch <bosch@gnat.com>
35506         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
35507         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
35509 2001-10-30  Robert Dewar <dewar@gnat.com>
35511         * bindusg.adb: Undocument -f switch.
35513         * gnatcmd.adb: Remove /FULL_ELABORATION.
35515         * opt.ads (Force_RM_Elaboration_Order): Document that this is
35516         obsolescent.
35518         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
35520         * gnatbind.adb: Minor update of warning msg.
35522 2001-10-30  Vincent Celier <celier@gnat.com>
35524         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
35525         for project file switches (-P (/PROJECT_FILE=),
35526          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
35527         or MEDIUM or HIGH)
35529 2001-10-30  Geert Bosch <bosch@gnat.com>
35531         * decl.c: Minor whitespace fixes.
35533 2001-10-30  Richard Kenner <kenner@gnat.com>
35535         * utils2.c (build_allocator): Test for SIZE overflow in array case too
35537 2001-10-30  Geert Bosch <bosch@gnat.com>
35539         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
35540         Found due to GCC 3.0 warning of using uninitialized value.
35542         * layout.adb:
35543         (Get_Max_Size): Use variant record for tracking value/expression.
35544          Makes logic clearer and prevents warnings for uninitialized variables.
35545         (Layout_Array_Type): Use variant record for tracking value/expression.
35546          Makes logic clearer and prevents warnings for uninitialized variables.
35548 2001-10-30  Robert Dewar <dewar@gnat.com>
35550         * lib.adb: Minor reformatting
35552         * s-taprop.ads: Minor reformatting
35554 2001-10-29  Laurent Guerby  <guerby@acm.org>
35556         * init.c:
35557         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
35558         const.
35559         (_gnat_error_handler): Make MSG const.
35561 2001-10-29  Richard Kenner <kenner@gnat.com>
35563         * sysdep.c: Fix localtime_r problem on LynxOS.
35564         Also remove #elif to avoid warnings.
35566         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
35567         used by this.
35569         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
35571 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
35573         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
35574         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
35575         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
35576         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
35577         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
35578         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
35579         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
35580         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
35581         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
35582         types.ads, urealp.adb: Fix spelling errors.
35584 2001-10-27  Laurent Guerby <guerby@acm.org>
35586         * trans.c (gigi): Fix non determinism leading to bootstrap
35587         comparison failures for debugging information.
35589 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
35591         * gnat_rm.texi: Use @./@: where appropriate.
35593 2001-10-26  Robert Dewar <dewar@gnat.com>
35595         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
35597 2001-10-26  Richard Kenner <kenner@gnat.com>
35599         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
35601 2001-10-26  Richard Kenner <kenner@gnat.com>
35603         * decl.c (validate_size): Modify message for bad size to avoid
35604         implication that compiler is modifying the size.
35606 2001-10-26  Robert Dewar <dewar@gnat.com>
35608         * prj-util.adb: Minor reformatting. Fix bad header format.
35610 2001-10-26  Robert Dewar <dewar@gnat.com>
35612         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
35614         * sinfo.ads: Clarify use of Associated_Node (documentation only).
35616         * sem_ch12.adb: Change Node4 to Associated_Node. Change
35617         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
35618         much more narrowly in places where needed. These are cleanups.
35620 2001-10-26  Joel Brobecker <brobecke@gnat.com>
35622         * 5zosinte.ads (null_pthread): new constant.
35624         * 5ztaprop.adb:
35625         (Initialize_TCB): Initialize thread ID to null, to be able to verify
35626          later that this field has been set.
35627         (Finalize_TCB): ditto.
35628         (Suspend_Task): Verify that the thread ID is not null before using it.
35629         (Resume_Task): ditto.
35631         * s-tasdeb.adb:
35632         (Resume_All_Tasks): Lock the tasks list before using it.
35633         (Suspend_All_Tasks): ditto.
35635 2001-10-26  Richard Kenner <kenner@gnat.com>
35637         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
35638         Make constant variant of designated type for Is_Access_Constant.
35639         Call update_pointer_to with main variant.
35641         * trans.c (process_freeze_entity, process_type):
35642         Call update_pointer_to on main variant.
35644         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
35645         If main variant, update all other variants.
35647         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
35648         TREE_STATIC.
35650 2001-10-26  Robert Dewar <dewar@gnat.com>
35652         * prj-util.adb: Minor reformatting
35654 2001-10-26  Robert Dewar <dewar@gnat.com>
35656         * prj-util.adb: Minor reformatting
35658 2001-10-26  Robert Dewar <dewar@gnat.com>
35660         * prj-attr.adb: Minor reformatting throughout
35662 2001-10-26  Robert Dewar <dewar@gnat.com>
35664         * prj-attr.ads: Minor reformatting
35665         Add ??? comment (this whole spec has almost no comments)
35667 2001-10-26  Vincent Celier <celier@gnat.com>
35669         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
35670         ("//") that precede the drive letter on Interix.
35672 2001-10-26  Geert Bosch <bosch@gnat.com>
35674         * gnat_rm.texi: Add GNAT Reference Manual.
35676 2001-10-25  Robert Dewar <dewar@gnat.com>
35678         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
35679         is Error. Similar change for other renaming cases.
35681 2001-10-25  Robert Dewar <dewar@gnat.com>
35683         * s-atacco.ads: Add pragma Inline_Always for functions.
35684         Fix header format. Add copyright 2001
35686 2001-10-25  Ed Schonberg <schonber@gnat.com>
35688         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
35689         return Error rather than Empty so that analysis can proceed.
35691 2001-10-25  Ed Schonberg <schonber@gnat.com>
35693         * sem_util.adb (Enter_Name): better handling of cascaded error
35694         messages when a unit appears in its own context.
35696 2001-10-25  Ed Schonberg <schonber@gnat.com>
35698         * sem_util.adb (Defining_Entity): in case of error, attach created
35699         entity to specification, so that semantic analysis can proceed.
35701 2001-10-25  Robert Dewar <dewar@gnat.com>
35703         * sem_util.adb
35704         (Defining_Entity): Deal with Error.
35705         (Process_End_Label): Deal with bad end label for.
35707 2001-10-25  Ed Schonberg <schonber@gnat.com>
35709         * sem_elab.adb (Check_A_Call): refine message when call is in an
35710         instance but callee is not declared in the generic unit.
35712 2001-10-25  Ed Schonberg <schonber@gnat.com>
35714         * sem_elab.adb (Check_A_Call): check for renaming before finding the
35715         enclosing unit, which may already be different from the calling unit.
35717 2001-10-25  Geert Bosch <bosch@gnat.com>
35719         * 4gintnam.ads: fix header format.
35721 2001-10-25  Ed Schonberg <schonber@gnat.com>
35723         * sem_res.adb (Resolve_Call): if the call is actually an indexing
35724         operation on the result of a parameterless call, perform elaboration
35725         check after the node has been properly rewritten.
35727         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
35728         inlined within the generic tree, the defining identifier is not a
35729         compilation_unit.
35731 2001-10-25  Ed Schonberg <schonber@gnat.com>
35733         * sem_res.adb (Resolve): special-case resolution of Null in an
35734          instance or an inlined body to avoid view conflicts.
35736         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
35737          compatibility by retrieving the access type of the generic copy.
35739 2001-10-25  Robert Dewar <dewar@gnat.com>
35741         * sem_ch3.adb:
35742         (Analyze_Number_Declaration): Handle error expression.
35743         (Signed_Integer_Type_Declaration): Handle error bound.
35744         (Analyze_Subtype_Indication): Handle error range.
35746         * sem_util.adb (Get_Index_Bounds): Check for Error.
35748 2001-10-25  Robert Dewar <dewar@gnat.com>
35750         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
35751         in no run time mode.
35753 2001-10-25  Pascal Obry <obry@gnat.com>
35755         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
35756         mode case for ALLOC case.
35758         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
35759         all platforms. Improvement of last change.
35761 2001-10-25  Robert Dewar <dewar@gnat.com>
35763         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
35765 2001-10-25  Geert Bosch  <bosch@gnat.com>
35767         * osint.adb (Is_Relative): Remove duplicate.
35769 2001-10-25  Pascal Obry <obry@gnat.com>
35771         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
35772         pathnames in UNIX and DOS style with drive letter.
35773         (Is_Relative): new routine.
35775         * osint.adb: Minor reformatting
35777         * osint.adb (Is_Relative): implementation using
35778         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
35780 2001-10-25  Pascal Obry <obry@gnat.com>
35782         * g-dirope.adb (Basename): correctly compute offset between the
35783         original Path and the translated one.
35785         * g-dirope.adb: (Base_Name): add some comments.
35787 2001-10-25  Robert Dewar <dewar@gnat.com>
35789         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
35790         in HIE mode, avoids compilation abandoned message
35792         * exp_imgv.adb: Correct typo in previous change
35794         * exp_imgv.adb: Correct typo in previous change (not my day!)
35796 2001-10-25  Robert Dewar <dewar@gnat.com>
35798         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
35800 2001-10-25  Pascal Obry <obry@gnat.com>
35802         * g-awk.ads: Move all pragma inlines next to the routine
35803          declarations. This is more uniform with other GNAT spec.
35805 2001-10-22  Geert Bosch  <bosch@gnat.com>
35807         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
35809 2001-10-19  Geert Bosch  <bosch@gnat.com>
35811         * Makefile.in (tools, gnattools): Remove gnatmem.
35813 2001-10-17  Richard Henderson  <rth@redhat.com>
35815         * Makefile.in (misc.o): Depend on langhooks.h.
35816         * misc.c: Include it.
35817         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
35818         (LANG_HOOKS_DECODE_OPTION): New.
35819         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
35821 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
35823         * trans.c (tree_transform): Adjust to recent change in
35824         expand_asm_operands to implement named asm operands.
35826 2001-10-11  Ed Schonberg  <schonber@gnat.com>
35828         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
35829         renaming of discriminant for mutable record type.
35831 2001-10-11  Robert Dewar  <dewar@gnat.com>
35833         * validsw.adb: Properly save -gnatVn status.
35835 2001-10-11  Robert Dewar <dewar@gnat.com>
35837         * usage.adb: Add lines for V switch.
35839         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
35840         (/VALIDITY_CHECKING).
35842 2001-10-11  Ed Schonberg <schonber@gnat.com>
35844         * sem_type.adb (Add_One_Interp): an operator for a type declared in
35845         an extension of System is known to be visible.
35847 2001-10-11  Ed Schonberg <schonber@gnat.com>
35849         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
35850         properly. Fixes regression on ACATS C34005G.
35852 2001-10-11  Robert Dewar <dewar@gnat.com>
35854         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
35855         loop in generic instance, since this is likely not very useful.
35857 2001-10-11  Robert Dewar <dewar@gnat.com>
35859         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
35860         the error message for high integrity mode.
35862         * rtsfind.adb (RTE): Give message if we try to find an entity that
35863         is not available in high integrity mode.
35865         * rtsfind.ads:
35866         (OK_To_Use_In_HIE_Mode): New array.
35867         (RTE): May return Empty in high integrity mode.
35869         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
35870         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
35872         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
35873         unit if not inlined always and in no runtime mode. Fixes problem
35874         caused by new Rtsfind changes.
35876         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
35877         body is deleted.
35879         * rtsfind.adb (RTE): Make sure we do not try to load unit after
35880         giving message for entity not available in high integrity mode.
35882 2001-10-11  Pascal Obry <obry@gnat.com>
35884         * impunit.adb: Add GNAT.CRC32.
35886 2001-10-11  Ed Schonberg <schonber@gnat.com>
35888         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
35889         properly the case where one universal operand in a non-static
35890         exponentiation of a real literal.
35892 2001-10-11  Ed Schonberg <schonber@gnat.com>
35894         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
35895         clause, return the gobal finalization list, for lack of anthing else.
35897 2001-10-11  Ed Schonberg <schonber@gnat.com>
35899         * exp_ch7.adb (Make_Transient_Block): if statement is within
35900         exception handler, always use new transient scope to place Clean
35901         procedure.
35903 2001-10-11  Pascal Obry <obry@gnat.com>
35905         * Makefile.in:
35906         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
35907         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
35908         (GNATLS_RTL_OBJS): add g-crc32.o
35909         (GNATMAKE_RTL_OBJS): add g-crc32.o
35911         * ali-util.adb:
35912         (CRC_Match): new function.
35913         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
35914         instead of the previous simple checksum algorithm.
35915         (Time_Stamp_Mismatch): use CRC_Match for comparison.
35916         (Set_Source_Table): idem.
35918         * ali-util.ads:
35919         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
35920         instead of simple checksum.
35921         (CRC_Match): new function.
35922         (CRC_Error): new constant.
35924         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
35925         a CRC now and not a simple checksum. A CRC uses lower-case hex
35926         letters, fixes ambiguity in parsing.
35928         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
35929         is what this variable will store.
35931         * bcheck.adb: Change reference to chechsum in comments by CRC.
35932         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
35933         rename All_Checksum_Match to All_CRC_Match. Change due to API
35934         renaming since now GNAT does not use a simple checksum but a
35935         CRC using GNAT.CRC32.
35937         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
35938         now and not anymore a simple checksum.
35940         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
35941         places.
35943         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
35945         * scans.adb:
35946         (Restore_Scan_State): rename Checksum to CRC.
35947         (Save_Scan_State): idem.
35949         * scans.ads:
35950         With GNAT.CRC32.
35951         (Checksum): rename to CRC.
35952         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
35954         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
35955         GNAT.CRC32).  Update copyright notice.
35957         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
35958         GNAT.CRC32).  Update copyright notice.
35960         * scn.adb:
35961         (Accumulate_Checksum): removed.
35962         (Update): new procedure. Add a wide-character into the CRC.
35964         * sinput-l.adb:
35965         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
35966         (Load_File): fix initialization of S (change Source_Checksum to
35967         Source_CRC)
35969         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
35970         Source_CRC in S initialization.
35972         * sinput.adb (Source_Checksum): renamed to Source_CRC.
35974         * sinput.ads (Source_Checksum): renamed to Source_CRC.
35975         Update comments for the CRC.
35977         * types.adb (Hex): Use lowercase for the letter part.
35979         * types.ads (Get_Hex_String): Returns the hexadecimal representation
35980         for a word. This is currently used only for CRC. In previous version,
35981         the checksum was using a representation with all letter being
35982         upper-case. With the new implementation (using CRC) we do not remove
35983         the 32th bit of the CRC, so we can have an upper-case starting letter
35984         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
35985         It is ambigous since the CRC was optional and could be followed by
35986         options like EB, EE. So now this routines uses lower-case letter for
35987         the hexadecimal representation. Strange enough only lower case letters
35988         where checked in Scan_ALI (even if this was not a possible case).
35990         * gnatvsn.ads (Library_Version): changed to 3.15a.
35992         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
35993         for the compiler.
35995         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
35996         for the compiler.
35998         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
35999         Add 2001 to copyright notice
36000         (Accumulate_Checksum): Modify to use System.CRC32.
36002         * ali-util.ads: Redo changes of previous revision to continue to use
36003         the word Checksum. Add 2001 to copyright notice.
36005         * ali.adb: Undo some of previous changes, not needed.
36006         Keep the change for lower case letters in the checksum.
36008         * ali.ads: Undo previous change not needed.
36010         * bcheck.adb: Undo most of previous change, not needed.
36011         But do use Checksums_Match for checksum comparison.
36013         * gnatls.adb: Undo most of previous change, not needed.
36014         But do use Checksums_Match for comparing checksums.
36016         * lib-load.adb: Undo previous change, not needed.
36018         * lib-writ.adb: Undo previous change, not needed.
36020         * lib-writ.ads: Document that checksums use lower case,
36021         not upper case letters.
36023         * scans.adb: Undo previous change, not needed
36025         * scans.ads: Undo previous change, not needed.
36027         * scn-nlit.adb: Undo previous changes, not needed.
36029         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
36031         * scn.adb:
36032         (Accumulate_Checksum): Use System.CRC32.
36033         (Initialize_Checksum): New procedure.
36034         Remove other changes of previous revision.
36036         * sinput-p.adb: Undo previous change, not needed.
36038         * sinput.adb: Undo previous change, not needed.
36040         * sinput-l.adb: Undo previous change, not needed.
36042         * sinput.ads: Undo previous change, not needed.  Keep only comment
36043         on new checksum algorithm
36045         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
36046         Also remove a-tags and a-stream from GNAT sources.
36048         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
36050         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
36052 2001-10-11  Geert Bosch  <bosch@gnat.com>
36054         * einfo.h: Regenerate.
36056         * nmake.ads: Regenerate.
36058         * nmake.adb: Regenerate.
36060         * sinfo.h: Regenerate.
36062         * treeprs.adb: Regenerate.
36064 2001-10-10  Geert Bosch  <bosch@gnat.com>
36066         * gnat-style.texi: New file describing coding guidelines for Ada.
36068 2001-10-10  Ed Schonberg <schonber@gnat.com>
36070         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
36071         is Flag174.
36073 2001-10-10  Geert Bosch  <bosch@gnat.com>
36075         * snames.ads: Add new names for project facility.
36077         * snames.adb: Update to reflect snames.ads changes.
36079         * snames.h: Update to reflect snames.ads changes.
36081 2001-10-10  Vincent Celier <celier@gnat.com>
36083         * make.adb:
36084         (Add_Switches): reflect the changes for the switches attributes
36085         Default_Switches indexed by the programming language,
36086         Switches indexed by the file name.
36087         (Collect_Arguments_And_Compile): Idem.
36088         Reflect the attribute name changes.
36090         * prj-attr.adb:
36091         (Initialisation_Data): Change the names of some packages and
36092         attributes.
36093         (Initialize): process case insensitive associative arrays.
36095         * prj-attr.ads:
36096         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
36098         * prj-dect.adb:
36099         (Parse_Attribute_Declaration): For case insensitive associative
36100          arrays, set the index string to lower case.
36102         * prj-env.adb:
36103         Reflect the changes of the project attributes.
36105         * prj-nmsc.adb:
36106         Replace Check_Naming_Scheme by Ada_Check and
36107         Language_Independent_Check.
36109         * prj-nmsc.ads:
36110         Replaced Check_Naming_Scheme by 2 procedures:
36111         Ada_Check and Language_Independent_Check.
36113         * prj-proc.adb:
36114         (Process_Declarative_Items): For case-insensitive associative
36115         arrays, set the index string to lower case.
36116         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
36117         Prj.Nmsc.Check_Naming_Scheme.
36119         * prj-tree.adb:
36120         (Case_Insensitive): New function
36121         (Set_Case_Insensitive): New procedure
36123         * prj-tree.ads:
36124         (Case_Insensitive): New function
36125         (Set_Case_Insensitive): New procedure
36126         (Project_Node_Record): New flag Case_Insensitive.
36128         * prj-util.adb:
36129         (Value_Of): new function to get the string value of a single
36130         string variable or attribute.
36132         * prj-util.ads:
36133         (Value_Of): new function to get the string value of a single
36134         string variable or attribute.
36136         * prj.adb:
36137         (Ada_Default_Spec_Suffix): New function
36138         (Ada_Default_Impl_Suffix): New function
36139         Change definitions of several constants to reflect
36140         new components of record types.
36142         * prj.ads:
36143         (Naming_Data): Change several components to reflect new
36144         elements of naming schemes.
36145         (Project_Data): New flags Sources_Present and
36146         Language_Independent_Checked.
36147         (Ada_Default_Spec_Suffix): New function.
36148         (Ada_Default_Impl_Suffix): New function.
36150         * snames.ads:
36151         Modification of predefined names for project manager: added
36152         Implementation, Specification_Exceptions, Implementation_Exceptions,
36153         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
36154         Default_Switches, _Languages, Builder, Cross_Reference,
36155         Finder. Removed Body_Part, Specification_Append, Body_Append,
36156         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
36157         Gnatlink.
36159         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
36160         Add comments.
36162         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
36163         not that it is Nil_Variable_Value.
36165         * prj.ads: Add ??? for uncommented declarations
36167 2001-10-10  Ed Schonberg <schonber@gnat.com>
36169         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
36170         constant, do not indicate possible modification, so that gigi can
36171         treat it as a bona fide constant.
36173 2001-10-10  Robert Dewar <dewar@gnat.com>
36175         * sem_prag.adb: Add processing for pragma External.
36177         * snames.ads: Add entry for pragma External.
36179         * par-prag.adb: Add pragma External.
36181         * snames.adb: Updated to match snames.ads.
36183 2001-10-10  Ed Schonberg <schonber@gnat.com>
36185         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
36186         a dynamic task if the allocator appears in an indexed assignment
36187         or selected component assignment.
36189         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
36190         For a dynamic task in an assignment statement, use target of
36191         assignment to generate meaningful name.
36193 2001-10-10  Ed Schonberg <schonber@gnat.com>
36195         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
36196         a generic package.
36198         * einfo.ads: Body_Entity is also defined for generic package.
36199         Documentation change only
36201         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
36202         others_choice for a discriminated component initialization,
36203         convert discriminant references into the corresponding discriminals.
36205         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
36206         only if original type is private and expression has to be wrapped
36207         in a conversion.
36209         * checks.adb:
36210         (Apply_Constraint_Check): Do not perform length check
36211         if expression is an aggregate with only an others_choice.
36212         (Length_N_Cond): two references to the same in_parameter
36213         (typically the discriminal in an init_proc) denote the same value.
36214         Two useful optimization uncovered by bugfixes above.
36216 2001-10-10  Robert Dewar <dewar@gnat.com>
36218         * xeinfo.adb: Change int to char in translation of enumeration types.
36219         This fixes a problem in the C representation of component alignment.
36220         Add 2001 to copyright notice
36222 2001-10-10  Richard Kenner <kenner@gnat.com>
36224         * decl.c: (validate_size): Do check size of object of integral type
36225         if it is a packed array type.
36227 2001-10-10  Richard Kenner <kenner@gnat.com>
36229         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
36230         VAR_DECL for constant if not Is_Public but -O0.
36232 2001-10-10  Richard Kenner  <kenner@gnat.com>
36234         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
36236 2001-10-10  Geert Bosch  <bosch@gnat.com>
36238         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
36239         use '/' as switch character, allowing for absolute file names.
36241 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
36243         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
36244         FSF address.
36246 2001-10-08  Geert Bosch  <bosch@gnat.com>
36248         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
36249         Automatically build utilities when files need to be regenerated.
36251 2001-10-08  Geert Bosch  <bosch@gnat.com>
36253         * xsnames.adb: New utility for updating snames.ads and snames.adb
36255 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
36257         * Make-lang.in (ADAFLAGS): Add -W -Wall.
36258         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
36259         (gnat1): Also depend on attribs.o.
36260         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
36261         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
36262         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
36263         (ADAFLAGS): Add -W -Wall.
36264         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
36265         take out CFLAGS.
36267         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
36268         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
36269         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
36270         Use $(ADAC), not $(CC), as compilation command.
36272         (gnattools): Depend directly on tools to build, don't use
36273         recursive make.
36274         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
36276         * einfo.h, sinfo.h: New files (autogenerated).
36278 2001-10-08  Richard Henderson  <rth@redhat.com>
36280         * comperr.adb (Abort_In_Progress): New.
36281         (Compiler_Abort): Use it to prevent recursion.
36283 2001-10-08  Robert Dewar <dewar@gnat.com>
36285         * atree.adb: Set Error_Posted in Error node, helps error recovery.
36287         * par-endh.adb (Output_End_Expected): We should also not test
36288         Error_Posted on the Error node, since now it is always set.
36290         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
36291         to help error recovery. Part of general work on 9407-004.
36293         * par.adb: Add ??? for misuse of error
36295         * sem_res.adb:
36296         (Resolve): Defend against Error, fixes 9407-003.
36297         (Resolve_Discrete_Subtype_Indication): Defend against Error.
36299         * sinfo.ads (N_Error): Now has Etype field (which will be set
36300         to Any_Type to help error recovery).
36302 2001-10-08  Richard Kenner (kenner@gnat.com)
36304         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
36305         Consistently set MEM attributes from expression; fixes
36306         bootstrap failure on x86.
36308 2001-10-08  Geert Bosch  (bosch@gnat.com)
36310         * 5oosinte.adb: Add 2001 to copyright notice.
36312 2001-10-08  Geert Bosch  (bosch@gnat.com)
36314         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
36316         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
36318 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
36320         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
36322 2001-10-05  Geert Bosch  (bosch@gnat.com)
36324         * adaint.h: Small formatting fix.
36326 2001-10-04  Geert Bosch  <bosch@gnat.com>
36328         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
36329         Arg is int, not FILE *, in dummy version of functions.
36331         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
36332         Arg is int, not FILE *.
36334 2001-10-04  Geert Bosch  <bosch@gnat.com>
36336         * 3lsoccon.ads: Added file, missed with initial check ins.
36338         * 4lintnam.ads: Fix header format.
36339         Change Linux to GNU/Linux.
36341         * 5iosinte.adb: Change Linux to GNU/Linux.
36343         * 5iosinte.ads: Change Linux to GNU/Linux.
36345         * 5itaprop.adb: Change Linux to GNU/Linux.
36347         * 5itaspri.ads: Change Linux to GNU/Linux.
36348         Update copyright notice.
36350         * 5lintman.adb: Change Linux to GNU/Linux.
36352         * 5lml-tgt.adb: Change Linux to GNU/Linux.
36354         * 5losinte.ads: Change Linux to GNU/Linux.
36356         * 5lsystem.ads: Change Linux to GNU/Linux.
36358         * 5qosinte.adb: Change Linux to GNU/Linux.
36360         * 5qosinte.ads: Change Linux to GNU/Linux.
36362         * 5qparame.ads: Change Linux to GNU/Linux.
36364         * 5qtaprop.adb: Change Linux to GNU/Linux.
36366         * 5qtaspri.ads: Change Linux to GNU/Linux.
36367         Add 2001 to copyright notice.
36369         * 5vintman.ads: Change Linux to GNU/Linux.
36370         Fix header format.  Add 2001 to copyright notice.
36372         * g-soccon.ads: Change Linux to GNU/Linux.
36374         * g-trasym.ads: Change Linux to GNU/Linux.
36375         Add 2001 to copyright notice.
36377         * memtrack.adb: Change Linux to GNU/Linux.
36379         * s-intman.ads: Change Linux to GNU/Linux.
36380         Add 2001 to copyright notice.  Fix header format.
36382         * s-stache.adb: Change Linux to GNU/Linux.
36384         * adaint.c: Change Linux to GNU/Linux.
36386         * cio.c: Change Linux to GNU/Linux.
36388         * cstreams.c: Change Linux to GNU/Linux.
36390         * init.c: Change Linux to GNU/Linux.
36392         * gmem.c: Change Linux to GNU/Linux.
36394         * tracebak.c: Change Linux to GNU/Linux.
36397 2001-10-02  Geert Bosch  <bosch@gnat.com>
36399         * misc.c (insert_default_attributes): Add dummy version.