1 2011-06-27 Release Manager
5 2010-05-22 Release Manager
9 2009-08-04 Release Manager
13 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
15 * utils.c (create_var_decl_1): Do not emit debug info for an external
16 constant whose initializer is not absolute.
18 2009-03-31 Eric Botcazou <ebotcazou@adacore.com>
20 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
21 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
22 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
23 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
25 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
27 * Makefile.in (cygwin/mingw): Revert accidental EH_MECHANISM change
30 2009-01-24 Release Manager
34 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
36 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put the _Tag field
37 before any discriminants in the field list.
38 (components_to_record): Remove obsolete comment.
40 2008-12-04 Janis Johnson <janis187@us.ibm.com>
42 Backport from mainline:
43 2008-10-18 Jakub Jelinek <jakub@redhat.com>
44 Janis Johnson <janis187@us.ibm.com>
46 * Make-lang.in (check-ada-subtargets): Depend on
47 check-acats-subtargets and check-gnat-subtargets.
48 (check_acats_targets): New variable.
49 (check-acats-subtargets, check-acats%): New targets.
50 (check-acats): If -j is used and CHAPTERS is empty, run the testing
51 in multiple make goals, possibly parallel, and afterwards run
52 dg-extract-results.sh to merge the sum and log files.
54 2008-11-15 Bechir Zalila <bechir.zalila@gmail.com>
55 Eric Botcazou <ebotcazou@adacore.com>
58 * lib.ads: (Enable_Switch_Storing): Declare.
59 * lib.adb: (Enable_Switch_Storing): New procedure.
60 * switch-c.adb (Scan_Front_End_Switches): Add support for -gnatea.
61 * make.adb: (Compile_Sources.Compile): Add -gnatea as first option.
62 (Display): Never display -gnatea
63 * lang-specs.h: If -gnatea is present, pass -gnatez.
65 2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
67 * utils.c (can_fold_for_view_convert_p): New predicate.
68 (unchecked_convert): Use it to disable problematic folding with
69 VIEW_CONVERT_EXPR in the general case. Always disable it for the
70 special VIEW_CONVERT_EXPR built for integral types and cope with
71 its addressability issues by preserving the first conversion.
73 2008-08-27 Release Manager
77 2008-06-24 Eric Botcazou <ebotcazou@adacore.com>
79 * utils2.c (known_alignment): Derive the alignment from pointed-to
80 types only if it is otherwise unknown.
82 <MULT_EXPR>: Likewise.
83 <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
86 2008-06-09 Eric Botcazou <ebotcazou@adacore.com>
88 * decl.c (components_to_record): Adjust the packedness for the
89 qualified union as well.
91 2008-06-06 Aurelien Jarno <aurelien@aurel32.net>
93 * s-osinte-linux-alpha.ads (SC_NPROCESSORS_ONLN): New constant
95 (bit_field): New packed boolean type used by cpu_set_t.
96 (cpu_set_t): New type corresponding to the C type with
97 the same name. Note that on the Ada side we use a bit
98 field array for the affinity mask. There is not need
99 for the C macro for setting individual bit.
100 (pthread_setaffinity_np): New imported routine.
102 2008-06-06 Release Manager
104 * GCC 4.3.1 released.
106 2008-05-24 Eric Botcazou <ebotcazou@adacore.com>
108 * trans.c (Sloc_to_locus): Do not overwrite known GCC locations when
109 translating GNAT standard locations.
111 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
113 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
114 for dummy types pointed to by the converted pointer types.
116 2008-05-15 Eric Botcazou <ebotcazou@adacore.com>
118 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
119 of records and unions.
120 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
122 2008-05-13 Eric Botcazou <ebotcazou@adacore.com>
126 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
127 expression to an integral type with lower precision, use NOP_EXPR
128 directly in a couple of special cases.
130 2008-04-09 Eric Botcazou <ebotcazou@adacore.com>
132 * decl.c (is_variable_size): Do not unconditionally return false
133 on non-strict alignment platforms.
135 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
138 * env.c: Always include crt_externs.h if __APPLE__ is defined.
139 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
141 2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
143 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
144 size if it has overflowed.
146 2008-03-05 Release Manager
148 * GCC 4.3.0 released.
150 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
152 PR documentation/15479
153 * gnat_ugn.texi: In non-code, avoid space before colon.
154 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
155 (Examples of gnatxref Usage): Use @command{vi} instead of
157 (Character Set Control): Do not use @code for UTF-8.
158 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
160 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
162 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
164 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
167 * env.c: Add __rtems__ to if defined.
168 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
169 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
170 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
171 pragma Convention as required.
172 * gsocket.h: Make compile in and out of RTS.
173 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
174 Use g-soccon-rtems.ads.
175 * g-soccon-rtems.ads, system-rtems.ads: New files.
177 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
180 * Make-lang.in (gnat1): Add $(GMPLIBS).
182 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
184 * decl.c (components_to_record): Improve comment.
186 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
188 * decl.c (components_to_record): Do not reuse the empty union type
189 if there is a representation clause on the record.
190 * trans.c (addressable_p): Return true for INTEGER_CST.
192 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
194 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
195 in pointer arithmetics.
196 * utils2.c (build_allocator): Likewise.
198 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
200 * utils.c (build_function_stub): Properly build the call expression.
202 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
204 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
205 before converting the expression to the type of the object.
206 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
207 Stabilize constructors for special wrapping types.
209 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
211 * trans.c (call_to_gnu):Invoke the addressable_p predicate only
212 when necessary. Merge some conditional statements. Update comments.
213 Rename unchecked_convert_p local variable to suppress_type_conversion.
214 Do not suppress conversions in the In case.
215 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
216 into account on non strict-alignment platforms.
218 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
220 * utils.c (aggregate_type_contains_array_p): New predicate.
221 (create_field_decl): In a packed record, force byte alignment
222 for fields without specified position that contain an array.
224 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
226 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
228 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
231 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
233 (bit_field): New packed boolean type used by cpu_set_t.
234 (cpu_set_t): New type corresponding to the C type with
235 the same name. Note that on the Ada side we use a bit
236 field array for the affinity mask. There is not need
237 for the C macro for setting individual bit.
238 (pthread_setaffinity_np): New imported routine.
240 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
243 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
244 on OpenBSD as is done on other BSD systems.
247 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
248 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
252 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
256 * init.c (__gnat_error_handler, __gnat_install_handler,
257 __gnat_init_float): Define for OpenBSD.
259 * initialize.c (__gnat_initialize): Define for OpenBSD.
261 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
264 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
265 instead of mktemp() or tmpnam() on NetBSD.
267 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
269 * trans.c (call_to_gnu): Make the temporary for non-addressable
270 In parameters passed by reference.
271 (addressable_p): Return true for STRING_CST and CALL_EXPR.
273 2007-12-19 Robert Dewar <dewar@adacore.com>
275 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
276 Add pragma Warnings (Off) for unassigned IN OUT arguments
278 * sem_warn.adb (Output_Reference): Suppress messages for internal names
279 (Check_References): Extensive changes to tune up warnings
280 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
281 (Has_Pragma_Unmodifed_Check_Spec): New function
282 (Check_References): Implement pragma Unmodified
283 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
285 * par-prag.adb: Dummy entry for pragma Unmodified
287 * sem_prag.adb: Implement pragma Unmodified
289 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
290 (Proc_Next_Component_Or_Discriminant): Fix typo.
293 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
295 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
296 because the former already takes care of discarding the result.
297 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
300 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
302 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
304 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
305 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
306 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
307 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
308 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
309 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
310 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
311 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
312 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
313 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
314 (Dynamic_Trampolines_Used): Delete.
316 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
317 Turn on stack probing mechanism on LynxOS.
319 2007-12-19 Bob Duff <duff@adacore.com>
321 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
322 the resulting tail recursion by hand. This prevents running out of
323 memory on deeply nested concatenations, since Field2 is where the left
324 operand of concatenations is stored.
325 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
326 clarify that it can only return OK or Abandon.
328 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
329 operand by iteration, in order to avoid running out of memory on
330 deeply-nested concatenations. Use the Parent pointer to get back up the
332 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
333 Resolve_Op_Concat_Rest): New procedures split out of
334 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
337 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
338 Traverse_Func, because the former already takes care of discarding the
341 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
342 because the former already takes care of discarding the result.
343 (Remove_Warning_Messages): Use appropriate subtype for Status and
346 2007-12-19 Ed Schonberg <schonberg@adacore.com>
348 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
349 discriminants forces expansion of the aggregate into assignments.
350 (Init_Record_Controller): If the type of the aggregate is untagged and
351 is not inherently limited, the record controller is not limited either.
353 2007-12-19 Robert Dewar <dewar@adacore.com>
355 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
356 handling compile time known size of record or array (case of front end
357 layout active, e.g. in GNAAMP).
359 2007-12-19 Javier Miranda <miranda@adacore.com>
361 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
362 that forces the construction of static dispatch tables in case of
365 2007-12-19 Robert Dewar <dewar@adacore.com>
367 * exp_ch9.adb (Null_Statements): Moved to library level
368 (Trivial_Accept_OK): New function
369 (Expand_Accept_Declaration): Use Trivial_Accept_OK
370 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
372 2007-12-19 Robert Dewar <dewar@adacore.com>
374 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
375 in complex case where array is Volatile.
377 2007-12-19 Ed Schonberg <schonberg@adacore.com>
379 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
380 properly the Ada2005 rules concerning when the current instance of a
381 record type is aliased.
383 2007-12-19 Ed Schonberg <schonberg@adacore.com>
385 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
387 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
389 (P_Variant_Part): Cleaner patch for parenthesized discriminant
391 2007-12-19 Vincent Celier <celier@adacore.com>
393 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
396 * prj-attr.ads (Unknown_Package): New constant
397 Do not crash when an unknown package is in several projects
399 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
402 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
403 existing package Language_Processing.
405 2007-12-19 Ed Schonberg <schonberg@adacore.com>
406 Gary Dismukes <dismukes@adacore.com>
407 Samuel Tardieu <sam@rfc1149.net>
409 PR ada/15803, ada/15805
410 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
411 illegal access subtypes when there is a constrained partial view.
412 (Check_For_Premature_Usage): New procedure inside
413 Access_Subprogram_Declaration for checking that an access-to-subprogram
414 type doesn't reference its own name within any formal parameters or
415 result type (including within nested anonymous access types).
416 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
417 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
418 context is an access_to_variable, the expression cannot be an
421 2007-12-19 Bob Duff <duff@adacore.com>
423 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
424 (Analyze_Concatenation): Use iteration instead of recursion in order
425 to avoid running out of stack space for deeply nested concatenations.
427 2007-12-19 Ed Schonberg <schonberg@adacore.com>
428 Gary Dismukes <dismukes@adacore.com>
430 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
431 whose renamed entity is a subprogram that requires overriding.
432 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
433 issuing an error for premature usage and issue a message that says
434 'type' rather than 'object'.
436 2007-12-19 Gary Dismukes <dismukes@adacore.com>
439 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
440 presence of a statically tagged operand (Present (Static_Tag)) with
441 test for Indeterm_Ancestor_Call when determining whether to propagate
442 the static tag to tag-indeterminate operands (which forces dispatching
444 (Check_Controlling_Formals): Ada2005, access parameters can have
446 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
447 not insert subprogram in list of primitive operations if already there.
449 2007-12-19 Tristan Gingold <gingold@adacore.com>
451 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
454 2007-12-19 Thomas Quinot <quinot@adacore.com>
457 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
458 datagram info on Linux.
460 2007-12-19 Vincent Celier <celier@adacore.com>
462 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
463 that the source path name is always found in the dependencies.
465 2007-12-19 Robert Dewar <dewar@adacore.com>
467 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
468 Fix name of Wide_Wide_Latin_1/9 file names
469 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
470 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
471 Add missing documentation for Ada.Command_Line.Response_File
472 Update list of warning letters for Warnings pragma
473 Add documentation for pragma Unmodified
475 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
477 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
479 2007-12-17 Arnaud Charlet <charlet@adacore.com>
481 * s-vxwork-alpha.ads: Removed, no longer used.
483 2007-12-15 Jakub Jelinek <jakub@redhat.com>
485 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
487 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
490 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
491 mlib-tgt-specific.adb.
493 2007-12-13 Bob Duff <duff@adacore.com>
495 * trans.c (Attribute_to_gnu): Check for violations of the
496 No_Implicit_Dynamic_Code restriction. This checking used to be done in
497 the front end, but is moved here so we can make it more accurate.
499 2007-12-13 Pascal Obry <obry@adacore.com>
501 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
502 version is provided for older GNU/Linux distribution not
503 supporting thread affinity sets.
505 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
507 (bit_field): New packed boolean type used by cpu_set_t.
508 (cpu_set_t): New type corresponding to the C type with
509 the same name. Note that on the Ada side we use a bit
510 field array for the affinity mask. There is not need
511 for the C macro for setting individual bit.
512 (pthread_setaffinity_np): New imported routine.
514 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
516 (Create_Task): Set the processor affinity mask if information
519 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
521 2007-12-13 Robert Dewar <dewar@adacore.com>
523 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
524 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
525 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
526 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
527 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
528 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
529 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
530 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
531 for subprogram pointers.
533 * g-ctrl_c.adb: New file.
535 * g-ctrl_c.ads (Install_Handler): New body.
537 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
538 instead of obsolete function Is_Always_Inlined.
539 (Freeze_Entity): check for tagged type in imported C subprogram
540 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
541 (Freeze_Entity): check for convention Ada subprogram pointer in
542 imported C subprogram.
543 (Freeze_Fixed_Point_Type): In the case of a base type where the low
544 bound would be chopped off and go from negative to zero, force
545 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
546 bound) so that the size computation for the base type will take
547 negative values into account.
549 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
550 Bob Duff <duff@adacore.com>
551 Tristan Gingold <gingold@adacore.com>
553 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
554 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
555 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
556 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
557 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
558 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
559 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
560 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
561 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
562 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
563 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
564 (Always_Compatible_Rep): New flag to control trampolines globally.
565 (Dynamic_Trampolines_Used): New flag for implementing the
566 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
567 and not yet set correctly for some targets).
569 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
570 Simply indirectly call s-stchop when a task is created.
573 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
574 appears as an argument (entries A) in an ALI file.
576 * fe.h (Stack_Check_Limits): Declare new target parameter.
577 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
579 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
580 This variable is declared in C to be sure not subject to elaboration
582 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
585 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
586 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
588 * s-stchop.ads: Add comments.
590 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
591 limit method of stack checking.
593 * s-stchop-limit.ads: New file.
595 2007-12-13 Robert Dewar <dewar@adacore.com>
597 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
598 a-cihama.adb, g-awk.adb,
599 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
602 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
604 * sem.adb: Update handling of assigned value/unreferenced warnings
606 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
608 * lib-xref.ads: Improve documentation for k xref type
611 Update handling of assigned value/unreferenced warnings
612 (Generate_Reference): Warning for reference to entity for which a
613 pragma Unreferenced has been given should be unconditional.
614 If the entity is a discriminal, mark the original
615 discriminant as referenced.
617 * sem_warn.ads, sem_warn.adb
618 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
619 no entities referenced in package
620 (Check_One_Unit): Don't give message about no entities referenced in
621 a package if a pragma Unreferenced has appeared.
622 Handle new warning flag -gnatw.a/-gnatw.A
623 Update handling of assigned value/unreferenced warnings
625 * atree.h: Add flags up to Flag247
626 (Flag231): New macro.
628 2007-12-13 Jose Ruiz <ruiz@adacore.com>
630 * adaint.h: (__gnat_plist_init): Not defined for RTX.
632 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
635 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
636 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
637 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
638 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
641 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
643 * sysdep.c (winflush_function for RTX): Procedure that does nothing
644 since we only have problems with Windows 95/98, which are not
646 (__gnat_ttyname): Return the empty string on Nucleus, just as
649 2007-12-13 Robert Dewar <dewar@adacore.com>
651 * a-textio.adb, a-textio.ads:
652 Extensive changes to private part for wide character encoding
654 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
655 (Look_Ahead): Fix mishandling of encoded sequences
656 Move declaration of Wch_Con to private part (should not be visible)
658 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
659 UTF-8. Probably this is never used, but if it is, brackets is
662 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
663 setting wide character encoding for no main program case and when
664 encoding is specified using -W?
665 Initialize stack limit of environment task if stack limit method of
666 stack checking is enabled.
667 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
668 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
669 (Get_Main_Unit_Name): New function.
670 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
671 (Gen_Output_File): Set Bind_Main_Program to True for .NET
673 * bindusg.adb: Add line for -Wx switch
675 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
677 Add new useful constant WC_Longest_Sequences
679 * switch-b.adb: Clean up handling of -Wx switch
680 For -gnatWx, set Wide_Character_Encoding_Method_Specified
682 * switch-c.adb: -gnatg activates warning on assertion errors
683 For -gnatWx, set Wide_Character_Encoding_Method_Specified
685 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
687 2007-12-13 Robert Dewar <dewar@adacore.com>
688 Ed Schonberg <schonberg@adacore.com>
690 * a-ngcoty.adb: New pragma Fast_Math
692 * opt.adb: New pragma Fast_Math
695 Add Implemented_By_Entry to the list of pragmas which do not require any
697 (Favor_Top_Level): New pragma.
700 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
701 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
702 Expand_Allocator_Expression): Take into account VM_Target
703 (Expand_Attribute, case 'Identity): Handle properly the case where
704 the prefix is a task interface.
707 * par.adb (Next_Token_Is): New function
708 (P_Pragma): Add Skipping parameter
709 (U_Left_Paren): New procedure
710 (U_Right_Paren): New procedure
713 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
717 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
718 Implemented_By_Entry.
719 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
720 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
721 items, since it can apply to more than one overloadable entity. Set
722 new flag Has_Pragma_Inline_Always for Inline_Always case.
723 (Analyze_Pragma, case Complex_Representation): Improve error message.
724 (Analyze_Pragma, case Assert): When assertions are disabled build the
725 rewritten code with Sloc of expression rather than pragma, so new
726 warning about failing is not deleted.
727 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
728 protected types and update error message to reflect that. Test whether
729 the protected type is allowed for the pragma (an error is issued if the
730 type has any entries, or components that do not have preelaborable
733 (Analyze_Pragma, case No_Return): Handle generic instance
735 * snames.h, snames.ads, snames.adb:
736 Add new predefined name for interface primitive _Disp_Requeue.
739 * a-tags.ads, a-tags.adb: New calling sequence for
740 String_To_Wide_[Wide_]String
741 (Secondary_Tag): New subprogram.
743 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
745 New calling sequence for String_To_Wide_[Wide_]String
746 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
747 the use of the secondary stack for image routines.
749 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
750 calling sequence for String_To_Wide_[Wide_]String
752 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
754 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
755 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
757 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
758 (P_Formal_Part): Use Skipping parameter in P_Pragma call
759 to improve error recovery
761 * par-util.adb (Next_Token_Is): New function
762 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
764 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
766 (P_Pragma): Implement new Skipping parameter
767 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
768 Fix location of flag for unrecognized pragma message
770 * par-tchk.adb (U_Left_Paren): New procedure
771 (U_Right_Paren): New procedure
773 2007-12-13 Geert Bosch <bosch@adacore.com>
776 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
777 the second or later Scaled_Divide would omit leading zeroes,
778 resulting in too few digits produced and a Layout_Error as result.
779 (Put): Initialize Pos.
781 2007-12-13 Robert Dewar <dewar@adacore.com>
783 atree.ads, atree.adb (Flag231..Flag247): New functions
784 (Set_Flag231..Set_Flag247): New procedures
785 (Basic_Set_Convention): Rename Set_Convention to be
787 (Nkind_In): New functions
788 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
790 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
792 of obsolete function Is_Always_Inlined
793 (Register_Predefined_DT_Entry): Initialize slots of the second
794 secondary dispatch table.
795 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
796 (Expand_N_Function_Call): Remove special provision for stack checking.
798 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
799 Include _Disp_Requeue in the list of predefined operations.
800 (Find_Interface_ADT): Modified to fulfill the new specification.
801 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
803 * par-ch4.adb, nlists.ads, nlists.adb:
804 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
806 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
807 Fix location of flag for unrecognized pragma message
809 * sem_ch7.adb: Use Nkind_In
811 2007-12-13 Vincent Celier <celier@adacore.com>
814 Indicate what flags are used by the Project Manager, gprbuild and
816 (Opt.Follow_Links_For_Dirs): New flag
817 (Warn_On_Assertion_Failure): New flag
818 (Wide_Character_Encoding_Method_Specified): New flag
819 (Suppress_All_Inlining): New switch set by -fno-inline
820 (Real_VMS_Target): New flag
823 2007-12-13 Robert Dewar <dewar@adacore.com>
825 * back_end.adb: Recognize -fno-inline
827 2007-12-13 Robert Dewar <dewar@adacore.com>
829 * checks.adb: Fix optimization problem with short-circuited form
831 2007-12-13 Bob Duff <duff@adacore.com>
833 * clean.adb (Usage): Add line for -aP
834 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
835 with a parameter "procedure Usage", instead of passing a pointer to a
836 procedure. This is to eliminate trampolines (since the Usage procedure
837 is often nested in a main procedure, and it would be inconvenient to
840 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
841 to be generic, with a parameter "procedure Callback (...)", instead of
842 passing a pointer to a procedure. This is to eliminate trampolines
843 (since the Callback procedure is usually nested).
845 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
846 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
847 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
849 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
850 Use the generic Heap_Sort_G instead of Heap_Sort_A.
852 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
854 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
855 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
856 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
857 (Renamed_In_Spec): New flag
858 (Has_Pragma_Inline_Always): New flag
859 Add missing doc for pragma Obsolescent_Warning
860 Add missing doc for 17 additional unused flags (230-247)
861 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
862 Alphabetize with clauses.
863 Separate Is_Thunk and Has_Thunks flags
864 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
865 (Related_Interface): Renamed to Related_Type.
866 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
867 (Set_Is_Flag): Restrict the assertion.
869 2007-12-13 Vincent Celier <celier@adacore.com>
871 * errout.adb (Output_Source_Line): Do not keep a trailing space after
872 the source line number if the source line is empty.
874 2007-12-13 Geert Bosch <bosch@adacore.com>
876 * eval_fat.adb (Decompose_Int): Handle argument of zero.
877 (Compose): Remove special casing of zero.
878 (Exponent): Likewise.
879 (Fraction): Likewise.
881 (Decompose): Update comment.
883 2007-12-13 Ed Schonberg <schonberg@adacore.com>
885 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
886 limited ancestor part, initialize controllers of enclosing record
887 before expanding ancestor aggregate.
888 (Gen_Assign): If a component of the aggregate is box-initialized, add
889 code to call Initialize if the component is controlled, and explicit
890 assignment of null if the component is an access type.
892 Handle properly aggregates for limited types that appear in object
893 declarations when the aggregate contains controlled values such as
895 When expanding limited aggregates into individual components, do not
896 call Adjust on controlled components that are limited.
898 2007-12-13 Ed Schonberg <schonberg@adacore.com>
900 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
902 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
904 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
905 predefined primitive _Disp_Requeue.
906 (Make_Predefined_Primitive_Specs): Create the spec for predefined
907 primitive _Disp_Requeue.
908 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
909 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
910 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
911 an interface type. In case of limited interfaces we now declare all the
912 predefined primitives associated with synchronized interfaces as
914 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
916 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
917 tagged type is an interface type and there is no user-defined equality
919 Add also bodies of predefined primitives associated with synchronized
921 (Freeze_Record_Type): Do not build bodies of predefined primitives of
922 interface types because they are now defined abstract.
923 Add missing documentation.
924 (Expand_Record_Controller): Update occurrence of Related_Interface
926 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
927 (Expand_N_Object_Declaration): Take into account VM_Target when handling
928 class wide interface object declaration.
929 (Expand_Previous_Access_Type): Do not create a duplicate master entity
930 if the access type already has one.
931 (Expand_N_Object_Declaration): Defend against attempt to validity check
932 generic types. Noticed for -gnatVcf specified with previous errors.
934 2007-12-13 Arnaud Charlet <charlet@adacore.com>
936 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
937 Expand_Allocator_Expression): Take into account VM_Target
939 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
940 secondary stack when VM_Target /= No_VM
942 2007-12-13 Javier Miranda <miranda@adacore.com>
943 Ed Schonberg <schonberg@adacore.com>
945 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
946 Is_Complation_Unit by Is_Library_Level_Entity in the code
947 that decides if the static dispatch tables need to be built.
948 (Wrap_Transient_Declaration): Do not generate a finalization call if
949 this is a renaming declaration and the renamed object is a component
950 of a controlled type.
952 2007-12-13 Gary Dismukes <dismukes@adacore.com>
954 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
955 In the case where the renamed subprogram is a dereference, call
956 Force_Evaluation on the prefix.
958 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
959 Ed Schonberg <schonberg@adacore.com>
961 * exp_ch9.adb (Expand_N_Asynchronous_Select,
962 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
963 comment reformatting.
964 (Set_Privals): Inherit aliased flag from formal. From code reading.
965 (Build_Simple_Entry_Call): Out parameters of an access type are passed
966 by copy and initialized from the actual. This includes entry parameters.
967 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
968 and Ada 2005 models of requeue.
969 (Null_Statements): Still connsider do-end block null if it contains
970 Unreferenced and Warnings pragmas.
971 (Expand_N_Accept_Statement): Do not optimize away null do end if
972 dispatching policy is other than defaulted.
973 (Expand_N_Timed_Entry_Call): When the triggering statement is a
974 dispatching call, manually analyze the delay statement.
975 (Find_Parameter_Type): Move subprogram to Sem_Util.
977 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
978 Javier Miranda <miranda@adacore.com>
980 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
981 _Disp_Requeue occupies dispatch table slot number 15. Move
982 _Disp_Timed_Select to slot 16.
983 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
984 generate the spec and body of _Disp_Reqeueue.
985 (Make_DT): Build and initialize the second dispatch table.
986 Handle initialization of RC_Offset when the parent
987 is a private type with variable size components.
988 (Make_Secondary_DT): Complete documentation. Add support to
989 initialize the second dispatch table.
990 (Make_Tags): Generate the tag of the second dispatch table.
991 (Register_Primitive): Add support to register primitives in the
992 second dispatch table.
994 2007-12-13 Pascal Obry <obry@adacore.com>
996 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
997 Windows. This signal is used by gnatmake to kill child processes for
1000 2007-12-13 Javier Miranda <miranda@adacore.com>
1002 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
1003 support for generic dispatching constructor calls in which we need to
1004 locate the tag of a secondary dispatch table associated with an
1005 interface type to properly dispatch the call.
1006 (Expand_N_Attribute_Reference [case Address],
1007 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
1008 handling of VM targets.
1010 2007-12-13 Robert Dewar <dewar@adacore.com>
1011 Ed Schonberg <schonberg@adacore.com>
1013 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
1016 * ug_words: Add entries for -gnatw.a -gnatw.A
1018 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
1019 literal is a subtype with non-static constraints, use the base type of
1020 the context as the base of the string subtype, to prevent type
1022 (Resolve_Actuals): If the actual is an entity name, generate a
1023 reference before the actual is resolved and expanded, to prevent
1024 spurious warnings on formals of enclosing protected operations.
1025 (Analyze_Overloaded_Selected_Component): If type of prefix if
1026 class-wide, use visible components of base type.
1027 (Resolve_Selected_Component): Ditto.
1028 (Resolve_Short_Circuit): Detect case of pragma Assert argument
1029 evaluating to False, and issue warning message.
1031 * usage.adb: Add lines for -gnatw.a and -gnatw.A
1033 2007-12-13 Emmanuel Briot <briot@adacore.com>
1035 * g-calend.ads (No_Time): New constant, to represent an uninitialized
1038 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
1040 (Month_Name_To_Number): New subprogram
1042 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
1043 letter to upper-case.
1045 2007-12-13 Robert Dewar <dewar@adacore.com>
1046 Ed Schonberg <schonberg@adacore.com>
1048 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
1050 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
1051 context is a limited view, use non-limited view when available. If the
1052 non-limited view is an unconstrained array, this enforces consistency
1053 requirements in 3.10.2 (27).
1054 (Layout_Type): For an access type whose designated type is a limited
1055 view, examine its declaration to determine if it is an unconstrained
1056 array, and size the access type accordingly.
1057 (Layout_Type): Do not force 32-bits for convention c subprogram
1058 pointers in -gnatdm mode, only if real vms target.
1060 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
1061 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
1062 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
1063 violations of the No_Implicit_Dynamic_Code restriction.
1064 (Resolve_Attribute, case 'Access): If designated type of context is a
1065 limited view, use non-limited view when available. If the non-limited
1066 view is an unconstrained array, this enforces consistency requirements
1068 (Layout_Type): For an access type whose designated type is a limited
1069 view, examine its declaration to determine if it is an unconstrained
1070 array, and size the access type accordingly.
1072 2007-12-13 Vincent Celier <celier@adacore.com>
1074 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
1075 object directory of main project does not exist.
1076 On VMS, correctly set then environment variable for the source
1079 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
1081 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
1082 set to True this procedure will create the value of type REG_EXPAND_SZ.
1083 It was only possible to create REG_SZ values before.
1085 2007-12-13 Robert Dewar <dewar@adacore.com>
1087 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
1088 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
1089 namet-sp.adb, namet-sp.ads: New files.
1091 * g-speche.adb: Use generic routine in g-spchge
1093 * s-wchcnv.ads, s-wchcnv.adb:
1094 Minor code cleanup (make formal type consistent with spec)
1096 * namet.adb: Update comments.
1098 * par-endh.adb (Evaluate_End_Entry): Use new
1099 Namet.Sp.Is_Bad_Spelling_Of function
1101 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
1103 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
1104 ancestor is an access type initialized with a box, set its type
1105 explicitly, for use in subsequent expansion.
1106 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
1109 2007-12-13 Robert Dewar <dewar@adacore.com>
1111 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
1114 2007-12-13 Robert Dewar <dewar@adacore.com>
1116 * inline.adb (Back_End_Cannot_Inline): Use new flag
1117 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
1119 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
1120 Has_Pragma_Inline_Always instead.
1121 of obsolete function Is_Always_Inlined
1122 (Build_Body_To_Inline): Same change
1123 (Cannot_Inline): Same change
1124 Do not give warning on exception raise in No_Return function
1126 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
1127 component has two inconsistent component clauses in the same record
1128 representation clause, favor the message that complains about
1129 duplication rather than inconsistency.
1131 (Record_Representation_Clause): Do not warn on missing component
1132 clauses for inherited components of a type extension.
1133 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
1134 an overloadable item if it is a pragma that can apply to multiple
1135 overloadable entities (e.g. Inline) because a pragma cannot be on
1136 more than one chain at a time.
1137 (Validate_Unchecked_Conversion): Add code to warn on unchecked
1138 conversion where one of the operands is Ada.Calendar.Time.
1139 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
1140 For now, ignore Component_Size clause on VM targets, as done for
1143 2007-12-13 Emmanuel Briot <briot@adacore.com>
1144 Vincent Celier <celier@adacore.com>
1146 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
1148 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
1150 (Hash): Move instantiation of System.HTable.Hash from spec to body
1151 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
1152 systems, since we do not need to recompute the Name_Id for the canonical
1154 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
1155 as a parameter. This parameter is in fact always "ada" in all calls, and
1156 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
1157 while loading a project with 40000 files
1159 * prj-attr.adb: Fix name of attribute Dependency_Driver
1160 Change the kind of indexing for attribute Root
1162 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
1163 variables already declared, in case constructions.
1165 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
1166 Current_Object_Path_File to No_Path.
1168 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
1169 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
1171 * prj-makr.adb: new parameter Current_Dir
1173 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
1174 Ada sources when language is not Ada.
1175 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
1176 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
1177 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
1178 (Locate_Directory): Always resolve links when computing Canonical_Path
1179 (Look_For_Sources): Make sure that Name_Buffer contains the file name
1180 in Source_Files before checking for the presence of a directory
1182 Optimize calls to Name_Find when on case sensitive systems.
1183 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
1185 (Prj.Nmsc.Check): new parameter Current_Dir
1186 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
1187 cannot be empty and the spec suffix cannot be the same as the body or
1189 (Get_Unit): When a file name can be of several unit kinds (spec, body or
1190 subunit), always consider the longest suffix.
1191 (Check_Configuration): Do not issue an error if there is no compiler
1192 for a language. Just issue a warning and ignore the sources for the
1194 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
1196 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
1197 (Unit_Exceptions): New hash table
1198 (Check_Naming_Schemes): Check if a file that could be a unit because of
1199 the naming scheme is not in fact a source because there is an exception
1201 (Look_For_Sources): Put the unit exceptions in hash table
1203 (Get_Unit_Exceptions): Give initial value No_Source to local variable
1204 Other_Part to avoid exception when code is compiled with validity
1206 (Get_Sources_From_File): Check that there is no directory information
1208 (Look_For_Sources): Check that there is no directory information in the
1209 list of file names in Source_Files.
1210 (Look_For_Sources): In multi-language mode, do not allow exception file
1211 names that are excluded.
1212 (Excluded_Sources_Htable): New hash table
1213 (Search_Directories.Check_File): New procedure to simplify
1215 (Search_Directories): Do not consider excluded sources
1216 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
1218 (Get_Exceptions): Set component Lang_Kind of Source_Data
1219 (Get_Unit_Exceptions): Ditto
1220 (Search_Directories): Ditto
1222 * prj-pars.adb: new parameter Current_Dir
1224 * prj-part.ads, prj-part.adb:
1225 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
1226 (Opt.Follow_Links_For_Dirs): New flag
1227 (Project_Path_Name_Of): Cache information returned by this routine as
1228 Locate_Regular_File is a costly routine. The code to output a log
1229 information and the effective call to Locate_Regular_File is now
1230 factorized into a routine (code clean-up).
1231 (Parse, Parse_Single_Project): new parameter Current_Dir
1232 When main project file cannot be found, indicate in the error
1233 message the project path that was used to do the search.
1235 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
1236 (Prj.Proc.Process*): new parameter Current_Dir
1238 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
1240 2007-12-13 Bob Duff <duff@adacore.com>
1242 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
1243 procedure to be called from the back end to check the
1244 No_Implicit_Dynamic_Code restriction.
1246 2007-12-13 Arnaud Charlet <charlet@adacore.com>
1248 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
1249 Fixes another case where RTE_Available_Call was ignored instead of being
1253 * rtsfind.ads: Add new entries.
1255 2007-12-13 Robert Dewar <dewar@adacore.com>
1257 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
1258 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
1260 * scn.adb: Implement BOM recognition
1262 2007-12-13 Thomas Quinot <quinot@adacore.com>
1263 Ed Schonberg <schonberg@adacore.com>
1265 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
1266 subprogram body that acts as its own spec may not have a non-private
1267 WITH clause on a private sibling.
1268 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
1269 child unit is a renaming, create an implicit with_clause on that
1270 parent, and not on the unit it renames, to prevent visibility errors
1271 in the current unit.
1273 2007-12-13 Ed Schonberg <schonberg@adacore.com>
1275 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
1276 renaming declaration, use the Slocs of the formal parameters from the
1277 declaration of the formal subprogram when creating the formal parameter
1278 entities in the renaming declaration.
1279 (Analyze_Formal_Type_Declaration): Change the placement of the error
1280 message concerning illegal known discriminants. It is now posted on the
1281 type rather than on the first discriminant. This change ensures early
1283 (Freeze_Subprogram_Body): If the generic subprogram is nested within
1284 the package body that contains the instance, do not generate an
1285 out-of-place freeze node for the enclosing package.
1286 (Collect_Previous_Instantiations): Ignore internal instantiations
1287 generated for formal packages.
1288 (Validate_Derived_Type_Instance): Add a check that when a formal
1289 derived type is Known_To_Have_Preelab_Init then the actual type must
1290 have preelaborable initialization, and issue an error when this
1291 condition is violated.
1293 2007-12-13 Robert Dewar <dewar@adacore.com>
1295 * s-imenne.adb, s-imenne.ads: New files.
1297 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
1298 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
1299 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
1300 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
1301 s-imgwch.ads: New calling sequence for Image routines to avoid sec
1304 2007-12-13 Javier Miranda <miranda@adacore.com>
1305 Ed Schonberg <schonberg@adacore.com>
1307 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
1308 generation of spurious error if parent is an interface type; caused
1309 because predefined primitive bodies will be generated later by
1311 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
1313 (Derive_Subprograms): Handle derivations of predefined primitives
1314 after all the user-defined primitives to ensure that they are
1315 found in proper order in instantiations.
1316 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
1317 of Related_Interface to Related_Type.
1318 (Record_Type_Declaration): Minor reordering of calls to decorate the
1319 Tag component because the entity must have set its Ekind attribute
1320 before setting its Is_Tag attribute.
1321 (Analyze_Subtype_Declaration): In the case of subtypes with
1322 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
1324 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
1325 Ed Schonberg <schonberg@adacore.com>
1327 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
1328 statement to the list of contexts where a selected component with a
1329 concurrent tagged type prefix should yield a primitive operation.
1330 (Find_Primitive_Operation): Handle case of class-wide types.
1331 (Analyze_Overloaded_Selected_Component): If type of prefix is
1332 class-wide, use visible components of base type.
1333 (Resolve_Selected_Component): Ditto.
1334 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
1335 formal of a generic subprogram. find candidate interpretations by
1336 scanning the list of generic formal declarations.:
1337 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
1338 type from a limited_with_clause, and the full view is available, use it
1339 for subsequent semantic checks.
1340 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
1341 (Find_Primitive_Operation): New function.
1342 (Analyze_Overloaded_Selected_Component): insert explicit dereference
1343 only once if several interpretations of the prefix yield an access type.
1344 (Try_Object_Operation): Code and comment cleanup.
1345 (Analyze_Selected_Component): Reorder local variables. Minot comment and
1346 code reformatting. When the type of the prefix is tagged concurrent, a
1347 correct interpretation might be available in the primitive and
1348 class-wide operations of the type.
1350 2007-12-13 Robert Dewar <dewar@adacore.com>
1351 Ed Schonberg <schonberg@adacore.com>
1353 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
1354 renaming entry as subprogram using rename-as-body if subprogram spec
1356 (Use_One_Type): The clause is legal on an access type whose designated
1357 type has a limited view.
1358 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
1359 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
1360 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
1361 operation denoted by a selected component.
1362 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
1363 it can be an expression, possibly overloaded, that returns a task or
1366 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
1367 Gary Dismukes <dismukes@adacore.com>
1369 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
1370 requeue statement is dispatching. Do not emit an error when the name is
1371 not an entry and the context is a dispatching select. Add code to
1372 perform subtype conformance between the formals of the current entry
1373 and those of the target interface primitive.
1374 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
1375 Timed_Entry_Call): Analyze the triggering statement as the first step of
1376 the processing. If this is a dispatching select, postpone the analysis
1377 of all select statements until the Expander transforms the select. This
1378 approach avoids generating duplicate identifiers after the Expander has
1379 replicated some of the select statements. In case the Expander is
1380 disabled, perform regular analysis.
1381 (Check_Triggering_Statement): New routine.
1382 (Analyze_Requeue): Exclude any interpretations that are not entries when
1383 checking overloaded names in a requeue. Also test type conformance for
1384 matching interpretations rather than requiring subtype conformance at
1385 that point to conform with the RM's resolution rule for requeues.
1387 2007-12-13 Ed Schonberg <schonberg@adacore.com>
1389 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
1390 inherited operation is a defaulted tag-indeterminate call, and there is
1391 a statically tagged actual, use the static tag as a controlling actual
1392 for the defaulted actual.
1394 2007-12-13 Geert Bosch <bosch@adacore.com>
1396 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
1397 context, so do not call Check_Non_Static_Context.
1399 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
1401 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
1402 whether formal E is an entity which may have parameters.
1404 2007-12-13 Bob Duff <duff@adacore.com>
1405 Javier Miranda <miranda@adacore.com>
1406 Robert Dewar <dewar@adacore.com>
1408 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
1409 (Set_Convention): New procedure to set the Convention flag, and in
1410 addition make sure the Favor_Top_Level flag is kept in sync (all
1411 foreign-language conventions require Favor_Top_Level = True).
1412 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
1414 (Collect_Interfaces_Info): Minor update to handle the two secondary
1415 dispatch tables. Update occurrence of Related_Interface to Related_Type.
1416 (Generate_Parent_Ref): Add parameter to specify entity to check
1417 (Is_Preelaborable_Expression): Allow the name of a discriminant to
1418 initialize a component of a type with preelaborable initialization.
1419 This includes the case of a discriminal used in such a context.
1420 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
1421 latest Ada 2005 rules about renaming and 'Access of
1422 discriminant-dependent components.
1423 (Check_Nested_Access): Add handling when there are no enclosing
1424 subprograms (e.g. case of a package body).
1425 (Find_Parameter_Type): Factor routine from several other compiler files.
1426 Remove routine from Find_Overridden_Synchronized_Primitive.
1428 2007-12-13 Thomas Quinot <quinot@adacore.com>
1430 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
1431 an invalid access to an uninitialized slot in the
1432 Source_File_Index_Table.
1434 2007-12-13 Thomas Quinot <quinot@adacore.com>
1436 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
1438 2007-12-13 Bob Duff <duff@adacore.com>
1440 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
1441 access-to-subprogram types in this package.
1443 2007-12-13 Olivier Hainque <hainque@adacore.com>
1445 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
1446 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
1447 Stack_Overlay_Address and document that we are using an internal
1449 (Byte_Size, Unsigned_32_Size): Remove, now useless.
1450 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
1451 consistently throughout the various implementation pieces.
1453 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
1454 overlay we are using to fill the stack area with patterns.
1455 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
1456 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
1457 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
1459 2007-12-13 Robert Dewar <dewar@adacore.com>
1461 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
1463 2007-12-13 Arnaud Charlet <charlet@adacore.com>
1466 (Create_Task): Take into account tasks created by foreign threads.
1467 Code clean up: use constants instead of hard coded values.
1469 2007-12-13 Robert Dewar <dewar@adacore.com>
1471 * styleg.adb (Check_Comment): More liberal rules for comment placement
1473 2007-12-13 Olivier Hainque <hainque@adacore.com>
1475 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
1476 of Procedure Value instead of Frame Pointer as the invocation
1477 identifier associated with the instruction pointer in each traceback
1480 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
1481 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
1482 Pointer as the invocation identifier passed to tbk$symbolize.
1484 * s-traent-vms.ads, s-traent-vms.adb
1485 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
1486 Procedure Value instead of Frame Pointer as the invocation identifier
1487 passed to tbk$symbolize.
1489 2007-12-13 Robert Dewar <dewar@adacore.com>
1491 * tbuild.ads, tbuild.adb:
1492 Fix location of flag for unrecognized pragma message
1494 2007-12-13 Robert Dewar <dewar@adacore.com>
1496 * treepr.ads, treepr.adb: (pl): implement use of positive value
1499 2007-12-13 Robert Dewar <dewar@adacore.com>
1501 * xeinfo.adb: Remove warnings
1502 * xnmake.adb: Remove warnings
1503 * xsinfo.adb: Remove warnings
1504 * xtreeprs.adb: Remove warnings
1505 * xsnames.adb: Remove warnings
1507 * a-ngcoar.adb: Fix typo.
1508 * s-interr.adb: Minor reformatting
1509 * env.c: Minor reformatting.
1510 * g-bytswa.adb: Minor reformatting.
1511 * g-rannum.ads: Minor documentation improvements
1512 * s-tasinf-mingw.adb: Minor header fix
1513 * a-clrefi.adb: Minor reformatting
1514 * g-sttsne.ads: Minor documentation improvement
1515 * g-sttsne-locking.ads: Minor documentation improvement
1516 * g-soliop-solaris.ads: Minor documentation improvement
1517 * g-soliop-mingw.ads: Minor documentation improvement
1518 * g-soliop.ads: Minor documentation improvement
1519 * exp_aggr.ads: Minor reformatting
1520 * debug.adb: Add documentation for the gprbuild debug flags
1521 * exp_ch2.adb: Use Nkind_In to simplify code throughout
1522 * exp_pakd.adb: Minor reformatting
1524 * g-altive.ads, g-alleve.adb: Remove assertions.
1525 Add comment about minor differences between targets regarding
1526 floating-point operations.
1528 * g-thread.adb: Remove pragma unreferenced.
1529 * lib.ads: Minor reformatting
1530 * par-ch9.adb: Minor reformatting of error messages
1531 * sem_case.adb: Minor reformatting
1532 * s-fileio.adb: Minor reformattinng
1533 * s-vmexta.ads: Minor typo
1535 Take into account 'Success' value as per new GNAT warning.
1537 2007-12-13 Vincent Celier <celier@adacore.com>
1539 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
1542 2007-12-13 Robert Dewar <dewar@adacore.com>
1543 Bob Duff <duff@adacore.com>
1545 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
1546 Document that suffixes may be terminations of each others
1547 Add doc for -gnatw.a and -gnatw.A
1548 Document gnatbind -Wx switch
1549 Document BOM recognition
1550 Document pragma Implemented_By_Entry.
1553 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
1554 Add doc for pragma Unreferenced suppressing no entities referenced msg
1555 Add documentation of GNAT.Directory_Operations.Iteration
1556 Add documentation of GNAT.Random_Numbers
1557 Add documentation for pragma Shared.
1558 Correct documentation for Bit_Order
1559 Add documentation for the Pool_Address attribute.
1560 Fix and improve documentation of pragma machine_attribute.
1561 New pragma Fast_Math
1562 Document BOM recognition
1564 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
1565 Add /Wide_Character_Encoding for binder
1566 Add qualifier for the new gnatpp option --no-separate-loop-then
1568 2007-12-13 Matthew Heaney <heaney@adacore.com>
1570 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
1571 which generic formal operations are called for each operation.
1573 2007-12-13 Olivier Hainque <hainque@adacore.com>
1575 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
1576 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
1578 2007-12-13 Emmanuel Briot <briot@adacore.com>
1580 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
1581 Reference_Dir unless we actually need it.
1583 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
1584 Tristan Gingold <gingold@adacore.com>
1586 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
1589 a-calend-vms.adb: Remove pragma warning off and add pragma
1592 2007-12-13 Robert Dewar <dewar@adacore.com>
1594 * impunit.adb: Add entries for missing units
1596 * Makefile.rtl: Add new run-time units.
1598 * Make-lang.in: Update dependencies.
1600 2007-12-13 Bob Duff <duff@adacore.com>
1602 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
1603 types, set Can_Use_Internal_Rep appropriately, based on
1604 Always_Compatible_Rep_On_Target.
1606 2007-12-13 Gary Dismukes <dismukes@adacore.com>
1607 Arnaud Charlet <charlet@adacore.com>
1609 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
1610 it to the front end and setting the aamp_target environment variable
1611 to the switch's argument to ensure that gnaampbind and gnaamplink will
1612 take the specified library into account.
1613 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
1614 target, since the CIL compiler supports an "object" file (.il files).
1616 2007-12-13 Vincent Celier <celier@adacore.com>
1618 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
1619 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
1621 2007-12-13 Geert Bosch <bosch@adacore.com>
1623 * s-parame-vxworks.adb:
1624 Update comments to reflect usage of this package by Nucleus.
1626 2007-12-13 Arnaud Charlet <charlet@adacore.com>
1628 * i-vxwork.ads: Kill new warning on Convention C, since changing the
1629 spec would break code.
1631 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
1633 * system-vxworks-alpha.ads: Removed.
1635 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
1637 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
1639 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
1642 * sem_ch3.adb (Designates_T): New function.
1643 (Mentions_T): Factor reusable part of the logic into Designates_T.
1644 Consider non-access parameters and access and non-access result.
1645 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
1646 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
1648 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
1650 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
1653 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
1654 the new implementation of target-specific calls.
1656 2007-12-07 Olivier Hainque <hainque@adacore.com>
1658 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
1659 the designated full view, only follow a second level Full_View link
1660 for Non_Limited_Views of from_limited_with references.
1662 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
1665 * sem_ch6.adb (Process_Formals): Prevent an access type formal
1666 to be initialized with an access to constant object.
1668 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
1669 when an access to constant is used to initialize an access
1673 * a-direct.adb (Compose): Containing_Directory can be an empty string.
1675 2007-12-07 Olivier Hainque <hainque@adacore.com>
1678 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
1679 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
1680 this is from an alignment clause on the GNAT entity.
1681 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
1682 to distinguish the case where we set it from the type's alignment.
1683 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
1684 whether this alignment was set from an explicit alignment clause.
1686 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
1688 * decl.c (make_packable_type): Revert last change.
1689 (gnat_to_gnu_field): Avoid setting size and position multiple times.
1690 * utils.c (finish_record_type): Retrieve the real name of the type.
1692 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
1694 * trans.c (lvalue_required_p): Take base node directly instead
1695 of its parent. Rename second parameter to 'gnu_type'.
1696 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
1697 <N_Slice>: Likewise.
1698 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
1699 Adjust calls to lvalue_required_p.
1701 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
1704 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
1705 parameters of an entry call.
1707 2007-12-03 Robert Dewar <dewar@adacore.com>
1708 Samuel Tardieu <sam@rfc1149.net>
1711 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
1712 of variables declared in a library-level package.
1714 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
1716 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
1717 of Empty_String'Unchecked_Access.
1719 * Makefile.in: Add support for sh4-linux.
1721 * system-linux-sh4.ads: New file.
1723 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
1726 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
1727 and its argument must not be free()ed.
1729 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
1731 * decl.c (make_packable_type): Retrieve the real name of the type.
1732 (maybe_pad_type): Simplify similar code.
1734 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
1737 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
1738 than an identifier is used after "case" in a variant_part.
1741 * par-ch4.adb (Is_Parameterless_Attribute): New map.
1742 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
1743 attribute name or not depending on the new map.
1745 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
1746 returning a string or a type will not be called with improper
1749 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
1751 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
1754 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
1755 Signal an error when attribute argument is a fixed-point value of
1759 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
1760 a derived ordinary fixed point type.
1762 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
1763 RM_Size when a Small clause is found.
1765 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
1768 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
1769 Pass 'false' for the new allocate_struct_function parameter.
1770 * utils.c (build_function_stub): Likewise.
1772 2007-11-25 Richard Guenther <rguenther@suse.de>
1774 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
1775 (gnat_poplevel): Likewise.
1777 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
1779 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
1780 strict alignment, no alignment clause and a known static size, cap
1781 the type alignment to the greatest power of 2 factor of the size.
1782 (gnat_to_gnu_field): If the field has a component clause, is aliased
1783 or of a type with strict alignment, require that its size be equal to
1785 (validate_size): Use the type size as the minimum size for a type with
1788 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
1790 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
1791 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
1792 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
1793 Use 'Access instead of 'Unchecked_Access in second and third
1794 arguments of pthread_sigmask.
1796 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
1798 * decl.c (ceil_alignment): New function.
1799 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
1800 (make_packable_type): Likewise.
1802 2007-11-22 Olivier Hainque <hainque@adacore.com>
1804 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
1805 to fit in 80 columns.
1807 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
1809 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
1810 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
1812 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
1815 * misc.c (gnat_adjust_rli): Delete.
1816 (gnat_init): Do not initialize the translation code here.
1817 Do not call set_lang_adjust_rli.
1818 * trans.c (init_code_table): Make static.
1819 (gnat_init_stmt_group): Delete.
1820 (gigi): Initialize the translation code entirely here.
1821 Emit debug info for the common types here instead of...
1822 * utils.c (gnat_init_decl_processing): ...here.
1823 * gigi.h (init_code_table): Delete.
1824 (gnat_init_stmt_group): Likewise.
1826 2007-11-16 Olivier Hainque <hainque@adacore.com>
1828 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
1829 retrieving an allocator return value from a super-aligned address from
1831 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
1832 expect a super-aligned address for a fat or thin pointer.
1834 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
1836 * trans.c (call_to_gnu): Always set the source location on the call
1837 expression. If the function returns-by-target, also set it on the
1840 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
1842 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
1843 sections of non-supported Interix target.
1845 * s-osinte-interix.ads: Removed.
1847 * i-cstrin.ads (chars_ptr): Make it a C convention type.
1849 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
1851 * a-tasatt.adb: Add a comment at the beginning of the package
1852 explaining why in general 'Unchecked_Access must be used instead
1855 * sem_prag.adb (Process_Convention): Move the test for the
1856 entity on which the Convention pragma applies down to also
1857 forbid pragma Convention on enumeration literals reached
1860 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
1862 * a-tasatt.adb: Revert previous change for this file as it will
1863 generate an error when this package is instantiated from a
1866 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
1868 * a-tasatt.adb: Type Wrapper should be declared in comment instead
1869 of already declared type Node_Access.
1870 Use 'Access instead of 'Unchecked_Access when applicable. Local
1871 lifetime is the one of the package.
1872 (Set_Value): W is allocated on the heap.
1874 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
1876 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
1878 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
1881 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
1883 (elaboration code): Timer_Queue lifetime is the one of the
1886 * tracebak.c (i386 alternative): Remove useless comparaison
1887 which is always false; LOWEST_ADDRESS is 0 and is never greater
1888 than an unsigned integer.
1890 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
1891 embedded check for "Ada_Version >= Ada_05".
1893 2007-11-07 Olivier Hainque <hainque@adacore.com>
1895 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
1896 craft and expand comment.
1898 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
1900 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
1902 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
1904 * misc.c (gnat_handle_option): Replace call to abort with
1905 call to gcc_unreachable.
1906 (gnat_init): Likewise.
1907 (gnat_expand_expr): Likewise.
1908 (fp_prec_to_size): Likewise.
1909 (fp_size_to_prec): Likewise.
1911 2007-10-23 Richard Guenther <rguenther@suse.de>
1914 * tracebak.c: #undef abort after including system.h.
1916 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
1918 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
1919 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
1921 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
1923 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
1925 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
1926 Set the protection status of the guard page based on the value of On.
1928 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
1930 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
1931 (Exit_Task): Pass False to Hide_Yellow_Zone.
1933 2007-10-15 Robert Dewar <dewar@adacore.com>
1935 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
1936 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
1937 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
1938 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
1939 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
1940 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
1941 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
1942 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
1943 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
1944 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
1945 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
1946 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
1947 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
1948 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
1949 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
1950 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
1952 Add Unreferenced and Warnings (Off) pragmas for cases of
1953 variables modified calls where they are IN OUT or OUT parameters and
1954 the resulting values are not subsequently referenced. In a few cases,
1955 we also remove redundant code found by the new warnings.
1957 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
1958 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
1959 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
1960 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
1961 warning controlled by -gnatw.o that warns on cases of out parameter
1962 values being ignored.
1964 2007-10-15 Geert Bosch <bosch@adacore.com>
1966 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
1968 * expect.c: Initial port to arm-mentor-nucleus.
1969 Use kill for __gnat_kill() on VMS.
1971 2007-10-15 Emmanuel Briot <briot@adacore.com>
1973 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
1975 (Xref_Record): Change type for Line, since in the case of a reference to
1976 a predefined entity (as happens for array index types), the line is set
1978 Add support for parsing multiple array index types info, or
1979 multiple inherited interfaces info. This information cannot be stored
1980 in Xref_Entity_Record, which only supports a single instance of Tref_*,
1981 and is therefore stored in the list of references instead. It has a
1982 special treatement later on in tools that use this information.
1984 2007-10-15 Tristan Gingold <gingold@adacore.com>
1986 * debug.adb: Document use of -gnatd.a and -gnatd.I
1988 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
1990 2007-10-15 Javier Miranda <miranda@adacore.com>
1992 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
1993 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
1994 care of access to class-wide interface types plus removal of bizarre
1995 conversion of tagged object to access type (reported by Gary
1996 Dismukes). After this patch there is no need to perform any
1997 additional management on these nodes in Expand_Interface_Actuals.
1999 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
2000 that handles use of 'Access and 'Unchecked_Access applied to
2001 actuals covering interface types. Such code is now
2002 centralized in Expand_N_Attribute_Reference.
2004 2007-10-15 Ed Schonberg <schonberg@adacore.com>
2006 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
2007 of tagged types whose ultimate ancestor is a CPP type.
2008 (Freeze_Array_Type): For a packed array type, generate an initialization
2009 procedure if the type is public, to handle properly a client that
2010 specifies Normalize_Scalars.
2012 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
2014 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
2015 inside a generic body, retrieve the full view of the entry family
2016 discrete subtype if available.
2018 2007-10-15 Thomas Quinot <quinot@adacore.com>
2020 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
2021 attempt to generate stubs for hidden primitive operations.
2023 2007-10-15 Vincent Celier <celier@adacore.com>
2025 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
2026 returning None, used when there is no platform specific body for
2029 2007-10-15 Bob Duff <duff@adacore.com>
2031 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
2032 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
2033 the generic Heap_Sort_G, in order to avoid trampolines.
2035 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
2036 Jose Ruiz <ruiz@adacore.com>
2038 * vx_stack_info.c: New file.
2040 * i-forbla-unimplemented.ads: New file.
2042 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
2043 for unsupported configurations; use it on VMS targets instead of the
2045 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
2046 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
2047 used by VxWorks targets to have access to task-specific data and be
2048 able to extract the stack boundaries for stack checking.
2049 Use system-vms-ia64.ads on ivms.
2051 * Make-lang.in: Update dependencies.
2053 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
2056 2007-10-15 Vincent Celier <celier@adacore.com>
2058 * snames.adb, snames.ads: Add new standard name runtime_library_dir
2060 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
2062 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
2064 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
2065 the source is unknown.
2067 * prj-ext.adb: Spelling error fix
2069 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
2070 95 reserved word in its name.
2071 (Process_Project_Level_Array_Attributes): Process new attribute
2072 Runtime_Library_Dir.
2074 * prj-part.adb (Parse_Single_Project): Do not check the name of the
2075 config project against the user project names.
2077 * prj-proc.adb (Expression): In multi-language mode, indexes that do
2078 not include a dot are always case insensitive.
2079 (Process_Declarative_Items): Ditto
2080 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
2083 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
2084 True, compare both indexes in lower case.
2086 2007-10-15 Robert Dewar <dewar@adacore.com>
2088 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
2090 2007-10-15 Gary Dismukes <dismukes@adacore.com>
2092 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
2093 association for an access component, add an association with null as
2094 the expression. Remove testing for array subtypes and the setting in
2095 that case of Ctyp to the array component type, which prevented proper
2096 inclusion of an association for null-initialized arrays. Collapse
2097 condition that tests for array subtypes into just a test of
2098 Is_Partially_Initialized_Type (which already covers arrays anyway).
2100 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
2102 * sem_ch12.adb: Minor code reformatting.
2103 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
2104 find the parent package which may have been hidden by local
2107 2007-10-15 Gary Dismukes <dismukes@adacore.com>
2109 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
2110 flag of derived concurrent types, taking into account the flag setting
2111 on the parent subtype and any new set of discriminants.
2113 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
2115 * sem_ch4.adb: Minor code and comment reformatting.
2116 (Analyze_Allocator): When the designated type of an unconstrained
2117 allocator is a record with unknown discriminants or an array with
2118 unknown range bounds, emit a detailed error message depending on the
2119 compilation mode and whether the designated type is limited.
2121 2007-10-15 Tristan Gingold <gingold@adacore.com>
2123 * system-vms-ia64.ads: New file.
2125 * system-vms_64.ads: Minor comment fix.
2127 2007-10-15 Ed Schonberg <schonberg@adacore.com>
2129 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
2130 body generated for a function with a controlling result that is a null
2131 extension, discard the generated body in favor of the current explicit
2134 2007-10-15 Ed Schonberg <schonberg@adacore.com>
2136 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
2137 examining its original form, to handle properly operator calls that
2138 have been rewritten.
2140 2007-10-15 Olivier Hainque <hainque@adacore.com>
2142 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
2143 instead of a procedure value in each traceback entry.
2145 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
2146 instead of procedure value to TBK$SYMBOLIZE.
2148 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
2150 (TB_Entry_For): Account for the PV/FP renaming.
2152 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
2154 (Null_TB_Entry): Account for change of component name.
2155 (PV_For): Rename as FP_For.
2157 2007-10-15 Tristan Gingold <gingold@adacore.com>
2159 * trans.c (gnat_to_gnu): Remove the padding structure more often.
2160 This optimize assignment to over-aligned record.
2162 2007-10-15 Emmanuel Briot <briot@adacore.com>
2164 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
2167 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
2168 type, for dispatching calls.
2170 2007-10-15 Vincent Celier <celier@adacore.com>
2171 Robert Dewar <dewar@adacore.com>
2173 * gnat_ugn.texi: Add documentation for switches --version and --help
2174 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
2175 gnatxref, gnatfind, gnatls, and gnatclean.
2177 Mention attribute Excluded_Source_Dirs
2178 Replace obsolescent attribute Locally_Removed_Files with attribute
2179 Excluded_Source_Files.
2180 Improve documentation of -u (gnatbind)
2181 Document how to do reliable stack checking for the environmental task
2184 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
2185 Document attribute Excluded_Source_Files and indicate that attribute
2186 Locally_Removed_Files is obsolescent.
2188 2007-10-15 Thomas Quinot <quinot@adacore.com>
2190 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
2193 Update documentation to note that OpenVMS 8.3 or later must be used
2194 to generate g-soccon-vms.ads.
2196 * atree.adb: Add ??? comment
2198 * exp_util.adb: Minor reformatting.
2199 Add ??? comment in Kill_Dead_Code.
2201 2007-10-15 Robert Dewar <dewar@adacore.com>
2203 * errout.ads: Comment clarification
2205 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
2206 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
2208 * lib.ads: Comment update
2210 * init.c: Minor reformatting.
2212 * sem_attr.adb: Minor formatting
2214 * osint-b.ads: Minor reformatting
2216 * sem_ch9.adb: Implement -gnatd.I switch
2218 * g-comlin.adb: (Start): Fix handling of empty command line.
2220 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
2221 even when -rules follows the -cargs section.
2223 2007-10-08 Ollie Wild <aaw@google.com>
2225 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
2227 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
2229 (gnat_eh_runtime_type): Removed.
2230 (gnat_return_tree): New function.
2232 2007-10-08 Ben Elliston <bje@au.ibm.com>
2236 2007-08-31 Ben Elliston <bje@au.ibm.com>
2238 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
2239 when compiling for powerpc64-*-linux.
2240 * system-linux-ppc64.ads: New file.
2242 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
2244 Mapped location support
2245 * back_end.adb (Call_Back_End): Pass information about source
2246 files instead of units to gigi.
2247 * gigi.h (struct File_Info_Type): New.
2248 (gigi): Rename and change type of number_units parameter, change
2249 type of file_info_ptr parameter.
2250 * trans.c (number_files): New global variable.
2251 (gigi): Rename and change type of number_units parameter, change
2252 type of file_info_ptr parameter.
2253 If mapped location support is enabled, create the isomorphic mapping
2254 between source files and line maps.
2255 (Sloc_to_locus): If mapped location support is enabled, translate
2256 source location into mapped location.
2257 (annotate_with_node): Rename into set_expr_location_from_node.
2258 Call set_expr_location instead of annotate_with_locus.
2259 (Pragma_to_gnu): Adjust for above change.
2260 (Loop_Statement_to_gnu): Likewise.
2261 (call_to_gnu): Likewise.
2262 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
2263 (gnat_to_gnu): Likewise.
2264 (add_stmt_with_node): Likewise.
2265 (add_cleanup): Likewise.
2266 * utils.c (gnat_init_decl_processing): Do not set input_line.
2268 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
2270 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
2271 (Applicable_Use): Emit a warning when a package tries to use itself.
2272 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
2273 is already in use or the package where it is declared is in use or is
2274 declared in the current package.
2275 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
2277 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
2278 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
2279 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
2281 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
2283 * a-calend-vms.adb, a-calend.adb:
2284 Add a section on leap seconds control along with two entities used to
2285 enable and disable leap seconds support. The array Leap_Second_Times is
2286 now constant and contains hard time values pre-generated. Remove
2287 all elaboration code used to populate the table of leap seconds.
2290 Add entity Leap_Seconds_Support to the list of global run-time variables
2291 along with a comment on its usage and values.
2292 (Gen_Adainit_Ada): Add code to generate the declaration and import of
2293 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
2294 or one (enabled) depending on the presence of binder switch "-y".
2295 (Gen_Adainit_C): Add code to generate the declaration of external int
2296 __gl_leap_seconds_support. Set is value to zero (disabled) or one
2297 (enabled) depending on the presence of binder switch "-y".
2299 * init.c: Add __gl_leap_seconds_support to the list of global values
2300 computed by the binder.
2302 2007-09-26 Jerome Guitton <guitton@adacore.com>
2304 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
2305 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
2306 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
2307 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
2309 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
2311 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
2312 function which can be called by the debugger to interrupt the tasks of
2313 an Ada application asynchronously, as needed on VxWorks.
2314 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
2316 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
2317 renamed from Stop_All_Tasks. Update comments.
2318 (Stop_All_tasks): New function declaration.
2320 2007-09-26 Olivier Hainque <hainque@adacore.com>
2322 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
2323 #include <utime.h> and #define GCC_RESOURCE_H before
2324 #include <sys/wait.h>.
2325 Add more protections in __gnat_translate_vms.
2327 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
2328 #include <sys/wait.h>.
2330 2007-09-26 Thomas Quinot <quinot@adacore.com>
2331 Sergey Rybin <rybin@adacore.com>
2333 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
2335 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
2338 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
2340 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
2343 * sem_dist.ads: Minor comment fix
2345 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
2347 2007-09-26 Javier Miranda <miranda@adacore.com>
2348 Eric Botcazou <ebotcazou@adacore.com>
2351 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
2352 indirection added to the HT_Link component of the TSD. This is required
2353 to statically allocate the TSD.
2356 Minor reordering of the declarations in the private part. Required to
2357 add a level of indirection to the contents of the TSD component HT_Link.
2358 This is required to statically allocate the TSD.
2360 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
2361 Is_Statically_Allocated set from constant objects.
2362 Do not make exported constants created by the compiler volatile.
2363 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
2366 * trans.c (Identifier_to_gnu): For constants, unshare initializers
2367 before returning them.
2369 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
2370 public part of the package.
2371 (Make_DT): Move HT_Link component out of the TSD record. For this
2372 purpose Make_DT now declares a separate object that stores the
2373 HT_Link value, and initializes the TSD component with the address
2374 of this new object. The addition of this level of indirection is
2375 required to statically allocate the TSD because the TSD cannot
2376 have variable components.
2377 (Expand_Interface_Conversion): Improve the expanded code.
2378 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
2380 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
2381 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
2382 if we are building static dispatch tables then we must not generate
2383 extra code to register the primitive because the dispatch table will
2384 be built at the end of the library package; otherwise we notify that
2385 we cannot build the static dispatch table.
2387 2007-09-26 Robert Dewar <dewar@adacore.com>
2389 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
2392 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
2393 (Analyze_Record_Representation_Clause): Suppress junk warning for
2394 missing component clause.
2395 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
2396 tests for controlled type overlay to composites with controlled
2398 (Analyze_Record_Representation_Clause): Add reference for component name
2400 2007-09-26 Javier Miranda <miranda@adacore.com>
2401 Gary Dismukes <dismukes@adacore.com>
2403 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
2404 for thunks associated with interface types.
2406 * einfo.ads: Improve documentatation of Is_Internal
2407 (Is_Thunk): New attribute applicable to subprograms. True for thunks
2408 associated with interface types.
2409 Extensive comment fixes regarding flags that appear in all entities. The
2410 documentation is now consistent for all such flags (there were a number
2411 of errors in the documentation in this regard).
2413 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
2415 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
2416 of these procedures are passed a function call that already has
2417 build-in-place actuals (testing new flag
2418 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
2419 the case where processing continues.
2420 (Expand_Call): If the call is generated from a thunk body then we
2421 propagate the extra actuals associated with the accessibility
2422 level of the access type actuals.
2424 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
2425 of each extra formal of a protected operation to reference the
2426 corresponding extra formal of the subprogram denoted by the
2427 operation's Protected_Body_Subprogram.
2429 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
2430 N_Function_Call nodes.
2432 2007-09-26 Robert Dewar <dewar@adacore.com>
2434 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
2436 * debug.adb: Add d.s flag.
2438 2007-09-26 Gary Dismukes <dismukes@adacore.com>
2440 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
2441 debug variable so that it won't be initialized when pragma
2442 Initialize_Scalars is in effect.
2444 2007-09-26 Gary Dismukes <dismukes@adacore.com>
2446 * freeze.adb (Freeze_Entity): Remove check for preelaborable
2447 initialization of a full view. This is moved to
2448 Analyze_Package_Specification.
2450 * sem_ch7.adb (Analyze_Package_Specification): Add check for
2451 preelaborable initialization of a full view in entity loop.
2452 (Uninstall_Declarations): If entity is a use-visible compilation unit,
2453 its child units are use-visible only if they are visible child units.
2455 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
2456 whether an expression can be used within a type declaration that
2457 requires preelaborable init.
2458 (Check_Components): Replace inline code that does partial checking for
2459 preelaborable default expressions with call to
2460 Is_Preelaborable_Expression.
2461 (Has_Preelaborable_Initialization): In the case of a generic actual
2462 subtype, (that is, Is_Generic_Actual is True), return the result of
2463 applying Has_Preelaborable_Initialization to the generic actual's base
2466 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
2468 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
2469 call to Jan_1_Day _Of_Week to optimize its performance.
2470 (Is_Leap): Move the routine to the scope of Week_In_Year.
2471 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
2472 weekday on which January 1 falls of Year - 1 and Year + 1. This function
2473 avoids calling Time_Of and Split, thus making it more efficent.
2474 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
2476 * g-calend.ads (Week_In_Year): Change comment to reflect new
2479 2007-09-26 Emmanuel Briot <briot@adacore.com>
2481 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
2482 Command_Line): New types
2483 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
2484 support for defining how switches can be grouped on a command line (as
2485 is the case for -gnatw... for GNAT), and how simple switches can be
2486 used as aliases for more complex switches (-gnatwa is same as
2488 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
2489 (Start, Current_*): New subprograms
2490 Added support for parsing an array of strings in addition to the real
2492 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
2493 be moved from the body to the private part of the spec.
2494 (*): All subprograms now have an extra parameter with default value to
2495 specify which parser should be used. For backward compatibility, it
2496 defaults to parsing the command line of the application. They were also
2497 modified to properly handle cases where each of the argument does not
2498 start at index 1 (which is always true for Ada.Command_Line, but not
2499 when processing any Argument_List).
2500 (Free): New subprogram
2501 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
2502 Argument): New subprograms
2503 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
2504 special characters like ':', '=',... are now handled in a single place,
2505 which makes the code more extensible eventually.
2506 (Getopt, Full_Switch): When the switch was returned as part of the
2507 special character '*', make sure it is prepended by the switch character
2508 ('-' in general), so that the application knows whether "foo" or "-foo"
2509 was specified on the command line.
2511 2007-09-26 Florian Villoing <villoing@adacore.com>
2513 * g-dirope.adb (Remove_Dir): In case we are removing directories
2514 recursively, make sure that if an exception is raised during the
2515 processing, the current working directory is reset to its initial
2516 value before propagating the exception.
2518 2007-09-26 Vincent Celier <celier@adacore.com>
2520 * gnatbind.adb: If there are several ALI files specified and there is
2521 a main program to bind, the first ALI is expected to contain the main
2522 subprogram and the names of the binder generated files will be derived
2523 from the first ALI file name.
2524 (Gnatbind): Fix insertion character in invocation of Error_Msg
2526 2007-09-26 Vincent Celier <celier@adacore.com>
2528 * gnatcmd.adb (Check_Files): Do not include sources that have been
2529 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
2531 2007-09-26 Ed Schonberg <schonberg@adacore.com>
2533 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
2534 information about each of its index types, following the type
2535 reference for its component type.
2537 2007-09-26 Vincent Celier <celier@adacore.com>
2539 * make.adb: (Kill): New procedure (__gnat_kill imported)
2540 (Running_Compile, Outstanding_Compiles): Global variables that
2541 were previously local to procedure Compile_Sources.
2542 (Sigint_Intercepted): Send signal SIGINT to all outstanding
2543 compilation processes.
2545 (Gnatmake): If project files are used, create the mapping of all the
2546 sources, so that the correct paths will be found.
2548 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
2550 2007-09-26 Vincent Celier <celier@adacore.com>
2552 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
2554 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
2555 Replace components Compiler_Min_Options and Binder_Min_Options with
2556 Compiler_Required_Switches and Binder_Required_Switches in record
2558 Remove components Default_Language and Config in Project_Tree_Data,
2561 * prj-attr.adb: New attributes Required_Switches (<language>) in
2562 packages Compiler and Binder.
2564 * prj-nmsc.adb: Major rewrite of the processing of configuration
2565 attributes for gprbuild. No impact on GNAT tools.
2567 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
2568 process configuration attributes: this is done in Prj.Nmsc.Check.
2569 (Recursive_Process): Make a full copy of packages inherited from project
2570 being extended, instead of a shallow copy.
2571 (Process_Project_Tree_Phase_1): New procedure
2572 (Process_Project_Tree_Phase_1): New procedure
2573 (Process): Implementation now uses the two new procedures
2575 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
2576 from the project config, not the tree config that no longer exists.
2578 2007-09-26 Vincent Celier <celier@adacore.com>
2580 * Make-lang.in: Update dependencies..
2582 2007-09-26 Vincent Celier <celier@adacore.com>
2584 * osint.adb, osint.ads: Minor reformatting
2586 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
2588 2007-09-26 Gary Dismukes <dismukes@adacore.com>
2590 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
2591 message to cite use of <> in aggregate component associations rather
2592 than wrongly indicating use of limited aggregates.
2594 2007-09-26 Robert Dewar <dewar@adacore.com>
2596 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
2599 2007-09-26 Ed Schonberg <schonberg@adacore.com>
2601 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
2602 ancestor of the derived type, the operations are inherited from the
2603 primary dispatch table of the parent.
2604 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
2605 when the context is an explicit type conversion.
2607 2007-09-26 Ed Schonberg <schonberg@adacore.com>
2609 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
2610 rule for qualified expressions properly, to detect improper conversions
2611 and resolve some cases of overloading.
2613 2007-09-26 Ed Schonberg <schonberg@adacore.com>
2615 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
2616 proper kind of reference to the primitive operation, for better source
2618 (Valid_Conversion): A tagged conversion is legal if both operands are
2621 2007-09-26 Robert Dewar <dewar@adacore.com>
2623 * sem_warn.adb (Check_References): Catch more cases of unreferenced
2626 2007-09-26 Vincent Celier <celier@adacore.com>
2628 * snames.adb, snames.ads: Change Include_Option to Include_Switches
2630 2007-09-26 Robert Dewar <dewar@adacore.com>
2632 * s-wchstw.adb: provide messages for run time unit exceptions
2634 * a-witeio.adb: Minor reformatting
2636 * exp_ch13.adb: Minor reformatting
2638 2007-09-26 Sergey Rybin <rybin@adacore.com>
2640 * vms_data.ads: Revise gnatmetric qualifiers.
2641 Add qualified for the new gnatbind option '-y'
2643 * gnat_ugn.texi: Revise the gnatmetric section.
2644 Add entry for new gnatbind option '-y'.
2646 * gnat_rm.texi: Minor spelling correction.
2647 Document restriction on overlaying controlled types
2649 2007-09-26 Vincent Celier <celier@adacore.com>
2651 * makegpr.adb (Link_Executables): Do not fail when the root project has
2652 no sources, but is an extending project.
2654 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
2656 * trans.c: Fix misplaced #define.
2658 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
2660 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
2661 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
2663 2007-09-21 Olivier Hainque <hainque@adacore.com>
2665 * utils.c (type_for_nonaliased_component_p): Return false for
2666 all AGGREGATE_TYPEs.
2668 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
2670 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
2671 object covered by 13.3(19) volatile.
2673 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
2677 * utils.c (unchecked_convert): Use a subtype as the intermediate type
2678 in the special VIEW_CONVERT_EXPR case.
2680 2007-09-12 Robert Dewar <dewar@adacore.com>
2682 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
2684 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
2685 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
2686 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
2687 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
2688 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
2689 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
2690 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
2691 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
2692 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
2693 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
2694 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
2695 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
2696 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
2697 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
2698 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
2699 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
2700 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
2701 pragma Compiler_Unit and adds it to relevant library units.
2703 2007-09-12 Ed Schonberg <schonberg@adacore.com>
2705 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
2706 a box need not correspond to any component.
2708 2007-09-12 Robert Dewar <dewar@adacore.com>
2710 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
2711 the tasking version of the Ada run time when foreign threads are
2712 present and there are no explicit Ada tasks or tasking constructs.
2714 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
2716 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
2718 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
2719 the usage of switch -y.
2721 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
2722 when switch -y is present.
2724 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
2725 leap seconds in Ada.Calendar and its children.
2727 2007-09-12 Jose Ruiz <ruiz@adacore.com>
2729 * a-extiti.ads (Timer): The discriminant is a "not null access
2730 constant" in the Reference Manual.
2731 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
2733 2007-09-12 Robert Dewar <dewar@adacore.com>
2735 * a-swuwha.adb: Remove junk RM header
2737 2007-09-12 Vincent Celier <celier@adacore.com>
2739 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
2742 * g-bytswa.ads: Minor reformatting
2744 2007-09-12 Thomas Quinot <quinot@adacore.com>
2746 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
2747 Add new constant Thread_Blocking_IO, always True by default, set False
2748 on a per-runtime basis.
2749 (Need_Netdb_Buffer): New constant.
2751 2007-09-12 Arnaud Charlet <charlet@adacore.com>
2753 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
2754 Added renames for corresponding functions in System.Partition_Interface.
2756 2007-09-12 Doug Rupp <rupp@adacore.com>
2758 * Makefile.in: Remove VMS specific System.CRTL packages which are no
2761 * s-crtl-vms64.ads: Removed.
2763 2007-09-12 Olivier Hainque <hainque@adacore.com>
2765 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
2766 with discriminant constraints, generalize the code for BIT_FIELDs
2767 to PACKED fields of constant size and propagate DECL_PACKED.
2769 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
2771 * decl.c (array_type_has_nonaliased_component): New predicate.
2772 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
2773 set the TYPE_NONALIASED_COMPONENT flag on the type.
2774 <E_Array_Subtype>: Likewise.
2775 * gigi.h (type_for_nonaliased_component_p): Declare.
2776 * utils.c (type_for_nonaliased_component_p): New predicate.
2777 (create_field_decl): Invoke the above predicate to set the
2778 DECL_NONADDRESSABLE_P flag on the field.
2780 2007-09-11 Javier Miranda <miranda@adacore.com>
2782 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
2783 in library level record type entities if we are generating statically
2784 allocated dispatch tables.
2786 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
2787 importing/exporting the _tag declaration by new code
2788 importing/exporting the dispatch table wrapper. This change allows us
2789 to statically allocate of the TSD.
2790 (Make_DT.Export_DT): New procedure.
2791 (Build_Static_DT): New function.
2792 (Has_DT): New function.
2794 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
2795 True_Constant and Current_Value. Required to statically
2796 allocate the dispatch tables.
2797 (Check_Allocator): Make function iterative instead of recursive.
2798 Also return inner allocator node, when present, so that we do not have
2799 to look for that node again in the caller.
2801 2007-09-11 Jan Hubicka <jh@suse.cz>
2803 * misc.c (gnat_expand_body): Kill.
2804 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
2806 2007-09-10 Robert Dewar <dewar@adacore.com>
2808 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
2809 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
2810 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
2811 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
2812 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
2813 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
2814 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
2815 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
2816 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
2817 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
2818 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
2819 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
2820 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
2821 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
2822 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
2823 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
2824 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
2825 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
2826 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
2827 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
2828 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
2829 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
2830 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
2831 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
2832 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
2833 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
2834 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
2835 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
2836 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
2837 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
2838 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
2839 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
2840 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
2841 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
2842 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
2843 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
2844 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
2845 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
2846 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
2847 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
2848 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
2849 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
2850 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
2851 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
2852 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
2853 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
2854 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
2855 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
2856 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
2857 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
2858 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
2859 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
2860 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
2861 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
2862 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
2863 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
2864 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
2865 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
2866 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
2867 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
2868 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
2869 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
2870 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
2871 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
2872 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
2873 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
2874 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
2875 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
2876 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
2877 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
2878 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
2879 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
2880 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
2881 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
2882 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
2883 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
2884 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
2885 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
2886 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
2887 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
2888 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
2889 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
2890 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
2892 2007-09-10 Emmanuel Briot <briot@adacore.com>
2894 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
2897 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
2899 * adaint.c (__gnat_translate_vms): new function.
2901 2007-09-10 Gary Dismukes <dismukes@adacore.com>
2902 Thomas Quinot <quinot@adacore.com>
2904 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
2905 create an abstract subprogram in the case of 'Input. For 'Output we now
2906 create a real spec/body when the type is abstract, since it can
2907 potentially be called.
2908 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
2909 body for 'Output when the type is abstract (only the creation of the
2910 body for 'Input is excluded when the type is abstract).
2911 (Stream_Operation_OK): Add an additional condition in the return
2912 statement, so that False will be returned for TTS_Stream_Input if the
2913 associated tagged type is an abstract extension. Add comments for
2915 (Expand_N_Object_Declaration): For the case of a shared passive
2916 variable, insert init proc call only after the shared variable
2917 procedures have been processed, because the IP call needs to undergo
2918 shared passive variable reference expansion, which requires these
2919 procedures to be available (and elaborated).
2921 2007-09-10 Vincent Celier <celier@adacore.com>
2923 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
2924 parameter Runtime_Project.
2926 2007-09-10 Ed Schonberg <schonberg@adacore.com>
2928 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
2929 given a box association, the type of the component is discriminated,
2930 and the value of the discriminant is the discriminant of the enclosing
2931 type, retrieve its value from the aggregate itself, where it must have
2934 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
2935 to remove other spurious ambiguities on arithmetic operations involving
2936 literals and addresses, on systems where Address is a visible integer
2937 type, when the operator is called in functional notation.
2938 (Try_Primitive_Operation): Within an instance, a call in prefixed form
2939 is legal when the types match, even if the operation is currently
2942 2007-09-10 Ed Schonberg <schonberg@adacore.com>
2944 * sem_ch12.adb (Build_Local_Package): A formal package with no
2945 associations is legal if all formals have defaults. It is not
2946 equivalent to a formal declared with a box.
2948 2007-09-10 Sergey Rybin <rybin@adacore.com>
2950 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
2952 2007-09-10 Sergey Rybin <rybin@adacore.com>
2954 * gnat_ugn.texi: Add description of the new '-lratio' option
2955 Update 7.3.1 section about availability of the feature.
2957 2007-09-10 Thomas Quinot <quinot@adacore.com>
2959 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
2962 2007-09-10 Olivier Hainque <hainque@adacore.com>
2964 * Makefile.in: (mips-irix section): Activate build of libgmem.
2966 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
2968 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
2971 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
2973 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
2974 a debug renaming declaration specially.
2976 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
2978 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
2979 which a constant renaming is treated as a normal object declaration.
2980 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
2981 the N_Indexed_Component case.
2982 <N_Indexed_Component>: Fall through to above case.
2983 <N_Object_Renaming_Declaration>: Return true for all composite types.
2985 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
2987 * decl.c (make_packable_type): If the new type has been given BLKmode,
2988 try again to get an integral mode for it.
2990 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
2992 Re-apply accidentally reverted change:
2994 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
2996 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
2997 get_action_description_for): Replace _Unwind_Word with _uleb128_t
2998 and _Unwind_SWord with _sleb128_t.
3000 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
3002 * trans.c (convert_with_check): Update call to real_2expN.
3004 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
3006 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
3007 * utils.c (end_subprog_body): Likewise.
3009 2007-09-03 Nick Clifton <nickc@redhat.com>
3011 * Make-lang.in: Change copyright header to refer to version 3 of
3012 the GNU General Public License and to point readers at the
3013 COPYING3 file and the FSF's license web page.
3014 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
3015 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
3016 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
3017 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
3020 2007-08-31 Vincent Celier <celier@adacore.com>
3024 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
3025 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
3026 (Check_Version_And_Help): New procedure in package Switch to process
3027 switches --version and --help.
3028 Use Check_Version_And_Help in GNAT tools
3031 (Compile_Sources): Make sure that sources that are "excluded" are not
3033 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
3034 project file is used.
3035 (Version_Switch): Remove, moved to Switch
3036 (Help_Switch): Remove, moved to Switch
3037 (Display_Version): Remove, moved to Switch
3039 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
3040 package Switch to process switches --version and --help.
3041 (Display_Version): New procedure
3043 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
3045 2007-08-31 Javier Miranda <miranda@adacore.com>
3047 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
3050 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
3052 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
3053 (Mark_Non_Null): If the node for which we just generated an access check
3054 is a reference to an *in* parameter and the reference appears in the
3055 declarative part of a subprogram body, mark the node as known non null.
3057 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
3059 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
3060 structure of E_Exception to reflect the new flag.
3061 (Is_Raised, Set_Is_Raised): New inlined routines.
3062 Update the usage of available flag to reflect the addition of Is_Raised.
3063 (Is_Raised, Set_Is_Raised): Bodies of new routines.
3064 (Write_Entity_Flags): Write the status of flag Is_Raised.
3065 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
3066 spurious ambiguities when integer literals appear in the context of an
3067 address type that is a visible integer type.
3069 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
3070 exceptions never being raised.
3071 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
3074 2007-08-31 Javier Miranda <miranda@adacore.com>
3076 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
3077 statement when compiling under restriction No_Exceptions_Proparation.
3079 2007-08-31 Ed Schonberg <schonberg@adacore.com>
3081 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
3082 initialization aggregate for the type, generate itype references for
3083 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
3085 2007-08-31 Gary Dismukes <dismukes@adacore.com>
3087 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
3088 library-level package renaming, pass the declaration associated with
3089 the renaming's special debug variable to Qualify_Entity_Names to ensure
3090 that its encoded name is properly qualified.
3092 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
3093 occurring in the list of entities to qualify, and do not attempt to
3094 traverse an entity list in that case. Variables associated with
3095 ` library-level package renamings can now occur in the table.
3097 * exp_dbug.ads: Revise documentation of the encoding for renaming
3100 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3102 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
3103 access type points to an unconstrained array.
3105 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
3107 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
3110 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
3111 simple redundant qualifications. The check is performed whenever the
3112 expression is a non-overloaded identifier.
3113 (Resolve_Type_Conversion): Enchance the redundant type conversion check
3114 to include loop parameters.
3115 (Valid_Conversion): Avoid generation of spurious error message.
3117 2007-08-31 Bob Duff <duff@adacore.com>
3119 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
3120 concatenations of string literals into a single literal, in order to
3121 avoid very deep recursion in the front end, which was causing stack
3124 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
3125 string, and the right operand is a string literal (the case of "" &
3126 "..."), optimize by avoiding copying the right operand -- just use the
3127 value of the right operand directly.
3129 * stringt.adb (Store_String_Chars): Optimize by growing the
3130 String_Chars table all at once, rather than appending characters one by
3132 (Write_String_Table_Entry): If the string to be printed is very long,
3133 just print the first few characters, followed by the length. Otherwise,
3134 doing "pn(n)" in the debugger can take an extremely long time.
3136 * sem_prag.adb (Process_Interface_Name): Replace loop doing
3137 Store_String_Char with Store_String_Chars.
3139 2007-08-31 Vincent Celier <celier@adacore.com>
3141 * prj-attr.adb: Add new attribute Excluded_Source_Files
3143 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
3144 Locally_Removed_Files.
3146 * snames.ads, snames.adb: New standard name Excluded_Source_Files
3148 2007-08-31 Ed Schonberg <schonberg@adacore.com>
3150 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
3151 clauses of subunits, ignore limited_with_clauses that are illegal and
3152 have not been fully analyzed.
3154 2007-08-31 Ed Schonberg <schonberg@adacore.com>
3156 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
3157 flag, for effiency. It is called when analyzing arithmetic operators
3158 and also for actuals in calls that are universal_integers. The flag is
3159 set for the predefined type address, and for any type or subtype
3162 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
3163 Universal_Integer, when the formal is a descendent of address and the
3164 call appears in user code.
3165 (Analyze_Selected_Component): if the prefix is a private extension, the
3166 tag component is visible.
3168 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
3171 2007-08-31 Robert Dewar <dewar@adacore.com>
3173 * s-fileio.adb (Open): Normalize file name to lower case in non-case
3174 sensitive file name systems to avoid unexpected mismatch in Vista.
3176 2007-08-31 Vincent Celier <celier@adacore.com>
3178 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
3180 2007-08-31 Vincent Celier <celier@adacore.com>
3182 * symbols-vms.adb (Initialize): Read symbol files with continuation
3184 (Finalize): If symbol is long, split the line
3186 2007-08-31 Vincent Celier <celier@adacore.com>
3188 * fmap.ads: Minor comment updates
3190 2007-08-31 GNAT Script <nobody@adacore.com>
3192 * Make-lang.in: Makefile automatically updated
3194 2007-08-31 Bob Duff <duff@adacore.com>
3196 * sinfo.ads: Minor comment fix.
3198 2007-08-31 Thomas Quinot <quinot@adacore.com>
3200 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
3201 with implementation.
3202 Documentation cleanup only.
3204 2007-08-31 Sergey Rybin <rybin@adacore.com>
3206 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
3207 gnatpp '--separate-stmt-name' option.
3208 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
3211 * gnat_ugn.texi: Add description for the new gnatpp
3212 '--separate-stmt-name' and '--use-on-new-line' options.
3214 2007-08-31 Ben Elliston <bje@au.ibm.com>
3216 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
3217 when compiling for powerpc64-*-linux.
3218 * system-linux-ppc64.ads: New file.
3220 2007-08-22 Krister Walfridsson <cato@df.lth.se>
3222 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
3225 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3227 * misc.c (gnat_type_max_size): Constify.
3229 2007-08-16 Gary Dismukes <dismukes@adacore.com>
3231 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
3232 associated with Standard_Debug_Renaming_Type, to be used as the type of
3233 the special variables whose names provide debugger encodings for
3234 renaming declarations.
3236 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
3237 (Set_Debug_Renaming_Link): Change to set Node25.
3238 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
3239 (Write_Field25_Name): Add case for E_Variable to output
3240 "Debug_Renaming_Link".
3241 (Write_Field23_Name): Correct the output string for "Limited_View".
3243 * exp_dbug.adb: Add with and use of Tbuild.
3244 (Debug_Renaming_Declaration): Replace creation of an enumeration type
3245 and literal with creation of a variable of type
3246 Standard_Debug_Renaming_Type whose name encodes both the renamed object
3247 and the entity of the renaming declaration.
3248 (Qualify_Entity_Name): Add the delayed qualification of the entity name
3249 part of the name of a variable that has a Debug_Renaming_Link.
3251 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
3252 special type to be associated with variables that provide debugger
3253 encodings for renaming declarations.
3255 2007-08-16 Gary Dismukes <dismukes@adacore.com>
3256 Ed Schonberg <schonberg@adacore.com>
3257 Javier Miranda <miranda@adacore.com>
3259 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
3260 ancestor part given by an aggregate to test for an unchecked conversion,
3261 since this can occur in some cases when the ancestor part is a function
3262 call, and we don't want to fall into the recursive call to this
3263 procedure in that case.
3265 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
3266 stream attributes on limited types to account for user-specified
3267 attributes as well as whether Input (resp. Output) becomes available
3268 due to Read (resp. Write) being available for the type. Change Boolean
3269 variable to the more accurate name
3270 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
3271 double-"not" predicate at beginning of return statement to more
3272 understandable form.
3274 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
3275 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
3276 in a block statement and use that as the first statement of the
3277 expanded return rather than incorrectly using the handled sequence as
3278 the first statement.
3280 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
3281 operation, generate an explicit freeze node for it rather than
3282 generating extra formals, to ensure that gigi has the proper order of
3283 elaboration for anonymous subtypes in the signature of the subprograms.
3284 (Build_In_Place_Formal): Move assertion to beginning of loop.
3285 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
3286 applied to a function call (occurs for some cases of 'Input).
3287 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
3288 applied to a function call (occurs for some cases of 'Input).
3290 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
3291 2005, generate an extended return statement enclosing the result object
3294 * freeze.adb (Freeze_Record_Type): Extend the current management of
3295 components that are access type with an allocator as default value: add
3296 missing support to the use of qualified expressions of the
3297 allocator (which also cause freezing of the designated type!)
3298 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
3299 dispatching operation, since extra formals may be needed by calls to
3300 build-in-place functions (such as stream 'Input).
3302 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
3303 formals for 'Constrained and accessibility level in the case of a
3304 predefined dispatching operation.
3306 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
3307 point, no need to find the parent node.
3309 2007-08-16 Javier Miranda <miranda@adacore.com>
3311 * exp_attr.adb (Attribute_Priority): Add missing support for entries
3314 2007-08-16 Javier Miranda <miranda@adacore.com>
3316 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
3317 is not really required and can introduce regression with the debugger.
3318 The original problem is fixed with the patch written for checks.adb.
3320 2007-08-16 Thomas Quinot <quinot@adacore.com>
3322 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
3323 Range_Check on Allocated_Table.
3325 2007-08-16 Vincent Celier <celier@adacore.com>
3327 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
3328 Including_Non_Switch set to False.
3329 (Gnatmake): For the compiler, call Test_If_Relative_Path with
3330 Including_Non_Switch set to False.
3332 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
3333 parameter Including_Non_Switch, defaulted to True. When
3334 Including_Non_Switch is False, options that are not switches and
3335 appear as relative path are not converted to absolute paths.
3337 2007-08-16 Nicolas Roche <roche@adacore.com>
3339 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
3342 * Make-lang.in: Update dependencies
3344 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
3346 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
3347 currently inspected is a selected component, retrieve the entity of
3349 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
3350 from the immediate ancestor of Main_Unit_Entity.
3351 (Install_Limited_Withed_Unit): Do not install the limited view of
3352 package P if P is reachable through an ancestor chain from package C
3353 and C also has a with clause for P in its body.
3354 (Has_Limited_With_Clause): New routine.
3355 (Has_With_Clause): New routine.
3357 2007-08-16 Ed Schonberg <schonberg@adacore.com>
3359 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
3360 generic for an enclosing instance is a global reference, even though
3361 its scope is the enclosing instance.
3363 2007-08-16 Gary Dismukes <dismukes@adacore.com>
3364 Javier Miranda <miranda@adacore.com>
3366 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
3367 initialize a limited object.
3368 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
3370 Make sure Has_Complex_Representation is inherited by derived type.
3372 2007-08-16 Robert Dewar <dewar@adacore.com>
3374 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
3377 2007-08-16 Ed Schonberg <schonberg@adacore.com>
3379 * sem_disp.adb (Check_Dispatching_Operation): If the operation
3380 implements an operation inherited from a progenitor interface, verify
3381 that they are subtype-conformant.
3383 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
3384 Bob Duff <duff@adacore.com>
3385 Nicolas Setton <setton@adacore.com>
3387 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
3388 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
3389 the statement which is being resolved comes from a predefined library
3390 unit, all non-predefined library interpretations are skipped.
3391 (Resolve_Op_Concat): If string concatenation was folded in the parser,
3392 but the "&" is user defined, give an error, because the folding would
3395 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
3396 the parser has folded a long sequence of concatenations of string
3399 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
3400 and "JMP_BUF" variables as artificial.
3401 (N_String_Literal): Do not use alloca for very long string literals. Use
3402 xmalloc/free instead. Otherwise the stack might overflow.
3404 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
3407 2007-08-16 Vincent Celier <celier@adacore.com>
3409 * vms_conv.adb (Process_Argument): Ensure that project related options
3410 are not put in the -cargs section when using GNAT COMPILE.
3412 2007-08-16 Robert Dewar <dewar@adacore.com>
3414 * gnat_ugn.texi: Add note on preprocessing (output file not written)
3416 2007-08-16 Thomas Quinot <quinot@adacore.com>
3418 * a-tags.adb: Minor reformatting.
3420 2007-08-16 Bob Duff <duff@adacore.com>
3422 * sem_type.ads, sem_ch4.adb: Minor reformatting.
3424 2007-08-14 Thomas Quinot <quinot@adacore.com>
3426 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
3427 s-osinte-interix.ads, system-interix.ads: Removed.
3429 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
3431 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
3432 calls to Check_Within_Time_Bounds.
3433 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
3434 (Difference): Account for possible rounding of the resulting difference
3436 2007-08-14 Robert Dewar <dewar@adacore.com>
3438 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
3439 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
3440 s-osinte-solaris.adb, s-osinte-solaris.ads,
3441 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
3443 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
3444 switch -gnatyS. Enable -gnatyS in GNAT style check mode
3446 2007-08-14 Robert Dewar <dewar@adacore.com>
3447 Ed Schonberg <schonberg@adacore.com>
3449 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
3450 Suppress unmodified in-out parameter warning in some cases
3451 This patch is a also fairly significant change to the way suppressible
3454 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
3455 needed for access to concurrent record types generated by the expander.
3456 (Generate_Range_Check): When generating a temporary to capture the
3457 value of a conversion that requires a range check, set the type of the
3458 temporary before rewriting the node, so that the type is always
3459 properly placed for back-end use.
3460 (Apply_Float_Conversion_Check): Handle case where the conversion is
3462 (Get_Discriminal): Code reformatting. Climb the scope stack looking
3463 for a protected type in order to examine its discriminants.
3465 2007-08-14 Robert Dewar <dewar@adacore.com>
3466 Gary Dismukes <dismukes@adacore.com>
3467 Ed Schonberg <schonberg@adacore.com>
3468 Thomas Quinot <quinot@adacore.com>
3470 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
3471 a-stwisu.adb, a-strsup.adb: Fix warnings for range
3472 tests optimized out.
3474 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
3475 (Get_Allocator_Final_List): For the case of an anonymous access type
3476 that has a specified Associated_Final_Chain, do not go up to the
3478 (Expand_N_Type_Conversion): Test for the case of renamings of access
3479 parameters when deciding whether to apply a run-time accessibility
3481 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
3482 aggregate code before allocator, and ahead of declaration for
3483 temporary, to prevent access before elaboration when the allocator is
3484 an actual for an access parameter.
3485 (Expand_N_Type_Conversion): On an access type conversion involving an
3486 access parameter, do not apply an accessibility check when the
3487 operand's original node was an attribute other than 'Access. We now
3488 create access conversions for the expansion of 'Unchecked_Access and
3489 'Unrestricted_Access in certain cases and clearly accessibility should
3490 not be checked for those.
3492 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
3493 includes a type conversion of a packed component that has been expanded,
3494 recover the original expression for the object, and use this expression
3495 in the post-call assignment statement, so that the assignment is made
3496 to the object and not to a back-end temporary.
3497 (Freeze_Subprogram): In case of primitives of tagged types not defined
3498 at the library level force generation of code to register the primitive
3499 in the dispatch table. In addition some code reorganization has been
3500 done to leave the implementation clear.
3501 (Expand_Call): When expanding an inherited implicit conversion,
3502 preserve the type of the inherited function after the intrinsic
3503 operation has been expanded.
3505 * exp_ch2.ads, exp_ch2.adb
3506 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
3507 of an entry formal appearing in an assignment statement does not assign
3509 (Expand_Current_Value): Instead of calling a routine to determine
3510 whether the prefix of an attribute reference should be optimized or
3511 not, prevent the optimization of such prefixes all together.
3513 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
3514 component whose prefix is known to be of an access type is an implicit
3515 dereference and does not assign to the prefix.
3517 2007-08-14 Ed Schonberg <schonberg@adacore.com>
3518 Robert Dewar <dewar@adacore.com>
3520 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
3521 itype is visited, make an entry into table to link associated node and
3523 Add comments and correct harmless error in Build_NCT_Hash_Tables
3524 (Array_Aggr_Subtype): Associate each itype created for an index type to
3525 the corresponding range construct, and not to the aggregate itself. to
3526 maintain a one-to-one correspondence between itype and its associated
3527 node, to prevent errors when complex expression is copied.
3528 Fix mishandling of multiple levels of parens
3530 * sem_aggr.adb: Create a limited view of an incomplete type, to make
3531 treatment of limited views uniform for all visible declarations in a
3532 limited_withed package.
3533 (New_Copy_Tree): If hash table is being used and itype is visited,
3534 make an entry into table to link associated node and new itype.
3535 (Resolve_Record_Aggregate): Do not add an others box association for a
3536 discriminated record component that has only discriminants, when there
3537 is a box association for the component itself.
3539 * par-ch4.adb: Fix mishandling of multiple levels of parens
3541 2007-08-14 Robert Dewar <dewar@adacore.com>
3543 * comperr.adb: Fix problem with suppressing warning messages from gigi
3545 * erroutc.ads, erroutc.adb, errout.ads,
3546 errout.adb (Write_Eol): Remove trailing spaces before writing the line
3547 (Write_Eol_Keep_Blanks): New procedure to write a line, including
3548 possible trailing spaces.
3549 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
3550 Fix problem with suppressing warning messages from back end
3551 Improve handling of deleted warnings
3554 Fix problem with suppressing warning messages from back end
3555 Handle setting of Static_Dispatch_Tables flag.
3558 Fix problem with suppressing warning messages from back end
3560 * exp_intr.adb: Improve handling of deleted warnings
3562 2007-08-14 Robert Dewar <dewar@adacore.com>
3564 * debug.adb: Improve -gnatdI to cover all cases of serialization
3565 Add documentation of dZ, d.t
3567 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
3569 (Sprint_Node_Actual): Generate new output associated with implicit
3570 importation and implicit exportation of object declarations.
3572 2007-08-14 Ed Schonberg <schonberg@adacore.com>
3573 Robert Dewar <dewar@adacore.com>
3574 Javier Miranda <miranda@adacore.com>
3575 Gary Dismukes <dismukes@adacore.com>
3577 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
3578 to make treatment of limited views uniform for all visible declarations
3579 in a limited_withed package.
3580 Improve warnings for in out parameters
3581 (Set_Related_Interaface/Related_Interface): Allow the use of this
3582 attribute with constants.
3583 (Write_Field26_Name): Handle attribute Related_Interface in constants.
3584 Warn on duplicate pragma Preelaborable_Initialialization
3586 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
3587 generation of a freezing node to ensure proper management of null
3588 excluding access types in the backend.
3589 (Create_Extra_Formals): Test base type of the formal when checking for
3590 the need to add an extra accessibility-level formal. Pass the entity E
3591 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
3592 originally being done in a couple of cases), to ensure that the
3593 Extra_Formals list gets set on the entity E when the first entity is
3595 (Conforming_Types): Add missing calls to Base_Type to the code that
3596 handles anonymous access types. This is required to handle the
3597 general case because Process_Formals builds internal subtype entities
3598 to handle null-excluding access types.
3599 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
3600 functions that need it, even when not marked Requires_Overriding.
3601 Improve warnings for in out parameters
3602 (Analyze_Function_Return): Warn for disallowed null return
3603 Warn on return from procedure with unset out parameter
3604 Ensure consistent use of # in error messages
3605 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
3606 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
3607 the implicit conversion of the expression done for anonymous access
3608 types. This is required to generate the code of the null excluding
3609 check (if required).
3611 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
3612 A formal parameter is never publicly referenceable outside of its body.
3613 (Check_References): For an unreferenced formal parameter in an accept
3614 statement, use the same warning circuitry as for subprogram formal
3616 (Warn_On_Unreferenced_Entity): New subprogram, taken from
3617 Output_Unreferenced_Messages, containing the part of that routine that
3618 is now reused for entry formals as described above.
3619 (Goto_Spec_Entity): New function
3620 (Check_References): Do not give IN OUT warning for dispatching operation
3621 Improve warnings for in out parameters
3622 (Test_Ref): Check that the entity is not undefinite before calling
3623 Scope_Within, in order to avoid infinite loops.
3624 Warn on return from procedure with unset out parameter
3625 Improved warnings for unused variables
3627 2007-08-14 Robert Dewar <dewar@adacore.com>
3628 Javier Miranda <miranda@adacore.com>
3629 Gary Dismukes <dismukes@adacore.com>
3631 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
3632 (Expand_N_Attribute_Reference): Further unify the handling of the
3633 three forms of access attributes, using common code now for all three
3634 cases. Add a test for the case of applying an access attribute to
3635 an explicit dereference when the context is an access-to-interface
3636 type. In that case we need to apply the conversion to the prefix
3637 of the explicit dereference rather than the prefix of the attribute.
3638 (Attribute_Version, UET_Address): Set entity as internal to ensure
3639 proper dg output of implicit importation.
3640 (Expand_Access_To_Type): Removed.
3641 (Expand_N_Attribute_Reference): Merge the code from the three cases
3642 of access attributes, since the processing is largely identical for
3643 these cases. The substantive fix here is to process the case of a
3644 type name prefix (current instance case) before handling the case
3645 of interface prefixes.
3647 2007-08-14 Thomas Quinot <quinot@adacore.com>
3648 Ed Schonberg <schonberg@adacore.com>
3649 Javier Miranda <miranda@adacore.com>
3650 Robert Dewar <dewar@adacore.com>
3652 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
3653 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
3654 type that is an anonymous access to controlled object, establish
3655 an associated finalization chain to avoid corrupting the global
3656 finalization list when a dynamically allocated object designated
3657 by such a component is deallocated.
3658 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
3659 functions that need it, even when not marked Requires_Overriding.
3660 (Initialize_Tag): Replace call to has_discriminants by call to
3661 Is_Variable_Size_Record in the circuitry that handles the
3662 initialization of secondary tags.
3663 (Is_Variable_Size_Record): New implementation.
3664 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
3665 Suppress_Initialization pragma for a derived type.
3666 (Is_Variable_Size_Record): New subprogram.
3667 (Build_Offset_To_Top_Functions): New implementation that simplifies the
3668 initial version of this routine and also fixes problems causing
3669 incomplete initialization of the table of interfaces.
3670 (Build_Init_Procedure): Improve the generation of code to initialize the
3671 the tag components of secondary dispatch tables.
3672 (Init_Secondary_Tags): New implementation that simplifies the previous
3673 version of this routine.
3674 (Make_DT): Add parameter to indicate when type has been frozen by an
3675 object declaration, for diagnostic purposes.
3676 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
3677 diagnose attemps to freeze a subprogram when some untagged type of its
3678 profile is a private type whose full view has not been analyzed yet.
3679 (Freeze_Array_Type): Generate init proc for packed array if either
3680 Initialize or Normalize_Scalars is set.
3681 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
3682 constructing the new profile, copy the null_exclusion indicator for each
3683 parameter, to ensure full conformance of the new body with the spec.
3685 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
3686 Create wrappers for constructor functions that need it, even when not
3687 marked Requires_Overriding.
3688 (Covers): Handle properly designated types of anonymous access types,
3689 whose non-limited views are themselves incomplete types.
3690 (Add_Entry): Use an entity to store the abstract operation which hides
3692 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
3693 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
3694 initialization aggregate.
3695 (Function_Interp_May_Be_Hidden): Rename to
3696 Function_Interp_Has_Abstract_Op.
3697 (Has_Compatible_Type): Remove machinery that skips interpretations if
3698 they are labeled as potentially hidden by an abstract operator.
3699 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
3700 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
3701 (Write_Overloads): Output the abstract operator if present.
3702 (Add_Entry): Before inserting a new entry into the interpretation table
3703 for a node, determine whether the entry will be disabled by an abstract
3705 (Binary_Op_Interp_May_Be_Hidden): New routine.
3706 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
3708 (Function_Interp_May_Be_Hidden): New routine.
3709 (Has_Compatible_Type): Do not consider interpretations hidden by
3710 abstract operators when trying to determine whether two types are
3712 (Has_Hidden_Interp): New routine.
3713 (Set_May_Be_Hidden_Interp): New routine.
3714 (Write_Overloads): Write the status of flag May_Be_Hidden.
3716 2007-08-14 Ed Schonberg <schonberg@adacore.com>
3717 Javier Miranda <miranda@adacore.com>
3719 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
3720 types declared in the declarative part of a nested package body or in
3721 the proper body of a stub.
3722 (Set_All_DT_Position): Add missing check to avoid wrong assignation
3723 of the same dispatch table slot to renamed primitives.
3724 (Make_Select_Specific_Data_Table): Handle private types.
3725 (Tagged_Kind): Handle private types.
3726 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
3727 output of implicit importation and exportation.
3728 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
3729 first formal of the thunk is always associated with the controlling
3730 type. In addition perform the following code cleanup: remove formal
3731 Thunk_Alias which is no longer required, cleanup evaluation of the
3732 the controlling type, and update the documentation.
3733 Replace occurrence of Default_Prim_Op_Count by
3734 Max_Predef_Prims. Addition of compile-time check to verify
3735 that the value of Max_Predef_Prims is correct.
3736 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
3737 (Make_DT): Add parameter to indicate when type has been frozen by an
3738 object declaration, for diagnostic purposes.
3739 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
3740 construction of statically allocated dispatch tables.
3741 (Make_DT): In case of library-level tagged types export the declaration
3742 of the primary tag. Remove generation of tags (now done by Make_Tags).
3743 Additional modifications to handle non-static generation of dispatch
3744 tables. Take care of building tables for asynchronous interface types
3745 (Make_Tags): New subprogram that generates the entities associated with
3746 the primary and secondary tags of Typ and fills the contents of Access_
3747 Disp_Table. In case of library-level tagged types imports the forward
3748 declaration of the primary tag that will be declared later by Make_DT.
3749 (Expand_Interface_Conversion): In case of access types to interfaces
3750 replace an itype declaration by an explicit type declaration to avoid
3751 problems associated with the scope of such itype in transient blocks.
3753 2007-08-14 Robert Dewar <dewar@adacore.com>
3754 Ed Schonberg <schonberg@adacore.com>
3755 Javier Miranda <miranda@adacore.com>
3757 * exp_util.ads, exp_util.adb:
3758 This patch replaces a number of occurrences of explicit tests for N_Null
3759 with calls to Known_Null. This improves tracking of null values, since
3760 Known_Null also catches null constants, and variables currently known to
3761 be null, so we get better tracking.
3762 (Ensure_Defined): create an itype reference only in the scope of the
3764 (Side_Effect_Free): A selected component of an access type that
3765 denotes a component with a rep clause must be treated as not
3766 side-effect free, because if it is part of a linked structure its
3767 value may be affected by a renaming.
3768 (Expand_Subtype_From_Expr): For limited objects initialized with build
3769 in place function calls, do nothing; otherwise we prematurely introduce
3770 an N_Reference node in the expression initializing the object, which
3771 breaks the circuitry that detects and adds the additional arguments to
3772 the called function. Bug found working in the new patch for statically
3773 allocated dispatch tables.
3774 (Is_Library_Level_Tagged_Type): New subprogram.
3775 (Remove_Side_Effects): If the expression of an elementary type is an
3776 operator treat as a function call.
3777 (Make_Literal_Range): If the index type of the array is not integer, use
3778 attributes properly to compute the constraint on the resulting aggregate
3781 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
3782 class-wide type whose base type is an incomplete private type, leave
3783 class-wide type unfrozen so that freeze nodes can be generated
3784 properly at a later point.
3785 (Freeze_Entity, array case): Handle case of pragma Pack and component
3786 size attributre clause for same array.
3788 2007-08-14 Vincent Celier <celier@adacore.com>
3790 * prj.ads, prj.adb: Update Project Manager to new attribute names for
3792 Allow all valid declarations in configuration project files
3793 (Reset): Initialize all tables and hash tables in the project tree data
3794 Major update of the Project Manager and of the project aware tools,
3795 including gprmake, so that the same sources in the GNAT repository
3796 can be used by gprbuild.
3797 (Slash_Id): Change type to be Path_Name_Type
3798 (Slash): Return a Path_Name_Type instead of a File_Name_Type
3800 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
3802 Update Project Manager to new attribute names for ghprbuild
3803 Allow all valid declarations in configuration project files
3804 Major update of the Project Manager and of the project aware tools,
3805 including gprmake, so that the same sources in the GNAT repository
3806 can be used by gprbuild.
3809 Major update of the Project Manager and of the project aware tools,
3810 including gprmake, so that the same sources in the GNAT repository
3811 can be used by gprbuild.
3813 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
3814 insensitive flag for attributes with optional index.
3815 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
3816 array attribute, put the index in lower case.
3817 Update Project Manager to new attribute names for ghprbuild
3818 Allow all valid declarations in configuration project files
3819 Major update of the Project Manager and of the project aware tools,
3820 including gprmake, so that the same sources in the GNAT repository
3821 can be used by gprbuild.
3823 * prj-env.ads, prj-env.adb:
3824 Major update of the Project Manager and of the project aware tools,
3825 including gprmake, so that the same sources in the GNAT repository
3826 can be used by gprbuild.
3827 (Get_Reference): Change type of parameter Path to Path_Name_Type
3829 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
3830 removing '-' from the path to start with the first character of the
3832 Major update of the Project Manager and of the project aware tools,
3833 including gprmake, so that the same sources in the GNAT repository
3834 can be used by gprbuild.
3835 Major update of the Project Manager and of the project aware tools,
3836 including gprmake, so that the same sources in the GNAT repository
3837 can be used by gprbuild.
3839 * prj-nmsc.ads, prj-nmsc.adb:
3840 Update Project Manager to new attribute names for ghprbuild
3841 Allow all valid declarations in configuration project files
3842 (Search_Directories): Detect subunits that are specified with an
3843 attribute Body in package Naming. Do not replace a source/unit in the
3844 same project when the order of the source dirs are known. Detect
3845 duplicate sources/units in the same project when the order of the
3846 source dirs are not known.
3847 (Check_Ada_Name): Allow all identifiers that are not reserved words
3849 Major update of the Project Manager and of the project aware tools,
3850 including gprmake, so that the same sources in the GNAT repository
3851 can be used by gprbuild.
3852 (Look_For_Sources): If the list of sources is empty, set the object
3853 directory of non extending project to nil.
3854 Change type of path name variables to be Path_Name_Type
3855 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
3856 otherwise creating missing directories will fail.
3858 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
3859 prj-part.ads, prj-part.adb:
3860 Major update of the Project Manager and of the project aware tools,
3861 including gprmake, so that the same sources in the GNAT repository
3862 can be used by gprbuild.
3864 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
3865 insensitive flag for attributes with optional index.
3866 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
3867 array attribute, put the index in lower case.
3868 (Parse_Variable_Reference): Allow the current project name to be used in
3869 the prefix of an attribute reference.
3871 * prj-util.ads, prj-util.adb
3872 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
3873 defaulted to False. When True, always check against indexes in lower
3876 * snames.ads, snames.h, snames.adb:
3877 Update Project Manager to new attribute names for gprbuild
3878 Allow all valid declarations in configuration project files
3880 2007-08-14 Robert Dewar <dewar@adacore.com>
3881 Ed Schonberg <schonberg@adacore.com>
3883 * opt.ads: Warning for non-local exception propagation now off by
3885 New switch -gnatI to disable representation clauses
3886 Implement new pragma Implicit_Packing
3889 Warning for non-local exception propagation now off by default
3890 Add warning for unchecked conversion of pointers wi different
3892 New switch -gnatI to disable representation clauses
3894 * usage.adb: new switch -gnatyS
3896 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
3897 note that aggregates of anonymous array types are not flagged.
3898 -gnatwc now includes membership tests optimized away
3899 -gnatw.x warnings are now off by default
3900 Added conditional compilation Appendix
3901 Add documentation of -gnatI
3902 Add documentation for new -gnatyS style check
3903 Update documentation about SAL and auto-init on Windows.
3906 Add documentation for pragma Check_Name and 'Enabled attribute
3907 Document that Eliminate on dispatching operation is ignored
3908 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
3909 Document pragma Main
3910 Document pragma Implicit_Packing
3912 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
3913 different conventions
3914 New switch -gnatI to disable representation clauses
3916 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
3917 recognized, report the invalid characters including "-gnat" instead of
3918 just the first character in the switch.
3919 New switch -gnatI to disable representation clauses
3920 Set Warn_On_Object_Renames_Function true for -gnatg
3922 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
3923 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
3924 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
3925 to switch -aP (add directory to project search dir).
3927 * par-prag.adb: Implement new pragma Implicit_Packing
3929 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
3930 type as having a non-standard representation, to force expansion on
3931 conversion to related types.
3932 (Analyze_Pragma): Warn on misspelled pragma
3933 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
3934 Ensure consistent use of # in error messages
3935 Implement pragma Implicit_Packing
3937 2007-08-14 Olivier Hainque <hainque@adacore.com>
3938 Eric Botcazou <ebotcazou@adacore.com>
3940 * targtyps.c (get_target_maximum_default_alignment): New function.
3942 that the compiler might choose by default for a type or object.
3943 (get_target_default_allocator_alignment): New function. Alignment known
3944 to be honored by the target default allocator.
3945 (get_target_maximum_allowed_alignment): New function. Maximum alignment
3946 we might accept for any type or object on the target.
3947 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
3949 * gigi.h (get_target_maximum_default_alignment): Declare new function.
3950 (get_target_default_allocator_alignment): Likewise.
3951 (get_target_maximum_allowed_alignment): Likewise.
3954 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
3955 result of a function call, first try to use a stabilized reference for
3956 a constant renaming too.
3957 (validate_alignment): Use target_maximum_allowed_alignment instead of
3958 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
3959 (gnat_to_gnu_entity): Use common nodes directly.
3960 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
3961 alignment and size for the object.
3962 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
3963 and N_Procedure_Call_Statement.
3964 (takes_address): Rename to lvalue_required_p, add third parameter
3965 'aliased' and adjust recursive calls.
3966 <N_Indexed_Component>: Update 'aliased' from the array type.
3967 <N_Selected_Component>: New case.
3968 <N_Object_Renaming_Declaration>: New Likewise.
3969 (Identifier_to_gnu): Adjust for above changes.
3970 (maybe_stabilize_reference) <CONST_DECL>: New case.
3972 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
3973 between type variants.
3974 (build_simple_component_ref): Likewise.
3975 (build_call_alloc_dealloc): Use target_default_allocator_alignment
3976 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
3977 aligning type circuitry for allocations from the default storage pool.
3978 (build_allocator): Likewise.
3979 (build_simple_component_ref): Manually fold the reference for a
3980 constructor if the record type contains a template.
3982 * utils.c (value_zerop): Delete.
3983 (gnat_init_decl_processing): Emit debug info for common types.
3984 (rest_of_record_type_compilation): If a union contains a field
3985 with a non-constant qualifier, treat it as variable-sized.
3986 (finish_record_type): Give the stub TYPE_DECL a name.
3987 (rest_of_record_type_compilation): Likewise.
3988 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
3989 types are equivalent array types.
3990 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
3991 even if the type is not passed by reference.
3992 (static_ctors, static_dtors): Delete.
3993 (end_subprog_body): Do not record constructors and destructors.
3994 (build_global_cdtor): Delete.
3995 (gnat_write_global_declarations): Do not call build_global_cdtor.
3997 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
3998 -fRTS=rtp is specified.
3999 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
4002 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
4003 of the personality function with SJLJ exceptions.
4005 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
4006 the name of the personality function with SJLJ exceptions.
4008 2007-08-14 Robert Dewar <dewar@adacore.com>
4009 Ed Schonberg <schonberg@adacore.com>
4011 * par.ads, par.adb: Improve handling of extra right parens.
4012 (Par): Remove flag From_Limited_With_Clause.
4014 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
4015 Improve handling of extra right parens.
4017 2007-08-14 Robert Dewar <dewar@adacore.com>
4019 * par-tchk.adb (TF_Semicolon): Improve error recovery
4021 2007-08-14 Robert Dewar <dewar@adacore.com>
4022 Ed Schonberg <schonberg@adacore.com>
4024 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
4025 enumeration type, mark all literals as referenced.
4026 (Eval_Attribute, case 'Image): If the argument is an enumeration
4027 literal and names are available, constant-fold but mark nevertheless as
4029 Clean up function names.
4030 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
4032 (Requires_Simple_Name_Prefix): Removed.
4034 2007-08-14 Robert Dewar <dewar@adacore.com>
4035 Ed Schonberg <schonberg@adacore.com>
4037 * sem_ch11.adb: Improved warnings for unused variables
4039 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
4040 is a synchronized interface, the derived type is limited.
4041 (Analyze_Object_Declaration): Mark the potential coextensions in the
4042 definition and expression of an object declaration node.
4043 (Build_Derived_Type): For the completion of a private type declaration
4044 with a derived type declaration, chain the parent type's representation
4045 items to the last representation item of the derived type (not the
4046 first one) if they are not present already.
4047 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
4048 object declaration of forward references to tags.
4049 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
4050 subprogram types can appear as access discriminants of synchronized
4052 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
4053 given in prefixed form as a selected component.
4054 (Process_Discriminants): If not all discriminants have defaults, place
4055 error message on a default that is present.
4056 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
4057 extend a synchronized tagged type.
4058 Improved warnings for unused variables
4059 (Is_Visible_Component): Fix a visibility hole on a component inherited
4060 by a private extension when parent is itself declared as a private
4061 extension, and the derivation is in a child unit.
4062 (Find_Hidden_Interface): Move spec from the package body.
4064 2007-08-14 Robert Dewar <dewar@adacore.com>
4065 Ed Schonberg <schonberg@adacore.com>
4067 * sem_ch5.adb: Improve warnings on redundant assignments
4069 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
4071 (Is_Synchronized_Tagged_Type): New subprogram that returns true
4072 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
4073 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
4074 is set to False. Improves handling of Known_[Not_]Null.
4075 (Wrong_Type): Special case address arithmetic attempt
4076 (Collect_Abstract_Interfaces): Add new formal to allow collecting
4077 abstract interfaces just using the partial view of private types.
4078 (Has_Abstract_Interfaces): Add new formal to allow checking types
4079 covering interfaces using the partial view of private types.
4080 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
4081 component still needs to be defined in this case, but is never
4082 initialized as VMs are using other dispatching mechanisms.
4083 (Abstract_Interface_List): For a protected type, use base type to get
4085 Improve warnings on redundant assignments
4086 (Is_Variable): Handle properly an implicit dereference of a prefixed
4088 (Build_Actual_Subtype): If this is an actual subtype for an
4089 unconstrained formal parameter, use the sloc of the body for the new
4090 declaration, to prevent anomalises in the debugger.
4092 2007-08-14 Robert Dewar <dewar@adacore.com>
4094 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
4095 dispatching operation
4097 2007-08-14 Ed Schonberg <schonberg@adacore.com>
4098 Gary Dismukes <dismukes@adacore.com>
4101 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
4102 expanded aggregate code before allocator, and ahead of declaration for
4103 temporary, to prevent access before elaboration when the allocator is
4104 an actual for an access parameter.
4105 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
4106 the TSD and the table of interfaces.
4107 (Convert_To_Assignments): Augment the test for delaying aggregate
4108 expansion for limited return statements to include the case of extended
4109 returns, to prevent creation of an unwanted transient scope.
4110 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
4111 (Expand_Array_Aggregate): Handle aggregates associated with
4112 statically allocated dispatch tables.
4113 (Expand_Record_Aggregate): Handle aggregates associated with
4114 statically allocated dispatch tables.
4115 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
4116 of anonymous access type.
4118 2007-08-14 Ed Schonberg <schonberg@adacore.com>
4120 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
4121 is a variable that renames a slice, use the variable itself in the
4122 expannsion when the renamed expression itself may be modified between
4123 the declaration of the renaming and the array assignment.
4125 2007-08-14 Jerome Guitton <guitton@adacore.com>
4127 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
4128 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
4129 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
4130 New functions; dummy implementations.
4132 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
4133 functions, used to implement the multi-tasks mode routines on VxWorks.
4135 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
4137 binding to the VxWorks routines which have changed between VxWorks 5
4139 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
4140 which are not callable from a RTP.
4142 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
4143 implemented for the multi-tasks mode on VxWorks 5 and 6.
4145 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
4147 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
4150 2007-08-14 Vincent Celier <celier@adacore.com>
4152 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
4153 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
4154 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
4155 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
4156 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
4157 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
4158 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
4160 (Major_Id_Name): New function.
4161 mlib-tgt.ads/mlib.tgt.adb:
4162 (Library_Major_Minor_Id_Supported): New function, default returns True
4163 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
4164 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
4165 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
4166 Implementation of Library_Major_Minor_Id_Supported returns False
4168 (Clean_Library_Directory): If major/minor ids are supported, clean all
4170 Major update of the Project Manager and of the project aware tools,
4171 including gprmake, so that the same sources in the GNAT repository
4172 can be used by gprbuild.
4174 2007-08-14 Olivier Hainque <hainque@adacore.com>
4176 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
4177 (GCC_ZCX_Support): Switch to True.
4179 * s-intman-solaris.adb (Notify_Exception): Call
4180 Adjust_Context_For_Raise before raising, as expected for signal
4181 handlers in general.
4183 * s-intman-posix.adb (Notify_Exception): Remove declaration of
4184 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
4185 to other implementation bodies.
4187 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
4188 be visible by multiple implementation bodies.
4190 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
4191 only for conditions coming from hardware.
4192 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
4193 adjustments to signal context prior to exception raise from signal
4195 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
4197 Solaris section: (__gnat_adjust_context_for_raise): New function.
4198 Implementation of the machine context adjustments to perform prior to
4199 raise from a signal handler. Version for both sparc and x86.
4200 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
4201 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
4202 prior to raising as expected for any handler, before possible nested
4203 faults to make sure all the contexts in a chain have been adjusted by
4204 the time we propagate.
4206 2007-08-14 Pascal Obry <obry@adacore.com>
4208 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
4209 (SYSTEM_INFO): New record.
4210 (SetThreadIdealProcessor): New imported routine needed for supporting
4211 task_info pragma on Windows.
4213 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
4214 info can be applied to the current host.
4215 (Create_Task): Set the ideal processor if information is present.
4217 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
4218 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
4220 2007-08-14 Olivier Hainque <hainque@adacore.com>
4222 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
4223 stack size and initial stack pointer value for a given task.
4224 (Enter_Task): Get the stack attributes of the task we are entering and
4225 let the stack checking engine know about them.
4227 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
4228 Let the stack-checking engine know about the initial sp value and stack
4229 size associated with the current task.
4230 (Set_Stack_Info): If a stack base has been notified for the current
4231 task, honor it. Fallback to the previous less accurate method otherwise.
4233 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
4235 2007-08-14 Ed Schonberg <schonberg@adacore.com>
4237 * sem_ch10.adb: Create a limited view of an incomplete type, to make
4238 treatment of limited views uniform for all visible declarations in a
4239 limited_withed package.
4240 Set flag indicating that a subprogram body for a child unit has a
4242 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
4243 separate declaration, remove the unit name from visibility after
4244 compilation, so that environment is clean for subsequent compilations.
4245 (Install_Limited_Context_Clauses): Do not install a
4246 limited_private_with_clause unless the current unit is a body or a
4248 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
4249 in the same fashion.
4250 (Install_Limited_Withed_Unit): Do not install a limited with clause if
4251 it applies to the declaration of the current package body.
4252 (Remove_Private_With_Clauses): If there is a regular with_clause for
4253 the unit, delete Private_With_Clause from context, to prevent improper
4254 hiding when processing subsequent nested packages and instantiations.
4256 2007-08-14 Jose Ruiz <ruiz@adacore.com>
4258 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
4259 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
4260 representing absolute path names.
4261 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
4263 * cstreams.c (__gnat_full_name for VxWorks): Use
4264 __gnat_is_absolute_path to detect whether we need to add the current
4265 directory to normalize the path.
4267 2007-08-14 Javier Miranda <miranda@adacore.com>
4270 a-tags.adb (Displace): Associate a message with the raised CE
4272 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
4273 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
4274 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
4276 (Default_Prim_Op_Count): Removed.
4277 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
4278 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
4279 Remove pragma Inline_Always.
4281 * rtsfind.ads (Default_Prim_Op_Count): Removed
4282 (Max_Predef_Prims): New entity
4283 (RE_Expanded_Name): Removed
4284 (RE_HT_Link): Removed
4285 (RE_Iface_Tag): Remmoved
4286 (RE_Ifaces_Table): Removed
4287 (RE_Interfaces_Array): Removed
4288 (RE_Interface_Data_Element): Removed
4289 (RE_Nb_Ifaces): Removed
4290 (RE_RC_Offset): Removed
4291 (RE_Static_Offset_To_Top): Removed
4293 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
4295 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
4296 Prim_Op_Count by Max_Predef_Prims.
4298 2007-08-14 Thomas Quinot <quinot@adacore.com>
4299 Vincent Celier <celier@adacore.com>
4301 * binde.adb (Elab_All_Links): Remove unnecessary call to
4302 Generic_Separately_Compiled (if a unit satisfies this predicate, there
4303 won't be an associated Afile).
4304 (Elab_All_Links): Fail if a referenced unit cannot be found
4307 Fix comments in bindgen regarding consistency checks done in Bcheck:
4308 the checks are made across units within a partition, not across several
4310 Fix generation of C binder file for VxWorks.
4312 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
4313 Generic_May_Lack_ALI, more descriptive of the current use of the
4314 predicate, and update documentation.
4316 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
4317 reorganization and documentation update for the case of predefined
4318 library generics (for which we do not reference an Afile).
4320 2007-08-14 Robert Dewar <dewar@adacore.com>
4322 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
4323 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
4324 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
4325 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
4326 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
4327 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
4328 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
4329 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
4330 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
4331 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
4332 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
4333 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
4334 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
4335 g-altcon.adb: Minor reformatting
4337 ada-tree.h: Delete empty line.
4339 ali.ads: Minor reformatting
4340 Clarification of comments.
4341 Minor spelling correction
4343 * exp_dbug.adb: Add Warnings Off to suppress new warning
4345 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
4348 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
4351 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
4353 * a-textio.ads: Reorder the standard input/output/error declarations
4356 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
4358 * par-ch2.adb: Recognize RM specially in errout
4359 Change 'R'M to RM in all error messages
4361 * scng.adb: Recognize RM specially in errout
4363 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
4364 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
4366 * s-direio.adb: Add missing routine header box.
4368 * sem_attr.ads: Add ??? comments
4370 * sem_eval.adb: Recognize RM specially in errout
4371 Change 'R'M to RM in all error messages
4373 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
4375 * s-tasinf.ads: Fix minor comment typo.
4377 * a-cihama.adb: Minor comment addition
4379 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
4382 * s-tasinf-tru64.ads: Fix minor comment typo.
4384 * itypes.ads: Comment update.
4386 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
4389 * argv.c: Added protection against null gnat_argv and gnat_envp.
4391 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
4392 warning message when Tolerate_Consistency_Errors is True.
4394 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
4395 Any_Id, as this subprogram is only applicable to *type* entities (it
4396 sets RM_Size). Instead initialize just Esize and Alignment.
4398 2007-08-14 Bob Duff <duff@adacore.com>
4400 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
4401 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
4402 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
4403 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
4404 a-coorse.ads (Next): Applied pragma Inline.
4405 Make all Containers packages Remote_Types (unless they are already
4407 (Previous): applied pragma Inline
4408 (Elements_Type): is now a record instead of an array
4410 2007-08-14 Thomas Quinot <quinot@adacore.com>
4412 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
4414 (Set_Item): When the new item is an element of the currently allocated
4415 table passed by reference, save a copy on the stack if we're going
4416 to reallocate. Also, in Table.Set_Item, make sure we test the proper
4417 variable to determine whether to call Set_Last.
4419 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
4420 symbols-vms.adb, symbols-processing-vms-alpha.adb,
4421 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
4422 some occurrences of the pattern
4424 T.Table (T.Last) := Value;
4425 with a cleaner call to
4428 2007-08-14 Ed Schonberg <schonberg@adacore.com>
4429 Gary Dismukes <dismukes@adacore.com>
4430 Thomas Quinot <quinot@adacore.com>
4432 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
4433 derived type with interface progenitors use the analyzed formal as the
4434 parent of the actual, to create renamings for all the inherited
4435 operations in Derive_Subprograms.
4436 (Collect_Previous_Instances): new procedure within of
4437 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
4438 unit being loaded, to ensure that the generation of global symbols is
4439 consistent in different compilation modes.
4440 (Is_Tagged_Ancestor): New function testing the ancestor relation that
4441 takes progenitor types into account.
4442 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
4443 traversing over the primitives of the formal and actual types to locate
4444 any abstract subprograms of the actual type that correspond to a
4445 nonabstract subprogram of the formal type's ancestor type(s), and issue
4446 an error if such is found.
4447 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
4448 Instantiate_Package_Body, Instantiate_Subprogram_Body):
4449 Remove bogus guard around calls to Inherit_Context.
4450 (Reset_Entity): If the entity is the selector of a selected component
4451 that denotes a named number, propagate constant-folding to the generic
4452 template only if the named number is global to the generic unit.
4453 (Set_Instance_Env): Only reset the compilation switches when compiling
4454 a predefined or internal unit.
4456 2007-08-14 Ed Schonberg <schonberg@adacore.com>
4458 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
4459 parameter to determine whether operation applies to the prefix.
4460 (Complete_Object_Operation): If actual has an access type and
4461 controlling formal is not an in_parameter, reject the actual if it is
4462 an access_to_constant type.
4463 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
4464 type, the candidate operations are found in the scope of declaration of
4465 the type, because the type has no primitive subprograms.
4466 (Analyze_Selected_Component): If prefix is class-wide, and root type is
4467 a private extension, only examine visible components before trying to
4468 analyze as a prefixed call.
4469 Change Entity_List to Type_To_Use, for better readability.
4470 (Has_Fixed_Op): Use base type when checking whether the type of an
4471 operator has a user-defined multiplication/division
4472 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
4473 user-defined operators are available for fixed-point types.
4475 2007-08-14 Thomas Quinot <quinot@adacore.com>
4476 Ed Schonberg <schonberg@adacore.com>
4478 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
4479 formal At_Any_Place indicating, when True, that we want to test for
4480 availability of the stream attribute at any place (as opposed to the
4481 current visibility context only).
4482 (Missing_Read_Write_Attributes): A stream attribute is missing for the
4483 purpose of enforcing E.2.2(8) only if it is not available at any place.
4484 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
4485 when checking the legality of an extension aggregate in a preelaborable
4486 package. Treat the literal null as a valid default expression in a
4487 component declaration for a type with preelaborable initialization.
4488 A limited interface is a legal progenitor for the designated type of a
4489 remote access to class-wide type.
4491 2007-08-14 Thomas Quinot <quinot@adacore.com>
4492 Ed Schonberg <schonberg@adacore.com>
4494 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
4495 reference): Use correct entity as denoted entity for the selector of
4497 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
4498 setting the Referenced_As_LHS flag for entities that are implicitly
4500 (Find_Type): If the type is an internally generated incomplete type,
4501 mark the full view as referenced, to prevent spurious warnings.
4502 (Find_Selected_Component, Has_Components): Handle properly non-limited
4503 views that are themselves incomplete types.
4504 Handle interfaces visible through limited-with clauses.
4505 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
4506 subprogram generic actual for which we have generated a renaming.
4507 Warn when the renaming introduces a homonym of
4508 the renamed entity, and the renamed entity is directly visible.
4510 2007-08-14 Ed Schonberg <schonberg@adacore.com>
4511 Hristian Kirtchev <kirtchev@adacore.com>
4513 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
4514 appear in the subtree to the current allocator if it is not a static
4516 (Resolve_Allocator): Perform cleanup if resolution has determined that
4517 the allocator is not a coextension.
4518 (Resolve): Skip an interpretation hidden by an abstract operator only
4519 when the type of the interpretation matches that of the context.
4520 (Resolve): When looping through all possible interpretations of a node,
4521 do not consider those that are hidden by abstract operators.
4522 (Resolve_Actuals): When verifying that an access to class-wide object
4523 is an actual for a controlling formal, ignore anonymous access to
4524 subprograms whose return type is an access to class_wide type.
4525 (Resolve_Slice): If the prefix of the slice is a selected component
4526 whose type depends on discriminants, build its actual subtype before
4527 applying range checks on the bounds of the slice.
4528 (Valid_Conversion): In an instance or inlined body, compare root types,
4529 to prevent anomalies between private and public views.
4530 (Resolve): Improve error message for ambiguous fixed multiplication
4531 expressions that involve universal_fixed multiplying operations.
4533 2007-08-14 Javier Miranda <miranda@adacore.com>
4534 Hristian Kirtchev <kirtchev@adacore.com>
4536 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
4537 location to allow the correct generation of errors in case of
4538 restrictions applied to the expanded code.
4539 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
4540 function if the condition does not reference them.
4541 (Expand_Entry_Body_Declarations): Mark the index constant as having a
4544 2007-08-14 Thomas Quinot <quinot@adacore.com>
4546 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
4547 typecode parameters for a union (in a variant record), remove
4548 extraneous layer of Any wrapping for member label.
4549 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
4550 elabration statements, register the package with the name server
4551 at the beginning, not at the end, of the elaboration statements so
4552 that they can create remote access to subprogram values that designate
4553 remote subprograms from the package.
4555 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
4557 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
4558 values to compute the number of seconds since the Unix Epoc in order to
4559 account for Daylight Savings Time. Perform special processing for dates
4560 that are earlier than the Unix Epoc to obtain a negative number.
4562 2007-08-14 Emmanuel Briot <briot@adacore.com>
4564 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
4567 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
4569 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
4570 binder-generated file is not in Ada.
4571 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
4572 recorded in the ALI file.
4573 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
4575 2007-08-14 Vincent Celier <celier@adacore.com>
4577 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
4578 (Output_Source): Do nothing if parameter is No_Sdep_Id
4580 * make.adb (Gnatmake): Do not rebuild an archive simply because a
4581 shared library it imports has a later time stamp.
4582 (Check): Resolve the symbolic links in the path name of the object
4584 Check that the ALI file is in the correct object directory
4585 Check if a file name does not correspond to the mapping of units
4587 (Display_Version): New procedure
4588 (Initialize): Process switches --version and --help
4589 Use type Path_Name_Type for path name
4591 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
4593 * impunit.adb: Re-organize System.Random_Numbers and
4594 GNAT.Random_Numbers and add to builds.
4596 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
4598 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
4600 * a-assert.ads, a-assert.adb: New files.
4602 2007-08-14 Gary Dismukes <dismukes@adacore.com>
4604 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
4605 if AAMP_On_Target is True, then the size of the type encompasses two
4606 addresses (a static link and a subprogram address), except in the case
4607 of library-level access types.
4609 2007-08-14 Vincent Celier <celier@adacore.com>
4611 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
4613 (Write_Eol_Keep_Blanks): New procedure to write a line, including
4614 possible trailing spaces.
4615 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
4617 2007-08-14 Javier Miranda <miranda@adacore.com>
4619 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
4620 null-excluding access types.
4622 2007-08-14 Javier Miranda <miranda@adacore.com>
4624 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
4625 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
4626 of private types add missing check on matching interfaces in the
4627 partial and full declarations.
4628 (Analyze_Protected_Type): Code cleanup.
4629 (Analyze_Task_Type): Code cleanup.
4631 2007-08-14 Javier Miranda <miranda@adacore.com>
4633 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
4634 generated interface thunk.
4636 2007-08-14 Ed Schonberg <schonberg@adacore.com>
4638 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
4639 obsolescent warning on application of 'Class to an incomplete type.
4641 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
4642 prevent obsolescent warning on application of 'Class to an incomplete
4645 2007-08-14 Pascal Obry <obry@adacore.com>
4647 * s-fileio.adb (Is_Open): Add check for usability of the underlying
4650 2007-08-14 Cyrille Comar <comar@adacore.com>
4652 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
4653 since it is potentially used in cases implying double finalization of
4656 2007-08-14 Jose Ruiz <ruiz@adacore.com>
4658 * s-tasini.adb (Get_Stack_Info): Move this function to
4659 System.Soft_Links.Tasking because it is common to the full and the
4660 restricted run times.
4661 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
4662 in SSL.Tasking.Init_Tasking_Soft_Links.
4664 * s-solita.adb (Get_Stack_Info): Function moved from
4665 System.Tasking.Initialization because it is common to the full and the
4666 restricted run times.
4667 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
4669 2007-08-14 Arnaud Charlet <charlet@adacore.com>
4671 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
4672 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
4673 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
4676 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
4679 2007-08-14 Gary Dismukes <dismukes@adacore.com>
4681 * s-veboop.adb (SU): New named number initialized to
4682 System.Storage_Unit.
4683 (True_Val): The initialization expression is revised to use SU (=
4684 Storage_Unit) rather than assuming 8 for the component size of an
4685 unpacked Boolean array.
4687 2007-08-14 Tristan Gingold <gingold@adacore.com>
4689 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
4691 * tb-ivms.c: New file.
4693 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
4695 2007-08-14 Geert Bosch <bosch@adacore.com>
4697 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
4698 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
4699 Add required linker pragmas for automatically linking with the gnalasup
4700 linear algebra support library, and the systems math library.
4701 Rename cdot to cdotu and zdot to zdotu.
4702 Update header comment to describe purpose of package.
4704 2007-08-14 Thomas Quinot <quinot@adacore.com>
4706 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
4707 an explicitly specified Associated_Final_Chain, use that list.
4708 (Expand_N_Package_Body): Build dispatch tables of library level tagged
4710 (Expand_N_Package_Declaration): Build dispatch tables of library level
4711 tagged types. Minor code cleanup.
4713 2007-08-14 Vincent Celier <celier@adacore.com>
4715 * gnatchop.adb (Terminate_Program): Remove exception and use
4716 Types.Terminate_Program instead.
4718 * osint.ads, osint.adb (Current_Exit_Status): New global variable
4719 (Find_Program_Name): Added protection against empty name.
4720 (OS_Exit_Through_Exception): New procedure
4722 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
4723 (OS_Exit_Default): New procedure that contains the previous
4724 implementation of procedure OS_Exit.
4725 (Final_Value): Remove obsolete Interix stuff.
4727 2007-08-14 Thomas Quinot <quinot@adacore.com>
4729 * g-socket.ads: Reorganize example code so that it also works on
4732 2007-08-14 Tristan Gingold <gingold@adacore.com>
4734 * g-trasym.ads: AIX now supports symbolic backtraces.
4736 2007-08-14 Ed Schonberg <schonberg@adacore.com>
4738 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
4739 units being loaded to detect circularities. A circularity may be
4740 present even if the current chain of pending units to load starts from
4741 a limited_with_clause.
4743 * lib-load.ads: Change profile of Load_Unit to use a with_clause
4744 rather than a boolean flag, in order to detect circularities in
4747 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
4748 than propagating the From_Limited_With flag, in order to handle
4749 properly circularities involving with_clauses.
4751 2007-08-14 Nicolas Setton <setton@adacore.com>
4753 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
4756 2007-08-14 Arnaud Charlet <charlet@adacore.com>
4758 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
4759 to build for libgnala.
4760 libgnat: Add rules to build libgnala.a
4761 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
4762 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
4763 Add s-osinte-vxworks-kernel.adb to the target pairs of the
4764 kernel run-time lib for VxWorks 6, which would provide a different
4765 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
4766 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
4767 running ZCX by default.
4768 Add g-sttsne-locking to LynxOS version.
4769 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
4770 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
4772 * system-darwin-x86.ads: New file.
4774 * Make-lang.in: Delete files before copying onto them, so if they are
4775 read-only, the copy won't fail.
4778 2007-08-14 Pascal Obry <obry@adacore.com>
4780 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
4783 2007-08-14 Vincent Celier <celier@adacore.com>
4785 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
4786 (Gcc): Initialize Gcc_Name at the first call
4788 2007-08-14 Ed Schonberg <schonberg@adacore.com>
4790 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
4791 with_clauses of the enclosing unit when analyzing the package
4792 specification of a nested instance.
4794 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
4796 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
4797 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
4798 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
4799 layout of N_Allocator.
4801 2007-08-14 Thomas Quinot <quinot@adacore.com>
4803 * rtsfind.adb (Check_RPC): Add PCS version check.
4805 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
4806 (Gnat_Free_Software): New function.
4808 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
4809 the PCS_Version value from s-parint, used to check that it is consistent
4810 with what exp_dist expects.
4812 * s-parint.ads (PCS_Version): New entity for checking consistency
4813 between exp_dist and PCS.
4815 * gen-soccon.c: (SO_REUSEPORT): New constant.
4817 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
4819 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
4820 variable Sub_Second to Duration in order to accomodate a larger range
4821 of arithmetic operations.
4823 2007-08-14 Bob Duff <duff@adacore.com>
4825 * g-sttsne-locking.ads: Move comments from spec to body.
4826 * g-sttsne-locking.adb: Move comments from spec to body.
4827 * g-sttsne-vxworks.ads: Removed.
4828 * g-sttsne-vxworks.adb: Removed.
4830 2007-08-11 Ian Lance Taylor <iant@google.com>
4832 * misc.c (gnat_get_alias_set): Change return type to
4835 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4837 * decl.c, utils2.c: Fix whitespace in last change.
4839 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4841 * decl.c (compare_field_bitpos): Constify.
4842 * utils2.c (compare_elmt_bitpos): Likewise.
4844 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
4846 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
4847 anonymous access type.
4848 (pthread_sigmask): Now take an access sigset_t.
4850 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
4852 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
4854 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
4856 PR tree-optimization/25737
4857 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
4859 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
4861 * trans.c (Attribute_to_gnu): When subtracting an
4862 offset from a pointer, use POINTER_PLUS_EXPR with
4863 NEGATE_EXPR instead of MINUS_EXPR.
4864 (gnat_to_gnu): Likewise.
4865 * utils.c (convert): When converting between
4866 thin pointers, use POINTER_PLUS_EXPR and sizetype
4868 * utils2.c (known_alignment): POINTER_PLUS_EXPR
4869 have the same semantics as PLUS_EXPR for alignment.
4870 (build_binary_op): Add support for the semantics of
4871 POINTER_PLUS_EXPR's operands.
4872 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
4874 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
4876 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
4877 of get_signed_or_unsigned_type.
4878 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
4880 2007-06-11 Bob Duff <duff@adacore.com>
4881 Thomas Quinot <quinot@adacore.com>
4883 * g-stsifd-sockets.adb (Create): Work around strange behavior of
4884 'bind' on windows that causes 'connect' to fail intermittently, by
4885 retrying the 'bind'.
4886 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
4888 2007-06-10 Duncan Sands <baldrick@free.fr>
4890 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
4891 than to void, for the fields when making a new fat pointer type.
4892 (gnat_substitute_in_type): Now substitute_in_type.
4893 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
4894 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
4895 * utils.c (update_pointer_to): Update fat pointers by updating the
4896 dummy node pointers used for the fields.
4898 2007-06-06 Thomas Quinot <quinot@adacore.com>
4899 Bob Duff <duff@adacore.com>
4901 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
4902 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
4903 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
4904 constant Thread_Blocking_IO, always True by default, set False
4905 on a per-runtime basis.
4906 (Need_Netdb_Buffer): New constant.
4908 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
4909 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
4912 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
4913 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
4914 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
4915 child package Task_Safe_NetDB
4916 (Host_Error_Messages): Add stub body.
4917 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
4919 * g-soccon-mingw.ads: Add Windows-specific constants.
4920 (Need_Netdb_Buffer): New constant.
4921 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
4922 wrapper and import inet_addr(3) from the standard sockets library
4924 (In_Addr): Add alignment clause.
4925 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
4927 2007-06-06 Robert Dewar <dewar@adacore.com>
4929 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
4930 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
4931 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
4932 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
4933 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
4934 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
4935 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
4936 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
4937 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
4938 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
4939 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
4940 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
4941 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
4942 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
4943 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
4944 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
4945 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
4946 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
4947 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
4948 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
4949 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
4950 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
4951 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
4952 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
4953 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
4954 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
4955 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
4956 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
4957 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
4958 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
4959 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
4960 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
4961 Unchecked_* by Ada.Unchecked_*
4963 2007-06-06 Robert Dewar <dewar@adacore.com>
4965 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
4966 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
4967 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
4968 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
4969 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
4970 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
4972 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
4973 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
4974 s-tasloc.adb, s-tasloc.ads: New files.
4976 2007-06-06 Bob Duff <duff@adacore.com>
4979 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
4980 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
4981 (Send_Signal, Close): Raise Invalid_Process if the process id is
4983 (Pattern_Matcher_Access): Is now a general access type to be able to
4986 2007-06-06 Thomas Quinot <quinot@adacore.com>
4987 Arnaud Charlet <charlet@adacore.com>
4989 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
4990 (SIGEMT is now used instead of SIGTERM on AIX).
4992 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
4993 (Time_Slice_Supported): Set to True.
4994 Use SIGEMT instead of SIGTERM as SIGADAABORT.
4996 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
4998 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
4999 (Time, Time)): Use To_Relative_Time rather than manual calculation to
5000 express the bounds of Duration as Time. Raise Time_Error when the
5001 result is greater or equal to the higher bound of Duration (on the
5003 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
5005 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
5007 ("-" (Time, Time)): Reorder code.
5008 (All_Leap_Seconds): Removed.
5009 (Arithmetic_Operations.Add): Remove sign related kludge.
5010 (Arithmetic_Operations.Difference): Control the leaps seconds processing
5011 with flag Leap_Support.
5012 (Arithmetic_Operations.Subtract): Remove sign related kludge.
5013 (Check_Within_Time_Bounds): New procedure.
5014 (Clock): Control the leap seconds processing with flag Leap_Support.
5015 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
5016 (Formatting_Operations.Split): Control the leap seconds processing with
5018 (Formatting_Operations.Time_Of): Control the leaps seconds processing
5019 with flag Leap_Support. Adjust the year, month and day (if applicable)
5020 when the value of day seconds designates a new day.
5021 (Split): Use parameter associations for better readability. Integrate
5023 (Time_Of): Use parameter associations for better readability. Integrate
5026 * a-calfor.adb (Split): Use parameter associations for better
5027 readability. Integrate flag Is_Ada_05.
5028 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
5029 better readability. Integrate flag Is_Ada_05.
5031 2007-06-06 Arnaud Charlet <charlet@adacore.com>
5033 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
5034 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
5035 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
5036 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
5037 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
5038 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
5039 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
5040 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
5041 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
5042 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
5043 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
5044 time when entering this routine to detect a backward clock setting
5045 (manual setting or DST adjustment), to avoid waiting for a longer delay
5047 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
5048 Remove handling of deferred priority change, and replace by setting the
5049 task priority directly, as required by AI-188.
5051 (Max_Task_Image_Length): New constant.
5052 Replace Warnings (Off) by Unreferenced pragma, cleaner.
5053 (Dynamic_Priority_Support): Removed, no longer needed.
5054 (Poll_Base_Priority_Change): Ditto.
5055 (Set_Ceiling): Add this procedure to change the ceiling priority
5056 associated to a lock. This is a dummy implementation because dynamic
5057 priority ceilings are not supported by the underlying system.
5059 * a-dynpri.adb (Set_Priority): Take into account case where Target is
5060 accepting a RV with its priority boosted.
5061 Remove handling of deferred priority change, and replace by setting the
5062 task priority directly, as required by AI-188.
5064 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
5066 Remove handling of deferred priority change, and replace by setting the
5067 task priority directly, as required by AI-188.
5068 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
5071 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
5072 (Poll_Base_Priority_Change): Removed.
5073 Code clean up: use SSL.Current_Target_Exception.
5075 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
5076 to run as this is a potentially dispatching point.
5077 (Call_Synchronous): Use Local_Defer_Abort.
5078 (Callable): Relax assertion.
5079 (Selective_Wait): Relax assertion in case abort is not allowed.
5080 Remove handling of deferred priority change, and replace by setting the
5081 task priority directly, as required by AI-188.
5083 * s-tasuti.adb (Make_Passive): Adjust assertions.
5084 Remove handling of deferred priority change, and replace by setting the
5085 task priority directly, as required by AI-188.
5087 2007-06-06 Arnaud Charlet <charlet@adacore.com>
5089 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
5090 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
5091 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
5092 system-vxworks-mips.ads, system-vxworks-alpha.ads,
5093 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
5094 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
5095 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
5096 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
5097 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
5098 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
5099 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
5100 This patch changes the largest non-binary modulus from 2**31-1 to
5102 (Compiler_System_Version): Removed, no longer used.
5103 Clean up system files by removing flags only used on a single target.
5104 Also remove obsolete flags, only used during bootstrap from system.ads
5105 (Address): Add a pragma Preelaborable_Initialization.
5107 * system-aix.ads: Ditto.
5108 (GCC_ZCX_Support): Set to true.
5109 Update priority range on AIX and map Ada priorities to target
5110 priorities appropriately for different scheduling policies.
5112 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
5114 2007-06-06 Vincent Celier <celier@adacore.com>
5116 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
5117 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
5119 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
5120 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
5121 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
5122 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
5123 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
5124 MLib.Tgt, containing the default versions of the exported subprograms.
5125 For each platform, create a specific version of the body of new child
5126 package MLib.Tgt.Specific that contains only the body of subprograms
5127 that are different from the default.
5128 (Archive_Builder_Append_Options): New function.
5130 2007-06-06 Matthew Gingell <gingell@adacore.com>
5132 * s-osinte-aix.adb: Map Ada priorities to target priorities
5133 appropriately for different scheduling policies.
5135 2007-06-06 Arnaud Charlet <charlet@adacore.com>
5137 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
5139 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
5140 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
5142 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
5144 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
5145 Noop on VMS, added for interface commonality.
5147 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
5148 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5149 Olivier Hainque <hainque@adacore.com>
5151 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
5152 renamed expression of a full renaming at toplevel.
5153 (gnat_to_gnu_entity, case object): If not defining, do not look inside
5154 the values the constant is initialized to if it is an N_Allocator.
5155 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
5156 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
5157 (make_aligning_type): Accept an extra ROOM argument for storage to be
5158 made available before the aligned field, and an extra BASE_ALIGN
5159 argument for callers to pass the alignment guaranteed to be honored for
5160 the whole aligning object. Avoid call to finish_record_type, which only
5161 interferes with the sizes we want to set.
5162 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
5163 make_aligning_type for super-aligned objects on stack.
5164 (components_to_record): Pass the adjusted size of the type when creating
5165 fields in the qualified union for the variant part.
5166 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
5167 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
5169 (maybe_pad_type): Set TYPE_USER_ALIGN.
5170 (make_aligning_type): Likewise.
5171 ALIGN argument is unsigned int.
5172 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
5173 (gnat_to_gnu_param): Likewise, for parameters.
5174 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
5175 if it is constant and stems from a function call.
5176 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
5177 of the record is specified. Adjust accordingly.
5178 (adjust_packed): New static function.
5179 (gnat_to_gnu_field): Use it to adjust the packedness setting.
5180 (components_to_record): Likewise.
5181 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
5182 side-effects if the object is deemed constant.
5183 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
5184 type instead of merely finalizing it. Tidy.
5185 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
5186 <E_Access_Type>: Likewise.
5187 (defer_debug_incomplete_list): Rename to defer_finalize_list.
5188 (defer_debug_level): Delete.
5189 (gnat_to_gnu_entity) <debug_deferred>: Likewise
5190 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
5192 <E_Record_Type>: Do not explicitly defer finalizing the type.
5193 Adjust for write_record_type_debug_info renaming.
5194 <E_Subprogram_Type>: Likewise.
5195 Finalize deferred types right after deferred incomplete types are
5197 (rest_of_type_decl_compilation): New global function.
5198 (components_to_record): Rename defer_debug parameter to do_not_finalize.
5199 (components_to_record): Propagate the packedness to the fields of the
5200 qualified union type if there is a variant part.
5201 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
5202 instead of inline code to adjust the XUT field offsets.
5203 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
5204 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
5205 and write the debug info if the type derives from a discriminated one.
5206 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
5207 <E_Array_Subtype>: Likewise.
5208 <E_String_Literal_Subtype>: Likewise.
5209 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
5210 an alignment clause.
5211 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
5212 before giving warning.
5213 (prepend_one_attribute_to): New function, helper to prepend an attribute
5214 to an attribute list.
5215 (gnat_to_gnu_entity) <E_Procedure>: Use it.
5216 (prepend_attributes): Likewise.
5217 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
5218 <E_Array_Type>: Declare the padding type for the element type, if any.
5219 <E_Array_Subtype>: Likewise.
5220 (defer_limited_with): New variable.
5221 (Gigi_Equivalent_Type): New function.
5222 (gnat_to_gnu_entity): Use it at start and use result throughout.
5223 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
5224 Gigi_Equivalent_Type, support Limited_With, allow two levels of
5225 indirection, precompute if unconstrained array to simplify logic, and
5226 use defer_limited_with to defer elaboration of some types from limited
5228 (finalize_from_with_types): New function.
5230 2007-06-06 Gary Dismukes <dismukes@adacore.com>
5231 Eric Botcazou <ebotcazou@adacore.com>
5232 Tristan Gingold <gingold@adacore.com>
5233 Olivier Hainque <hainque@adacore.com>
5235 * trans.c (Identifier_to_gnu): Change test for deferred constant by
5236 adding guard that the entity is an E_Constant before testing presence
5237 of Full_view (and remove unnecessary test that entity is not a type).
5238 For a CONST_DECL used by reference, manually retrieve
5239 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
5240 (struct language_function): Move from utils.c to here.
5241 (struct parm_attr): New structure.
5242 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
5243 (f_parm_attr_cache): New macro.
5244 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
5245 expressions for the 'First, 'Last and 'Length attributes of the
5246 unconstrained array IN parameters.
5247 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
5248 Allocate the information structure for the function earlier, as well
5249 as the language-specific part.
5250 If the parameter attributes cache has been populated, evaluate the
5251 cached expressions on entry.
5252 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
5253 N_Procedure_Call_Statement and N_Indexed_Component.
5254 (Pragma_to_gnu): Translate inspection_point to an asm statement
5255 containaing a comment and a reference to the object (either its address
5256 for BLKmode or its value).
5257 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
5258 to go to DECL_INITIAL. Together with the size constraint relaxation
5259 in create_var_decl, enlarges the set of situations in which an
5260 identifier may be used as an initializer without implying elaboration
5262 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
5263 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
5265 (maybe_stabilize_reference): Remove lvalues_only parameter.
5266 (gnat_stabilize_reference): Adjust for above change.
5267 (gnat_to_gnu): Do not set location information on the result
5268 if it is a reference.
5269 (add_cleanup): Add gnat_node parameter and set the location of the
5271 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
5272 (Exception_Handler_to_gnu_zcx): Likewise.
5273 (gigi): Remove the cgraph node if the elaboration procedure is empty.
5274 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
5275 the former right after the latter.
5276 (start_stmt_group): Make global.
5277 (end_stmt_group): Likewise.
5278 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
5280 (gnu_program_error_label_stack): Likewise.
5281 (gigi): Initialize them.
5282 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
5283 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
5285 (push_exception_label_stack): New function.
5286 (takes_address): New function.
5288 * utils.c (struct language_function): Move to trans.c from here.
5289 (unchecked_convert): Do not wrap up integer constants in
5291 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
5292 the latter for aggregate types, unexpected by later passes, and relax an
5293 arbitrary size constraint on the former.
5294 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
5295 to compare the sizes.
5296 (convert_vms_descriptor): When converting to a fat pointer type, be
5297 prepared for a S descriptor at runtime in spite of a SB specification.
5298 (shift_unc_components_for_thin_pointers): New function.
5299 (write_record_type_debug_info): For variable-sized fields, cap the
5300 alignment of the pointer to the computed alignment.
5301 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
5302 If REP_LEVEL is 2, do not compute the sizes.
5303 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
5304 (build_unc_object_type): Likewise.
5305 (declare_debug_type): New function.
5307 * ada-tree.def: USE_STMT: removed (not emitted anymore).
5309 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
5310 no statement is expandable anymore.
5311 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
5312 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
5313 when the user requested it explicitely.
5314 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
5316 (get_alias_set): Return alias set 0 for a type if
5317 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
5319 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
5320 (DECL_FUNCTION_STUB): New accessor macro.
5321 (SET_DECL_FUNCTION_STUB): New setter macro.
5323 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
5325 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
5328 2007-06-06 Jose Ruiz <ruiz@adacore.com>
5330 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
5331 Rename to Abort_Task_Interrupt to be able to keep the same interface
5332 as the rest of the targets.
5334 * s-osinte-vxworks.ads s-osinte-vxworks.adb
5335 (To_VxWorks_Priority): Remove explicit "in" mode indicator
5337 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
5340 2007-06-06 Robert Dewar <dewar@adacore.com>
5342 * a-chahan.ads: Remove obsolescent pragmas
5344 * a-chlat1.ads: Minor reformatting
5346 2007-06-06 Robert Dewar <dewar@adacore.com>
5348 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
5351 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
5354 * errout.ads (Finalize): Changed interface
5355 (Output_Messages): New procedure
5356 (Compilation_Errors): New Interface
5358 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
5359 Finalize/Output_Messages interface for Errout
5360 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
5363 2007-06-06 Thomas Quinot <quinot@adacore.com>
5364 Olivier Hainque <hainque@adacore.com>
5365 Robert Dewar <dewar@adacore.com>
5367 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
5369 (Raise_Current_Excep): Call Debug_Raise_Exception just before
5370 propagation starts, to let debuggers know about the event in a reliable
5372 (Local_Raise): Moved to System.Exceptions
5373 More convenient to have this as a separate unit
5375 * s-except.adb, s-except.ads: New files.
5377 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
5378 Debug_Unhandled_Exception in System.Exceptions where it belongs
5379 together with a couple of other debug helpers.
5380 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
5381 the former Unhandled_Exception.
5383 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
5384 (Warn_No_Exception_Propagation): New procedure
5385 (Warn_If_No_Propagation): Rewritten for new warning generation
5386 (Expand_Exception_Handlers): New warning generation
5387 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
5388 (Add_Exception_Label): Use Special_Exception_Package_Used for test
5389 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
5390 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
5391 even if restriction is set (makes life easier in Check_Returns)
5392 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
5393 checking exception identities.
5394 (Expand_Local_Exception_Handlers): Do not optimize when all others case
5395 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
5396 block for handler (used by Check_Returns)
5397 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
5398 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
5399 remove all exception handlers when optimizing local raise statements.
5400 (Find_Local_Handler): Use Get_Renamed_Entity
5401 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
5402 marked analyzed after expanding exception handlers, do not generate
5403 redundant cleanup actions, because they have been constructed already.
5405 2007-06-06 Thomas Quinot <quinot@adacore.com>
5407 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
5408 presence of this categorization pragma is mandated by the language.
5409 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
5412 2007-06-06 Vincent Celier <celier@adacore.com>
5413 Robert Dewar <dewar@adacore.com>
5415 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
5416 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
5417 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
5418 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
5419 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
5420 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
5421 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
5422 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
5423 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
5424 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
5425 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
5427 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
5428 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
5429 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
5430 Use variables of types File_Name_Type and Unit_Name_Type in error
5432 (Get_Name): Add parameter Ignore_Special, and set it reading file name
5433 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
5435 Define flags Flag217-Flag230 with associated subprograms
5436 (Flag_Word5): New record type.
5437 (Flag_Word5_Ptr): New access type.
5438 (To_Flag_Word5): New unchecked conversion.
5439 (To_Flag_Word5_Ptr): Likewise.
5440 (Flag216): New function.
5441 (Set_Flag216): New procedure.
5443 2007-06-06 Arnaud Charlet <charlet@adacore.com>
5445 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
5448 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
5450 2007-06-06 Javier Miranda <miranda@adacore.com>
5452 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
5454 (Object_Specific_Data_Array): This is now internal to the package.
5455 (Object_Specific_Data): This is now internal to the package.
5456 (Select_Specific_Data_Element): This is now internal to the package.
5457 (Select_Specific_Data_Array): This is now internal to the package.
5458 (Select_Specific_Data): This is now internal to the package.
5459 (Offset_To_Top_Function_Ptr): This is now public.
5460 (To_Offset_To_Top_Function_Ptr): Removed.
5461 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
5462 local to subprogram Offset_To_Top.
5463 (Predefined_DT): Removed.
5464 (Typeinfo_Ptr): Removed.
5465 (OSD): This function is now internal to this package.
5466 (SSD): This function is now internal to this package.
5467 (DT): New function that displaces the pointer to the table of primitives
5468 to get access to the enclosing wrapper record.
5469 (IW_Membership): Code cleanup.
5470 (Offset_To_Top): Code cleanup.
5471 (Predefined_DT): Removed.
5472 (Register_Interface_Tag): Removed.
5473 (Set_Interface_Table): Removed.
5474 (Set_Offset_Index): Removed.
5475 (Set_Offset_To_Top): Code cleanup.
5477 (Set_Signature): Removed.
5479 (Set_Tagged_Kind): Removed.
5480 (Typeinfo_Ptr): Removed.
5482 (Displace): Add missing check on null actual.
5484 * exp_disp.ads, exp_disp.adb
5485 (Select_Expansion_Utilities): Removed.
5486 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
5487 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
5488 the interface requires a new parameter.
5489 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
5490 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
5491 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
5492 Done to remove package Select_Expansion_Utilities.
5493 (Make_DT): New implementation for statically allocated dispatch tables.
5494 (Make_Secondary_DT): Moved to the scope of Make_DT.
5495 (Register_Primitive): Code cleanup plus incoporate the use of the new
5496 function DT_Address_Attribute.
5497 (Expand_Interface_Thunk): The profile of this subprogram has been
5498 changed to return the Thunk_Id and the corresponding code.
5499 (Fill_DT_Entry): Removed. Its functionality is now provided by
5500 subprogram Register_Primitive.
5501 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
5502 subprogram Register_Primitive.
5503 (Register_Primitive): New subprogram that incorporates the previous
5504 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
5505 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
5506 was only required to call Make_DT_Access_Action, which is now removed.
5507 (Ada_Actions): Removed
5508 (Action_Is_Proc): Removed
5509 (Action_Nb_Arg): Removed
5510 Replace all the calls to Make_DT_Access_Action by direct calls to
5511 Make_Procedure_Call_Statement or Make_Function_Call.
5512 (Set_DTC_Entity_Value): New subprogram.
5513 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
5514 (Expand_Interface_Thunk): Add missing support for primitives that are
5515 functions with a controlling result (case in which there is no need
5516 to generate the thunk).
5518 * exp_atag.ads, exp_atag.adb
5519 (Build_DT): New subprogram that displaces the pointer to reference the
5520 base of the wrapper record.
5521 (Build_Typeinfo_Offset): Removed.
5522 (RTE_Tag_Node): Removed.
5523 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
5524 (Build_Get_RC_Offset): Removed.
5525 (Build_Inherit_Predefined_Prims): Removed.
5526 (Build_Inherit_TSD: Removed.
5527 (Build_New_TSD): Removed.
5528 (Build_Set_External_Tag): Removed.
5529 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
5530 (Build_Set_Prim_Op_Address): Add documentation.
5531 (Build_Set_TSD): Removed.
5533 * rtsfind.ads, rtsfind.adb
5534 (Load_Fail): If load fails and we are not in configurable run-time
5535 mode, then raise Unrecoverable_Error.
5536 (Text_IO_Kludge): Generate an error message if a run-time library is
5537 not available in a given run-time (ie. zfp run-time).
5538 (RTE_Record_Component): Add code to check that the component we search
5539 for is not found in two records in the given run-time package.
5540 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
5541 (RE_DT_Predef_Prims_Offset): New entity
5542 (RE_Static_Offset_To_Top): New entity
5543 (RE_HT_Link): New entity.
5544 (System_Address_Image): Addition of this run-time package.
5545 (RE_Address_Image): New entity.
5546 (RE_Abstract_Interface): Removed.
5547 (RE_Default_Prim_Op_Count): Removed.
5548 (RE_DT_Entry_Size): Removed.
5549 (RE_DT_Min_Prologue_Size): Removed.
5550 (RE_DT_Prologue_Size): Removed.
5551 (RE_Ifaces_Table_Ptr): Removed.
5552 (RE_Interface_Data_Ptr): Removed.
5553 (RE_Type_Specific_Data): Removed.
5554 (RE_Primary_DT): Removed.
5555 (RE_Register_Interface_Tag): Removed.
5556 (RE_Set_Offset_Index): Removed.
5557 (RE_Set_OSD): Removed.
5558 (RE_Set_SSD): Removed.
5559 (RE_Set_Signature): Removed.
5560 (RE_Set_Tagged_Kind): Removed.
5561 (RE_Address_Array): New entity.
5562 (RE_DT): New entity.
5563 (RE_Iface_Tag): New entity.
5564 (RE_Interfaces_Table): New entity.
5565 (RE_No_Dispatch_Table): New entity.
5566 (RE_NDT_Prims_Ptr): New entity.
5567 (RE_NDT_TSD): New entity.
5568 (RE_Num_Prims): New entity.
5569 (RE_Offset_To_Top_Function_Ptr): New entity.
5570 (RE_OSD_Table): New entity.
5571 (RE_OSD_Num_Prims): New entity.
5572 (RE_Predef_Prims): New entity
5573 (RE_Predef_Prims_Table_Ptr): New entity.
5574 (RE_Primary_DT): New entity.
5575 (RE_Signature): New entity.
5576 (RE_SSD): New entity.
5577 (RE_TSD): New entity.
5578 (RE_Type_Specific_Data): New entity.
5579 (RE_Tag_Kind): New entity.
5581 2007-06-06 Thomas Quinot <quinot@adacore.com>
5583 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
5584 C imported variable.
5585 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
5588 2007-06-06 Robert Dewar <dewar@adacore.com>
5590 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
5593 2007-06-06 Vincent Celier <celier@adacore.com>
5595 * a-tifiio.adb (Put, internal): For negative numbers, check that there
5596 is room for at least one digit and the minus sign.
5597 (Put.Put_Character): Never put a character outside of the range of
5600 2007-06-06 Olivier Hainque <hainque@adacore.com>
5601 Eric Botcazou <ebotcazou@adacore.com>
5603 * utils2.c (build_allocator): Provide the extra arguments to
5604 make_aligning_type for super-aligned objects allocated from the default
5605 pool. Leave enough room for a pointer before the aligning field, and
5606 store the system's allocator return value there.
5607 (build_call_alloc_dealloc): When releasing a super-aligned object,
5608 retrieve the system's allocator return value from where build_allocator
5609 has stored it, just ahead of the adjusted address we are passed.
5610 (build_call_raise): Handle properly the generation of line numbers when
5611 the node is marked No_Location.
5612 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
5613 by using DECL_UID on ties.
5614 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
5616 (build_call_raise): Handle converting exception into goto; support new
5618 (build_component_ref): Add new arg to build_call_raise.
5620 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
5622 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
5623 "." in the case of nnn.xxx when nnn terminates with an underscore.
5624 Parse the remaining "#" or ":" in the case of nnn#.xxx#
5626 2007-06-06 Robert Dewar <dewar@adacore.com>
5628 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
5630 2007-06-06 Arnaud Charlet <charlet@adacore.com>
5631 Vincent Celier <celier@adacore.com>
5632 Robert Dewar <dewar@adacore.com>
5634 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
5636 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
5637 ((destructor)) for adafinal, even when switch -a is used.
5638 Do not issue pragma Linker_Destructor for adafinal when switch -a is
5640 (Gen_Object_Files_Options): Add formatting of Linker Options, when
5641 Output_Linker_Option_List is set. Suppress this formatting when
5642 Zero_Formatting is set.
5643 Add case for CLI_Target.
5644 (System_Restrictions_Used): New flag, used to avoid generating with of
5645 System_Restrictions and initialization of the data unless there is
5646 some use of System.Restrictions in the partition.
5647 (Check_System_Restrictions_Used): New procedure
5649 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
5650 since we only with this unit in the binder file if it is used elsewhere
5653 2007-06-06 Vincent Celier <celier@adacore.com>
5655 * bindusg.adb: Add line for @<response file>
5656 Add lines for new switches -R and -Z
5658 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
5659 hierarchy in the list of files of the closure when -R is used
5660 (Gnatbind): Accept arguments starting with '@' to indicate response
5661 files and take the arguments from the response files.
5662 If List_Closure is set, display the referenced files
5664 2007-06-06 Javier Miranda <miranda@adacore.com>
5665 Robert Dewar <dewar@adacore.com>
5666 Ed Schonberg <schonberg@adacore.com>
5668 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
5669 which the address-clause is applied to in-mode actuals (allowed by
5671 (Apply_Discriminant_Check): Do not generate a check if the type is
5672 constrained by a current instance.
5673 (Activate_Division_Check): New procedure
5674 (Activate_Overflow_Check): New procedure
5675 (Activate_Range_Check): New procedure
5676 Call these new Activate procedures instead of setting flags directly
5677 (Apply_Array_Size_Check): Removed, no longer needed.
5678 Code clean up: remove obsolete code related to GCC 2.
5679 (Get_E_Length): Protect against bomb in case scope is standard
5680 (Selected_Range_Checks): If the node to be checked is a conversion to
5681 an unconstrained array type, and the expression is a slice, use the
5682 bounds of the slice to construct the required constraint checks.
5683 Improve NOT NULL error messages
5684 (Apply_Constraint_Check): If the context is a null-excluding access
5685 type, diagnose properly the literal null.
5687 2007-06-06 Pascal Obry <obry@adacore.com>
5689 * clean.adb (Clean_Archive): Use untouched casing for the archive name
5690 and the corresponding .deps file.
5691 (Clean_Interface_Copy_Directory): Use untouched casing for the library
5692 src directory. Minor code-clean-up. Use untouched casing for files
5693 read into the library src dir.
5694 (Clean_Library_Directory): Idem.
5695 (Parse_Cmd_Line): Accept new switch -aP
5697 2007-06-06 Javier Miranda <miranda@adacore.com>
5698 Ed Schonberg <schonberg@adacore.com>
5699 Robert Dewar <dewar@adacore.com>
5700 Eric Botcazou <ebotcazou@adacore.com>
5701 Arnaud Charlet <charlet@adacore.com>
5703 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
5704 applicable to types that have the With_Type flag set. Returns the
5705 non-limited view of the type, if available, otherwise the type itself.
5706 For class-wide types, there is no direct link in the tree, so we have
5707 to retrieve the class-wide type of the non-limited view of the Etype.
5708 New attributes Static_Initialization and Static_Elaboration_Desired.
5709 Remove the pragma Thread_Body, and the associated flag
5710 Is_Thread_Body in entities, and all related code.
5711 (Suppress_Value_Tracking_On_Call): New flag
5712 E_Exception has Esize and Alignment fields
5713 (Universal_Aliasing): New function.
5714 (Set_Universal_Aliasing): New procedure.
5715 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
5716 (Check_Nested_Access): New procedure.
5717 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
5718 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
5719 (Related_Interface): New attribute. Present in dispatch table pointer
5720 components of records. Set to point to the entity of the corresponding
5722 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
5723 (Original_Access_Type): Remove, not needed.
5724 (Root_Type): Handle properly subtypes of class-wide-types.
5727 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
5728 class-wide types visible through limited-with clauses.
5729 (Try_Primitive_Operation): When examining all primitive operations of a
5730 tagged type, do not consider subprograms labeled as hidden unless they
5731 belong to a private generic type with a tagged parent.
5732 (Try_Object_Operation): Extensive rewriting, to handle properly various
5733 overloading cases, when several ancestors may have class-wide operations
5734 that are possible candidates, and when the overloaded functions return
5735 array types and have defaulted parameters so that the call may be
5736 interpreted as an indexing.
5737 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
5738 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
5739 successive actuals before analyzing the call itself.
5740 (Try_Primitive_Operation): A primitive operation is compatible with the
5741 prefix if the prefix has a synchronized type and the type of the formal
5742 is its corresponding record, as can be the case when the primitive
5743 operation is declared outside of the body of the type.
5744 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
5745 perform homonym traversal, looking for class-wide operation matches
5746 (formerly done in statements of Try_Class_Wide_Operation). Matches on
5747 access parameters are now restricted to anonymous access types.
5748 (Mark_Allocator): An allocator with a discriminant association parent is
5750 (Try_One_Prefix_Interpretation): If the type of the object is
5751 incomplete, as can be happen when it is a limited view obtained through
5752 a limited_with_clause, the selected component is not part of a prefixed
5754 (Complete_Object_Operation): Diagnose properly an object that is not
5755 aliased when the corresponding controlling formal is an access
5757 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
5758 ambiguous calls in prefixed notation, where two primitives differ only
5759 in that the controlling argument of one is an access parameter.
5761 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
5762 whether a function that returns an unconstrained type can be inlined.
5763 (Process_Formals): Diagnose properly the illegal use of an incomplete
5764 type in the profile of an access_to_subprogram declaration.
5765 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
5766 operations are attached to the corresponding record.
5767 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
5768 When processing a primitive of a concurrent type which implements an
5769 interface change the type of all controlling formals to that of the
5770 corresponding record type.
5771 (Check_Synchronized_Overriding): Relax the conditional logic when trying
5772 to determine the tagged type to which a primitive belongs.
5773 (Check_Conventions): Capture condition to ignore a primitive operation
5774 (which is shared between the loop in Check_Conventions and the one in
5775 Check_Convention) in a new local function Skip_Check.
5776 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
5777 confusion with Check_Conventions' own Prim_Op local variable.
5778 (Create_Extra_Formals): Test for a tagged result type rather than a
5779 controlling result when determining whether to add a BIP_Alloc_Form
5780 formal and a BIP_Final_List formal to the function.
5781 (Check_Conformance); For parameters that are anonymous access types,
5782 subtype conformance requires that the not null and the constant
5783 indicators must match
5784 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
5785 to retrieve the appropriate type when processing a concurrent type
5786 declared within a generic. Minor comment reformatting. Change invocation
5787 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
5789 (Analyze_Subprogram_Body): If the return type of a function is an
5790 anonymous access to the limited view of a class-wide type, and the
5791 non-limited view of the type is available, update the type of the
5792 function so that code can be generated.
5793 (Process_Formals): In case of access-subtype itype whose designated
5794 type is also an itype (situation that happens now with access to
5795 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
5796 attribute to avoid backend problems.
5797 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
5798 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
5799 anonymous types' designated types are same before testing
5800 Subtypes_Statically_Match.
5801 (Create_Extra_Formals): Test for a named access parameter that is a
5802 controlling formal as an additional condition for adding an
5803 accessibility level formal. This can occur in the subp type created for
5804 dispatching calls in Expand_Dispatching_Call, and allows calling
5805 Create_Extra_Formals from that procedure rather than special-casing the
5806 extra formals there.
5807 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
5808 when the function has a controlling result.
5809 (Check_Returns): Add much more knowledge of the optimization of local
5810 raise statements to gotos, to retain proper warnings in this case.
5811 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
5812 nodes when looking for last statement.
5814 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
5815 class-wide types visible through limited with clauses.
5816 (Add_One_Interp): If the operands are anonymous access types, the
5817 predefined operator on universal_access is immediately visibles
5818 (Find_Unique_Type): Handle anonymous access to subprogram types just as
5819 other anonymous access types.
5820 (Disambiguate): Take into account CIL convention.
5821 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
5823 2007-06-06 Robert Dewar <dewar@adacore.com>
5825 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
5826 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
5827 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
5828 Fix lower bound of tables.
5831 * nlists.adb: Ditto.
5832 (Prev_Node, Next_Node): Change index type to Int so that it properly
5833 covers the range First_Node_Id - 1 up.
5835 2007-06-06 Javier Miranda <miranda@adacore.com>
5836 Ed Schonberg <schonberg@adacore.com>
5837 Bob Duff <duff@adacore.com>
5838 Hristian Kirtchev <kirtchev@adacore.com>
5840 * exp_aggr.ads, exp_aggr.adb:
5841 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
5842 in extension aggregates.
5843 (Flatten): Other conditions being met, an aggregate is static if the
5844 low bound given by component associations is different from the low
5845 bound of the base index type.
5846 (Packed_Array_Aggregate_Handled): If the component type is itself a
5847 packed array or record, the front-end must expand into assignments.
5848 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
5849 Init_Pr, instead of Ancestor_Is_Expression.
5850 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
5851 coextension chain root, either generate a list controller or use the
5852 already existing one.
5853 (Static_Array_Aggregate): New procedure to construct a positional
5854 aggregate that can be handled by the backend, when all bounds and
5855 components are compile-time known constants.
5856 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
5857 types covering interface types into assignments.
5858 (Replace_Type): move to Build_Record_Aggr_Code.
5859 (Expand_Record_Aggr_Code): if the target of the aggregate is an
5860 interface type, convert to the definite type of the aggregate itself,
5861 so that needed components are visible.
5862 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
5863 components and the context is an extended return statement do not
5864 create a transient block for it, to prevent premature finalization
5865 before the return is executed.
5866 (Gen_Assign): Do not generate a call to deep adjust routine if the
5867 component type is itself an array of controlled (sub)-components
5868 initialized with an inner aggregate.
5869 (Component_Check): New name for Static_Check. This name is now more
5870 appropriate, and documentation is added which was missing.
5871 (Component_Check): Add test for bit aligned component value
5872 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
5873 Tagged_Comps, name is more appropriate given added function below.
5874 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
5876 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
5877 Javier Miranda <miranda@adacore.com>
5878 Robert Dewar <dewar@adacore.com>
5880 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
5881 Terminated: Add unchecked type conversion from System.Address to
5882 System.Tasking.Task_Id when calling the predefined primitive
5884 Disable new Ada 05 accessibility check for JVM.NET targets, which
5885 cannot be implemented in a practical way.
5886 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
5887 the sources always references the tag of the actual object. Therefore,
5888 if 'Tag is applied in the sources to class-wide interface objects we
5889 generate code that displaces "this" to reference the base of the object.
5890 (Expand_N_Attribute_Reference, case Size): Return specified size if
5892 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
5893 has code that displaces the pointer of the object to manage interface
5894 types. However this code must not be executed when the prefix is a
5895 subprogram. This bug caused the wrong expansion of the internally
5896 generated assignment that fills the dispatch table when the primitive
5897 is a function returning a class-wide interface type.
5898 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
5899 Set_Attribute_Name for Name_Unaligned_Valid.
5901 2007-06-06 Ed Schonberg <schonberg@adacore.com>
5902 Gary Dismukes <dismukes@adacore.com>
5904 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
5905 If the initialization is the equivalent aggregate of the initialization
5906 procedure of the type, do not remove it.
5907 (Expand_N_Attribute_Definition_Clause): Exclude access variables
5908 initialized to null from having their expression reset to empty and
5909 note this exception in the comment.
5911 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
5912 Robert Dewar <dewar@adacore.com>
5913 Ed Schonberg <schonberg@adacore.com>
5914 Gary Dismukes <dismukes@adacore.com>
5916 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
5917 Add "with" and "use" clauses for Sem_Attr.
5918 (Expand_Current_Value): Do not replace occurences of attribute
5919 references where the prefix must be a simple name.
5921 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
5922 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
5923 Attribute_Requires_Simple_Name_Prefix.
5924 (Name_Modifies_Prefix): Body of new function.
5925 (Requires_Simple_Name_Prefix): Body of new function.
5926 (Resolve_Attribute, case Access): Improve error message for case of
5927 mismatched conventions.
5928 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
5930 (Analyze_Attribute, case 'Access): If the type of the prefix is a
5931 constrained subtype for a nominal unconstrained type, use its base type
5932 to check for conformance with the context.
5933 (Resolve_Attribute): Remove test of the access type being associated
5934 with a return statement from condition for performing accessibility
5935 checks on access attributes, since this case is now captured by
5936 Is_Local_Anonymous_Access.
5937 (Analyze_Access_Attribute): Set Address_Taken on entity
5938 (Analyze_Attribute, case Address): Set Address_Taken on entity
5939 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
5940 validating an access attribute whose prefix is a current instance.
5941 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
5942 applied to dispatching operations, if freezing is required then we set
5943 the attribute Has_Delayed_Freeze in the prefix's entity.
5944 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
5945 current scope if access of local subprogram taken
5946 (Analyze_Access_Attribute): Check legality of self-reference even if the
5947 expression comes from source, as when a single component association in
5948 an aggregate has a box association.
5949 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
5950 the prefix if it is a protected operation and the attribute is
5951 Unrestricted_Access.
5952 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
5953 reference to the base type of the context, to force a constraint check
5954 when the context is an access subtype with an explicit constraint.
5955 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
5956 node is rewritten as an interface conversion. leave unanalyzed after
5957 resolution, to ensure that type checking against the context will take
5960 2007-06-06 Ed Schonberg <schonberg@adacore.com>
5961 Javier Miranda <miranda@adacore.com>
5962 Robert Dewar <dewar@adacore.com>
5964 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
5965 wrapper when the full view of the controlling type of an inherited
5966 function that dispatches on result implements interfaces.
5967 (Expand_N_Object_Declaration): In cases where the type of the
5968 declaration is anonymous access, create finalization list for it.
5969 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
5970 if the object has no explicit initialization, to match description of
5971 functionality of pragam Persistent_BSS.
5972 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
5973 new function to build static aggregates, to replace initialization call
5974 when static initialization is desired.
5975 (Freeze_Type): Generate a list controller for an access type whenever
5976 its designated type has controlled anonymous access discriminants.
5977 (Build_Equivalent_Aggregate): New procedure to compute a static
5978 aggregate to be used as default initialization for composite types,
5979 instead of a generating a call to the initialization procedure for the
5981 (Build_Initialization_Call): When available, replace a call to the
5982 initialization procedure with a copy of the equivalent static aggregate
5984 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
5985 declarations for objects of a class-wide interface type, rather than
5986 just identifiers, to prevent visibility problems.
5987 (Expand_N_Object_Declaration): When expanding the declaration for an
5988 object of a class-wide interface type, preserve the homonym chain of
5989 the original entity before exchanging it with that of the generated
5990 renaming declaration.
5991 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
5992 active, because there is no way to handle the exception.
5993 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
5994 to do a minimum decoration of the Access_Disp_Table list.
5995 (Expand_Record_Controller): Avoid the addition of the controller between
5996 the component containing the tag of a secondary dispatch table and its
5997 adjacent component that stores the offset to the base of the object.
5998 This latter component is only generated when the parent type has
5999 discriminants ---documented in Add_Interface_Tag_Components).
6000 (Apply_Array_Size_Check): Removed, no longer needed.
6001 (Expand_N_Full_Type_Declaration): If the type has anonymous access
6002 components, create a Master_Entity for it only if it contains tasks.
6003 (Build_Init_Procedure): Suppress the tag assignment compiling under
6005 (Freeze_Record_Type): Remove code associated with creation of dispatch
6007 (Init_Secondary_Tags): Update type of actuals when generating calls to
6008 Ada.Tags.Set_Offset_To_Top
6009 (Stream_Operation_OK): Disable use of streams compiling under no
6011 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
6012 if Has_Init_Expression set.
6013 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
6014 Register_Primitive, which provides the same functionality.
6015 (Requires_Init_Proc): Return false in case of interface types.
6016 (Add_Secondary_Tables): Use the new attribute Related_Interface to
6018 (Predefined_Primitive_Freeze): Do not assume that an internal entity
6019 is always associated with a predefined primitive because the internal
6020 entities associated with interface types are not predefined primitives.
6021 Therefore, the call to Is_Internal is replaced by a call to the
6022 function Is_Predefined_Dispatching_Operation.
6023 (Make_Eq_If): When generating the list of comparisons for the
6024 components of a given variant, omit the controller component that is
6025 present if the variant has controlled components.
6027 2007-06-06 Javier Miranda <miranda@adacore.com>
6028 Hristian Kirtchev <kirtchev@adacore.com>
6029 Bob Duff <duff@adacore.com>
6031 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
6032 handle the creation of finalization lists and calls for nested
6033 coextensions when the root of the chains is part of a return statement.
6034 (Inside_A_Return_Statement): New function inside Complete_Coextension_
6036 (Expand_Record_Equality): Skip components that are interface types.
6037 (Displace_Allocator_Pointer): Add missing support for interface subtypes
6038 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
6039 with Rewrite_Coextension. Change the condition for detecting coextension
6041 (Is_Local_Access_Discriminant): Removed.
6042 (Rewrite_Coextension): New routine which rewrites a static coextension
6043 as a temporary and uses its unrestricted access in the construction of
6045 (Complete_Coextension_Finalization): New routine. Generate finalization
6046 attachment calls to all delayed coextensions.
6047 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
6048 the allocator is not a coextension itself and has delayed coextensions.
6049 If the current allocator is controlled, but also a coextension, delay
6050 the generation of the finalization attachment call.
6051 Rename local variable "Node" to "Nod" in order to avoid confusion with
6053 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
6054 limited types that are not inherently limited. Such an allocator is
6055 illegal, but is generated by the expander for a return statement, to
6056 copy the result onto the secondary stack. This is the only case where a
6057 limited object can be copied. Generate code to displace the pointer
6058 to the object if the qualified expression is a class-wide interface
6059 object. Such displacement was missing and hence the copy of the object
6061 (Apply_Accessibility_Check): Handle allocated objects initialized in
6063 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
6064 and Expand_Allocator_Expression. Allocating class-wide interface objects
6065 this routine displaces the pointer to the allocated object to reference
6066 the component referencing the corresponding secondary dispatch table.
6067 Expand_Allocator_Expression): Add missing support to allocate class-wide
6068 interface objects initialized with a qualified expression.
6069 (Get_Allocator_Final_List): Test for an anonymous access type that is a
6070 function result type, and use the finalization list associated with the
6071 function scope in that case (such an anonymous type should not be
6072 treated like an access parameter's type).
6074 2007-06-06 Ed Schonberg <schonberg@adacore.com>
6075 Gary Dismukes <dismukes@adacore.com>
6076 Javier Miranda <miranda@adacore.com>
6078 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
6079 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
6080 required exception handler.
6081 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
6082 properly the case of a function whose return type is a limited
6083 class-wide interface type. Modify the code of the accessibility
6084 check to handle class-wide interface objects. In this case we need to
6085 displace "this" to reference the primary dispatch table to get access
6086 to the TSD of the object (to evaluate its accessibility level).
6087 (Expand_N_Extended_Return_Statement): Test for a tagged result type
6088 rather than a controlling result as one of the conditions for
6089 generating tests of the implicit BIP_Alloc_Form formal. The
6090 initialization assignment is also handled according to whether the
6091 result is tagged instead of controlling.
6092 In the case where the init assignment is inserted in the "then" part of
6093 the allocation conditional, rewrite the target to be a dereference of
6094 the implicit BIP_Object_Access formal.
6095 If the returned value is unconstrained and created on the secondary
6096 stack, mark the enclosing block and function so that the secondary
6097 stack is not reclaimed on return.
6098 Treat returns from functions with controlling results similarly to
6099 returns from functions with unconstrained result subtypes.
6100 If the object returned is unconstrained, and an allocator must be
6101 created for it, analyze the allocator once the block for the extended
6102 return is installed, to ensure that finalizable components
6103 of the expression use the proper finalization list. Guard the call to
6104 Move_Final_List with a check that there is something to finalize.
6105 (Make_Tag_Ctrl_Assignment): Use "old" handling
6106 of controlled type assignment for virtual machines, since new code uses
6107 unsupported features (such as direct access to bytes in memory).
6109 2007-06-06 Gary Dismukes <dismukes@adacore.com>
6110 Ed Schonberg <schonberg@adacore.com>
6112 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
6113 accessibility actual, check for the case of an aliased object that has
6114 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
6115 we fall into processing for the attribute rather than the name of the
6117 (Expand_Inline_Call): If an actual is a literal, and the corresponding
6118 formal has its address taken in the body, create a temporary to capture
6119 value. If the return type is a limited interface, do not treat the
6120 return value as Controlled.
6121 (Is_In_Place_Function): If the return type is a limited interface,
6122 treat as returning in place. The actual returned object may not always
6123 be limited, but the caller has to assume that it is returned in place.
6124 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
6125 context of an allocator, use the correct finalization chain (that is,
6126 the chain belonging to the access type, rather than the chain belonging
6127 to the current scope).
6128 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
6129 result type rather than a controlling result as a precondition for
6130 adding an allocation form actual to a build-in-place call.
6131 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
6132 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
6133 primitive in the dispatch tables. This work is now done by Make_DT when
6135 (Register_Predefined_DT_Entry): Removed.
6136 (Add_Return): If end label is not present, use sloc of last statement
6137 for generated return statement in procedure, for better gdb behavior
6139 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
6140 object address nodes to ensure proper processing by routines like
6142 (Expand_Call): Fix generation of validity check for parameter
6143 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
6144 the allocation form parameter if the result subtype is constrained,
6145 except when the function has a controlling result.
6146 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
6147 rather than Is_Controlled and Has_Controlled_Component, since we want to
6148 include class-wide result types in this treatment. Also test for a
6149 controlling result, since that also requires passing a finalization
6151 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
6152 even when the result subtype is constrained, to handle calls involving
6153 controlling results.
6154 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
6155 is now called even when the result subtype is constrained, to handle
6156 calls involving controlling results.
6157 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
6158 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
6159 now performs the test).
6160 (Make_Build_In_Place_Call_In_Object_Declaration):
6161 Add_Alloc_Form_Actual_* is now called even when the result subtype is
6162 constrained, to handle calls involving controlling results.
6163 (Add_Return): Accomodate rewritten pattern from local raise to goto
6164 transformation, so that we still recognize an transfer statement
6165 and do the right thing here in that case.
6166 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
6167 and end of subprogram code.
6168 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
6169 support for primitives that are functions (without formals) with a
6171 (Inherited_From_Formal): If the actual subtype has not generic parent
6172 type, it is not an actual for a formal derived type, and there is no
6173 operation to inherit from the formal.
6175 2007-06-06 Ed Schonberg <schonberg@adacore.com>
6176 Thomas Quinot <quinot@adacore.com>
6178 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
6179 inserted cleanup code appropriately for GDB use.
6180 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
6181 exception handler for Deep_Adjust or Deep_Finalize.
6182 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
6183 Raise_From_Controlled_Operation is available, use a call to that
6184 subprogram instead of a plain "raise Program_Error" node to raise
6185 Program_Error if an exception is propagated from an Adjust or Finalize
6187 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
6188 appears in the optional statement list of a triggering alternative, the
6189 scope actions can be inserted directly there, and not in the list that
6190 includes the asynchronous select itself.
6192 2007-06-06 Ed Schonberg <schonberg@adacore.com>
6193 Robert Dewar <dewar@adacore.com>
6194 Hristian Kirtchev <kirtchev@adacore.com>
6196 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
6197 generated exception handler appropriately when debugging generated code.
6198 Deal properly with No_Exception_Propagation restriction mode.
6199 (Expand_N_Abort_Statement): Add an unchecked type conversion from
6200 System.Address to System.Tasking.Task_Id when processing the result of
6201 the predefined primitive _disp_get_task_id.
6202 (Expand_N_Asynchronous_Select): Clarify comment.
6203 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
6204 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
6205 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
6206 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
6207 privals and for generated call to Complete_Entry_Body, for better gdb
6209 (Copy_Result_Type): Utility to construct a parameter and result profile
6210 for protected functions whose return type is an anonymous access to
6212 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
6214 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
6215 point when the local-raise-to-goto transformation has taken place.
6217 2007-06-06 Javier Miranda <miranda@adacore.com>
6218 Nicolas Setton <setton@adacore.com>
6220 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
6221 functionality when the backend is generating code.
6222 Otherwise any serious error
6223 reported by the backend calling the frontend routine Error_Msg
6224 changes the Compilation_Mode to Check_Semantics, disables the
6225 functionality of this routine and causes the generation of
6226 spureous additional errors.
6228 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
6229 debugging information now generated by the compiler for fat-pointer
6231 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
6233 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
6235 2007-06-06 Thomas Quinot <quinot@adacore.com>
6237 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
6238 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
6239 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
6240 For a remote call to a function with a classwide return type, apply an
6241 E.4(18) check to the returned value.
6242 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
6243 stream attributes of the designated type of an RACW, as they are not
6244 dispatching primitive operations.
6246 2007-06-06 Geert Bosch <bosch@adacore.com>
6248 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
6250 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
6252 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
6253 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
6255 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
6257 2007-06-06 Javier Miranda <miranda@adacore.com>
6259 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
6260 attribute compiling package Ada.Tags under No_Run_Time_Mode.
6262 2007-06-06 Javier Miranda <miranda@adacore.com>
6264 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
6265 deallocation of class-wide interface objects.
6266 (Expand_Dispatching_Constructor_Call): Take into account that if the
6267 result of the dispatching constructor is an interface type, the
6268 function returns a class-wide interface type; otherwise the returned
6269 object would be actual. The frontend previously accepted returning
6270 interface types because Expand_Interface_Actuals silently performed
6271 the management of the returned type "as if" it were a class-wide
6273 (Expand_Dispatching_Constructor_Call): Replace call to
6274 Make_DT_Access_Action by direct call to Make_Function_Call.
6276 2007-06-06 Robert Dewar <dewar@adacore.com>
6277 Ed Schonberg <schonberg@adacore.com>
6279 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
6280 compute masking constant, since we now set Esize properly to the
6282 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
6283 to match the alignment.
6284 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
6285 packed arrays of 8 bits or less.
6287 * freeze.adb (Freeze_Entity): When freezing the formals of a
6288 subprogram, freeze the designated type of a parameter of an access type
6289 only if it is an access parameter.
6290 Increase size of C convention enumeration object
6291 (Freeze_Entity, array type case): Make sure Esize value is properly
6292 adjusted for the alignment if it is known.
6293 (Freeze_Entity, array type case): When checking bit packed arrays for
6294 the size being incorrect, check RM_Size, not Esize.
6295 (Freeze_Record_Type): Check for bad discriminated record convention
6296 (In_Exp_Body): Return true if the body is generated for a subprogram
6297 renaming, either an attribute renaming or a renaming as body.
6298 (Check_Itype): If the designated type of an anonymous access component
6299 is a non-protected subprogram type, indicate that it is frozen, to
6300 prevent out-of-scope freeze node at some subsequent call.
6301 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
6302 only if the subprogram is neither imported nor exported, as well as the
6303 NCA descriptor class if the subprogram is exported.
6305 2007-06-06 Ed Schonberg <schonberg@adacore.com>
6306 Arnaud Charlet <charlet@adacore.com>
6307 Robert Dewar <dewar@adacore.com>
6308 Gary Dismukes <dismukes@adacore.com>
6310 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
6311 default initialization on an imported object, when there is no
6312 initialization call generated for it.
6313 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
6316 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
6317 Static_Elaboration_Desired.
6318 Remove pragma Thread_Body.
6319 Implement a new pragma No_Body
6320 Removes the Explicit_Overriding pragma
6321 Remove Optional_Overriding pragma
6322 (Prag): Deal with Universal_Aliasing.
6323 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
6324 Pragma_CIL_Constructor): New names.
6326 * sem_cat.adb (Validate_Object_Declaration): An initialization that
6327 uses the equivalent aggregate of a type must be treated as an implicit
6329 (Get_Categorization): Check a unit for pragma Preelaborate only if it
6330 has none of the other categories.
6331 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
6332 to apply Import to an object renaming declaration.
6334 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
6335 from a C++ class should be declared as limited and that it will be
6336 considererd limited.
6337 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
6338 should be declared as limited and that it will be considererd limited.
6339 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
6340 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
6341 (Analyze_Pragma): Deal with Universal_Aliasing.
6342 (Sig_Flags): Likewise.
6343 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
6344 (Overflow_Checks_Unsuppressed): New flag.
6345 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
6346 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
6347 case of JVM or .NET targets, and compiling user code.
6348 Add debugging convenience routine rv
6350 2007-06-06 Robert Dewar <dewar@adacore.com>
6352 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
6354 (Build_Elementary_Input_Call): For floating-point use right type in the
6355 absence of strange size or stream size clauses.
6356 (Build_Elementary_Write_Call): Same fix
6357 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
6358 set to value that does not match base type size.
6360 2007-06-06 Ed Schonberg <schonberg@adacore.com>
6362 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
6363 object of a limited type can be initialized with a call to a function
6364 that returns in place. If the limited type has unknown discriminants,
6365 and the underlying type is a constrained composite type, build an actual
6366 subtype from the function call, as is done for private types.
6367 (Side_Effect_Free): An expression that is the renaming of an object or
6368 whose prefix is the renaming of a object, is not side-effect free
6369 because it may be assigned through the renaming and its value must be
6370 captured in a temporary.
6371 (Has_Controlled_Coextensions): New routine.
6372 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
6373 as is done for other limited types.
6374 (Non_Limited_Designated_Type): new predicate.
6375 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
6377 Remove all handling of with_type clauses.
6379 * par-ch10.adb: Remove all handling of with_type clauses.
6381 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
6382 checksum if the main source could not be parsed.
6383 (Loat_Unit): When processing a child unit, determine properly whether
6384 the parent unit is a renaming when the parent is itself a child unit.
6385 Remove handling of with_type clauses.
6387 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
6388 (Set_Is_Static_Coextension): New procedure.
6389 (Has_Local_Raise): New function
6390 (Set_Has_Local_Raise): New procedure
6391 (Renaming_Exception): New field
6392 (Has_Init_Expression): New flag
6393 (Delay_Finalize_Attach): Remove because flag is obsolete.
6394 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
6395 Remove all handling of with_type clauses.
6396 (Exception_Junk): Can now be set in N_Block_Statement
6398 2007-06-06 Vincent Celier <celier@adacore.com>
6399 Robert Dewar <dewar@adacore.com>
6401 * frontend.adb (Frontend): Return immediately if the main source could
6402 not be parsed, because of preprocessing errors.
6404 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
6405 (Gnat1drv): Exit with errors if the main source could not be parsed,
6406 because of preprocessing errors.
6407 (Check_Rep_Info): New procedure
6409 2007-06-06 Robert Dewar <dewar@adacore.com>
6411 * g-hesorg.ads, g-heasor.ads,
6412 g-busorg.ads, g-bubsor.ads: Update documentation
6413 GNAT.Heap/Bubble_Sort_G is now pure
6415 2007-06-06 Robert Dewar <dewar@adacore.com>
6417 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
6419 2007-06-06 Robert Dewar <dewar@adacore.com>
6420 Ed Schonberg <schonberg@adacore.com>
6422 * g-comlin.ads, g-comlin.adb:
6423 Add new warning for renaming of function return objects
6425 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
6426 (Tree_Read): Use size of object instead of type'object_size, since the
6427 latter is incorrect for packed array types.
6428 (Tree_Write): Same fix
6430 * opt.ads: Add new warning for renaming of function return objects
6431 (Generating_Code): New boolean variable used to indicate that the
6432 frontend as finished its work and has called the backend to process
6433 the tree and generate the object file.
6434 (GCC_Version): Is now private
6435 (Static_Dispatch_Tables): New constant declaration.
6436 (Overflow_Checks_Unsuppressed): New flag.
6437 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
6438 (List_Closure): New flag for gnatbind (-R)
6439 Zero_Formatting: New flag for gnatbind (-Z)
6440 (Special_Exception_Package_Used): New flag.
6441 (Warn_On_Unrepped_Components): New flag.
6443 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
6444 unit is a compilation unit, rather than relying on its scope, so that
6445 Standard can be renamed.
6446 (Analyze_Object_Renaming): Add new warning for renaming of function
6448 Also reject attempt to rename function return object in Ada 83 mode.
6449 (Attribute_Renaming): In case of tagged types, add the body of the
6450 generated function to the freezing actions of the type.
6451 (Find_Type): A protected type is visible right after the reserved word
6452 "is" is encountered in its type declaration. Set the entity and type
6453 rather than emitting an error message.
6454 (New_Scope): Properly propagate Discard_Names to inner scopes
6455 (Check_Nested_Access): New procedure.
6456 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
6457 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
6459 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
6460 Add new warning for renaming of function return objects
6461 (Check_References): Suppress warnings for objects whose type or
6462 base type has Warnings suppressed.
6463 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
6464 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
6466 2007-06-06 Vincent Celier <celier@adacore.com>
6467 Emmanuel Briot <briot@adacore.com>
6468 Olivier Hainque <hainque@adacore.com>
6470 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
6471 absolute value of Header.Block_Size when displaying the freed physical
6473 (Allocate): Compute Storage_Address using Integer_Address, not
6474 Storage_Offset, because the range of Storage_Offset may not be large
6476 (Configure): New parameter Low_Level_Traces
6477 (Allocate, Deallocation, Free_Physically): Added low-level traces
6478 (Configure): new parameter Errors_To_Stdout.
6479 (Output_File): new subprogram
6480 (Deallocate, Dereference): Send error messages to the proper stream
6481 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
6482 documented. Previous code would send it to the current output file
6483 defined in GNAT.IO, which might not be stdout
6484 (Is_Valid): Adjust comment to mention that a positive reply means that
6485 Header_Of may be used to retrieve the allocation header associated with
6486 the subprogram Storage address argument. Return False early if this
6487 address argument is misaligned.
6489 2007-06-06 Vincent Celier <celier@adacore.com>
6491 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
6493 (ASIS_Main): New global variable
6494 (Get_Closure): New procedure
6495 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
6496 check, metric or pretty. Call Get_Closure in this case.
6497 (Check_Files): For GNAT LIST, check all sources of all projects when
6498 All_Projects is True.
6499 (GNATCmd): Accept -U for GNAT LIST
6501 2007-06-06 Vincent Celier <celier@adacore.com>
6503 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
6505 Correct error message when invocation of the linker fails
6506 Add explicit size clause for the C imported variables
6507 Object_List_File_Supported and Using_GNU_Linker to emphasize that
6508 we expect char size.
6509 Read target parameters earlier, since this is needed to set
6510 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
6513 2007-06-06 Vincent Celier <celier@adacore.com>
6516 Add 3 spaces before the default project directory when displaying
6517 the project search path.
6518 Add new command line switch '-l' to display license information.
6520 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
6522 * gmem.c: Add support for timestamps on memory operations.
6524 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
6525 operations (not used currently, just foundation for future
6526 enhancements). Add possibility to perform full dump of gmem.out file.
6527 (Print_Back_Traces): Declare accesses to root arrays constants since
6528 they aren't modified.
6529 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
6531 2007-06-06 Vincent Celier <celier@adacore.com>
6533 * gnatsym.adb: Update Copyright notice
6534 (Parse_Cmd_Line): Accept new switch -D
6535 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
6538 * prj.ads (Policy): New policy Direct
6539 (Yes_No_Unknown): New enumeration type
6540 (Project_Data): New component Libgnarl_Needed
6542 * prj-nmsc.adb (Check_For_Source): When recording a source file make
6543 use the untouched pathname casing.
6544 (Get_Directories): Ensure that the Display_Exec_Directory is using the
6545 proper casing on non case-sensitive platforms like Windows.
6546 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
6547 on all platforms, as it is not possible to know which one is allowed
6548 before processing the project files.
6549 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
6550 specified when symbol policy is Direct. Check that when there is a
6551 symbol file defined (either by default or with attribute
6552 Library_Symbol_File) it is not the same as the reference symbol file.
6553 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
6554 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
6556 (Record_Ada_Source): Record a source that has been locally removed in an
6559 * symbols.ads (Policy): New policy Direct
6561 * symbols-vms.adb (Initialize): Take new policy Direct in case
6564 2007-06-06 Vincent Celier <celier@adacore.com>
6566 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
6567 Correct obvious bug (return Dir; instead of return Directory;).
6568 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
6570 2007-06-06 Thomas Quinot <quinot@adacore.com>
6572 * g-pehage.adb (Produce): Open output files in Binary mode, so that
6573 they have UNIX line endings (LF only) even on Windows, and thus pass
6574 all GNAT style checks.
6576 2007-06-06 Emmanuel Briot <briot@adacore.com>
6578 * g-regpat.adb (Quote): Fix improper quoting of '.'
6580 2007-06-06 Thomas Quinot <quinot@adacore.com>
6582 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
6583 default, set False on a per-runtime basis.
6584 (Need_Netdb_Buffer): New constant.
6586 * g-socket.ads, g-socket.adb: Import new package
6587 GNAT.Sockets.Thin.Task_Safe_NetDB.
6588 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
6589 binding to obtain proper message.
6590 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
6591 Replace various occurrences of Arry (Arry'First)'Address with the
6592 equivalent Arry'Address (GNAT always follows implementation advice from
6594 (Get_Host_By_Address, Get_Host_By_Name,
6595 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
6596 instead, rely on platform-specific task safe netdb operations provided
6599 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
6600 parameter Process_Blocking_IO.
6601 (Host_Error_Messages): Add stub body.
6602 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
6603 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
6604 Safe_Getservbyport): Move functions into new child package
6606 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
6607 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
6608 (In_Addr): Add alignment clause.
6610 2007-06-06 Robert Dewar <dewar@adacore.com>
6612 * g-trasym.ads, g-traceb.ads: Update list of supported targets
6613 Add note about symbolic traceback
6615 2007-06-06 Pascal Obry <obry@adacore.com>
6617 * hostparm.ads (Normalized_CWD): Use the host directory separator
6618 instead of the hardcoded forward slash which is not the proper
6619 character on Windows for example.
6622 2007-06-06 Vincent Celier <celier@adacore.com>
6623 Arnaud Charlet <charlet@adacore.com>
6625 * a-clrefi.adb, a-clrefi.ads: New files
6627 * impunit.adb: Add s-os_lib in the list of user visible units.
6628 (Non_Imp_File_Names_95): Add a-clrefi to this list
6629 Remove obsolete run-time entries.
6630 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
6631 "a-exetim" -- Ada.Execution_Time
6632 "a-extiti" -- Ada.Execution_Time.Timers
6634 * mlib-prj.ads, mlib-prj.adb
6635 (Build_Library): Use untouched object dir and library dir. At the
6636 same time makes sure that the checks are done using the canonical
6637 form. Removes hard-coded directory separator and use the proper host
6639 (Process_Project): Do not look in object directory to check if libgnarl
6640 is needed for a library, if there is no object directory.
6641 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
6643 (Build_Library): When invoking gnatbind, use a response file if the
6644 total size of the arguments is too large.
6646 * Makefile.rtl: (g-sttsne): New object file.
6647 Add entry for a-clrefi, s-utf_32, System.Exceptions
6649 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
6650 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
6651 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
6652 Change g-string to s-string, g-os_lib to s-os_lib
6653 Change all g-utf_32 references to s-utf_32
6655 2007-06-06 Tristan Gingold <gingold@adacore.com>
6656 Olivier Hainque <hainque@adacore.com>
6658 * init.c: Do not adjust IP of an imported VMS exception of ia64.
6659 LIB$STOP is called to raise an exception and the IP of the exception
6660 is the instruction right after the call.
6661 (__gnat_adjust_context_for_raise, AIX): Implement.
6662 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
6663 adjust_context_for_raise before Raise_From_Signal_Hanler.
6664 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
6665 siginfo is passed to the handler, necessary to let the zcx propagation
6666 engine unwind past it.
6668 2007-06-06 Olivier Hainque <hainque@adacore.com>
6670 * initialize.c (__gnat_initialize for vxworks): Update documentation
6671 on the ZCX support, using different sets of crtstuff objects than with
6674 2007-06-06 Robert Dewar <dewar@adacore.com>
6676 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
6678 (Layout_Type): Fix recomputation of size from alignment.
6680 2007-06-06 Ed Schonberg <schonberg@adacore.com>
6681 Javier Miranda <miranda@adacore.com>
6683 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
6684 association in an instance.
6685 (Copy_Generic_Node): If the node is a string literal, no need to copy
6687 (Is_Generic_Formal): For a formal subprogram, the declaration is the
6688 grandparent of the entity.
6689 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
6690 to simplify handling of formal interfaces that derive from other formal
6692 (Instantiate_Subprogram_Body): The defining unit name of the body of
6693 the instance should be a defining identifier.
6694 (Install_Formal_Packages): make global to the package, for use in
6695 instantiations of child units.
6696 (Analyze_Package_Instantiation): Do not attempt to set information on an
6697 enclosing master of an entry when expansion is disabled.
6698 (Instantiate_Type): If the actual is a tagged synchronized type and the
6699 generic ancestor is an interface, create a generic actual for the
6700 corresponding record.
6701 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
6702 declaration, to ensure that the interface list is processed correctly.
6703 (Inline_Instance_Body): If enclosing scope is an instance body, remove
6704 its entities from visibiility as well.
6705 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
6706 given with a named association, analyze the expression only, not the
6707 discriminant association itself.
6708 (Reset_Entity): If the analysis of a selected component is transformed
6709 into an expanded name in the prefix of a call with parameters, do not
6710 transform the original node into an expanded name, to prevent visibility
6711 errors in the case of nested generics.
6712 (Check_Private_View): For an array type, check whether the index types
6713 may need exchanging.
6715 2007-06-06 Arnaud Charlet <charlet@adacore.com>
6716 Vincent Celier <celier@adacore.com>
6718 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
6719 since both are separated.
6720 Add support for imported CIL packages.
6721 Add further special handling of "value_type" for CIL.
6722 Add special handling of pragma Import for CIL.
6724 * make.ads, make.adb: When switch -eS is used, direct all outputs to
6725 standard output instead of standard error, except errors.
6726 (Absolute_Path): Use untouched casing for the parent directory.
6727 (Add_Library_Search_Dir): Use the untouched directory name.
6728 (Add_Source_Search_Dir): Idem.
6729 (Change_To_Object_Directory): Update output to use proper casing.
6730 (Create_Binder_Mapping_File): Use the untouched filename to set
6732 (Gnatmake): Use untouched library and executable directory names.
6733 (Insert_Project_Sources): Use untouched filename for spec and body.
6734 (Is_In_Object_Directory): Use untouched object directory.
6735 (Mark_Directory): Idem.
6736 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
6737 contains the non-canonical filename in all cases.
6738 (Change_To_Object_Directory): In verbose mode, display the name of the
6739 object directory we're changing to.
6740 (Compile_Sources): Make sure, when a project file is used, to compile
6741 the body of the unit, when there is one, even when only the spec is
6742 recorded in an ALI file.
6743 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
6745 (Report_Compilation_Failed): New procedure
6746 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
6747 procedures moved from the spec to the body.
6748 (Extract_Failure): Removed, not used
6749 Replace explicit raises of exception Bind_Failed and Link_Failed with
6750 calls to Make_Failed with the proper message.
6751 Replace explicit raises of exception Compilation_Failed with calls to
6752 procedure Report_Compilation_Failed.
6753 (Initialize): Create mapping files unconditionally when using project
6756 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
6757 Pragma_CIL_Constructor): New names.
6759 * targparm.ads, targparm.adb
6760 (Compiler_System_Version): Removed, no longer used.
6761 (Get_Target_Parameters): Relax checks on system.ads validity. Add
6762 handling of two new system flags: JVM and CLI.
6764 2007-06-06 Jose Ruiz <ruiz@adacore.com>
6765 Arnaud Charlet <charlet@adacore.com>
6767 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
6768 time, use the default s-interr body that provides interrupt support
6770 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
6771 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
6772 g-soccon.ads, and s-taprop.adb for the marte run time.
6773 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
6774 timers are supported on marte.
6775 (EH_MECHANISM for marte): Do not use ZCX.
6776 (THREADSLIB for marte): Use -lmarte.
6777 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
6778 Add mlib-tgt-specific.o to gnatmake objects
6779 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
6781 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
6782 6, either kernel or rtp, use a specialized version of s-osinte.ads.
6784 2007-06-06 Pascal Obry <obry@adacore.com>
6786 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
6788 2007-06-06 Vincent Celier <celier@adacore.com>
6790 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
6791 separator, use instead the proper host directory separator.
6792 (Copy_ALI_Files): Make sure that an already existing ALI file in the
6793 ALI copy dir is writable, before doing the copy.
6795 * mlib-utl.ads, mlib-utl.adb:
6796 (Gcc): If length of command line is too long, put the list of object
6797 files in a response file, if this is supported by the platform.
6798 (Ar): If invocation of the archive builder is allowed to be done in
6799 chunks and building it in one shot would go above an OS dependent
6800 limit on the number of characters on the command line, build the archive
6803 2007-06-06 Vincent Celier <celier@adacore.com>
6805 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
6806 of specified object file is not equal to base name of source.
6808 2007-06-06 Javier Miranda <miranda@adacore.com>
6809 Hristian Kirtchev <kirtchev@adacore.com>
6810 Ed Schonberg <schonberg@adacore.com>
6812 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
6813 the full type declaration.
6814 (Analyze_Component_Declaration): Add local variable E to capture the
6815 initialization expression of the declaration. Replace the occurences of
6816 Expression (N) with E.
6817 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
6818 limited interface object with a function call.
6819 (Array_Type_Declaration): If the declaration lacks subtype marks for
6820 indices, create a simple index list to prevent cascaded errors.
6821 (Is_Null_Extension): Ignore internal components created for secondary
6822 tags when checking whether a record extension is a null extension.
6823 (Check_Abstract_Interfaces): Add missing support for interface subtypes
6824 and generic formals.
6825 (Derived_Type_Declaration): Add missing support for interface subtypes
6826 and generic formals.
6827 (Analyze_Object_Declaration): If an initialization expression is
6828 present, traverse its subtree and mark all allocators as static
6830 (Add_Interface_Tag_Component): When looking for components that may be
6831 secondary tags, ignore pragmas that can appear within a record
6833 (Check_Abstract_Overriding): an inherited function that dispatches on
6834 result does not need to be overriden if the controlling type is a null
6836 (Mentions_T): Handle properly a 'class attribute in an anonymous access
6837 component declaration, when the prefix is an expanded name.
6838 (Inherit_Component): If the derivation is for a private extension,
6839 inherited components remain visible and their ekind should not be set
6841 (Find_Type_Of_Object): In the case of an access definition, always set
6842 Is_Local_Anonymous_Access. We were previously not marking the anonymous
6843 access type of a return object as a local anonymous type.
6844 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
6845 range with character literal bounds.
6846 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
6847 (Access_Subprogram_Declaration): Indicate that the type declaration
6848 depends on an incomplete type only if the incomplete type is declared
6850 (Analyze_Subtype_Declaration): Handle properly subtypes of
6851 synchronized types that are tagged, and that may appear as generic
6853 (Access_Subprogram_Declaration): An anonymous access to subprogram can
6854 appear as an access discriminant in a private type declaration.
6855 (Add_Interface_Tag_Components): Complete decoration of the component
6856 containing the tag of a secondary dispatch table and the component
6857 containing the offset to the base of the object (this latter component
6858 is only generated when the parent type has discriminants --as documented
6860 (Inherit_Components): Use the new decoration of the tag components to
6861 improve the condition that avoids inheriting the components associated
6862 with secondary tags of the parent.
6863 (Build_Discriminanted_Subtype): Indicate to the backend that the
6864 size of record types associated with dispatch tables is known at
6866 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
6867 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
6868 to include task, protected, and synchronized interfaces as limited
6870 (Process_Discriminants): Remove the setting of
6871 Is_Local_Anonymous_Access on the type of (anonymous) access
6872 discriminants of nonlimited types.
6873 (Analyze_Interface_Type_Declaration): Complete the decoration of the
6874 class-wide entity it is is already present. This situation occurs if
6875 the limited-view has been previously built.
6876 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
6878 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
6881 2007-06-06 Ed Schonberg <schonberg@adacore.com>
6883 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
6884 of the type that specify the position of interface tags when the type
6885 inherits discriminated array components from the parent type.
6886 If a component is initialized with a box, check for the presence of a
6887 default expression in its declaration before using its default
6888 initialization procedure.
6889 (Resolve_Record_Aggregate): If a component is box-initialized, and the
6890 component type has a discriminants, create a partial aggregate for it
6891 by copying the discriminants of the component subtype.
6892 Reject attempt to initialize a discriminant with a box.
6893 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
6894 associated with dispatch tables is known at compile time.
6895 (Get_Value): If an association in a record aggregate has a box
6896 association, and the corresponding record component has a default
6897 expression, always copy the default expression, even when the
6898 association has a single choice, in order to create a proper
6899 association for the expanded aggregate.
6901 2007-06-06 Ed Schonberg <schonberg@adacore.com>
6902 Robert Dewar <dewar@adacore.com>
6904 * par-ch12.adb (P_Generic_Associations): The source position of an
6905 Others association is that of the others keyword, not that of the token
6906 that follows the box.
6907 (P_Formal_Type_Definition): Handle formal access types that carry a
6910 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
6911 multiple identifier are present, save Scan_State before scanning the
6912 colon, to ensure that separate trees are constructed for each
6914 (P_Identifier_Declarations): For object declaration, set new flag
6915 Has_Init_Expression if initialization expression present.
6916 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
6917 Improve NOT NULL error messages
6919 2007-06-06 Robert Dewar <dewar@adacore.com>
6921 * par-ch4.adb: (P_Name): Recover from literal used as name
6923 2007-06-06 Vincent Celier <celier@adacore.com>
6925 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
6927 In the "not" case, recursive call with Complemented set to True.
6928 Do not allow "or" or "and" operators when Complemented is True.
6930 2007-06-06 Vincent Celier <celier@adacore.com>
6932 * prj.adb (Project_Empty): Gives default value for new component
6935 * prj-attr.ads: Minor reformatting
6937 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
6938 directory using the untouched casing.
6939 (For_All_Source_Dirs): Idem.
6941 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
6942 directories specified with switches -aP.
6943 (Add_Search_Project_Directory): New procedure
6944 (Initialize_Project_Path): Put the directories in table
6945 Search_Directories in the project search path.
6946 (Initialize_Project_Path): For VMS, transform into canonical form the
6949 2007-06-06 Arnaud Charlet <charlet@adacore.com>
6951 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
6952 true if configurable run-time or No_Run_Time is set.
6953 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
6954 processing an unit which is not the one being compiled.
6956 2007-06-06 Arnaud Charlet <charlet@adacore.com>
6958 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
6959 Replace UC by Ada.UC
6961 * s-bitops.adb: Get rid of System.Pure_Exceptions.
6962 Replace UC by Ada.UC
6964 2007-06-06 Robert Dewar <dewar@adacore.com>
6966 * scng.adb: (Check_End_Of_Line): Deal with very long lines
6968 2007-06-06 Robert Dewar <dewar@adacore.com>
6970 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
6971 Remove no longer used nodes.
6973 2007-06-06 Javier Miranda <miranda@adacore.com>
6974 Ed Schonberg <schonberg@adacore.com>
6975 Robert Dewar <dewar@adacore.com>
6977 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
6978 on obsolescent withed unit in case of limited-withed units.
6979 (Analyze_Compilation_Unit): Add guard to code that removed an
6980 instantiation from visibility, to prevent compiler aborts when
6981 instantiation is abandoned early on.
6982 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
6983 current unit being analyzed, and Distinguish local incomplete types
6984 from limited views of types declared elsewhere.
6985 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
6986 to state that the class-wide entity is shared by the limited-view
6988 (Analyze_With_Clause): Improve placement of flag for case of
6990 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
6991 manner similar to GNAT.Current_Exception. This is a violation of
6992 restriction (No_Exception_Propagation), and also inhibits the
6993 optimization of local raise to goto.
6994 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
6995 and if so set Most_Recent_Exception_Used flag in Opt, and also check
6996 for violation of restriction No_Exception_Propagation.
6998 2007-06-06 Javier Miranda <miranda@adacore.com>
6999 Hristian Kirtchev <kirtchev@adacore.com>
7000 Gary Dismukes <dismukes@adacore.com>
7002 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
7003 use of entity Exception_Occurrence if it is not available in the
7006 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
7007 concurrent types are declared within an Ada 2005 generic, build their
7008 corresponding record types since they are needed for overriding-related
7010 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
7011 protected type does not implement a task interface or a nonlimited
7013 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
7014 type does not implement a protected interface or a nonlimited interface.
7015 (Single_Task_Declaration, Single_Protected_Declaration): use original
7016 entity for variable declaration, to ensure that debugging information
7017 is correcty generated.
7018 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
7019 routines if the expander is not active.
7020 (Analyze_Task_Body): Mark all handlers to stop optimization of local
7021 raise, since special things happen for task exception handlers.
7023 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
7024 concurrent types declared within a generic.
7025 (Check_Dispatching_Operation): Do not emit warning about late interface
7026 operations in the context of an instance.
7027 (Check_Dispatching_Call): Remove restriction against calling a
7028 dispatching operation with a limited controlling result.
7029 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
7030 Register_Interface_DT_Entry by calls to Register_Primitive.
7031 (Check_Dispatching_Formals): Handle properly a function with a
7032 controlling access result.
7034 2007-06-06 Robert Dewar <dewar@adacore.com>
7035 Arnaud Charlet <charlet@adacore.com>
7037 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
7038 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
7039 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
7040 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
7041 message when using a VM, since this attribute is not supported.
7042 (Analyze_Record_Representation_Clause): Give unrepped component warnings
7044 * usage.adb: Add new warning for renaming of function return objects
7045 Indicate that -gnatwp and -gnatwP concern front-end inlining
7046 Add line for -gnatyg
7047 Add usage information for -gnatw.c/C
7049 2007-06-06 Robert Dewar <dewar@adacore.com>
7050 Ed Schonberg <schonberg@adacore.com>
7053 (Find_Var): Do not consider function call in test for infinite loop
7054 warning if warnings set off for function entity.
7055 (One_Bound): Do not create a temporary for a loop bound if it is a
7057 (Analyze_Assignment): Traverse the right hand side of an assignment and
7058 mark all allocators as static coextensions.
7059 (Analyze_Assignment): Exempt assignments involving a dispatching call
7060 to a function with a controlling access result from the check requiring
7061 the target to be class-wide.
7063 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
7064 Ed Schonberg <schonberg@adacore.com>
7065 Robert Dewar <dewar@adacore.com>
7066 Javier Miranda <miranda@adacore.com>
7068 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
7069 chain of coextensions when an allocator serves as the root of such a
7071 (Propagate_Coextensions): Remove the test for the root being an
7073 (Resolve_Allocator): Add condition to ensure that all future decoration
7074 occurs on an allocator node. Add processing and cleanup for static
7076 (Valid_Conversion): If the operand type is the limited view of a
7077 class-wide type, use the non-limited view is available to determine
7078 legality of operation.
7079 (Ambiguous_Character): move to spec, for use elsewhere.
7080 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
7081 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
7083 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
7084 Do_Division_Check flag explicitly.
7085 (Resolve_Actuals): If the actual is of a synchronized type, and the
7086 formal is of the corresponding record type, this is a call to a
7087 primitive operation of the type, that is declared outside of the type;
7088 the actual must be unchecked-converted to the type of the actual
7089 (Resolve_Call): Kill all current values for any subprogram call if
7090 flag Suppress_Value_Tracking_On_Call is set.
7091 (Resolve_Type_Conversion): Generate error message the the operand
7092 or target of interface conversions come from a limited view.
7093 (Check_Infinite_Recursion): Ignore generated calls
7094 (Check_Allocator_Discrim_Accessibility): New procedure for checking
7095 that an expression that constrains an access discriminant in an
7096 allocator does not denote an object with a deeper level than the
7097 allocator's access type.
7098 (Resolve_Allocator): In the case of an allocator initialized by an
7099 aggregate of a discriminated type, check that associations for any
7100 access discriminants satisfy accessibility requirements by calling
7101 Check_Allocator_Discrim_Accessibility.
7102 (Resolve_Equality_Op): Handle comparisons of anonymous access to
7103 subprogram types in the same fashion as other anonymous access types.
7104 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
7105 message that is not a continuation message.
7106 (Resolve_Type_Conversion): Add missing support for conversion to
7108 (Resolve_Actuals): Introduce a transient scope around the call if an
7109 actual is a call to a function returning a limited type, because the
7110 resulting value must be finalized after the call.
7111 (Resolve_Actuals): If the call was given in prefix notations, check
7112 whether an implicit 'Access reference or implicit dereference must be
7113 added to make the actual conform to the controlling formal.
7115 2007-06-06 Robert Dewar <dewar@adacore.com>
7116 Javier Miranda <miranda@adacore.com>
7118 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
7119 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
7120 overriding of an inherited private subprogram now there is no need to
7121 inherit its dispatching slot and reduce the size of the dispatch table.
7122 Set_All_DT_Position now ensures that the same slot is now assigned to
7123 both entities. This is required to statically build the dispatch table.
7124 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
7125 of calling Set_All_DT_Position to re-evaluate the position of the
7126 entries in the dispatch table. Such reevaluation is not desired if
7127 the tagged type is already frozen.
7129 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
7130 Gary Dismukes <dismukes@adacore.com>
7131 Robert Dewar <dewar@adacore.com>
7132 Javier Miranda <miranda@adacore.com>
7134 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
7135 reference acts as an lvalue when the attribute name modifies the prefix
7136 (Is_Coextension_Root): New routine.
7137 (Mark_Static_Coextensions): New routine.
7138 (Type_Access_Level): Revise code for checking the level of the
7139 anonymous access type of a return object.
7140 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
7141 (Matches_Prefixed_View_Profile): Remove the no longer necessary
7142 retrieval of the corresponding controlling record type.
7143 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
7144 concurrent types declared within a generic as well as class wide types.
7145 Emit a mode incompatibility error whenever a protected entry or routine
7146 override an interface routine whose first parameter is not of mode
7147 "out", "in out" or access to variable.
7148 (Overrides_Synchronized_Primitive): Rename to
7149 Find_Overridden_Synchronized_Primitive.
7150 (Collect_Interface_Components): New subprogram that collects all the
7151 components of a tagged record containing tags of secondary dispatch
7153 (Add_Global_Declaration): New procedure
7154 (Abstract_Interface_List): Handle properly the case of a subtype of a
7156 (Type_Access_Level): In the case of a type whose parent scope is a
7157 return statement, call Type_Access_Level recursively on the enclosing
7158 function's result type to determine the level of the return object's
7160 (Build_Elaboration_Entity): Build name of elaboration entity from the
7161 scope chain of the entity, rather than the unit name of the file name.
7162 (Check_Nested_Access): New procedure.
7163 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
7164 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
7165 (Get_Renamed_Entity): Utility routine for performing common operation
7166 of chasing the Renamed_Entity field of an entity.
7168 2007-06-06 Robert Dewar <dewar@adacore.com>
7170 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
7172 (Check_A_Call): Add check for entry call which was causing blowup
7174 2007-06-06 Olivier Hainque <hainque@adacore.com>
7176 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
7177 special code on ia64-vms to handle major incompatibilities between the
7178 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
7179 this routine with a very different set of arguments and expectations on
7182 2007-06-06 Thomas Quinot <quinot@adacore.com>
7184 * socket.c (__gnat_close_signalling_fd): New function.
7185 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
7186 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
7187 New supporting functions for task safe Netdb operations.
7189 2007-06-06 Thomas Quinot <quinot@adacore.com>
7190 Olivier Hainque <hainque@adacore.com>
7192 * a-except-2005.ads, a-except-2005.adb
7193 (Raise_From_Controlled_Operation): New procedure in
7194 (private part of) Ada.Exceptions (standard runtime version). Used to
7195 provide informational exception message when Program_Error is raised as
7196 a result of an Adjust or Finalize operation propagating an exception.
7197 (Rmsg_28): Fix description for E.4(18) check.
7198 (Raise_Current_Excep): Call Debug_Raise_Exception just before
7199 propagation starts, to let debuggers know about the event in a reliable
7201 Take the address of E and dereference to make sure it is homed on stack
7202 and prevent the stores from being deleted, necessary for proper
7203 debugger behavior on "break exception" hits.
7204 (Local_Raise): Moved to System.Exceptions
7206 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
7207 exception message from the current occurrence and raise Program_Error
7208 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
7210 2007-06-06 Jose Ruiz <ruiz@adacore.com>
7211 Arnaud Charlet <charlet@adacore.com>
7213 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
7216 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
7217 priority associated to a lock.
7219 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
7220 assertion to take into account case of no abort restriction.
7221 (Initialize_Protection_Entries): Add initialization for the field
7222 New_Ceiling associated to the protected object.
7223 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
7226 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
7227 since this function needs to be set consistently with Update_Exception.
7229 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
7230 since this function needs to be set consistently with Update_Exception.
7232 * s-taskin.ads: Update comments on
7233 Interrupt_Server_Blocked_On_Event_Flag.
7234 (Unbind_Handler): Fix handling of server_task wakeup
7235 (Server_Task): Set self's state so that Unbind_Handler can take
7236 appropriate actions.
7237 (Common_ATCB): Now use a constant from System.Parameters to determine
7238 the max size of the Task_Image field.
7240 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
7241 Initialize_Analyzer function.
7242 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
7243 take into account case of no abort restriction.
7244 ([Vulnerable_]Complete_Master): Modify assertion.
7246 * s-tataat.adb (Finalize): Use the nestable versions of
7247 Defer/Undefer_Abort.
7249 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
7251 * s-tpobop.ads: Update comments.
7253 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
7254 of locking the object manually, to avoid inconsistencies between
7255 Lock/Unlock_Entry assertions.
7257 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
7259 application and System.Parameters.No_Abort is True.
7260 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
7261 (Unbind_Handler): Fix handling of server_task wakeup
7262 (Server_Task): Set self's state so that Unbind_Handler can take
7263 appropriate actions.
7265 2007-06-06 Thomas Quinot <quinot@adacore.com>
7267 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
7268 declarations instead of an explicit null body, for conciseness.
7270 2007-06-06 Robert Dewar <dewar@adacore.com>
7272 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
7273 illegal aggregate and the type is still Any_Composite.
7274 (Subtypes_Statically_Match): Fix problem of empty discriminant list
7276 2007-06-06 Ed Schonberg <schonberg@adacore.com>
7278 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
7279 to prevent subsequent expansion.
7281 2007-06-06 Robert Dewar <dewar@adacore.com>
7283 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
7285 2007-06-06 Ed Schonberg <schonberg@adacore.com>
7286 Robert Dewar <dewar@adacore.com>
7288 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
7290 (Write_Itype): Handle case of string literal subtype, which
7291 comes up in this context.
7292 (Update_Itype): when debugging expanded code, update sloc of itypes
7293 associated with defining_identifiers and ranges, for gdb use.
7294 (Sprint_Node_Actual): Add static keyword to object or exception
7295 declaration output if Is_Statically_Allocated is True.
7296 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
7297 or task body, so that the tree carries the proper Sloc information for
7299 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
7301 2007-06-06 Arnaud Charlet <charlet@adacore.com>
7303 * s-secsta.adb (Chunk): Ensure this object has a static size known at
7304 compile time, to avoid dynamic memory allocation
7305 (Elaboration code): Only use dynamic memory allocation when needed.
7307 2007-06-06 Quentin Ochem <ochem@adacore.com>
7309 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
7311 (Stack_Analyzer): Added field "Overflow_Guard"
7312 (Task_Result): Added field "Overflow_Guard".
7313 (Index_Str): New constant.
7314 (Task_Name_Str): New constant.
7315 (Actual_Size_Str): New constant.
7316 (Pattern_Array_Element_Size): New constant.
7317 (Get_Usage_Range): New subprogram.
7318 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
7319 Now align the output.
7321 (Initialize): Added value for Overflow_Guard.
7322 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
7323 Update the value of the overflow guard according to the actual
7324 beginning of the pattern array.
7325 (Initialize_Analyzer): Added parameter Overflow_Guard.
7326 Take this parameter into accound when computing the max size.
7327 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
7328 (Report_Result): Removed extra useless procedure.
7329 Updated call to Output_Result.
7330 Moved full computation of the Task_Result here.
7332 2007-06-06 Thomas Quinot <quinot@adacore.com>
7334 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
7335 Thread_Blocking_IO, always True by default, set False on a per-runtime
7337 Add Windows-specific constants
7338 Add new constant Need_Netdb_Buffer.
7339 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
7340 not, whether to use getXXXbyYYY_r.
7342 * gsocket.h: Add new constant Need_Netdb_Buffer.
7343 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
7344 not, whether to use getXXXbyYYY_r.
7346 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
7348 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
7349 than their first call.
7350 Add type Dummy_Communication_Block used in the generation of the pre-
7351 defined dispatching primitive _disp_asynchronous_select.
7352 (Storage_Element): Put Pragma Universal_Aliasing on it.
7354 2007-06-06 Vincent Celier <celier@adacore.com>
7356 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
7359 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
7360 letter if it is not followed by a '/' or a '\'.
7361 (Windows): New Boolean function
7363 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
7365 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
7367 (Containing_Directory): Raise Use_Error when the directory is a root
7369 (Extension): When returning the result, use a conversion to Result_Type,
7370 not a qualification.
7372 2007-06-06 Robert Dewar <dewar@adacore.com>
7374 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
7375 (Set_Style_Check_Options): Recognize new -gnatyg style switch
7377 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
7378 Warn_On_Non_Local_Exception to False, to turn off warnings for
7379 No_Exception_Propagation in ZFP runtime.
7380 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
7382 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
7384 2007-06-06 Vincent Celier <celier@adacore.com>
7386 * switch-b.adb (Scan_Binder_Switches): Add processing for new
7389 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
7390 (Scan_Make_Switches): Recognize new switch -aP
7392 2007-06-06 Matthew Gingell <gingell@adacore.com>
7393 Jose Ruiz <ruiz@adacore.com>
7395 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
7396 VxWorks task descriptor in the Ada run time, call a C subprogram
7397 (__gnat_get_stack_info) that extracts the required information.
7399 * sysdep.c: Back out temporary lynxos workaround.
7400 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
7401 time the stack information associated to the currently executing task.
7402 Only VxWorks systems require this function.
7404 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
7406 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
7407 add the stack bias if the offset is computed from a frame address.
7408 (__gnat_backtrace): Adjust for above change.
7410 2007-06-06 Thomas Quinot <quinot@adacore.com>
7412 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
7413 PE_Non_Transportable_Actual.
7414 (By_Descriptor_Last): New constant.
7415 (By_Copy_Return): Likewise.
7417 2007-06-06 Vincent Celier <celier@adacore.com>
7419 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
7422 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
7423 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
7424 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
7425 Add missing comment for /OPTIMIZE=SPACE
7426 Add entry for OPTIMIZE=SPACE
7427 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
7428 Add documentation for new qualifiers corresponding to -gnatw.c/.C
7430 2007-06-06 Vincent Celier <celier@adacore.com>
7431 Robert Dewar <dewar@adacore.com>
7433 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
7436 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
7437 Document gnatbind switch -a
7438 (case Constructions): Document that variables declarations are allowed
7439 for previously declared variables.
7440 Fix external lib project example
7441 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
7442 Indicate that "#if not X or Y then" is not allowed in input files to
7444 Document gnatw.x and gnatw.X warning flags
7445 Mention -Winline switch to activate warnings when back-end inlining is
7447 Add gnatcheck rule descriptions
7448 Describe how to use the GNAT driver to call a tool on a closure.
7449 Describe how to run project-wide checks or metrics.
7450 Document gnatbind's -R option
7451 Updated to account for Ada 2005 support
7453 * gnat_rm.texi (Case Construction): Allow variable declarations for
7454 previously declared variables.
7455 (Representation Clauses and Pragmas): Lift restriction on alignment
7456 clauses for record types.
7457 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
7458 Document No_Exception_Propagation restriction
7459 Document No_Body pragma
7460 Updated to account for Ada 2005 support; corrected some typos
7461 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
7463 * gnat-style.texi: Make it clear that we never use mode IN for
7464 procedures or functions
7466 * ug_words: Add entries for -gnatw.x and -gnatw.X
7467 Add entries for -gnatw.c/.C
7469 2007-06-06 Pascal Obry <obry@adacore.com>
7470 Vincent Celier <celier@adacore.com>
7472 * makegpr.adb (Add_Archive_Path): Use untouched object and library
7473 dirs and library name.
7474 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
7476 (Build_Library): Idem.
7477 (Compile_Individual_Sources): Idem.
7478 (Compile_Link_With_Gnatmake): Idem.
7479 (Compile_Sources): Idem.
7480 (Get_Imported_Directories): Idem.
7481 (Link_Executables): Idem. Same change for the executable dir.
7482 (Check_Compilation_Needed): C_Source_Path new variable containing
7483 the canonical form of Source_Path to check against the source names
7484 in the dependency file.
7485 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
7486 verbose mode, display the name of the object directory we're changing
7488 (Saved_Switches): New name of table X_Switches
7489 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
7490 (Usage): New line for switch -aP
7491 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
7492 testing if a directory should be added to the search path.
7494 2007-06-06 Javier Miranda <miranda@adacore.com>
7496 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
7497 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
7498 declaration after freezing point of all its associated tagged types;
7499 otherwise such types are frozen too early.
7501 2007-06-06 Robert Dewar <dewar@adacore.com>
7503 * a-reatim.adb: Documentation addition
7505 * g-cgideb.adb: Minor code reorganization
7507 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
7508 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
7509 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
7511 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
7512 function. Change name New_Scope to Push_Scope
7513 (Get_Debug_Flag_K): Remove unused obsolete function.
7515 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
7518 * makeusg.adb: Update Copyright notice
7519 Add line for switch -aP
7521 * makeusg.adb: Fix wording of some usage messages
7523 * s-assert.adb (Raise_Assert_Failure): Add call to
7524 Debug_Raise_Assert_Failure.
7526 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
7527 (2, Standard'Alignment) for compatibility with AAMP (where alignment
7528 is restricted to 1).
7530 * s-wchjis.adb: Remove use of System.Pure_Exceptions
7532 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
7533 node location to No_Location when we're not debugging the expanded
7536 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
7538 * misc.c (enumerate_modes): Consider log2_b to always be one.
7540 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
7542 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
7544 2007-05-02 Pascal Obry <obry@adacore.com>
7546 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
7547 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
7548 encoding support of Stream_IO.
7551 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
7552 filename and corresponding encoding to match the OS requirement.
7553 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
7554 routine will fail on specific devices like CON: AUX: ...
7556 PR ada/29856: Add missing braces
7558 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
7561 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
7563 2007-04-21 Jan Hubicka <jh@suse.cz>
7565 * misc.c (gnat_expand_body): Don't call target for destructors,
7566 avoid redundant check on syntax errors.
7568 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
7570 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
7571 instead of checking GIMPLE_STMT_P in chain_next.
7573 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
7576 * system-linux-alpha.ads: Disable constant condition warning for the
7577 Default_Bit_Order variable.
7578 * system-linux-s390.ads: Likewise.
7579 * system-linux-s390x.ads: Likewise.
7580 * system-linux-sparc.ads: Likewise.
7582 2007-04-06 Javier Miranda <miranda@adacore.com>
7583 Matt Heaney <heaney@adacore.com>
7584 Robert Dewar <dewar@adacore.com>
7586 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
7587 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
7588 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
7589 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
7590 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
7591 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
7592 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
7593 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
7594 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
7595 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
7596 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
7597 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
7598 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
7599 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
7600 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
7601 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
7602 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
7603 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
7604 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
7605 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
7606 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
7607 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
7608 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
7609 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
7610 s-taprop-tru64.adb, s-taprop-irix.adb,
7611 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
7612 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
7613 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
7614 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
7615 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
7616 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
7617 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
7618 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
7619 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
7620 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
7621 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
7622 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
7623 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
7624 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
7625 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
7626 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
7627 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
7628 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
7629 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
7630 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
7632 Update documentation.
7635 2007-04-06 Robert Dewar <dewar@adacore.com>
7637 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
7638 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7639 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
7640 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
7641 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
7642 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7643 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
7644 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
7645 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
7646 system-hpux-ia64.ads, targparm.adb,
7647 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
7649 * system.ads: Move Functions_Return_By_DSP to obsolete section,
7650 kept for bootstrap purposes only.
7652 2007-04-06 Arnaud Charlet <charlet@adacore.com>
7654 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
7655 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
7656 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
7657 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
7659 2007-04-06 Robert Dewar <dewar@adacore.com>
7661 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
7662 (Local_Raise): New dummy procedure called when a raise is converted
7663 to a local goto. Used for debugger to detect that the exception
7666 * debug.adb: Document new d.g flag (expand local raise statements to
7667 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
7669 * exp_sel.adb: Use Make_Implicit_Exception_Handler
7671 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
7672 suppress warnings for unused handlers.
7673 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
7674 warnings for raise statements not handled locally.
7675 (Get_RT_Exception_Entity): New function
7676 (Get_Local_Call_Entity): New function
7677 (Find_Local_Handler): New function
7678 (Warn_If_No_Propagation): New procedure
7679 (Expand_At_End_Handler): Call Make_Implicit_Handler
7680 (Expand_Exception_Handlers): Major additions to deal with local handlers
7681 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
7682 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
7685 * exp_ch11.ads (Get_RT_Exception_Entity): New function
7686 (Get_Local_Call_Entity): New function
7688 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
7689 of restrictions that the binder will never suggest adding.
7691 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
7694 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
7695 be with'ed in the presence of pragma Restriction
7696 (No_Exception_Propagation).
7698 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
7700 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
7701 parameter, then the handler is not a suitable target for a local raise,
7702 and this is a violation of restriction No_Exception_Propagation.
7703 (Analyze_Handled_Statements): Analyze choice parameters in exception
7704 handlers before analyzing statement sequence (needed for proper
7705 detection of local raise statements).
7706 (Analyze_Raise_Statement): Reraise statement is a violation of the
7707 No_Exception_Propagation restriction.
7709 * s-rident.ads: Add new restriction No_Exception_Propagation
7711 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
7712 function, like Make_Exception_Handler but sets Local_Raise_Statements
7714 (Add_Unique_Serial_Number): Deal with case where this is called during
7715 processing of configuration pragmas.
7717 2007-04-06 Thomas Quinot <quinot@adacore.com>
7718 Pat Rogers <rogers@adacore.com>
7719 Pascal Obry <obry@adacore.com>
7721 * g-stsifd-sockets.adb: New file.
7723 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
7724 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
7725 g-socthi-vms.adb: Move signalling
7726 fd management to a nested package, so that they can conveniently be
7727 moved to a subunit that is shared across Windows, VMS, and VxWorks
7728 (Ada implementation) or completed with imported bodies from socket.c
7730 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
7732 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
7733 the signalling file descriptor.
7734 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
7735 signalling file descriptor.
7736 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
7737 instead of creating a pair of sockets for signalling here.
7739 * g-socthi.adb: Ditto.
7740 Set the runtime process to ignore SIGPIPEs on platforms that support
7741 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
7743 * g-socthi-mingw.adb: Ditto.
7744 (WS_Version): Use Windows 2.2.
7745 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
7747 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
7748 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
7750 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
7751 added GNAT byte swapping facility
7752 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
7754 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
7756 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
7758 (__gnat_create_signalling_fds): New subprogram.
7759 Set the runtime process to ignore SIGPIPEs on platforms that support
7760 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
7762 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
7763 Vincent Celier <celier@adacore.com>
7765 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
7766 New version of Ada.Calendar which supports the new upper bound of Ada
7767 time (2399-12-31 86_399.999999999).
7768 The following modifications have been made to the package:
7769 - New representation of time as count of nanoseconds since the start of
7770 Ada time (1901-1-1 0.0).
7771 - Target independent Split and Time_Of routines which service both
7772 Ada 95 and Ada 2005 code.
7773 - Target independent interface to the Ada 2005 children of Calendar.
7774 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
7775 - Handling of non-leap centenial years.
7776 - Updated clock function.
7777 - Updated arithmetic and comparison operators.
7779 * a-caldel.adb (To_Duration): Add call to target independent routine in
7780 Ada.Calendar to handle the conversion of time to duration.
7782 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
7784 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
7786 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
7787 targets do not have a natural time zone, GMT is used as a default.
7788 (__gnat_get_task_options): New.
7790 * a-direct.adb (Modification_Time): Add with and use clauses for
7791 Ada.Calendar and Ada.
7792 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
7793 since it is no longer needed.
7794 (Duration_To_Time): Removed.
7795 (OS_Time_To_Long_Integer): Removed.
7796 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
7797 Formatting Time_Of routines which automatically handle time zones,
7798 buffer periods and leap seconds.
7800 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
7801 target independent routines in Ada.Calendar.
7803 * a-calfor.ads, a-calfor.adb:
7804 Code cleanup and addition of validity checks in various routines.
7805 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
7808 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
7809 independent routine in Ada.Calendar.
7811 2007-04-06 Olivier Hainque <hainque@adacore.com>
7814 (convert_addresses): Adjust prototype and dummy definition to expect an
7815 extra file_name argument.
7817 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
7818 filling the now expected file_name argument with the appropriate
7820 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
7821 (tracebk): Array of void * instead of char *, corresponding to what
7822 convert_addresses expects.
7823 (exename): New static global, to hold the executable file name to be
7824 used in all convert_addresses invocations.
7825 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
7827 (__gnat_gmem_a2l_initialize): Resolve exename.
7828 (__gnat_convert_addresses): Use exename as the convert_addresses
7831 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
7832 "convert_addresses", now expecting a filename argument. Import the
7833 necessary entities to compute the filename to use and pass it to
7836 2007-04-06 Matt Gingell <gingell@adacore.com>
7838 * system-aix.ads: Back out previous change.
7839 (Functions_Return_By_DSP): Removed
7841 2007-04-06 Pascal Obry <obry@adacore.com>
7843 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
7844 or the monotonic used by Ada.Real_Time) to compute the sleep duration
7847 2007-04-06 Jose Ruiz <ruiz@adacore.com>
7849 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
7850 function. Its value changes in different VxWorks versions, and it is
7851 now handled by the function __gnat_get_task_options.
7853 * s-taprop-vxworks.adb (Create_Task): Call the function
7854 __gnat_get_task_options to get the required options for creating a task.
7856 2007-04-06 Pascal Obry <obry@adacore.com>
7857 Thomas Quinot <quinot@adacore.com>
7859 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
7860 dealing with filename.
7861 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
7862 filename from a standard string to a wide-string depending on the
7864 (__gnat_freopen): Idem.
7865 (__gnat_current_time): New function (wrapper for time(3) standard C
7868 * g-os_lib.ads (Current_Time): New function. Returns the current
7869 system time as an OS_Time value.
7871 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
7872 (Monotonic_Clock): Same.
7874 2007-04-06 Quentin Ochem <ochem@adacore.com>
7876 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
7878 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
7880 2007-04-06 Jose Ruiz <ruiz@adacore.com>
7882 * a-retide.adb: Add elaboration code to ensure that the tasking run
7883 time is initialized when using delay operations even when no task is
7886 2007-04-06 Javier Miranda <miranda@adacore.com>
7888 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
7889 component Num_Prim_Ops.
7890 (Set_Num_Prim_Ops): Removed.
7891 Remove all the assertions because all the routines of this
7892 package are inline always.
7893 (Get_Offset_Index): Add support to primary dispatch tables.
7894 Move the documentation about the dispatch table to a-tags.ads
7895 (Set_External_Tag): Removed
7896 (Inherit_TSD): Removed.
7897 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
7899 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
7900 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
7901 of the TSD field "Table" because this field has been renamed to
7903 (Inherit_CPP_DT): Removed.
7904 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
7905 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
7906 declarations have been moved to a-tags.ads
7907 (Check_Size): Removed.
7908 (Expanded_Name): Updated to get access to the new field of TSD
7909 containing the address of the expanded name.
7910 (Get_Access_Level/Set_Access_Level): Removed.
7911 (Get_Predefined_Prim_Op_Address): Removed.
7912 (Set_Predefined_Prim_Op_Address): Removed.
7913 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
7914 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
7915 (Set_Expanded_Name): Removed.
7916 (Inherit_DT): Removed.
7917 (Inherit_CPP_DT): Removed.
7918 (Set_RC_Offset): Removed.
7920 (Base_Address): New function that displaces "this" to point to the base
7921 of the object (that is, to point to the primary tag of the object).
7923 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7924 Javier Miranda <miranda@adacore.com>
7926 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
7927 anonymous access component, do not create a master_id if type already
7928 has one, as may happen if the type is a subcomponent of a packed array
7930 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
7931 Initialize_Tag): Remove code associated with the old CPP pragmas.
7932 CPP_Virtual and CPP_Vtable are no longer supported.
7933 (Build_Offset_To_Top_Internal): Add support for concurrent record types
7934 (Build_Offset_To_Top_Functions): Add support for concurrent record types
7935 (Freeze_Record_Type): Remove call to
7936 Init_Predefined_Interface_Primitives.
7937 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
7938 code required to initialize the tags of the secondary dispatch tables.
7939 This leaves the algoritm more clear.
7940 (Init_Secondary_Tags): Add support for concurrent record types
7941 (Make_Predefined_Primitive_Specs): Code cleanup.
7942 (Predefined_Primitive_Bodies): Code cleanup.
7943 (Build_Master_Renaming): New local subprogram.
7944 (Expand_N_Full_Type_Declaration): Build the master_id associated with
7945 anonymous access to task type components.
7946 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
7947 subtype indication are resolved during analysis, and must not be done
7949 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
7951 2007-04-06 Geert Bosch <bosch@adacore.com>
7952 Ed Schonberg <schonberg@adacore.com>
7953 Javier Miranda <miranda@adacore.com>
7954 Bob Duff <duff@adacore.com>
7956 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
7957 for conversion of a Float_Type'Truncation to integer.
7959 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
7960 check if a node is an attribute that can be handled directly by the
7962 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
7963 attributes that can be handled directly by the back end.
7964 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
7965 use new predicate Is_Access_Protected_Subprogram_Type.
7966 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
7967 and Unchecked_Union if it is generated as part of the default Output
7968 procedure for a type with default discriminants.
7969 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
7970 if we are compiling under restriction No_Dispatching_Calls.
7971 (Constrained): Use Underlying_Type, in case the type is private without
7972 discriminants, but the full type has discriminants.
7973 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
7974 call to Build_Get_Access_Level.
7975 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
7976 interface objects requires a call to the run-time subprogram that
7977 returns the base address of the object.
7978 (Valid_Conversion): Improve error message on illegal attempt to store
7979 an anonymous access to subprogram value into a record component.
7981 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
7983 (Simplify_Type_Conversion): New procedure that performs simplification
7984 of Int_Type (Float_Type'Truncation (X)).
7985 (Resolve_Type_Conversion): Call above procedure after resolving operand
7986 and before performing checks. This replaces the existing ineffective
7988 (Set_String_Literal_Subtype): When creating the internal static lower
7989 bound subtype for a string literal, use a newly created copy of the
7990 subtree representing the lower bound.
7991 (Resolve_Call): Exclude build-in-place function calls from transient
7992 scope treatment. Update comments to describe this exception.
7993 (Resolve_Equality_Op): In case of dispatching call check violation of
7994 restriction No_Dispatching_Calls.
7995 (Resolve_Call): If the call returns an array, the context imposes the
7996 component type of the array, and the function has one non-defaulted
7997 parameter, rewrite the call as the indexing of a call with a single
7998 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
8000 (Resolve_Actuals): If an actual is an allocator for an access parameter,
8001 the master of the created object is the innermost enclosing statement.
8002 (Remove_Conversions): For a binary operator, check if type of second
8003 formal is numeric, to check if an abstract interpretation is present
8004 in the case of exponentiation as well.
8006 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8007 Bob Duff <duff@adacore.com>
8009 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
8010 copying a parameter list in a call, set properly the First_Named_Formal
8011 and Next_Named_Formal fields in the new list and in the enclosing call.
8012 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
8013 names, to ease typing in the debugger. Improve comments.
8014 (Watch_Node): New variable, intended to be set in the debugger.
8015 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
8016 called when the watched node is created.
8017 (New_Node_Debugging_Output): Combined version of local procedures
8018 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
8019 with a parameter so that conditional breakpoints like "if Node = 12345"
8021 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
8024 2007-04-06 Thomas Quinot <quinot@adacore.com>
8025 Ed Schonberg <schonberg@adacore.com>
8026 Gary Dismukes <dismukes@adacore.com>
8028 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
8029 required for a conversion between two access-to-unconstrained-array
8031 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
8032 to discriminant constraints on discriminant objects. This rule must
8033 apply as well to discriminants of protected types in private components.
8034 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
8035 object of a null-excluding access type then don't require the
8036 the object declaration to have an expression and don't emit a
8039 2007-04-06 Arnaud Charlet <charlet@adacore.com>
8040 Eric Botcazou <botcazou@adacore.com>
8042 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
8045 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
8046 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
8049 * fe.h (Compiler_Abort): Add third parameter.
8051 * misc.c (internal_error_function): Build third argument from current
8052 input location and pass it to Compiler_Abort.
8054 2007-04-06 Gary Dismukes <dismukes@adacore.com>
8056 * cstand.adb (Create_Standard): When the target's storage unit size is
8057 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
8060 2007-04-06 Nicolas Roche <roche@adacore.com>
8062 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
8063 absolute path can have the following form: device:/a/b. In this case
8064 '/' should be inserted between the path and the filename.
8066 2007-04-06 Olivier Hainque <hainque@adacore.com>
8067 Eric Botcazou <botcazou@adacore.com>
8069 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
8070 VAR_DECL to a CONST_DECL we make for a public constant when we know the
8071 corresponding definition has created the so made visible variable.
8072 Handle anonymous access to protected subprogram.
8073 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
8074 object with an address clause volatile. Re-enable original fix.
8075 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
8077 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
8078 associated with either the Equivalent or Root type, instead of the
8080 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
8081 subtree for every field of a global record type.
8082 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
8083 discriminants, invoke again variable_size on its newly computed sizes.
8085 2007-04-06 Robert Dewar <dewar@adacore.com>
8086 Thomas Quinot <quinot@adacore.com>
8087 Ed Schonberg <schonberg@adacore.com>
8088 Bob Duff <duff@adacore.com>
8090 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
8091 (Next_Component_Or_Discriminant): New function and procedure
8092 (First_Index, First_Literal, Master_Id,
8093 Set_First_Index, Set_First_Literal, Set_Master_Id):
8094 Add missing Ekind assertions.
8095 (Is_Access_Protected_Subprogram_Type): New predicate.
8096 (Has_RACW): New entity flag, set on package entities to indicate that
8097 the package contains the declaration of a remote accecss-to-classwide
8099 (E_Return_Statement): This node type has the Finalization_Chain_Entity
8100 attribute, in case the result type has controlled parts.
8101 (Requires_Overriding): Add this new flag, because "requires
8102 overriding" is subtly different from "is abstract" (see AI-228).
8103 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
8104 Is_Abstract_Type. Make sure these are called only when appropriate.
8105 (Has_Pragma_Unreferenced_Objects): New flag
8107 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
8108 class-wide, the tag of the right-hand side must be an exact match, not
8109 an ancestor of that of the object on left-hand side.
8110 (Move_Activation_Chain): New procedure to create the call to
8111 System.Tasking.Stages.Move_Activation_Chain.
8112 (Expand_N_Extended_Return_Statement): Generate code to call
8113 System.Finalization_Implementation.Move_Final_List at the end of a
8114 return statement if the function's result type has controlled parts.
8115 Move asserts to Build_In_Place_Formal.
8116 (Move_Final_List): New function to create the call statement.
8117 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
8118 tagged type, replace generation of call to the run-time subprogram
8119 CW_Membership by call to Build_CW_Membership.
8120 (Expand_N_Return_Statement): Replace generation of call to the run-time
8121 subprogram Get_Access_Level by call to Build_Get_Access_Level.
8122 (Expand_N_Simple_Function_Return): Replace generation of call to the
8123 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
8125 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
8126 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
8127 access to protected operations.
8128 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
8129 master and chain actual parameters to a build-in-place function call
8131 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
8133 (Make_Build_In_Place_Call_In_Allocator,
8134 Make_Build_In_Place_Call_In_Anonymous_Context,
8135 Make_Build_In_Place_Call_In_Assignment,
8136 Make_Build_In_Place_Call_In_Object_Declaration): Call
8137 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
8138 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
8139 stubbed procedure with a null body, replace the call with a null
8140 statement without using the full inlining machinery, for efficiency
8141 and to avoid invalid values in source file table entries.
8143 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
8144 renamings of calls to build-in-place functions.
8146 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
8147 provides the functionality of RTE_Available to record components.
8148 (RTU_Entity): The function Entity has been renamed to RTU_Entity
8149 to avoid undesired overloading.
8150 (Entity): New subprogram that returns the entity for the referened
8151 unit. If this unit has not been loaded, it returns Empty.
8152 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
8153 Remove no longer used entities.
8154 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
8155 (RE_Type_Specific_Data): New entity.
8156 (RE_Move_Any_Value): New entity.
8157 (RE_TA_A, RE_Get_Any_Type): New entities.
8158 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
8159 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
8160 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
8161 (Entity): New subprogram that returns the entity for the referened
8162 unit. If this unit has not been loaded, it returns Empty.
8163 (RTE): Addition of a new formal that extends the search to the scopes
8164 of the record types found in the chain of the package.
8166 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
8167 "abstract subprograms must be visible" message, whether or not the type
8168 is an interface; that is, remove the special case for interface types.
8169 (Analyze_Function_Return): Remove error message "return of task objects
8170 is not yet implemented" because this is now implemented.
8171 (Create_Extra_Formals): Add the extra master and activation chain
8172 formals in case the result type has tasks.
8173 Remove error message "return of limited controlled objects is not yet
8175 (Create_Extra_Formals): Add the extra caller's finalization list formal
8176 in case the result type has controlled parts.
8177 (Process_Formals): In case of access formal types there is no need
8178 to continue with the analysis of the formals if we already notified
8180 (Check_Overriding_Indicator): Add code to check overriding of predefined
8182 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
8183 flags for formals that do not require them,.
8184 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
8185 hidden entity is use visible or directly visible.
8186 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
8187 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
8188 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
8189 New_Overloaded_Entity): Split Is_Abstract flag into
8190 Is_Abstract_Subprogram and Is_Abstract_Type.
8192 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
8193 a return statement's finalization list to the caller's list, used for
8194 build-in-place functions with result type with controlled parts.
8195 Remove no longer used entities.
8197 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
8198 longer needed, because the full type is now limited, and therefore a
8199 pass-by-reference type.
8200 (Foreign_Task_Level): New constant.
8202 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
8203 move tasks from the activation chain belonging to a return statement to
8204 the one passed in by the caller, and update the master to the one
8205 passed in by the caller.
8206 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
8207 of unactivated tasks, so we don't kill the ones that are being returned
8208 by a build-in-place function.
8209 (Create_Task): Ignore AI-280 for foreign threads.
8211 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8212 Robert Dewar <dewar@adacore.com>
8213 Bob Duff <duff@adacore.com>
8214 Gary Dismukes <dismukes@adacore.com>
8216 * errout.adb (Unwind_Internal_Type): Use predicate
8217 Is_Access__Protected_Subprogram_Type.
8219 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
8220 (Freeze_Entity, packed array case): Do not override explicitly set
8221 alignment and size clauses.
8222 (Freeze_Entity): An entity declared in an outer scope can be frozen if
8223 the enclosing subprogram is a child unit body that acts as a spec.
8224 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
8225 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
8226 Remove all code for DSP option
8228 * layout.adb (Layout_Record_Type): Use First/
8229 Next_Component_Or_Discriminant
8230 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
8231 to handle properly the anonymous access case.
8233 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
8234 for all access attributes, because overload resolution should work the
8235 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
8236 causes the error message for the ambiguous "X'Access = Y'Access" and
8237 "X'Unrestricted_Access = Y'Access" and so forth to match.
8238 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
8239 now that anonymous access to protected operations have their own kind.
8240 (Resolve_Attribute): In case of dispatching call check the violation of
8241 restriction No_Dispatching_Calls.
8242 (Check_Array_Type): Check new -gnatyA array index style option
8244 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
8245 attempt to derive from a synchronized tagged type.
8246 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
8247 type, inherit the class-wide type already created, because it may
8248 already have been used in a self-referential anonymous access component.
8249 (Mentions_T): Recognize self-referential anonymous access components
8250 that use (a subtype of) the class-wide type of the enclosing type.
8251 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
8252 Derived_Type for Prev formal on call to
8253 Check_Anonymous_Access_Components rather than Empty.
8254 (Make_Incomplete_Type_Declaration): Add test for case where the type has
8255 a record extension in deciding whether to create a class-wide type,
8256 rather than just checking Tagged_Present.
8257 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
8258 to stand-alone object declarations as well as component declarations.
8259 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
8260 prevent accidental overwriting when enclosing package appears in
8261 a limited_with_clause.
8262 (Array_Type_Declaration): If the component type is an anonymous access,
8263 the associated_node for the itype is the type declaration itself.
8264 (Add_Interface_Tag_Components): Modified to support concurrent
8265 types with abstract interfaces.
8266 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
8267 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
8268 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
8269 to complete the decoration of synchronized interface types. Add also
8270 a call to Check_Abstract_Interfaces to verify the ARM rules.
8271 (Derive_Interface_Subprograms): Modified to support concurrent types
8272 with abstract interfaces.
8273 (Analyze_Subtype_Indication): Resolve the range with the given subtype
8274 mark, rather than delaying the full resolution depending on context.
8275 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
8276 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
8277 Array_Type_Declaration,Build_Derived_Record_Type,
8278 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
8279 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
8280 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
8281 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
8282 called only when appropriate.
8283 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
8285 (Analyze_Subtype_Declaration): For an access subtype declaration, create
8286 an itype reference for the anonymous designated subtype, to prevent
8287 scope anonmalies in gigi.
8288 (Build_Itype_Reference): New utility, to simplify construction of such
8291 2007-04-06 Vincent Celier <celier@adacore.com>
8293 * errutil.adb (Initialize): Initialize warnings table, if all warnings
8294 are suppressed, supply an initial dummy entry covering all possible
8297 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
8298 and start with only one, such as "-RTS=none".
8299 (Collect_Arguments): Do not check for sources outside of projects.
8300 Do not collect arguments if project is externally built.
8301 (Compile_Sources): Do nothing, not even check if the source is up to
8302 date, if its project is externally built.
8303 (Compile): When compiling a predefined source, add -gnatpg
8304 as the second switch, after -c.
8305 (Compile_Sources): Allow compilation of Annex J renames without -a
8306 (Is_In_Object_Directory): Check if the ALI file is in the object
8307 even if there is no project extension.
8308 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
8309 gnatbind if the ALI file effectively exists.
8310 (Initialize): Add the directory where gnatmake is invoked in front of
8311 the path if it is invoked from a bin directory, even without directory
8312 information, so that the correct GNAT tools will be used when spawned
8313 without directory information.
8315 * makeusg.adb: Change switch -S to -eS
8316 Add lines for new switches -we, -wn and -ws
8317 Add line for new switch -p
8319 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
8320 Treat_As_Error and there are warnings.
8322 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
8323 -gnatww Change gnatmake switch -S to -eS
8324 (Scan_Make_Switches): Code reorganisation. Process separately multi
8325 character switches and single character switches.
8326 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
8327 False when switch is not recognized by gnatmake.
8328 (Scan_Make_Switches): Set Setup_Projects True when -p or
8329 --create-missing-dirs is specified.
8331 * fname.adb (Is_Predefined_File_Name): Return True for annex J
8332 renamings Calendar, Machine_Code, Unchecked_Conversion and
8333 Unchecked_Deallocation only when Renamings_Included is True.
8335 * par.adb: Allow library units Calendar, Machine_Code,
8336 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
8337 when -gnatg is not specified.
8338 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
8339 there is no need to generate always a record_definition_node in case
8340 of synchronized interface types.
8341 (SIS_Entry_Active): Initialize global variable to False
8342 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
8343 indicate cases where AI-447 says "not null" is legal.
8345 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
8347 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
8348 files with with several lines starting with the object fileb name.
8349 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
8351 (Initialize): Add the directory where gprmake is invoked in front of the
8352 path, if it is invoked from a bin directory or with directory
8353 information, so that the correct GNAT tools will be used when invoked
8355 (Check_Compilation_Needed): Process correctly backslashes on Windows.
8357 * vms_data.ads: Update switches/qualifiers
8359 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8360 Thomas Quinot <quinot@adacore.com>
8363 If the array component is a discriminated record, the array aggregate
8364 is non-static even if the component is given by an aggregate with
8366 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
8367 (Convert_Aggr_In_Allocator): If the allocator is for an access
8368 discriminant and the type is controlled. do not place on a finalization
8369 list at this point. The proper list will be determined from the
8371 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
8372 initialize record controller if needed, before the components, to ensure
8373 that they are properly finalized.
8374 (Build_Record_Aggr_Code): For the case of an array component that has a
8375 corresponding array aggregate in the record aggregate, perform sliding
8378 2007-04-06 Javier Miranda <miranda@adacore.com>
8379 Gary Dismukes <dismukes@adacore.com>
8380 Ed Schonberg <schonberg@adacore.com>
8382 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
8383 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
8385 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
8386 accessibility on class-wide allocators if the allocator occurs at the
8387 same scope level as the allocator's type. The check is guaranteed to
8388 succeed in that case, even when the expression originates from a
8389 parameter of the containing subprogram.
8390 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
8391 under No_Dispatching_Calls restriction. During the semantic analysis
8392 we already notified such violation.
8393 (Tagged_Membership): Constant folding. There is no need to check
8394 the tag at run-time if the type of the right operand is non
8395 class-wide abstract.
8396 Replace call to Is_Ancestor by call to Is_Parent
8397 to support concurrent types with interface types.
8398 (Expand_N_Allocator): Add an assertion associated with the generation
8400 (Expand_N_Slice): Do not enable range check to nodes associated
8401 with the frontend expansion of the dispatch table.
8402 (Is_Local_Access_Discriminant): Subsidiary function to
8404 (Tagged_Membership): Replace generation of call to the run-time
8405 subprogram CW_Membership by call to Build_CW_Membership.
8406 (Expand_Allocator_Expression): Replace generation of call to the
8407 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
8409 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
8410 initialize most the TSD components by means of an aggregate.
8411 Modify the declaration of the object containing the TSD
8412 because we now expand code that has a higher level of abstraction.
8413 The TSD has a discriminant containing the Inheritance Depth Level,
8414 value that is used in the membership test but also to fix the size
8415 of the table of ancestors.
8416 (Expand_Interface_Conversion): Insert function body at the closest place
8417 to the conversion expression, to prevent access-before-elaboration
8418 errors in the backend.
8419 Code improved to reduce the size of the dispatch table if
8420 compiling under restriction No_Dispatching_Calls plus code cleanup.
8421 Code reorganization plus removal of calls to Set_Num_Prim_Ops
8422 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
8423 (Expand_Dispatching_Call): Minor code reorganization plus addition of
8424 code to return immediately if compiling under No_Dispatching_Calls
8426 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
8427 CPP_Virtual and CPP_Vtable are no longer supported.
8428 (Expand_Interface_Conversion): Add missing support for interface type
8430 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
8431 Is_Parent to support concurrent types with interfaces.
8432 (Init_Predefined_Interface_Primitives): Removed.
8433 (Make_Secondary_DT): Modified to support concurrent record types.
8434 (Set_All_DT_Position): Modified to support concurrent record types.
8435 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
8436 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
8437 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
8439 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
8440 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
8441 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
8442 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
8443 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
8444 (Expand_Dispatching_Call): Replace generation of call to the run-time
8445 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
8446 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
8448 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
8449 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
8450 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
8451 Build_Set_Prim_Op_Address.
8452 (Get_Remotely_Callable): Subprogram removed.
8453 (Init_Predefined_Interface_Primitives): Replace generation of call to
8454 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
8457 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
8458 First (Parameter_Associations ()) with the call to First_Actual that
8459 returns an actual parameter expression for both named and positional
8462 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
8463 check violation of restriction No_Dispatching_Calls.
8464 (Check_Controlling_Type): A formal of a tagged incomplete type is a
8465 controlling argument.
8467 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
8468 First/Next_Component_Or_Discriminant
8469 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
8470 (Find_Implemented_Interface): Removed. All the calls to this subprogram
8471 specify Any_Limited_Interface, and this functionality is already
8472 provided by the function Has_Abstract_Interfaces.
8473 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
8474 support concurrent types implementing interfaces.
8475 (Find_Implemented_Interface): Removed. All the calls to this subprogram
8476 specify kind Any_Limited_Interface, and this functionality is already
8477 provided by the function Has_Abstract_Interfaces.
8478 (Remove_Side_Effects): replace Controlled_Type by
8479 CW_Or_Controlled_Type whenever the issue is related to
8480 using or not the secondary stack.
8482 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
8483 P_Interface_Type_Definition to fulfill the new interface (the formal
8484 Is_Synchronized is no longer required).
8486 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
8487 Update dependencies.
8489 * exp_atag.ads, exp_atag.adb: New file
8491 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8492 Bob Duff <duff@adacore.com>
8493 Cyrille Comar <comar@adacore.com>
8495 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
8496 anonymous, use finalization list of enclosing dynamic scope.
8497 (Expand_N_Package_Declaration): For a library package declaration
8498 without a corresponding body, generate RACW subprogram bodies in the
8499 spec (just as we do for the task activation call).
8500 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
8501 Is_Abstract_Type. Make sure these are called only when appropriate.
8502 Remove all code for DSP option
8503 (CW_Or_Controlled_Type): new subprogram.
8505 2007-04-06 Eric Botcazou <botcazou@adacore.com>
8506 Ed Schonberg <schonberg@adacore.com>
8507 Gary Dismukes <dismukes@adacore.com>
8509 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
8510 parameter. If it is set to true, return a result capped according to
8511 the global upper bound for the index of an entry family.
8512 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
8513 (Build_Find_Body_Index): Adjust for above change.
8514 (Entry_Index_Expression): Likewise.
8515 (Is_Potentially_Large_Family): New function extracted from...
8516 (Collect_Entry_Families): ...here. Call it to detect whether the family
8517 is potentially large.
8518 (Build_Entry_Count_Expression): If the family is potentially large, call
8519 Family_Size with 'Cap' set to true.
8520 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
8521 a protected version of an operation declared in the private part of
8522 a protected object, because they may be invoked through a callback.
8523 (Set_Privals): If the type of a private component is an anonymous access
8524 type, do not create a new itype for each protected body.
8525 If the body of a protected operation creates
8526 controlled types (including allocators for class-widetypes), the
8527 body of the corresponding protected subprogram must include a
8529 (Build_Activation_Chain_Entity): Build the chain entity for extended
8531 (Type_Conformant_Parameters): Use common predicate Conforming_Types
8532 to determine whether operation overrides an inherited primitive.
8533 (Build_Wrapper_Spec): Add code to examine the parents while looking
8534 for a possible overriding candidate.
8535 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
8536 hold an actual parameter value since its initialization is separated
8537 from the the declaration. Prevents errors on null-excluding access
8540 2007-04-06 Thomas Quinot <quinot@adacore.com>
8542 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
8543 Do an Unchecked_Conversion to handle the passage from the Underlying
8544 Type to the Base Type when calling Build_To_Any_Call and
8545 Build_From_Any_Call.
8546 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
8547 E_Constant, depending upon Variable formal.
8548 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
8549 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
8550 parameter that requires an extra constrained parameter, declare
8551 temporary for actual as a variable, not a constant.
8552 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
8553 the unit being compiled is the one that contains the stub type.
8554 Change primitive operation name for the RACW associated with a RAS
8555 from Call to _Call so it cannot clash with any legal identifier.
8556 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
8558 (Append_RACW_Bodies): New subprogram.
8559 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
8560 Add_Receiving_Stubs_To_Declarations functions.
8561 When expanding a package body, this list correspond to the
8562 statements in the HSS at the end of the pacakge.
8563 When expanding a package spec, this list correspond to the
8565 (Add_Receiving_Stubs_To_Declarations): Append the function
8566 registering the receiving stubs at the end of the 'Stmts' list.
8567 (RCI_Package_Locator): Pass the new Version generic formal when
8568 instantiating a RCI_Locator package.
8569 (Build_From_Any_Function): To compute the High bound for an
8570 unconstrained array actual, we add the Low bound with the length.
8571 Thus we must convert the low bound and the length to an appropriate
8572 type before doing the sum.
8573 (Build_Subprogram_Receiving_Stubs, PolyORB):
8574 * Retrieve the extra formals parameters at the
8575 end of the parameter stream.
8576 * Use Move_Any_Value to write back out parameters
8577 after executing the request as it is more efficient
8578 than Copy_Any_Value.
8579 * Build the any containing Extra Formals with the
8580 appropriate typecode.
8581 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
8582 empty Component_List.
8583 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
8584 the tree the declaration for an object that serves as actual parameter
8585 in server-side stubs.
8586 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
8587 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
8588 Use Build_Actual_Object_Declaration to prepare the actuals.
8589 (Add_Parameter_To_NVList): Set the parameter mode to In for
8590 Extra Constrained Parameters.
8591 (Build_General_Calling_Stubs): Set the parameter type to boolean for
8592 Extra Constrained parameters.
8593 (Build_To_Any_Function, Build_From_Any_Function,
8594 Built_TypeCode_Function): When Typ is implicit, call the correct
8595 function with the first not implicit parent type.
8596 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
8597 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
8598 typecode from the Etype. Therefore we retrieve the correct typecode
8599 with a call to Get_Any_Type.
8600 (Copy_Specification): Do controlling formal type substitution based on
8601 Is_Controlling_Formal flag, instead of caller-provided object type.
8602 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
8603 a RACW primitive operation, we might get a subprogram declaration for an
8604 ancestor of the RACW designated type (not for the designated type
8605 itself), in the case where this operation is inherited. In this case we
8606 have no easy means of determining the original tagged type for which
8607 the primitive was declared, so instead we now rely on
8608 Copy_Specification to use the Is_Controlling_Formal flag to determine
8609 which formals require type substitution.
8611 2007-04-06 Robert Dewar <dewar@adacore.com>
8612 Ed Schonberg <schonberg@adacore.com>
8614 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
8615 GNAT.Current_Exception are not allowed if pragma Restrictions
8616 (No_Exception_Propagation) is set and in any case make the associated
8617 handler unsuitable as a target for a local raise statement.
8618 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
8619 run-time subprogram CW_Membership by call to Build_CW_Membership.
8620 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
8621 by a function call, a temporary must be created before expanding the
8622 Constructor_Call itself, to prevent out-of-order elaboration in the
8623 back-end when stack checking is enabled..
8625 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8627 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
8628 result are the bounds of the left operand, not the right.
8630 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8633 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
8634 discriminant defaults.
8635 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
8636 (Make_Component_List_Attributes): Ditto.
8638 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8639 Bob Duff <duff@adacore.com>
8641 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
8642 an association with a box as providing a value even though the
8643 initialization procedure for the type is not available.
8644 (Resolve_Record_Aggregate): Check that a choice of an association with a
8645 box corresponds to a component of the type.
8646 (Resolve_Record_Aggregate): Split Is_Abstract flag into
8647 Is_Abstract_Subprogram and Is_Abstract_Type.
8649 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
8652 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
8653 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
8654 called only when appropriate.
8656 2007-04-06 Olivier Hainque <hainque@adacore.com>
8658 * g-alleve.ads (Low Level Vector type definitions): Map each to the
8659 associated vector view instead of all to the unsigned char view.
8661 * g-altcon.adb (Generic_Conversions): New internal generic package,
8662 offering facilities for all the Vector/View conversion routines
8663 implemented by this unit.
8664 (To_View/To_Vector - all versions): Reimplemented in a systematic
8665 manner, using the internal Generic_Conversions facilities.
8667 2007-04-06 Pascal Obry <obry@adacore.com>
8669 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
8671 (Create): Free the source string before storing the new one.
8673 2007-04-06 Vincent Celier <celier@adacore.com>
8675 * g-debpoo.adb (Validity): New package with a complete new
8676 implementation of subprograms Is_Valid and Set_Valid.
8677 (Is_Valid): Move to local package Validity
8678 (Set_Valid): Move to local package Validity
8680 2007-04-06 Arnaud Charlet <charlet@adacore.com>
8682 * g-expect.adb (Get_Command_Output): When expanding the output buffer
8683 we must ensure that there is enough place for the new data we are going
8686 2007-04-06 Thomas Quinot <quinot@adacore.com>
8688 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
8691 2007-04-06 Jose Ruiz <ruiz@adacore.com>
8692 Vincent Celier <celier@adacore.com>
8694 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
8695 (Stack_String): Add this String that contains the name of the Stack
8696 package in the project file.
8697 (Packages_To_Check_By_Stack): Add this list that contains the packages
8698 to be checked by gnatstack, which are the naming and the stack packages.
8699 (Check_Files): If no .ci files were specified for gnatstack we add all
8700 the .ci files belonging to the projects, including binder generated
8702 (Non_VMS_Usage): Document that gnatstack accept project file switches.
8703 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
8704 Add gnatstack to the list of commands that use project file related
8705 switches, and get the single attribute Switches from the stack package
8706 in a project file when calling gnatstack. Parse the -U flag for
8707 processing files belonging to all projects in the project tree.
8708 Remove all processing for command Setup
8710 * prj-attr.adb: Add new package Stack with single attribute Switches
8712 * vms_conv.ads (Command_Type): Add command Stack.
8713 Move to body declarations that are only used in the body: types Item_Id,
8714 Translation_Type, Item_Ptr, Item and its subtypes.
8716 * vms_conv.adb: (Initialize): Add data for new command Stack.
8717 Add declarations moved from the spec: types Item_Id, Translation_Type,
8718 Item_Ptr, Item and its subtypes.
8719 (Cargs_Buffer): New table
8720 (Cargs): New Boolean global variable
8721 (Process_Buffer): New procedure to create arguments
8722 (Place): Put character in table Buffer or Cargs_Buffer depending on the
8724 (Process_Argument): Set Cargs when processing qualifiers for GNAT
8726 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
8727 empty, for table Cargs_Buffer.
8728 (Initialize): Remove component Setup in Command_List
8730 2007-04-06 Vincent Celier <celier@adacore.com>
8732 * gprep.adb (Process_Files.Process_One_File): Use full file name when
8733 issuing pragma Source_Reference.
8735 2007-04-06 Emmanuel Briot <briot@adacore.com>
8737 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
8738 [[:xdigit:]] character class.
8739 Also raise an exception when an invalid character class is used.
8741 2007-04-06 Pascal Obry <obry@adacore.com>
8743 * i-cstrea.ads: (fopen): Add encoding parameter.
8745 Change reference from a-sysdep.c to sysdep.c in comment.
8746 Update copyright notice.
8747 This set of patch add support for the encoding form parameter.
8749 * mingw32.h (S2WSU): New macro to convert from a string to a
8750 wide-string using the UTF-8 encoding. The S2WS macro supports now only
8751 standard 8bits encoding.
8752 (WS2SU): As above but converting from wide-sring to string.
8753 This is needed as it is necessary to have access to both versions in the
8754 runtime for the form parameter encoding support.
8755 This set of patch add support for the encoding form parameter.
8756 (S2WS): Improve implementation to handle cases where the filename is not
8757 UTF-8 encoded. In this case we default to using the current code page
8760 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
8761 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
8762 the constants defined in adaint.h.
8763 (fopen): Add encoding parameter.
8766 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
8767 encoding. This is needed for the Reset routine (freopen low level-call).
8769 * s-fileio.adb (Open): Decode encoding form parameter and set the
8770 corresponding encoding value into AFCB structure.
8771 (Reset): Pass the encoding value to freopen.
8772 (Close): Move the call to Lock_Task to the beginning of the procedure.
8774 2007-04-06 Geert Bosch <bosch@adacore.com>
8775 Robert Dewar <dewar@adacore.com>
8777 * i-fortra.ads: Add Double_Complex type.
8779 * impunit.adb: (Is_Known_Unit): New function
8780 Add Gnat.Byte_Swapping
8782 Add new Ada 2005 units
8783 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
8784 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
8785 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
8786 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
8788 * impunit.ads (Is_Known_Unit): New function
8790 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
8791 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
8792 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
8793 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
8794 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
8795 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
8798 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
8800 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
8802 2007-04-06 Eric Botcazou <botcazou@adacore.com>
8803 Arnaud Charlet <charlet@adacore.com>
8805 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
8806 __gnat_adjust_context_for_raise.
8807 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
8808 implementation of floating point operations as native x86 targets.
8809 So the FPU should be initialized in the same way using finit. Fix
8810 floating point operations accuracy issues.
8811 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
8812 member in struct sigaction, so as to avoid warning for incompatible
8815 2007-04-06 Serguei Rybin <rybin@adacore.com>
8817 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
8818 switches from previously loaded tree
8820 2007-04-06 Thomas Quinot <quinot@adacore.com>
8822 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
8823 cases where a given dependency has a body or not.
8824 (Write_With_File_Names): New subprogram, common code for the two cases
8827 2007-04-06 Ed Schonberg <schonberg@adacore.com>
8828 Javier Miranda <miranda@adacore.com>
8830 * lib-xref.ads, lib-xref.adb:
8831 Modify the loop that collects type references, to include interface
8832 types that the type implements. List each of these interfaces when
8833 building the entry for the type.
8834 (Generate_Definition): Initialize component Def and Typ of new entry
8835 in table Xrefs, to avoid to have these components unitialized.
8836 (Output_References): Split Is_Abstract flag into
8837 Is_Abstract_Subprogram and Is_Abstract_Type.
8838 (Generate_Reference): Add barrier to do not generate the warning
8839 associated with Ada 2005 entities with entities generated by the
8842 2007-04-06 Robert Dewar <dewar@adacore.com>
8843 Arnaud Charlet <charlet@adacore.com>
8844 Vincent Celier <celier@adacore.com>
8846 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
8847 Update 'Exception Handling Control' chapter which was outdated.
8848 Minor fix to documentation of -gnatwq
8849 Remove section "Adapting the Run Time to a New C++ Compiler" because
8851 Add passage on need of -nostart-files in some non-ada-main cases.
8852 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
8853 Update documentation about Interfacing with C++
8854 Add documentation for new gnatmake switch -p
8855 Add missing protocol part in URLs.
8857 Document pragma Compile_Time_Error
8858 Add documentation for Object_Size indicating that stand alone
8859 objects can have a larger size in some cases.
8860 Add node for GNAT.Byte_Swapping, GNAT.SHA1
8861 Update reference to the Ravenscar profile.
8862 Document pragma Unreferenced_Objects
8864 * gnat-style.texi: Fix typo
8866 2007-04-06 Vincent Celier <celier@adacore.com>
8868 * mlib.adb (Building_Library): Only output "building a library..." in
8871 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
8872 files in verbose mode.
8874 * mlib-utl.adb (Ar): Only output the first object files when not in
8876 (Gcc): Do not display all the object files if not in verbose mode, only
8879 2007-04-06 Robert Dewar <dewar@adacore.com>
8881 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
8882 it no longer destroys the contents of Name_Buffer or Name_Len and
8883 non-standard and invalid names are handled better.
8884 (Get_Decoded_Name_String): Improve performance by using
8885 Name_Has_No_Encodings flag in the name table.
8886 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
8887 Used for debugging printouts.
8889 2007-04-06 Robert Dewar <dewar@adacore.com>
8890 Javier Miranda <miranda@adacore.com>
8891 Bob Duff <duff@adacore.com>
8893 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
8894 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
8895 there is no need to generate always a record_definition_node in case
8896 of synchronized interface types.
8897 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
8898 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
8899 illegal in Ada 95, in cases where it is legal. Change the warnings to
8900 errors in other cases. Don't give the error unless the "not null"
8901 parses properly. Correct the source position at which the error occurs.
8902 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
8903 P_Null_Exclusion, to suppress "not null" warnings.
8904 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
8905 associated goto statements.
8907 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
8910 * scans.ads (Type_Token_Location): New flag
8912 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
8913 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
8914 P_Null_Exclusion, to suppress "not null" warnings.
8916 2007-04-06 Robert Dewar <dewar@adacore.com>
8917 Javier Miranda <miranda@adacore.com>
8918 Bob Duff <duff@adacore.com>
8919 Vincent Celier <celier@adacore.com>
8921 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
8922 (Extensions_Allowed): No longer sets Ada_Version
8923 Entry for pragma Unreferenced_Objects
8925 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
8926 system.tasking if pragma priority used in a procedure
8927 (Analyze_Pragma, case Warning): Handle dot warning switches
8928 (Process_Compile_Time_Warning_Or_Error): New procedure
8929 (Analyze_Pragma): Add processing for Compile_Time_Error
8930 Add support for extra arguments External_Name and Link_Name.
8931 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
8932 (Process_Import_Or_Interface): Add support for the use of pragma Import
8934 (Extensions_Allowed): No longer affects Ada_Version
8935 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
8936 Is_Abstract_Type. Make sure these are called only when appropriate.
8937 Add processing for pragma Unreferenced_Objects
8939 * snames.h, snames.ads, snames.adb: Add entry for pragma
8941 Add new standard name Minimum_Binder_Options for new gprmake
8942 Add new standard names for gprmake: Archive_Suffix,
8943 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
8944 Library_Support, Library_Version_Options,
8945 Shared_Library_Minimum_Options,
8946 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
8947 Change Name_Call to Name_uCall so that it cannot clash with a legal
8949 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
8950 Append C_Plus_Plus to convention identifiers as synonym for CPP
8951 Add new standard names Stack and Builder_Switches
8952 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
8953 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
8954 Run_Path_Option, Toolchain_Version.
8955 Entry for pragma Unreferenced_Objects
8957 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
8958 switches, without repetition of "eD". Make sure that last character of
8959 -gnatep= switch is not taken as -gnat switch character.
8960 Complete rewrite of circuit for handling saving compilation options
8961 Occasioned by need to support dot switchs for -gnatw, but cleans up
8963 -gnatX does not affect Ada_Version
8964 Include -gnatyA in -gnatg style switches
8966 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
8967 warnings on return objects.
8968 (Warn_On_Useless_Assignment): Exclude warnings on return objects
8969 (Set_Dot_Warning_Switch): New procedure
8970 (Check_References): Add missing case of test for
8971 Has_Pragma_Unreferenced_Objects
8972 (Output_Unreferenced_Messages): Implement effect of new pragma
8973 Unreferenced_Objects, remove special casing of limited controlled
8976 2007-04-06 Vincent Celier <celier@adacore.com>
8978 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
8979 the default project path, initially done during elaboration of the
8981 If the prefix returned by Sdefault is null, get the prefix from a call
8982 to Executable_Prefix_Path.
8983 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
8986 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
8987 canonical directory name to open the directory from which files are
8989 (Record_Other_Sources): Idem.
8990 (Locate_Directory): Add the possibility to create automatically missing
8991 directories when Setup_Projects is True.
8992 Call Locate_Directory so that the directory will be created when
8993 Setup_Projects is True, for object dir, library dir, library ALI dir,
8994 library source copy dir and exec dir.
8996 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
8999 2007-04-06 Robert Dewar <dewar@adacore.com>
9001 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
9002 Use First/Next_Component_Or_Discriminant
9003 (Analyze_Record_Representation_Clause):
9004 Use First/Next_Component_Or_Discriminant
9005 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
9006 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
9007 definition if type is unconstrained.
9008 (Adjust_Record_For_Reverse_Bit_Order): New procedure
9009 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
9010 Is_Abstract_Subprogram and Is_Abstract_Type.
9011 (Adjust_Record_For_Reverse_Bit_Order): New procedure
9013 * repinfo.adb (List_Record_Info): Use First/
9014 Next_Component_Or_Discriminant.
9016 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
9019 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
9020 Include -gnatyA in default switches
9022 * opt.ads: (Warn_On_Non_Local_Exception): New flag
9023 (Warn_On_Reverse_Bit_Order): New flag
9024 (Extensions_Allowed): Update the documentation.
9025 (Warn_On_Questionable_Missing_Parens): Now on by default
9027 * usage.adb: Add documentation of -gnatw.x/X switches
9028 Document new -gnatyA style switch
9029 -gnatq warnings are on by default
9031 2007-04-06 Ed Falis <falis@adacore.com>
9033 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
9034 full word is no longer compared twice.
9036 2007-04-06 Ed Schonberg <schonberg@adacore.com>
9038 * sem_ch10.adb (Install_Limited_Context_Clauses.
9039 Expand_Limited_With_Clause): Use a new copy of selector name in the
9040 call to Make_With_Clause. This fixes the tree structure for ASIS
9041 purposes. Nothing is changed in the compiler behaviour.
9042 (Process_Body_Clauses): Handle properly use clauses whose prefix is
9044 (Install_Limited_With_Clauses): Do not install non-limited view when it
9045 is still incomplete.
9047 2007-04-06 Ed Schonberg <schonberg@adacore.com>
9048 Gary Dismukes <dismukes@adacore.com>
9050 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
9051 when capturing size information, instead of base type, which for a
9052 formal array type will be the unconstrained type.
9053 (Analyze_Formal_Object_Declaration): Add check for illegal default
9054 expressions for a formal in object of a limited type.
9055 (Instantiate_Object): Ditto.
9056 (Check_Formal_Package_Instance): Skip entities that are formal objects,
9057 because they were defaulted in the formal package and no check applies
9059 (Check_Formal_Package_Instance): Extend conformance check to other
9060 discrete types beyond Integer.
9061 (Process_Default): Copy directly the unmatched formal. A generic copy
9062 has already been performed in Analyze_Formal_Package.
9063 (Analyze_Associations): If a formal subprogram has no match, check for
9064 partial parametrization before looking for a default, to prevent
9066 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
9067 not set the instantiation environment before analyzing the actuals.
9068 Fixes regression on 8515-003 with implementation of AI-133.
9069 Set_Instance_Env checks whether the generic unit is a predefined
9070 unit, in which case the instance must be analyzed with the latest Ada
9071 mode. This setting must take place after analysis of the actuals,
9072 because the actuals must be analyzed and frozen in the Ada mode extant
9073 outside of the current instantiation.
9074 (Save_Env, Restore_Env): Preserve and restore the configuration
9075 parameters so that predefined units can be compiled in the proper Ada
9077 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
9078 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
9079 and Is_Abstract_Type.
9080 (Analyze_Formal_Package): For better error recovery, Add exception
9081 handler to catch Instantion_Error, which can be raised in
9082 Analyze_Associations
9084 2007-04-06 Ed Schonberg <schonberg@adacore.com>
9085 Bob Duff <duff@adacore.com>
9086 Gary Dismukes <dismukes@adacore.com>
9088 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
9089 prefix type is a discriminated subtype of the type of the formal.
9090 (Analyze_Allocator): Collect all coextensions regardless of the context.
9091 Whether they can be allocated statically is determined in exp_ch4.
9092 (Analyze_Selected_Component): If the prefix is a limited view and the
9093 non-limited view is available, use the non-limited one.
9094 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
9095 therefore illegal), suggest a qualified expression rather than a type
9096 conversion, because a type conversion would be illegal in this context.
9097 (Anayze_Allocator): Trace recursively all nested allocators so that all
9098 coextensions are on the corresponding list for the root. Do no mark
9099 coextensions if the root allocator is within a declaration for a stack-
9100 allocated object, because the access discriminants will be allocated on
9102 (Analyze_Call): Remove restriction on calls to limited functions for the
9103 cases of generic actuals for formal objects, defaults for formal objects
9104 and defaults for record components.
9105 (Analyze_Allocator): Before analysis, chain coextensions on the proper
9106 element list. Their expansion is delayed until the enclosing allocator
9107 is processed and its finalization list constructed.
9108 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
9109 for an operation with the given name among the primitive operations of
9110 the corresponding record type.
9111 (Analyze_Selected_Component): If the prefix is a task type that
9112 implements an interface, and there is no entry with the given name,
9113 check whether there is another primitive operation (e.g. a function)
9115 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
9116 properly the indexing of a function call written in prefix form, where
9117 the function returns an array type, and all parameters of the function
9118 except the first have defaults.
9119 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
9120 the original operands, rather than relocating them, for efficiency and
9121 to work properly when an operand is overloaded.
9122 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
9123 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
9124 (Analyze_Selected_Component): If the prefix is a private extension, only
9125 scan the visible components, not those of the full view.
9126 (Try_Primitive_Operation): If the operation is a procedure, collect all
9127 possible interpretations, as for a function, because in the presence of
9128 classwide parameters several primitive operations of the type can match
9129 the given arguments.
9131 2007-04-06 Ed Schonberg <schonberg@adacore.com>
9132 Robert Dewar <dewar@adacore.com>
9134 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
9135 tag-indeterminate call to an abstract function, when the left-hand side
9137 (Analyze_Loop_Statement): Improve detection of infinite loops
9139 2007-04-06 Ed Schonberg <schonberg@adacore.com>
9140 Thomas Quinot <quinot@adacore.com>
9142 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
9143 out of Analyze_Package_Declaration, because processing must be applied
9144 to package bodies as well, for deferred constants completed by pragmas.
9145 (Analyze_Package_Declaration): When the package declaration being
9146 analyzed does not require an explicit body, call Check_Completion.
9147 (May_Need_Implicit_Body): An implicit body is required when a package
9148 spec contains the declaration of a remote access-to-classwide type.
9149 (Analyze_Package_Body): If the package contains RACWs, append the
9150 pending subprogram bodies generated by exp_dist at the end of the body.
9151 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
9152 Is_Abstract_Subprogram and Is_Abstract_Type.
9153 (Preserve_Full_Attributes): The full entity list is not an attribute
9154 that must be preserved from full to partial view.
9156 * sem_dist.adb (Add_RAS_Dereference_TSS):
9157 Change primitive name to _Call so it cannot clash with any legal
9158 identifier, and be special-cased in Check_Completion.
9159 Mark the full view of the designated type for the RACW associated with
9160 a RAS as Comes_From_Source to get proper view switching when installing
9161 private declarations.
9162 Provite a placeholder nested package body along with the nested spec
9163 to have a place for Append_RACW_Bodies to generate the calling stubs
9164 and stream attributes.
9166 2007-04-06 Ed Schonberg <schonberg@adacore.com>
9167 Robert Dewar <dewar@adacore.com>
9169 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
9170 that is a limited view, check the non-limited view if available.
9171 (Undefined): Refine error message for missing with of Text_IO
9172 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
9173 to distinguish real missing with cases.
9174 Fix format of all missing with messages
9175 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
9176 renaming as body when renamed entity is abstract.
9178 2007-04-06 Ed Schonberg <schonberg@adacore.com>
9179 Javier Miranda <miranda@adacore.com>
9181 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
9182 predicate recursive, to handle complex expressions on literals whose
9183 spurious ambiguity comes from the abstract interpretation of some
9185 (Interface_Present_In_Ancestor): Add support to concurrent record
9187 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
9188 Is_Abstract_Subprogram and Is_Abstract_Type.
9190 2007-04-06 Ed Schonberg <schonberg@adacore.com>
9191 Javier Miranda <miranda@adacore.com>
9193 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
9194 dereference of a local object R created as a reference to another
9195 object O, use the access level of O.
9196 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
9197 rather than local Same_Formal_Type, to check whether protected operation
9198 overrides an inherited one.
9199 (Same_Formal_Type): New predicate, used when matching signatures of
9200 overriding synchronized operations, to handle the case when a formal
9201 has a type that is a generic actual.
9202 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
9203 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
9204 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
9205 syntactic ambiguities involving indexing of function calls that return
9207 (Abstract_Interface_List): New subprogram that returns the list of
9208 abstract interfaces associated with a concurrent type or a
9209 concurrent record type.
9210 (Interface_Present_In_Parent): New subprogram used to check if a
9211 given type or some of its parents implement a given interface.
9212 (Collect_Abstract_Interfaces): Add support for concurrent types
9213 with interface types.
9214 (Has_Abstract_Interfaces): Add support for concurrent types with
9216 (Is_Parent): New subprogram that determines whether E1 is a parent
9217 of E2. For a concurrent type its parent is the first element of its
9218 list of interface types; for other types this function provides the
9219 same result than Is_Ancestor.
9220 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
9221 (Collect_Synchronized_Interfaces): Removed because the subprogram
9222 Collect_Abstract_Interfaces provides this functionality.
9223 (Collect_Abstract_Interfaces): Minor update to give support to
9224 concurrent types and thus avoid undesired code duplication.
9225 (Get_Subprogram_Entity): Handle entry calls.
9226 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
9228 (Enter_Name): Do not give -gnatwh hiding warning for record component
9229 entities, they never result in hiding.
9231 2007-04-06 Ed Schonberg <schonberg@adacore.com>
9232 Robert Dewar <dewar@adacore.com>
9234 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
9235 to chain nested components that are allocators for access discriminants
9236 of the enclosing object.
9237 Add N_Push and N_Pop nodes
9238 New field Exception_Label added
9239 (Local_Raise_Statements): New field in N_Exception_Handler_Node
9240 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
9241 (Is_Coextension): New flag for allocators, to mark allocators that
9242 correspond to access discriminants of dynamically allocated objects.
9243 (N_Block_Statement): Document the fact that the corresponding entity
9244 can be an E_Return_Statement.
9245 (Is_Coextension): New flag for allocators.
9246 Remove all code for DSP option
9248 * sprint.ads, sprint.adb: Display basic information for class_wide
9249 subtypes. Add handling of N_Push and N_Pop nodes
9251 2007-04-06 Arnaud Charlet <charlet@adacore.com>
9253 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
9254 before propagating exception.
9256 2007-04-06 Olivier Hainque <hainque@adacore.com>
9258 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
9259 an address always within the call instruction from a return address.
9261 2007-04-06 Olivier Hainque <hainque@adacore.com>
9262 Eric Botcazou <botcazou@adacore.com>
9264 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
9265 expression with a COMPOUND_EXPR including the call instead of emitting
9266 the call directly here.
9267 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
9268 high bound is constant and the slice is empty. Tidy.
9269 (tree_transform, case N_Op_Not): Handle properly the case where the
9270 operation applies to a private type whose full view is a modular type.
9271 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
9272 Address_Clause, use the associated Expression as the GNAT tree
9273 representing the choice value to ensure the corresponding GCC tree is
9275 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
9276 instead of just the operands, as the base GCC stabilize_reference does.
9277 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
9278 requested; otherwise fail.
9279 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
9281 2007-04-06 Thomas Quinot <quinot@adacore.com>
9283 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
9284 implementation of UI_Div.
9285 (UI_Div): Reimplement as a call to UI_Div_Rem.
9286 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
9287 remainder, avoiding the cost of a multiplication and a subtraction.
9288 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
9289 provides both quotient and remainder in a single computation.
9290 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
9292 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
9293 is undefined if the given n is not inversible.
9295 2007-04-06 Olivier Hainque <hainque@adacore.com>
9297 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
9298 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
9301 2007-04-06 Eric Botcazou <botcazou@adacore.com>
9302 Olivier Hainque <hainque@adacore.com>
9304 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
9305 when updating the contents of the old pointer to an unconstrained array.
9306 (end_subprog_body): Set error_gnat_node to Empty.
9307 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
9308 (unchecked_convert): For subtype to base type conversions, require that
9309 the source be a subtype if it is an integer type.
9310 (builtin_decls): New global, vector of available builtin functions.
9311 (gnat_pushdecl): Add global builtin function declaration nodes to the
9313 (gnat_install_builtins): Adjust comments.
9314 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
9315 calling gnat_pushdecl, so that it knows when it handed a builtin
9316 function declaration node.
9317 (builtin_decl_for): Search the builtin_decls list.
9319 2007-04-06 Eric Botcazou <botcazou@adacore.com>
9321 * s-stchop-vxworks.adb:
9322 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
9324 2007-04-06 Robert Dewar <dewar@adacore.com>
9325 Arnaud Charlet <charlet@adacore.com>
9327 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
9329 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
9331 Add mention of -Sev (set initialize_scalars option from environment
9332 variable at run time) in gnatbind usage message.
9334 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
9336 * fname-uf.ads: Minor comment fix
9338 * osint.ads: Change pragma Elaborate to Elaborate_All
9340 * par-load.adb: Add documentation.
9342 * sem_cat.ads, sem_cat.adb: Minor code reorganization
9344 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
9346 * s-secsta.ads: Extra comments
9348 * s-soflin.ads: Minor comment fixes
9350 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
9352 * s-wchcon.ads: Minor comment addition
9354 * treepr.adb: Minor change in message
9355 (Print_Name,Print_Node): Make these debug printouts more robust: print
9356 "no such..." instead of crashing on bad input.
9358 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
9360 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
9361 instead of gnat_signed_or_unsigned_type.
9362 * utils.c (gnat_signed_or_unsigned_type): Remove.
9363 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
9364 * gigi.h (gnat_signed_or_unsigned_type): Remove
9366 2007-03-09 Roger Sayle <roger@eyesopen.com>
9368 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
9369 fold with the result of buildN.
9370 * decl.c (gnat_to_gnu_entity): Likewise.
9371 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
9372 * utils.c (finish_record_type, merge_sizes, max_size, convert):
9374 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
9375 nonbinary_modular_operation, build_binary_op, build_unary_op,
9376 build_cond_expr): Likewise.
9378 * utils.c (convert): Use fold_build1 when casting values to void.
9379 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
9380 fold_convert instead of convert when appropriate.
9382 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
9384 * Make-lang.in: Add install-pdf target as copied from
9385 automake v1.10 rules.
9387 2007-02-28 Andreas Schwab <schwab@suse.de>
9389 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
9390 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
9391 (doc/gnat-style.info): Likewise.
9393 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
9395 * gnat-style.texi: Standardize title page.
9396 * gnat_rm.texi: Likewise.
9397 * gnat_ugn.texi: Likewise.
9399 2007-02-25 Mark Mitchell <mark@codesourcery.com>
9401 * decl.c (annotate_value): Adjust for refactoring of tree_map
9404 2007-02-24 Mark Mitchell <mark@codesourcery.com>
9406 * decl.c (annotate_value): Adjust for refactoring of tree_map
9409 2007-02-21 Ed Schonberg <schonberg@adacore.com>
9412 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
9413 untagged derived type, add hidden components to keep discriminant
9414 layout consistent, when a given discriminant of the derived type
9415 constraints several discriminants of the parent type.
9417 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
9418 Sandra Loosemore <sandra@codesourcery.com>
9420 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
9421 build the call expression.
9422 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
9423 * utils.c (max_size) <tcc_exceptional>: Delete.
9424 <tcc_vl_exp>: New case.
9425 <tcc_expression>: Delete CALL_EXPR subcase.
9426 (build_global_cdtor): Use build_call_nary instead of build3.
9427 * utils2.c (build_call_1_expr): Likewise.
9428 (build_call_2_expr): Likewise.
9429 (build_call_0_expr): Likewise.
9430 (build_call_alloc_dealloc): Likewise.
9432 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
9434 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
9435 get_action_description_for): Replace _Unwind_Word with _uleb128_t
9436 and _Unwind_SWord with _sleb128_t.
9438 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
9440 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
9441 * decl.c: Include gt-ada-decl.h.
9442 (annotate_value_cache): New.
9443 (annotate_value): Use it instead of TREE_COMPLEXITY.
9445 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
9447 * misc.c, utils2.c: Fix comment typos.
9449 2007-01-24 Roger Sayle <roger@eyesopen.com>
9451 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
9452 TREE_CONSTANT_OVERFLOW.
9453 (allocatable_size_p, annotate_value): Likewise.
9454 * trans.c (gnat_to_gnu): Likewise.
9455 * utils.c (unchecked_convert): Likewise.
9456 * utils2.c (build_simple_component_ref): Likewise.
9458 2007-01-23 Richard Guenther <rguenther@suse.de>
9461 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
9462 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
9463 (gnatboot3): Likewise.
9464 (GNATBIND): Do not define.
9465 * Makefile.in (GNATBIND): Do not define.
9467 2007-01-08 Richard Guenther <rguenther@suse.de>
9469 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
9470 * trans.c (gnat_to_gnu): Likewise.
9472 2006-12-07 Geoffrey Keating <geoffk@apple.com>
9474 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
9475 * adaint.c: Likewise.
9477 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
9479 Merge from gimple-tuples-branch:
9480 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
9482 * ada-tree.h (lang_tree_node): Handle gimple tuples.
9483 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
9486 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
9488 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
9489 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
9492 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
9495 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
9496 if the initializer takes into account the padding.
9498 2006-11-11 Richard Guenther <rguenther@suse.de>
9500 * trans.c (maybe_stabilize_reference): Remove handling of
9501 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
9503 2006-11-05 Arnaud Charlet <charlet@adacore.com>
9506 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
9507 (To_Target_Priority): New function.
9509 2006-10-31 Robert Dewar <dewar@adacore.com>
9511 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
9512 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
9513 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
9514 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
9515 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
9516 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
9517 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
9518 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
9519 a-szbzha.adb: Minor reformatting. Fix header.
9521 * a-numaux-x86.adb: Add parentheses for use of unary minus
9522 * a-ngcefu.adb: Supply missing parentheses for unary minus
9523 * a-ngcoty.adb: Add parens for use of unary minus
9524 * a-ngelfu.adb: Add missing parens for unary minus
9525 * a-tifiio.adb: Add parentheses for uses of unary minus
9527 2006-10-31 Robert Dewar <dewar@adacore.com>
9528 Bob Duff <duff@adacore.com>
9529 Ed Schonberg <schonberg@adacore.com>
9531 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
9532 with multiplying operator.
9533 (Expected_Type_Is_Any_Real): New function to determine from the Parent
9534 pointer whether the context expects "any real type".
9535 (Resolve_Arithmetic_Op): Do not give an error on calls to the
9536 universal_fixed "*" and "/" operators when they are used in a context
9537 that expects any real type. Also set the type of the node to
9538 Universal_Real in this case, because downstream processing requires it
9539 (mainly static expression evaluation).
9540 Reword some continuation messages
9541 Add some \\ sequences to continuation messages
9542 (Resolve_Call): Refine infinite recursion case. The test has been
9543 sharpened to eliminate some false positives.
9544 Check for Current_Task usage now includes entry barrier, and is now a
9545 warning, not an error.
9546 (Resolve): If the call is ambiguous, indicate whether an interpretation
9547 is an inherited operation.
9548 (Check_Aggr): When resolving aggregates, skip associations with a box,
9549 which are priori correct, and will be replaced by an actual default
9550 expression in the course of expansion.
9551 (Resolve_Type_Conversion): Add missing support for conversion from
9552 a class-wide interface to a tagged type. Minor code cleanup.
9553 (Valid_Tagged_Converion): Add support for abstact interface type
9555 (Resolve_Selected_Component): Call Generate_Reference here rather than
9556 during analysis, and use May_Be_Lvalue to distinguish read/write.
9557 (Valid_Array_Conversion): New procedure, abstracted from
9558 Valid_Conversion, to incorporate accessibility checks for arrays of
9559 anonymous access types.
9560 (Valid_Conversion): For a conversion to a numeric type occurring in an
9561 instance or inlined body, no need to check that the operand type is
9562 numeric, since this has been checked during analysis of the template.
9563 Remove legacy test for scope name Unchecked_Conversion.
9565 * sem_res.ads: Minor reformatting
9567 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
9568 (PE_Current_Task_In_Entry_Body): New exception code
9569 (SE_Restriction_Violation): Removed, not used
9571 * a-except.ads: Update comments.
9573 * types.h, types.ads: Add definition for Validity_Check
9574 (PE_Current_Task_In_Entry_Body): New exception code
9575 (SE_Restriction_Violation): Removed, not used
9577 2006-10-31 Thomas Quinot <quinot@adacore.com>
9579 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
9582 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
9583 Jose Ruiz <ruiz@adacore.com>
9585 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
9586 part of Ada.Calendar: all subprogram raise Unimplemented.
9587 (Split_W_Offset): Temp function body, raising Unimplemented
9589 * a-calend.ads, a-calend-vms.ads:
9590 Add imported variable Invalid_TZ_Offset used to designate targets unable
9591 to support time zones.
9592 (Unimplemented): Temporary function raised by the body of new
9594 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
9595 unit provides handling of leap seconds and is used by the new Ada 2005
9596 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
9597 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
9598 version returns an extra value which is the offset to UTC.
9600 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
9601 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
9602 (Split_W_Offset): New function body.
9603 (Time_Of): When a date is close to UNIX epoch, compute the time for
9604 that date plus one day (that amount is later substracted after
9605 executing mktime) so there are no problems with time zone adjustments.
9607 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
9609 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
9610 a-catizo.ads, a-catizo.adb: New files.
9612 * impunit.adb: Add new Ada 2005 entries
9614 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
9615 Rename all occurences of "__gnat_localtime_r" to
9616 "__gnat_localtime_tzoff".
9617 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
9618 zone data and calculate the GMT offset.
9619 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
9620 Use the field "tm_gmtoff" to extract the GMT offset.
9621 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
9622 the external variable "timezone" to calculate the GMT offset.
9624 2006-10-31 Arnaud Charlet <charlet@adacore.com>
9625 Jose Ruiz <ruiz@adacore.com>
9627 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
9628 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
9629 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
9630 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
9631 System.Any_Priority to a POSIX priority on the target.
9633 * system-linux-ia64.ads:
9634 Extend range of Priority types on Linux to use the whole range made
9635 available by the system.
9637 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
9638 function maps from System.Any_Priority to a POSIX priority on the
9640 (PTHREAD_PRIO_PROTECT): Set real value.
9641 (PTHREAD_PRIO_INHERIT): Now a function.
9642 (SIGCPUFAIL): New signal.
9643 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
9644 are documented as reserved by the OS.
9646 * system-aix.ads: Use the full range of priorities provided by the
9649 * s-taprop-posix.adb: Call new function To_Target_Priority.
9650 (Set_Priority): Take into account Task_Dispatching_Policy and
9651 Priority_Specific_Dispatching pragmas when determining if Round Robin
9652 must be used for scheduling the task.
9654 * system-linux-x86_64.ads, system-linux-x86.ads,
9655 system-linux-ppc.ads: Extend range of Priority types on Linux to use
9656 the whole range made available by the system.
9658 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
9659 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
9660 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
9661 when deallocating the TCB in order to avoid potential references to
9663 (Set_Priority): Take into account Task_Dispatching_Policy and
9664 Priority_Specific_Dispatching pragmas when determining if Round Robin
9665 or FIFO within priorities must be used for scheduling the task.
9667 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
9668 the Thread field (to be used internally by the run-time system) and the
9669 kernel-level task id in the LWP field (to be used by the debugger).
9670 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
9671 instance, and propagate the current task options to the spawned task.
9672 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
9673 (Initialize): Set Round Robin dispatching when the corresponding pragma
9676 2006-10-31 Robert Dewar <dewar@adacore.com>
9678 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
9679 system-linux-hppa.ads, system-hpux-ia64.ads,
9680 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
9681 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
9682 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
9683 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
9684 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
9685 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
9686 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
9687 Default_Bit_Order) to kill constant condition warnings for references
9690 2006-10-31 Vincent Celier <celier@adacore.com>
9691 Eric Botcazou <ebotcazou@adacore.com>
9693 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
9694 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
9695 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
9696 Ext_To, when building the library file name
9698 * mlib-tgt-vxworks.adb: ditto.
9699 (Get_Target_Suffix): Add support for x86 targets.
9701 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
9703 * mlib-tgt-darwin.adb:
9704 Use Append_To, instead of Ext_To, when building the library file name
9705 (Flat_Namespace): New global variable.
9706 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
9707 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
9708 (Link_Shared_Libgcc): Delete.
9709 (Build_Dynamic_Library): Adjust for above changes.
9711 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
9713 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
9715 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
9716 (Initialize): Add type conversions required by above change.
9718 2006-10-31 Jose Ruiz <ruiz@adacore.com>
9720 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
9721 (getpid): New body for this function that uses the underlying taskIdSelf
9722 function for VxWorks 5 and VxWorks 6 in kernel mode.
9723 (unsigned_int): New type, modular to allow logical bit operations.
9724 (taskOptionsGet): New imported function.
9726 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
9727 field to be compliant with the type used by the corresponding operating
9730 2006-10-31 Pascal Obry <obry@adacore.com>
9731 Eric Botcazou <ebotcazou@adacore.com>
9732 Vincent Celier <celier@adacore.com>
9734 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
9735 ASCII version of the registry API. This is needed as the GNAT runtime
9736 is now UNICODE by default.
9738 (get_gcc_version): Do not hardcode the return value.
9739 (__gnat_file_time_name): On Windows properly set the default returned
9740 value to -1 which corresponds to Invalid_Time.
9741 (__gnat_fopen): New routine. A simple wrapper on all plateforms
9742 except on Windows where it does conversion for unicode support.
9743 (__gnat_freopen): Idem.
9744 (__gnat_locate_exec_on_path): If environment variable PATH does not
9745 exist, return a NULL pointer
9747 * adaint.h: (__gnat_fopen): Declare.
9748 (__gnat_freopen): Likewise.
9750 * mingw32.h (_tfreopen): Define this macro here for older MingW
9752 Activate the unicode support on platforms using a MingW runtime
9753 version 3.9 or newer.
9755 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
9756 This is needed for proper unicode support on Windows.
9759 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
9760 Nicolas Setton <setton@adacore.com>
9761 Olivier Hainque <hainque@adacore.com>
9762 Gary Dismukes <dismukes@adacore.com>
9764 * gigi.h: (tree_code_for_record_type): Declare.
9765 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
9766 (get_global_renaming_pointers): Rename to
9767 invalidate_global_renaming_pointers.
9768 (static_ctors): Delete.
9769 (static_dtors): Likewise.
9770 (gnat_write_global_declarations): Declare.
9771 (create_var_decl): Adjust descriptive comment to indicate that the
9772 subprogram may return a CONST_DECL node.
9773 (create_true_var_decl): Declare new function, similar to
9774 create_var_decl but forcing the creation of a VAR_DECL node.
9775 (get_global_renaming_pointers): Declare.
9776 (add_global_renaming_pointer): Likewise.
9778 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
9780 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
9781 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
9783 (gnat_to_gnu_entity): Remove From_With_Type from computation for
9785 <E_Access_Type>: Use the Non_Limited_View as the full view of the
9786 designated type if the pointer comes from a limited_with clause. Make
9787 incomplete designated type if it is in the main unit and has a freeze
9789 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
9790 Underlying_Full_View similarly. Return earlier if the full view already
9791 has an associated tree.
9792 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
9793 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
9794 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
9795 reference type built for objects with an address clause.
9796 Use create_true_var_decl with const_flag set for
9797 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
9799 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
9800 for Character and Wide_Character types. This info is read by the
9801 dwarf-2 writer, and is needed to be able to use the command "ptype
9802 character" in the debugger.
9803 (gnat_to_gnu_entity): When generating a type representing
9804 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
9805 so that debug writers can distinguish it from ordinary integers.
9806 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
9807 addition to TREE_READONLY to assert the constantness of variables for
9808 elaboration purposes.
9809 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
9810 parameters to call new Einfo function First_Formal_With_Extras.
9811 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
9812 protected type with its corresponding discriminant, to obtain a usable
9814 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
9815 for a multiple elaboration of the "equivalent" type.
9816 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
9817 into record_global_renaming_pointer.
9818 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
9819 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
9820 <E_Array_Subtype>: Likewise.
9821 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
9822 incomplete subtypes and incomplete subtypes of incomplete types visible
9823 through a limited with clause.
9824 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
9825 the base index type for the maximum size of the array only if they are
9827 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
9828 expression into a SAVE_EXPR if stabilization failed.
9830 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
9831 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
9832 by lower level compilation passes.
9833 (gnat_genericize): New function, lowering a function body to GENERIC.
9834 Turn the type of RESULT_DECL into a real reference type if the decl
9835 has been marked DECL_BY_REFERENCE, and adjust references to the latter
9837 (gnat_genericize_r): New function. Tree walking callback for
9839 (convert_from_reference, is_byref_result): New functions. Helpers for
9841 (create_type_decl): Call gnat_pushdecl before calling
9842 rest_of_decl_compilation, to make sure that field TYPE_NAME of
9843 type_decl is properly set before calling the debug information writers.
9844 (write_record_type_debug_info): The heuristics which compute the
9845 alignment of a field in a variant record might not be accurate. Add a
9846 safety test to make sure no alignment is set to a smaller value than
9847 the alignment of the field type.
9848 (make_dummy_type): Use the Non_Limited_View as the underlying type if
9849 the type comes from a limited_with clause. Do not loop on the full view.
9850 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
9851 (dummy_node_table): New global variable, moved from decl.c.
9852 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
9853 (save_gnu_tree): Use above macros.
9854 (get_gnu_tree): Likewise.
9855 (present_gnu_tree): Likewise.
9856 (init_dummy_type): New function, moved from decl.c. Use above macros.
9857 (make_dummy_type): Likewise.
9858 (tree_code_for_record_type): New function extracted from make_dummy_type
9859 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
9860 (static_ctors): Change it to a vector, make static.
9861 (static_dtors): Likewise.
9862 (end_subprog_body): Adjust for above change.
9863 (build_global_cdtor): Moved from trans.c.
9864 (gnat_write_global_declarations): Emit global constructor and
9865 destructor, and call cgraph_optimize before emitting debug info for
9866 global declarations.
9867 (global_decls): New global variable.
9868 (gnat_pushdecl): Store the global declarations in global_decls, for
9870 (gnat_write_global_declarations): Emit debug information for global
9872 (create_var_decl_1): Former create_var_decl, with an extra argument to
9873 state whether the creation of a CONST_DECL is allowed.
9874 (create_var_decl): Behavior unchanged. Now a wrapper around
9875 create_var_decl_1 allowing CONST_DECL creation.
9876 (create_true_var_decl): New function, similar to create_var_decl but
9877 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
9878 (create_field_decl): Do not always mark the field as addressable
9879 if its type is an aggregate.
9880 (global_renaming_pointers): New static variable.
9881 (add_global_renaming_pointer): New function.
9882 (get_global_renaming_pointers): Likewise.
9884 * misc.c (gnat_dwarf_name): New function.
9885 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
9886 (gnat_post_options): Add comment about structural alias analysis.
9887 (gnat_parse_file): Do not call cgraph_optimize here.
9888 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
9890 * trans.c (process_freeze_entity): Don't abort if we already have a
9891 non dummy GCC tree for a Concurrent_Record_Type, as it might
9892 legitimately have been elaborated while processing the associated
9893 Concurrent_Type prior to this explicit freeze node.
9894 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
9895 exception handler volatile if it is of variable size.
9896 (process_type): Remove bypass for types coming from a limited_with
9898 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
9899 actual, convert the corresponding gnu_actual to the real destination
9900 type when necessary.
9901 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
9902 originally TREE_READONLY but whose elaboration cannot be performed
9904 Part of fix for F504-021.
9905 (tree_transform, subprogram cases): Change loops on formal parameters to
9906 call new Einfo function First_Formal_With_Extras.
9907 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
9908 stemming from type conversion for the lhs.
9909 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
9910 number of bits per unit for components of records.
9911 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
9912 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
9913 with At_End_Proc after the SJLJ EH cleanup.
9914 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
9916 (elaborate_all_entities): Do not retest type_annotate_only.
9917 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
9918 result type of an abstract subprogram, which may be an itype associated
9919 with an anonymous access result (related to AI-318-02).
9920 (build_global_cdtor): Move to utils.c.
9921 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
9922 this choice is not a null tree nor an integer constant.
9923 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
9924 on the body of elaboration routines instead of mark_unvisited.
9925 (add_stmt): Do not mark the tree.
9926 (add_decl_expr): Tweak comment.
9927 (mark_unvisited): Delete.
9928 (unshare_save_expr): New static function.
9929 (call_to_gnu): Issue an error when making a temporary around a
9930 procedure call because of non-addressable actual parameter if the
9931 type of the formal is by_reference.
9932 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
9933 after building the elaboration routine.
9935 2006-10-31 Bob Duff <duff@adacore.com>
9937 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
9938 as finalization-started, so we can raise Program_Error on 'new'.
9940 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
9941 collection has already started.
9943 * s-finimp.ads (Collection_Finalization_Started): Added new special
9944 flag value for indicating that a collection's finalization has started.
9946 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
9947 create a task whose master has already waited for dependent tasks.
9949 2006-10-31 Robert Dewar <dewar@adacore.com>
9951 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
9953 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
9954 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
9955 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
9956 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
9957 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
9958 a-except-2005.ads: Add pragma Preelaborable_Warning
9960 2006-10-31 Robert Dewar <dewar@adacore.com>
9961 Jose Ruiz <ruiz@adacore.com>
9963 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
9965 * ali.adb (Get_Name): Properly handle scanning of wide character names
9966 encoded with brackets notation.
9967 (Known_ALI_Lines): Add S lines to this list.
9968 (Scan_ALI): Acquire S (priority specific dispatching) lines.
9969 New flag Elaborate_All_Desirable in unit table
9971 * ali.ads (Priority_Specific_Dispatching): Add this range of
9972 identifiers to be used for Priority_Specific_Dispatching table entries.
9973 (ALIs_Record): Add First_Specific_Dispatching and
9974 Last_Specific_Dispatching that point to the first and last entries
9975 respectively in the priority specific dispatching table for this unit.
9976 (Specific_Dispatching): Add this table for storing each S (priority
9977 specific dispatching) line encountered in the input ALI file.
9978 New flag Elaborate_All_Desirable in unit table
9980 * bcheck.adb: (Check_Configuration_Consistency): Add call to
9981 Check_Consistent_Dispatching_Policy.
9982 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
9983 verifying that the use of Priority_Specific_Dispatching,
9984 Task_Dispatching_Policy, and Locking_Policy is consistent across the
9987 * bindgen.adb: (Public_Version_Warning): function removed.
9988 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
9989 required information from ALI files in order to initialize the table
9990 containing the specific dispatching policy.
9991 (Gen_Adainit_Ada): Generate the variables required for priority specific
9992 dispatching entries (__gl_priority_specific_dispatching and
9993 __gl_num_specific_dispatching).
9994 (Gen_Adainit_C): Generate the variables required for priority specific
9995 dispatching entries (__gl_priority_specific_dispatching and
9996 __gl_num_specific_dispatching).
9997 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
9999 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
10000 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
10002 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
10003 a call to gnat_set_globals.
10004 Generate a string containing settings from
10005 Priority_Specific_Dispatching pragma entries.
10006 (Gen_Object_Files_Options): Do not include the runtime libraries when
10007 pragma No_Run_Time is specified.
10009 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
10010 consistency with s-intman-posix.adb.
10011 (__gnat_error_handler, case FreeBSD): Account for the fact that the
10012 handler is installed with SA_SIGINFO.
10013 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
10014 FreeBSD ZCX support, copied from Linux version.
10015 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
10016 sigfillset, and sigemptyset so the routines defined by MaRTE.
10017 (__gl_priority_specific_dispatching): Add this variable that stores the
10018 string containing priority specific dispatching policies in the
10020 (__gl_num_specific_dispatching): Add this variable that indicates the
10021 highest priority for which a priority specific dispatching pragma
10023 (__gnat_get_specific_dispatching): Add this routine that returns the
10024 priority specific dispatching policy, as set by a
10025 Priority_Specific_Dispatching pragma appearing anywhere in the current
10026 partition. The input argument is the priority number, and the result
10027 is the upper case first character of the policy name.
10028 (__gnat_set_globals): Now a dummy function.
10029 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
10030 mechargs instead of sigargs, as the latter can be retrieved from the
10031 former and sigargs is not what we want on ia64.
10032 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
10034 (__gnat_adjust_context_for_raise, ia64-vms): New function.
10035 (tasking_error): Remove unused symbol.
10036 (_abort_signal): Move this symbol to the IRIX specific part since this
10037 is the only target that uses this definition.
10038 (Check_Abort_Status): Move this symbol to the IRIX specific part since
10039 this is the only target that uses this definition.
10040 (Lock_Task): Remove unused symbol.
10041 (Unlock_Task): Remove unused symbol.
10043 * lib-writ.adb (Write_ALI): Output new S lines for
10044 Priority_Specific_Dispatching pragmas.
10045 Implement new flag BD for elaborate body desirable
10047 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
10048 (Specific_Dispatching): Add this table for storing the entries
10049 corresponding to Priority_Specific_Dispatching pragmas.
10050 Document new BD flag for elaborate body desirable
10052 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
10055 2006-10-31 Javier Miranda <miranda@adacore.com>
10057 * a-tags.ads, a-tags.adb:
10058 (Predefined_DT): New function that improves readability of the code.
10059 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
10060 Inherit_DT): Use the new function Predefined_DT to improve code
10062 (Register_Interface_Tag): Update assertion.
10063 (Set_Interface_Table): Update assertion.
10064 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
10065 determining progenitor interfaces in Tags.
10066 (Inherit_CPP_DT): New subprogram.
10068 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
10069 analysis of the thunk code.
10070 (Expand_Interface_Conversion): Handle run-time conversion of
10071 access to class wide types.
10072 (Expand_Dispatching_Call): When generating the profile for the
10073 subprogram itype for a dispatching operation, properly terminate the
10074 formal parameters chaind list (set the Next_Entity of the last formal
10076 (Collect_All_Interfaces): Removed. This routine has been moved to
10077 sem_util and renamed as Collect_All_Abstract_Interfaces.
10078 (Set_All_DT_Position): Hidden entities associated with abstract
10079 interface primitives are not taken into account in the check for
10080 3.9.3(10); this check is done with the aliased entity.
10081 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
10082 interfacing with CPP by default.
10083 (Expand_Interface_Conversion): Add missing support for static conversion
10084 from an interface to a tagged type.
10085 (Collect_All_Interfaces): Add new out formal containing the list of
10086 abstract interface types to cleanup the subprogram Make_DT.
10087 (Make_DT): Update the code to generate the table of interfaces in case
10088 of abstract interface types.
10089 (Is_Predefined_Dispatching_Alias): New function that returns true if
10090 a primitive is not a predefined dispatching primitive but it is an
10091 alias of a predefined dispatching primitive.
10092 (Make_DT): If the ancestor of the type is a CPP_Class and we are
10093 compiling under full ABI compatibility mode we avoid the generation of
10094 calls to run-time services that fill the dispatch tables because under
10095 this mode we currently inherit the dispatch tables in the IP subprogram.
10096 (Write_DT): Emit an "is null" indication for a null procedure primitive.
10097 (Expand_Interface_Conversion): Use an address as the type of the formal
10098 of the internally built function that handles the case in which the
10099 target type is an access type.
10101 2006-10-31 Robert Dewar <dewar@adacore.com>
10103 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
10105 2006-10-31 Robert Dewar <dewar@adacore.com>
10107 * bindusg.ads, bindusg.adb:
10108 Change to package and rename procedure as Display, which
10109 now ensures that it only outputs usage information once.
10111 2006-10-31 Jose Ruiz <ruiz@adacore.com>
10113 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
10116 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
10119 2006-10-31 Robert Dewar <dewar@adacore.com>
10120 Ed Schonberg <schonberg@adacore.com>
10122 * treepr.adb: Use new subtype N_Membership_Test
10124 * checks.ads, checks.adb: Add definition for Validity_Check
10125 (Range_Or_Validity_Checks_Suppressed): New function
10126 (Ensure_Valid): Test Validity_Check suppressed
10127 (Insert_Valid_Check): Test Validity_Check suppressed
10128 (Insert_Valid_Check): Preserve Do_Range_Check flag
10129 (Validity_Check_Range): New procedure
10130 (Expr_Known_Valid): Result of membership test is always valid
10131 (Selected_Range_Checks): Range checks cannot be applied to discriminants
10132 by themselves. Disabling those checks must also be done for task types,
10133 where discriminants may be used for the bounds of entry families.
10134 (Apply_Address_Clause_Check): Remove side-effects if address expression
10135 is non-static and is not the name of a declared constant.
10136 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
10137 Code cleanup and new error messages.
10138 (Enable_Range_Check): Test for some cases of suppressed checks
10139 (Generate_Index_Checks): Suppress index checks if index checks are
10140 suppressed for array object or array type.
10141 (Apply_Selected_Length_Checks): Give warning for compile-time detected
10142 length check failure, even if checks are off.
10143 (Ensure_Valid): Do not generate a check on an indexed component whose
10144 prefix is a packed boolean array.
10145 * checks.adb: (Alignment_Checks_Suppressed): New function
10146 (Apply_Address_Clause_Check): New procedure, this is a completely
10147 rewritten replacement for Apply_Alignment_Check
10148 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
10149 we request a discriminal value only in case of discriminants.
10150 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
10151 assignments where the target subtype is unconstrained and the target
10152 object is a parameter or dereference (other aliased cases are known
10153 to be unconstrained).
10155 2006-10-31 Robert Dewar <dewar@adacore.com>
10157 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
10158 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
10159 vms_conv.adb: Fix bad table increment values (much too small)
10161 * table.adb (Realloc): Make sure we get at least some new elements
10162 Defends against silly small values for table increment
10164 2006-10-31 Robert Dewar <dewar@adacore.com>
10165 Ed Schonberg <schonberg@adacore.com>
10166 Bob Duff <duff@adacore.com>
10168 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
10169 entities. Move other fields around to make this possible
10170 (Is_Derived_Type): Add missing call to Is_Type.
10171 (Extra_Formals): New function for subprograms, entries, subprogram
10173 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
10174 (First_Formal_With_Extras): New function for subprogs, entries, subp
10176 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
10177 Add node information for E_Return_Statement.
10178 (Elaborate_Body_Desirable): New flag
10179 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
10180 to be Is_Inherently_Limited_Type, because return-by-reference has
10181 no meaning in Ada 2005.
10182 (E_Return_Statement): New entity kind.
10183 (Return_Applies_To): Field of E_Return_Statement.
10184 (Is_Return_Object): New flag in object entities.
10185 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
10186 (Must_Have_Preelab_Init): New flag
10187 (Known_To_Have_Preelab_Init): New flag
10188 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
10189 (Is_Visible_Formal): New flag on entities in formal packages.
10190 (Low_Bound_Known): New flag
10191 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
10193 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
10194 output when Id is an incomplete subtype.
10196 2006-10-31 Robert Dewar <dewar@adacore.com>
10198 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
10199 Avoid abbreviation Creat
10200 (Finalize): List all sources in extended mail source if -gnatl
10202 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
10203 (Finalize): Implement new -gnatl=xxx switch to output listing to file
10204 (Set_Specific_Warning_On): New procedure
10205 (Set_Specific_Warning_Off): New procedure
10206 Add implementation of new insertion \\
10207 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
10208 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
10210 (Error_Msg_Internal): Make sure that we set Last_Killed to
10211 True when a message from another package is suppressed.
10212 Implement insertion character ~ (insert string)
10213 (First_Node): Minor adjustments to get better placement.
10216 Implement new -gnatl=xxx switch to output listing to file
10219 Implement new -gnatl=xxx switch to output listing to file
10221 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
10222 (Commands_To_Stdout): New flag
10223 Implement new -gnatl=xxx switch to output listing to file
10224 New switch Dump_Source_Text
10225 (Warn_On_Deleted_Code): New warning flag for -gnatwt
10226 Define Error_Msg_Line_Length
10227 (Warn_On_Assumed_Low_Bound): New switch
10229 * osint.ads, osint.adb
10230 (Normalize_Directory_Name): Fix bug.
10231 Implement new -gnatl=xxx switch to output listing to file
10232 (Concat): Removed, replaced by real concatenation
10233 Make use of concatenation now allowed in compiler
10234 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
10235 we find the 'lib' or 'bin' directory even when the tool has been
10236 invoked with a relative path.
10237 (Executable_Name): New function taking string parameters.
10239 * osint-c.ads, osint-c.adb:
10240 Implement new -gnatl=xxx switch to output listing to file
10242 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
10245 Implement new -gnatl=xxx switch to output listing to file
10246 Recognize new -gnatL switch
10247 (no longer keep in old warning about old style usage)
10248 Use concatenation to simplify code
10249 Recognize -gnatjnn switch
10250 (Scan_Front_End_Switches): Clean up handling of -gnatW
10251 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
10253 2006-10-31 Robert Dewar <dewar@adacore.com>
10255 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
10256 (Set_Specific_Warning_Off): New procedure
10257 (Warning_Specifically_Suppressed): New function
10258 (Validate_Specific_Warnings): New procedure
10259 (Output_Msg_Text): Complete rewrite to support -gnatjnn
10261 * err_vars.ads: Implement insertion character ~ (insert string)
10263 2006-10-31 Bob Duff <duff@adacore.com>
10264 Ed Schonberg <schonberg@adacore.com>
10266 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
10267 the parent part is a build-in-place function call, generate assignments.
10268 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
10269 are build-in-place function calls.
10270 (Replace_Self_Reference): New subsidiary of
10271 Make_OK_Assignment_Statement, to replace an access attribute that is a
10272 self-reference into an access to the appropriate component of the
10273 target object. Generalizes previous mechanism to handle self-references
10274 nested at any level.
10275 (Is_Self_Referential_Init): Remove, not needed.
10276 (Is_Self_Referential_Init): New predicate to simplify handling of self
10277 referential components in record aggregates.
10278 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
10279 check for presence of entity before checking for self-reference.
10280 (Has_Default_Init_Comps): Return True if a component association is a
10281 self-reference to the enclosing type, which can only come from a
10282 default initialization.
10283 (Make_OK_Assignment_Statement): If the expression is of the form
10284 Typ'Acc, where Acc is an access attribute, the expression comes from a
10285 default initialized self-referential component.
10286 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
10287 that has been derived from several abstract interfaces we must also
10288 initialize the tags of the secondary dispatch tables.
10290 2006-10-31 Ed Schonberg <schonberg@adacore.com>
10291 Thomas Quinot <quinot@adacore.com>
10292 Javier Miranda <miranda@adacore.com>
10293 Robert Dewar <dewar@adacore.com>
10296 (Expand_Access_To_Protected_Op): If the context indicates that an access
10297 to a local operation may be transfered outside of the object, create an
10298 access to the wrapper operation that must be used in an external call.
10299 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
10300 target, pass the Valid attribute applied to a floating-point prefix on
10301 to the back end without expansion.
10302 (Storage_Size): Use the new run-time function Storage_Size to retrieve
10303 the allocated storage when it is specified by a per-object expression.
10304 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
10305 Nothing to do here, the attribute has been rewritten during semantic
10307 (Expand_Attribute_Reference): Handle expansion of the new Priority
10309 (Find_Fat_Info): Handle case of universal real
10310 (Expand_Access_To_Protected_Op): Fix use of access to protected
10311 subprogram from inside the body of a protected entry.
10312 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
10313 'Access and 'Unrestricted_Access, to transform the attribute reference
10314 into a fat pointer.
10315 (Is_Constrained_Aliased_View): New predicate to help determine whether a
10316 subcomponent's enclosing variable is aliased with a constrained subtype.
10317 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
10318 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
10319 an aliased prefix must be known to be constrained in order to use True
10320 for the attribute value, and now it's possible for some aliased views
10321 to be unconstrained.
10323 2006-10-31 Robert Dewar <dewar@adacore.com>
10325 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
10326 (Expand_Entity_Reference): Correct error of not handling subprogram
10327 formals in current_value processing.
10329 2006-10-31 Javier Miranda <miranda@adacore.com>
10330 Robert Dewar <dewar@adacore.com>
10331 Ed Schonberg <schonberg@adacore.com>
10332 Gary Dismukes <dismukes@adacore.com>
10334 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
10335 register in the final list objects containing class-wide interfaces;
10336 otherwise we incorrectly register the tag of the interface in the final
10338 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
10339 generate the wrapper if the parent primitive is abstract. This is
10340 required to report the correct error message.
10341 (Expand_N_Subtype_Indication): Do validity checks on range
10342 (Clean_Task_Names): If an initialization procedure includes a call to
10343 initialize a task (sub)component, indicate that the procedure will use
10344 the secondary stack.
10345 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
10346 compatibility for interfacing with CPP by default.
10347 (Expand_N_Object_Declaration): Only build an Adjust call when the
10348 object's type is a nonlimited controlled type.
10349 * exp_ch3.adb: Add with and use of Exp_Ch6.
10350 (Expand_N_Object_Declaration): Check for object initialization that is a
10351 call to build-in-place function and apply Make_Build_In_Place_Call_In_
10352 Object_Declaration to the call.
10353 (Freeze_Type): When the designated type of an RACW was not frozen at the
10354 point where the RACW was declared, validate the primitive operations
10355 with respect to E.2.2(14) when it finally is frozen.
10356 (Build_Initialization_Call,Expand_Record_Controller): Rename
10357 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
10358 return-by-reference has no meaning in Ada 2005.
10359 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
10360 to register tag of the immediate ancestor interfaces in the
10361 run-time structure.
10362 (Init_Secondary_Tags): Moved to the specification to allow the
10363 initialization of extension aggregates with abstract interfaces.
10364 (Build_Master_Renaming): Make public, for use by function declarations
10365 whose return type is an anonymous access type.
10366 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
10367 Insert_List_Before_And_Analyze after the generation of the specs
10368 associated with null procedures.
10369 (Expand_Tagged_Root): Update documentation in its specification.
10370 (Init_Secondary_Tags): Update documentation.
10371 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
10372 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
10373 then generate code to inherit the contents of the dispatch table
10374 directly from the ancestor.
10375 (Expand_Record_Controller): Insert controller component after tags of
10376 implemented interfaces.
10377 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
10378 create null procedure overridings when null procedures are inherited
10380 (Make_Null_Procedure_Specs): New procedure to generate null procedure
10381 declarations for overriding null primitives inherited from interfaces.
10382 (Is_Null_Interface_Procedure): New function in
10383 Make_Null_Procedure_Specs.
10384 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
10385 immediate ancestor of a tagged type is an abstract interface type we
10386 must generate the specification of the predefined primitives associated
10387 with controlled types (because the dispatch table of the ancestor is
10388 null and hence these entries cannot be inherited). This is required to
10389 elaborate well the dispatch table.
10391 2006-10-31 Javier Miranda <miranda@adacore.com>
10392 Ed Schonberg <schonberg@adacore.com>
10393 Bob Duff <duff@adacore.com>
10394 Gary Dismukes <dismukes@adacore.com>
10395 Robert Dewar <dewar@adacore.com>
10397 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
10399 (Expand_N_In): Do validity checks on range
10400 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
10401 (Expand_N_Allocator): For "new T", if the object is constrained by
10402 discriminant defaults, allocate the right amount of memory, rather than
10403 the maximum for type T.
10404 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
10405 when the allocator is initialized by a build-in-place call, since the
10406 allocator is already rewritten as a reference to the function result,
10407 and this prevents an unwanted duplication of the function call.
10408 Add with and use of Exp_Ch6.
10409 (Expand_Allocator_Expresssion): Check for an allocator whose expression
10410 is a call to build-in-place function and apply
10411 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
10412 untagged designated types).
10413 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
10414 optimization if source or target is biased.
10415 (Expand_N_Allocator): Add comments for case of an allocator within a
10416 function that returns an anonymous access type designating tasks.
10417 (Expand_N_Allocator): apply discriminant checks for access
10418 discriminants of anonymous access types (AI-402, AI-416)
10420 2006-10-31 Bob Duff <duff@adacore.com>
10421 Robert Dewar <dewar@adacore.com>
10422 Gary Dismukes <dismukes@adacore.com>
10423 Ed Schonberg <schonberg@adacore.com>
10425 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
10427 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
10428 (Expand_N_Assignment_Statement): Call
10429 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
10430 build-in-place function call. Currently, this can happen only for
10431 assignments that come from aggregates.
10432 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
10433 in order to alleviate the upward compatibility introduced by AI-318.
10434 (Expand_N_Extended_Return_Statement): Add support for handling the
10435 return object as a build-in-place result.
10436 (Expand_Non_Function_Return): Implement simple return statements nested
10437 within an extended return.
10438 (Enable_New_Return_Processing): Turn on the new processing of return
10440 (Expand_Non_Function_Return): For a return within an extended return,
10441 don't raise Program_Error, because Sem_Ch6 now gives a warning.
10442 (Expand_N_Extended_Return_Statement): Implement AI-318
10443 (Expand_Simple_Function_Return): Ditto.
10444 (Expand_N_If_Statement): Handle new -gnatwt warning
10445 (Expand_N_Case_Statement): Handle new -gnatwt warning
10446 (Expand_N_Assignment): Handle assignment to the Priority attribute of
10447 a protected object.
10448 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
10449 validity checking of assignments to elementary record components.
10450 (Expand_N_Return_Statement): return Class Wide types on the secondary
10451 stack independantly of their controlled status since with HIE runtimes,
10452 class wide types are not potentially controlled anymore.
10454 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
10457 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
10458 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
10459 it expects a block, procedure, or task. The return statement will get
10460 turned into a block, and Expand_Cleanup_Actions will happen then.
10462 2006-10-31 Robert Dewar <dewar@adacore.com>
10463 Ed Schonberg <schonberg@adacore.com>
10464 Bob Duff <duff@adacore.com>
10465 Gary Dismukes <dismukes@adacore.com>
10467 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
10469 (Expand_Inlined_Call): Tagged types are by-reference types, and
10470 therefore should be replaced by a renaming declaration in the expanded
10471 body, as is done for limited types.
10472 (Expand_Call): If this is a call to a function with dispatching access
10473 result, propagate tag from context.
10474 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
10476 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
10477 build-in-place when the right-hand side of an assignment is a
10478 build-in-place function call.
10479 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
10480 of the explicit dereference of the allocator to the result subtype of
10481 the build-in-place function. This is needed to satisfy type checking
10482 in cases where the caller's return object is created by an allocator for
10483 a class-wide access type and the type named in the allocator is a
10485 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
10486 conversion of the reference to the declared object to the result subtype
10487 of the build-in-place function. This is needed to satisfy type checking
10488 in cases where the declared object has a class-wide type. Also, in the
10489 class-wide case, change the type of the object entity to the specific
10490 result subtype of the function, to avoid passing a class-wide object
10491 without explicit initialization to the back end.
10492 (Register_Interface_DT_Entry): Moved outside the body of
10493 Freeze_Subprogram because this routine is now public; it is called from
10494 Check_Dispatching_Overriding to handle late overriding of abstract
10495 interface primitives.
10496 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
10497 adding an implicit access actual on a call to a build-in-place function.
10498 (Expand_Actuals): Test for an actual parameter that is a call to a
10499 build-in-place function and apply
10500 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
10501 (Is_Build_In_Place_Function): New function to determine whether an
10502 entity is a function whose calls should be handled as build-in-place.
10503 (Is_Build_In_Place_Function_Call): New function to determine whether an
10504 expression is a function call that should handled as build-in-place.
10505 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
10506 calls to build-in-place functions as the initialization of an allocator.
10507 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
10508 handling calls to build-in-place functions in contexts that do not
10509 involve init of a separate object (for example, actuals of subprogram
10511 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
10512 handling calls to build-in-place functions as the initialization of an
10513 object declaration.
10514 (Detect_Infinite_Recursion): Add explicit parameter Process to
10515 instantiation of Traverse_Body to avoid unreferenced warning.
10516 (Check_Overriding_Inherited_Interfaces): Removed.
10517 (Register_Interface_DT_Entry): Code cleanup.
10518 (Register_Predefined_DT_Entry): Code cleanup.
10519 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
10520 inlined statements if within a transient scope.
10521 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
10522 formal parameters with occurrences of actuals in inlined body, establish
10523 visibility on the proper view of the actual's subtype for the body's
10525 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
10526 compatibility mode and we have an imported CPP subprogram because
10527 for now we assume that imported CPP primitives correspond with
10528 objects whose constructor is in the CPP side (and therefore we
10529 don't need to generate code to register them in the dispatch table).
10530 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
10531 aligned selected component.
10532 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
10533 the actual of an in-mode parameter is a type conversion.
10534 (Expand_Actuals): If the call does not come from source and the actual
10535 is potentially misaligned, let gigi handle it rather than rejecting the
10536 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
10537 Class Wide types as returning by reference independantly of their
10538 controlled status since with HIE runtimes class wide types are not
10539 potentially controlled anymore.
10541 2006-10-31 Ed Schonberg <schonberg@adacore.com>
10543 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
10544 references that are private components of the protected object.
10545 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
10546 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
10547 instantiation to deal with warnings.
10548 (Initialize_Protection): If expression for priority is non-static, use
10549 System_Priority as its expected type, in case the expression has not
10552 2006-10-31 Robert Dewar <dewar@adacore.com>
10554 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
10555 initialization of Homonym_Len.
10556 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
10557 names from fully qualified name. Fixes problem of duplicate
10558 external names differing only in the presence of such a block name.
10560 2006-10-31 Thomas Quinot <quinot@adacore.com>
10561 Pablo Oliveira <oliveira@adacore.com>
10563 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
10564 subprogram Ids, even if they are not yet assigned.
10565 (Build_Subprogram_Id): It is now this function that will take care of
10566 calling Assign_Subprogram_Ids if necessary.
10567 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
10568 should be done only once they are assigned.
10569 (Build_From_Any_Function, case of tagged types): Add missing call to
10571 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
10572 type for an RACW type.
10573 (Add_RACW_Features): When processing an RACW declaration for which the
10574 designated type is already frozen, enforce E.2.2(14) rules immediately.
10575 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
10576 special reordering of controlling formals.
10578 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
10579 associated stub type for an RACW type.
10581 2006-10-31 Ed Schonberg <schonberg@adacore.com>
10583 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
10584 fixed-point operations in an integer context, i.e. as operands of a
10585 conversion to an integer type, indicate that result must be rounded.
10587 2006-10-31 Robert Dewar <dewar@adacore.com>
10589 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
10590 cases, pass the encoding method, since it is now required by the run
10593 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
10594 assumption that Str'First = 1.
10595 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
10596 it on to the Value_Wide_Wide_Character call.
10597 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
10598 properly handles a string of the form quote-encoded_wide_char-quote.
10600 * s-wchcnv.adb: Minor reformatting
10602 2006-10-31 Javier Miranda <miranda@adacore.com>
10604 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
10605 run-time membership test to ensure that the constructed object
10606 implements the target abstract interface.
10608 2006-10-31 Robert Dewar <dewar@adacore.com>
10610 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
10611 Machine_Attribute pragma internally to implement the user pragma.
10612 Add processing for pragma Interface so that it is now completely
10613 equivalent to pragma Import.
10615 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
10616 so that it can be applied to all entities, including record components
10617 and enumeration literals.
10618 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
10619 priority ranges are correct, verify compatibility against task
10620 dispatching and locking policies, and if everything is correct an entry
10621 is added to the table containing priority specific dispatching entries
10622 for this compilation unit.
10623 (Delay_Config_Pragma_Analyze): Delay processing
10624 Priority_Specific_Dispatching pragmas because when processing the
10625 pragma we need to access run-time data, such as the range of
10626 System.Any_Priority.
10627 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
10628 Allow pragma Unreferenced as a context item
10629 Add pragma Preelaborable_Initialization
10630 (Analyze_Pragma, case Interface): Interface is extended so that it is
10631 now syntactically and semantically equivalent to Import.
10632 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
10633 insertion characters.
10634 Add handling for Pragma_Wide_Character_Encoding
10635 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
10636 never supercedes a real restriction, and that a real restriction
10637 always supercedes a warning.
10638 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
10641 2006-10-31 Bob Duff <duff@adacore.com>
10642 Ed Schonberg <schonberg@adacore.com>
10643 Robert Dewar <dewar@adacore.com>
10645 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
10646 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
10647 Is_Inherently_Limited_Type, because return-by-reference has no meaning
10649 (Find_Node_To_Be_Wrapped): Use new method of determining the result
10650 type of the function containing a return statement, because the
10651 Return_Type field was removed. We now use the Return_Applies_To field.
10653 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
10654 (Build_Task_Image_Decl): If procedure is not called from an
10655 initialization procedure, indicate that function that builds task name
10656 uses the sec. stack. Otherwise the enclosing initialization procedure
10657 will carry the indication.
10658 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
10659 N_Object_Declaration instead.
10660 (Kill_Dead_Code): New interface to implement -gnatwt warning for
10661 conditional dead code killed, and change implementation accordingly.
10662 (Insert_Actions): Add N_Return_Object_Declaration case.
10663 Correct comment to mention N_Extension_Aggregate node.
10664 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
10665 attempts to save information for global variables which cannot be
10667 (Get_Current_Value_Condition): Handle conditions the other way round
10668 (constant on left). Also handle right operand of AND and AND THEN
10669 (Set_Current_Value_Condition): Corresponding changes
10670 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
10671 (Get_Current_Value_Condition): Handle simple boolean operands
10672 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
10673 (Get_Current_Value_Condition): If the variable reference is within an
10674 if-statement, does not appear in the list of then_statments, and does
10675 not come from source, treat it as being at unknown location.
10676 (Get_Current_Value_Condition): Enhance to allow while statements to be
10677 processed as well as if statements.
10678 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
10680 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
10681 of loop. This is safe now that we fixed Kill_Current_Values.
10682 (OK_To_Do_Constant_Replacement): Check whether current scope is
10683 Standard, before examining outer scopes.
10685 2006-10-31 Vincent Celier <celier@adacore.com>
10687 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
10688 When True, apply VMS treatment to children of packages A, G, I and S.
10691 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
10693 2006-10-31 Robert Dewar <dewar@adacore.com>
10694 Ed Schonberg <schonberg@adacore.com>
10696 * freeze.adb: Add handling of Last_Assignment field
10697 (Warn_Overlay): Supply missing continuation marks in error msgs
10698 (Freeze_Entity): Add check for Preelaborable_Initialization
10700 * g-comlin.adb: Add Warnings (Off) to prevent new warning
10702 * g-expect.adb: Add Warnings (Off) to prevent new warning
10704 * lib-xref.adb: Add handling of Last_Assignment field
10705 (Generate_Reference): Centralize handling of pragma Obsolescent here
10706 (Generate_Reference): Accept an implicit reference generated for a
10707 default in an instance.
10708 (Generate_Reference): Accept a reference for a node that is not in the
10709 main unit, if it is the generic body corresponding to an subprogram
10712 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
10714 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
10716 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
10718 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
10719 use clauses, to avoid messages on packages used to qualify, and also
10720 to avoid messages from obsolescent units.
10721 (Warn_On_Useless_Assignments): Don't generate messages for imported
10722 and exported variables.
10723 (Warn_On_Useless_Assignments): New procedure
10724 (Output_Obsolescent_Entity_Warnings): New procedure
10725 (Check_Code_Statement): New procedure
10727 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
10728 Change name Is_Ada_2005 to Is_Ada_2005_Only
10729 (Last_Assignment): New field for useless assignment warning
10731 2006-10-31 Olivier Hainque <hainque@adacore.com>
10733 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
10734 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
10736 2006-10-31 Bob Duff <duff@adacore.com>
10737 Robert Dewar <dewar@adacore.com>
10738 Ed Schonberg <schonberg@adacore.com>
10740 * g-awk.adb (Default_Session, Current_Session): Compile this file in
10741 Ada 95 mode, because it violates the new rules for AI-318.
10743 * g-awk.ads: Use overloaded subprograms in every case where we used to
10744 have a default of Current_Session. This makes the code closer to be
10745 correct for both Ada 95 and 2005.
10747 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
10748 code, relying on the fact that the compiler generates a warning
10749 instead of an error in -gnatg mode.
10751 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
10752 E_Return_Statement entity kind.
10753 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
10755 * par.adb (P_Interface_Type_Definition): Addition of one formal to
10756 report an error if the reserved word abstract has been previously found.
10757 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
10759 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
10760 parenthesized range attribute usage
10761 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
10763 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
10764 in the syntax for extended_return_statement. This is not in the latest
10765 RM, but the ARG is expected to issue an AI allowing this.
10766 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
10767 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
10768 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
10769 P_Return_Statement): Parse the new syntax for extended_return_statement.
10771 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
10772 Output_End_Missing): Add error-recovery code for the new
10773 extended_return_statement syntax; that is, the new E_Return entry on
10776 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
10777 limited to nonlimited, because otherwise we violate the new Ada 2005
10778 rules about returning limited types in function Create_AST_Handler in
10781 * sem.adb (Analyze): Add cases for new node kinds
10782 N_Extended_Return_Statement and N_Return_Object_Declaration.
10784 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
10785 type is in the same category as type of context before applying check,
10786 to prevent anomalies in instantiations.
10787 (Resolve_Aggregate): Remove test for limited components in aggregates.
10788 It's unnecessary in Ada 95, because if it has limited components, then
10789 it must be limited. It's wrong in Ada 2005, because limited aggregates
10791 (Resolve_Record_Aggregate): Move check for limited types later, because
10792 OK_For_Limited_Init requires its argument to have been resolved.
10793 (Get_Value): When copying the component default expression for a
10794 defaulted association in an aggregate, use the sloc of the aggregate
10795 and not that of the original expression, to prevent spurious
10796 elaboration errors, when the expression includes function calls.
10797 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
10798 were missing. We also didn't handle qualified expressions. Now also
10799 allow function calls. Use new common routine OK_For_Limited_Init.
10800 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
10801 with space can upper case letter).
10803 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
10804 Has_Static_Discriminants flag
10805 (Record_Type_Declaration): Diagnose an attempt to declare an interface
10806 type with discriminants.
10807 (Process_Range_Expr_In_Decl): Do validity checks on range
10808 (Build_Discriminant_Constraints): Use updated form of
10809 Denotes_Discriminant.
10810 (Process_Subtype): If the subtype is a private subtype whose full view
10811 is a concurrent subtype, introduce an itype reference to prevent scope
10813 (Build_Derived_Record_Type, Collect_Interface_Primitives,
10814 Record_Type_Declaration): The functionality of the subprograms
10815 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
10816 is now performed by a single routine.
10817 (Build_Derived_Record_Type): If the type definition includes an explicit
10818 indication of limitedness, then the type must be marked as limited here
10819 to ensure that any access discriminants will not be treated as having
10820 a local anonymous access type.
10821 (Check_Abstract_Overriding): Issue a detailed error message when an
10822 abstract subprogram was not overridden due to incorrect mode of its
10824 (Analyze_Private_Extension_Declaration): Add support for the analysis of
10825 synchronized private extension declarations. Verify that the ancestor is
10826 a limited or synchronized interface or in the generic case, the ancestor
10827 is a tagged limited type or synchronized interface and all progenitors
10828 are either limited or synchronized interfaces.
10829 Derived_Type_Declaration): Check for presence of private extension when
10830 dealing with synchronized formal derived types.
10831 Process_Full_View): Enchance the check done on the usage of "limited" by
10832 testing whether the private view is synchronized.
10833 Verify that a synchronized private view is completed by a protected or
10835 (OK_For_Limited_Init_In_05): New function.
10836 (Analyze_Object_Declaration): Move check for limited types later,
10837 because OK_For_Limited_Init requires its argument to have been resolved.
10838 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
10839 in order to alleviate the upward compatibility introduced by AI-318.
10840 (Constrain_Corresponding_Record): If the constraint is for a component
10841 subtype, mark the itype as frozen, to avoid out-of-scope references to
10842 discriminants in the back-end.
10843 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
10844 this subprogram against wrong sources.
10845 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
10846 discriminant of limited type completed with a protected type, when the
10847 discriminant is used to constrain a private component of the type, and
10848 expansion is disabled.
10849 (Find_Type_Of_Object): Do not treat a return subtype that is an
10850 anonymous subtype as a local_anonymous_type, because its accessibility
10851 level is the return type of the enclosing function.
10852 (Check_Initialization): In -gnatg mode, turn the error "cannot
10853 initialize entities of limited type" into a warning.
10854 (OK_For_Limited_Init): Return true for generated nodes, since it
10855 sometimes violates the legality rules.
10856 (Make_Incomplete_Declaration): If the type for which an incomplete
10857 declaration is created happens to be the currently visible entity,
10858 preserve the homonym chain when removing it from visibility.
10859 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
10860 inherited subprograms.
10861 (Access_Definition): If this is an access to function that is the return
10862 type of an access_to_function definition, context is a type declaration
10863 and the scope of the anonymous type is the current one.
10864 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
10865 incomplete subtype to the set of private dependents of the original
10867 (Constrain_Discriminated_Type): Emit an error message whenever an
10868 incomplete subtype is being constrained.
10869 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
10870 corresponding subtype of the full view of the original incomplete type.
10871 (Check_Incomplete): Properly detect invalid usage of incomplete types
10874 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
10876 * g-catiio.ads, g-catiio.adb (Value): New function.
10877 Given an input String, try and parse a valid Time value.
10879 2006-10-31 Vincent Celier <celier@adacore.com>
10881 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
10882 Integer_Address arithmetic, as in Set_Valid.
10884 2006-10-31 Arnaud Charlet <charlet@adacore.com>
10885 Robert Dewar <dewar@adacore.com>
10887 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
10888 handling executable extension manually and duplicating code.
10890 * make.adb: Implement new -S switch
10891 (Gnatmake): Use new function Osint.Executable_Name instead
10892 of handling executable extension manually.
10894 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
10895 is specified, the executable name ends with this suffix.
10896 Take advantage of Osint.Executable_Name instead of duplicating code.
10898 * switch-m.adb: Recognize new gnatmake -S switch
10900 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
10902 (Get_Target_Parameters): Set Executable_Extension_On_Target if
10905 * makeusg.adb: Add line for gnatmake -S switch
10907 2006-10-31 Vincent Celier <celier@adacore.com>
10909 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
10910 call it with -static-libgcc, as there are some platforms, such as
10911 Darwin, where one of these two switches is compulsory to link.
10913 2006-10-31 Vincent Celier <celier@adacore.com>
10915 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
10916 instead of ADA_PROJECT_PATH, for the project path.
10917 (Gnatls): When displaying the project path directories, use host dir
10920 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
10921 names in the project path, as absolute paths may correspond to
10922 multi-valued VMS logical names.
10924 2006-10-31 Vincent Celier <celier@adacore.com>
10926 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
10927 absolute path name.
10928 (Locate_Regular_File): Ditto
10929 (Change_Dir): Remove, no longer used
10930 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
10931 on Windows. Get it calling Get_Current_Dir.
10932 (OpenVMS): Remove imported boolean, no longer needed.
10933 (Normalize_Pathname)[VMS]: Do not resolve directory names.
10934 (Pid_To_Integer): New function to convert a Process_Id to Integer
10936 2006-10-31 Thomas Quinot <quinot@adacore.com>
10938 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
10939 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
10941 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
10944 2006-10-31 Robert Dewar <dewar@adacore.com>
10946 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
10947 initial letter o as a zero.
10949 2006-10-31 Robert Dewar <dewar@adacore.com>
10951 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
10953 2006-10-31 Robert Dewar <dewar@adacore.com>
10955 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
10957 (Layout_Variant_Record): Retrieve the discriminants from the entity
10958 rather than from the type definition, because in the case of a full
10959 type for a private type we need to take the discriminants from the
10961 (Layout_Component_List): When applying the Max operator to variants with
10962 a nonstatic size, check whether either operand is static and scale that
10963 operand from bits to storage units before applying Max.
10964 (Layout_Type): In VMS, if a C-convention access type has no explicit
10965 size clause (and does not inherit one in the case of a derived type),
10966 then the size is reset to 32 from 64.
10968 2006-10-31 Vincent Celier <celier@adacore.com>
10970 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
10971 its file has already been loaded, according to the unit being loaded,
10972 not to the current value of Multiple_Unit_Index.
10974 2006-10-31 Thomas Quinot <quinot@adacore.com>
10975 Eric Botcazou <ebotcazou@adacore.com>
10976 Arnaud Charlet <charlet@adacore.com>
10978 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
10979 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
10981 (a-except.o): Pass it to the compiler.
10982 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
10983 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
10984 a-calend-mingw.adb version.
10986 * Makefile.rtl: Added s-dsaser.
10987 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
10988 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
10989 Ada.Dispatching.Round_Robin.
10990 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
10992 * Make-lang.in: Remove all references to gt-ada-decl.h.
10993 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
10995 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
10996 Update dependencies.
10998 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
11000 2006-10-31 Vincent Celier <celier@adacore.com>
11002 * mlib-utl.adb (Initialized): Remove, no longer used
11003 (Initialize): Remove, no longer used
11004 (Ar): If Ar_Exec is null, get the location of the archive builder and,
11005 if there is one, the archive indexer. Fail if the archive builder cannot
11007 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
11010 2006-10-31 Ed Schonberg <schonberg@adacore.com>
11012 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
11013 Process_Body_Clauses): If the context of a body includes a use clause
11014 for P.Q then a with_clause for P in the same body is not redundant,
11015 even if the spec also has a with_clause on P.
11016 Add missing continuation mark to error msg
11017 (Build_Limited_Views): A limited view of a type is tagged if its
11018 declaration includes a record extension.
11019 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
11020 node, even if the subunit has errors. This avoids malfunction by
11021 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
11022 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
11023 generation of obsolescent messages for with statements (cannot do
11024 this too early, or we cannot implement avoiding the messages in the
11025 case of obsolescent units withing obsolescent units).
11026 (Install_Siblings): If the with_clause is on a remote descendant of
11027 an ancestor of the current compilation unit, find whether there is
11028 a sibling child unit that is immediately visible.
11029 (Remove_Private_With_Clauses): New procedure, invoked after completing
11030 the analysis of the private part of a nested package, to remove from
11031 visibility the private with_clauses of the enclosing package
11033 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
11034 now centralized in Generate_Reference.
11035 (Install_Limited_Context_Clauses): Remove superfluous error
11036 message associated with unlimited view visible through use
11037 and renamings. In addition, at the point in which the error
11038 is reported, we add the backslash to the text of the error
11039 to ensure that it is reported as a single error message.
11040 Use new // insertion for some continuation messages
11041 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
11042 to create implicit with_clause for parent unit mentioned in original
11043 limited_with_clause.
11044 (Install_Limited_With_Unit): Set entity of parent identifiers if the
11045 unit is a child unit. For ASIS queries.
11046 (Analyze_Subunit): If the subunit appears within a child unit, make all
11047 ancestor child units directly visible again.
11049 2006-10-31 Robert Dewar <dewar@adacore.com>
11051 * par-ch10.adb (P_Context_Clause): Minor error message fix
11053 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
11054 Javier Miranda <miranda@adacore.com>
11056 * par-ch12.adb: Grammar update and cleanup.
11057 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
11058 support for synchronized derived type definitions.
11059 Add the new actual Abstract_Present to every call to
11060 P_Interface_Type_Definition.
11061 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
11062 a formal object declaration with an access definition or a subtype mark
11063 with a null exclusion.
11064 (P_Generic_Association): Handle association with box, and others_choice
11065 with box, to support Ada 2005 partially parametrized formal packages.
11067 2006-10-31 Robert Dewar <dewar@adacore.com>
11068 Javier Miranda <miranda@adacore.com>
11070 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
11071 (P_Type_Declaration): Remove barrier against the reserved word "limited"
11072 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
11073 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
11074 private extensions.
11075 (P_Type_Declaration): Add the new actual Abstract_Present to every call
11076 to P_Interface_Type_Definition.
11077 (P_Interface_Type_Definition): Addition of one formal to report an error
11078 if the reserved word abstract has been previously found.
11079 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
11080 object renaming declaration with an access definition or subtype mark
11081 with a possible null exclusion.
11083 * par-ch9.adb: Minor error msg fix
11085 * par-load.adb: Add missing continuation mark to error msg
11087 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
11089 2006-10-31 Vincent Celier <celier@adacore.com>
11091 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
11092 unknown attribute in unknown package or in package that does not need
11094 (Parse_Package_Declaration): Do not issue warning for unknown package in
11097 2006-10-31 Vincent Celier <celier@adacore.com>
11099 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
11100 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
11103 2006-10-31 Vincent Celier <celier@adacore.com>
11105 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
11106 on VMS, change "__" to '.' before checking the name.
11107 (Record_Ada_Source): Always add the source file name in the list of
11108 of sources, even if it is not the first time, as it is for another
11110 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
11111 dot, instead of replacing only the first '_'.
11113 * prj-part.adb (Parse): Convert project file path to canonical form
11115 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
11116 extended, the project id of the project extending it is recorded in its
11117 data, even when it has already been processed as an imported project.
11119 2006-10-31 Robert Dewar <dewar@adacore.com>
11121 * repinfo.adb (List_Entities): Don't list entities from renaming
11124 2006-10-31 Arnaud Charlet <charlet@adacore.com>
11125 Robert Dewar <dewar@adacore.com>
11127 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
11128 only a restriction warning is active for the given restriction. This is
11129 desirable because we do not want to modify code in the case where only
11131 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
11132 causes overriding of real restrictions.
11133 Take advantage of new No_Restrictions constant.
11135 * raise.h: (__gnat_set_globals): Change profile.
11137 2006-10-31 Arnaud Charlet <charlet@adacore.com>
11139 * rtsfind.adb: Remove s-polint from comment as it exists no more.
11142 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
11143 Move all the entities in obsolete package System.PolyORB_Interface to
11144 System.Partition_Interface.
11145 (RE_Storage_Size): New function in System.Tasking.
11146 (RE_Get_Ceiling): New entity.
11147 (RE_Set_Ceiling): New entity.
11148 (RO_PE_Get_Ceiling): New entity.
11149 (RO_RE_Set_Ceiling): New entity.
11150 (Inherit_CPP_DT): New entity
11152 2006-10-31 Robert Dewar <dewar@adacore.com>
11154 * scng.adb (Scan, case of numeric literal): Better msg for identifier
11155 starting with a digit.
11157 2006-10-31 Ed Schonberg <schonberg@adacore.com>
11158 Thomas Quinot <quinot@adacore.com>
11159 Javier Miranda <miranda@adacore.com>
11160 Gary Dismukes <dismukes@adacore.com>
11162 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
11163 properly an attempt to apply Unchecked_Access to a protected operation.
11164 (OK_Self_Reference): New subprogram to check the legality of an access
11165 attribute whose prefix is the type of an enclosing aggregate.
11166 Generalizes previous mechanism to handle attribute references nested
11167 arbitrarily deep within the aggregate.
11168 (Analyze_Access_Attribute): An access attribute whose prefix is a type
11169 can appear in an aggregate if this is a default-initialized aggregate
11170 for a self-referential type.
11171 (Resolve_Attribute, case Access): Ditto.
11172 Add support for new implementation defined attribute Stub_Type.
11173 (Eval_Attribute, case Attribute_Stub_Type): New case.
11174 (Analyze_Attribute, case Attribute_Stub_Type): New case.
11175 (Stream_Attribute_Available): Implement using new subprogram from
11176 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
11177 Has_Specified_Stream_Attribute flag.
11178 Disallow Storage_Size and Storage_Pool for access to subprogram
11179 (Resolve_Attribute, case 'Access et al): Take into account anonymous
11180 access types of return subtypes in extended return statements. Remove
11181 accessibility checks on anonymous access types when Unchecked_Access is
11183 (Analyze_Attribute): Add support for the use of 'Class to convert
11184 a class-wide interface to a tagged type.
11185 Add support for the attribute Priority.
11186 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
11187 whether the designated type is discriminated with a constrained partial
11188 view and require static matching in that case.
11189 Add local variable Des_Btyp. The Designated_Type
11190 of an access to incomplete subtype is either its non-limited view if
11191 coming from a limited with or its etype if regular incomplete subtype.
11193 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
11194 Fix predicate to identify and allow cases of (expander-generated)
11195 references to tag of designated object of a RACW.
11196 (Validate_Static_Object_Name): In Ada 2005, a formal object is
11197 non-static, and therefore cannot appear as a primary in a preelaborable
11199 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
11200 Has_Read_Write_Attributes.
11201 (Has_Read_Write_Attributes): Reimplement in termes of
11202 Has_Stream_Attribute_Definition.
11203 (Missing_Read_Write_Attributes): When checking component types in a
11204 record, unconditionally call Missing_Read_Write_Attributes recursively
11205 (remove guard checking for Is_Record_Type / Is_Access_Type).
11207 2006-10-31 Robert Dewar <dewar@adacore.com>
11209 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
11210 useless assignments here and conditionalize it on absence of exception
11212 (Analyze_Exception_Handlers): Small code reorganization of error
11213 detection code, for new handling of formal packages.
11215 2006-10-31 Ed Schonberg <schonberg@adacore.com>
11216 Hristian Kirtchev <kirtchev@adacore.com>
11218 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
11219 that has been constant-folded, preserve information of original tree,
11221 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
11222 generated private extension declaration if the formal derived type is
11223 synchronized. Carry synchronized present over to the generated private
11225 (Validate_Derived_Type_Instance): Ensure that the actual of a
11226 synchronized formal derived type is a synchronized tagged type.
11227 (Instantiate_Formal_Package): When creating the instantiation used to
11228 validate the actual package of a formal declared without a box, check
11229 whether the formal itself depends on a prior actual.
11230 (Instantiate_Formal_Subprogram): Create new entities for the defining
11231 identifiers of the formals in the renaming declaration, for ASIS use.
11232 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
11233 a renaming declaration or a subtype declaration for an actual in an
11234 instance, capture location information of declaration in generic, for
11236 (Instantiate_Formal_Package): Add comments on needed additional tests.
11237 AI-317 (partial parametrization) is fully implemented.
11238 (Validate_Private_Type_Instance): Add check for actual which
11239 must have preelaborable initialization
11240 Use new // insertion for some continuation messages
11241 (Analyze_Formal_Object_Declaration): Change usage of Expression to
11242 Default_Expression. Add type retrieval when the declaration has an
11243 access definition. Update premature usage of incomplete type check.
11244 (Check_Access_Definition): New subsidiary routine. Check whether the
11245 current compilation version is Ada 05 and the supplied node has an
11247 (Instantiate object): Alphabetize local variables. Handle the creation
11248 of new renaming declarations with respect to the kind of definition
11249 used - either an access definition or a subtype mark. Guard against
11250 unnecessary error message in the context of anonymous access types after
11251 they have been resolved. Add check for required null exclusion in a
11252 formal object declaration.
11253 (Switch_View): A private subtype of a non-private type needs to be
11254 switched (the base type can have been switched without its private
11255 dependents because of the last branch of Check_Private_View.
11256 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
11258 (Instantiate_Type): Emit an error message whenever a class-wide type of
11259 a tagged incomplete type is used as a generic actual.
11260 (Find_Actual_Type): Extend routine to handle a component type in a child
11261 unit that is imported from a formal package in a parent.
11262 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
11263 agree on constrainedness, rather than checking against ultimate ancestor
11264 (Instantiate_Subprogram_Body): Create a cross-reference link to the
11265 generic body, for navigation purposes.
11267 2006-10-31 Robert Dewar <dewar@adacore.com>
11268 Thomas Quinot <quinot@adacore.com>
11270 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
11272 (New_Stream_Subprogram): When processing an attribute definition clause
11273 for a stream-oriented subprogram, record an entity node occurring at
11274 the point of clause to use for checking the visibility of the clause,
11275 as defined by 8.3(23) as amended by AI-195.
11276 (New_Stream_Subprogram): New procedure, factoring behaviour from both
11277 New_Stream_Function and New_Stream_Procedure.
11278 (New_Stream_Function, New_Stream_Procedure): Removed.
11279 (Analyze_Attribute_Definition_Clause, case Address): Check new
11280 Alignment_Check check
11282 2006-10-31 Ed Schonberg <schonberg@adacore.com>
11283 Javier Miranda <miranda@adacore.com>
11284 Robert Dewar <dewar@adacore.com>
11286 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
11287 generate the same errors compiling under -gnatc.
11288 (Try_Object_Operation): If no candidate interpretation succeeds, but
11289 there is at least one primitive operation with the right name, report
11290 error in call rather than on a malformed selected component.
11291 (Analyze_Selected_Component): If the prefix is an incomplete type from
11292 a limited view, and the full view is available, use the full view to
11293 determine whether this is a prefixed call to a primitive operation.
11294 (Operator_Check): Verify that a candidate interpretation is a binary
11295 operation before checking the type of its second formal.
11296 (Analyze_Call): Add additional warnings for function call contexts not
11298 (Analyze_Allocator): Move the check for "initialization not allowed for
11299 limited types" after analyzing the expression. This is necessary,
11300 because OK_For_Limited_Init looks at the structure of the expression.
11301 Before analysis, we don't necessarily know what sort of expression it
11302 is. For example, we don't know whether F(X) is a function call or an
11303 indexed component; the former is legal in Ada 2005; the latter is not.
11304 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
11305 were missing. We also didn't handle qualified expressions. Now also
11306 allow function calls. Use new common routine OK_For_Limited_Init.
11307 (Analyze_Type_Conversion): Do not perform some legality checks in an
11308 instance, because the error message will be redundant or spurious.
11309 (Analyze_Overloaded_Selected_Component): Do not do style check when
11310 setting an entity, since we do not know it is the right entity yet.
11311 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
11312 (Analyze_Overloaded_Selected_Component): Same change
11313 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
11314 since regular incomplete subtypes are transformed into corresponding
11315 subtypes of their full views.
11316 (Complete_Object_Operation): Treat name of transformed subprogram call
11317 as coming from source, for browsing purposes.
11318 (Try_Primitive_Operation): If formal is an access parameter, compare
11319 with base type of object to determine whether it is a primitive
11321 (Operator_Check): If no interpretation of the operator matches, check
11322 whether a use clause on any candidate might make the operation legal.
11323 (Try_Class_Wide_Operation): Check whether the first parameter is an
11324 access type whose designated type is class-wide.
11326 2006-10-31 Robert Dewar <dewar@adacore.com>
11327 Ed Schonberg <schonberg@adacore.com>
11328 Gary Dismukes <dismukes@adacore.com>
11330 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
11331 warn on infinite loops.
11332 Add \\ to some continuation messages
11333 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
11334 (Process_Bounds): If the bounds are integer literals that result from
11335 constant-folding, and they carry a user-defined type, preserve that type
11336 rather than treating this as an integer range.
11337 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
11338 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
11339 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
11340 left hand side of assignment.
11341 (Analyze_Assignment): Add suport to manage assigments to the attribute
11342 priority of a protected object.
11343 (Check_Possible_Current_Value_Condition): Allow fully qualified names
11344 not just identifiers.
11345 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
11346 or AND THEN for possible tracking.
11347 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
11348 case of while loops so we can track values in the loop body.
11350 2006-10-31 Ed Schonberg <schonberg@adacore.com>
11351 Hristian Kirtchev <kirtchev@adacore.com>
11352 Bob Duff <duff@adacore.com>
11354 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
11355 procedure cannot be a protected operation (it is a basic_declaration,
11356 not a subprogram_declaration).
11357 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
11358 Subp. Add logic for entry processing.
11359 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
11360 Determine whether an entry or subprogram of a protected or task type
11361 override an inherited primitive of an implemented interface.
11362 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
11363 Update the actual used in calls to Check_Overriding_Indicator.
11364 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
11365 generate the proper reference to the parent unit, for cross-reference.
11366 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
11368 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
11369 (Add_Extra_Formal): Revise procedure to allow passing in associated
11370 entity, scope, and name suffix, and handle setting of the new
11371 Extra_Formals field.
11372 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
11373 pass new parameters. Add support for adding the new extra access formal
11374 for functions whose calls are treated as build-in-place.
11375 (Analyze_A_Return_Statement): Correct casing in error message.
11376 Move Pop_Scope to after Analyze_Function_Return, because an extended
11377 return statement really is a full-fledged scope. Otherwise, visibility
11378 doesn't work right. Correct use of "\" for continuation messages.
11379 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
11380 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
11381 the node doesn't get properly marked as analyzed.
11382 (Analyze_Subprogram_Body): If subprogram is a function that returns
11383 an anonymous access type that denotes a task, build a Master Entity
11385 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
11386 proper usage of null exclusion in a result definition.
11387 (Process_Formals): Code cleanup and new error message.
11388 (Process_Formals): Detect incorrect application of null exclusion to
11390 (Conforming_Types): Handle conformance between [sub]types and itypes
11391 generated for entities that have null exclusions applied to them.
11392 (Maybe_Primitive_Operation): Add an additional type retrieval when the
11393 base type is an access subtype. This case arrises with null exclusions.
11394 (New_Overloaded_Entity): Do not remove the overriden entity from the
11395 homonym chain if it corresponds with an abstract interface primitive.
11396 (Process_Formals): Replace membership test agains Incomplete_Kind with a
11397 call to the synthesized predicate Is_Incomplete_Type.
11398 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
11400 (Analyze_Subprogram_Declaration): Check that abstract interface
11401 primitives are abstract or null.
11402 (Analyze_Subprogram_Specification): Remove previous check for abstract
11403 interfaces because it was not complete.
11404 (Has_Interface_Formals): Removed.
11406 2006-10-31 Ed Schonberg <schonberg@adacore.com>
11407 Javier Miranda <miranda@adacore.com>
11409 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
11410 of Analyze_Package_Body, to create Itype references for anonymous
11411 access types created in the package declaration, whose designated types
11412 may have only a limited view.
11413 (Analyze_Package_Specification): For the private part of a nested
11414 package, install private_with_clauses of enclosing compilation unit if
11415 we are in its visible part.
11416 (Declare_Inherited_Private_Subprograms): Complete barrier
11417 to ensure that the primitive operation has an alias to some parent
11418 primitive. This is now required because, after the changes done for the
11419 implementation of abstract interfaces, the contents of the list of
11420 primitives has entities whose alias attribute references entities of
11421 such list of primitives.
11422 (Analyze_Package_Specification): Simplify code that handles parent units
11423 of instances and formal packages.
11424 (Uninstall_Declarations): Check the convention consistency among
11425 primitive overriding operations of a tagged record type.
11427 2006-10-31 Robert Dewar <dewar@adacore.com>
11428 Hristian Kirtchev <kirtchev@adacore.com>
11429 Javier Miranda <miranda@adacore.com>
11430 Ed Schonberg <schonberg@adacore.com>
11432 * sem_ch8.adb: Minor error msg rewording
11433 (Undefined): When checking for misspellings, invert arguments (to get
11434 expected and found set right)
11435 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
11436 (Analyze_Generic_Renaming): Same fix
11437 (Use_One_Package): Do not take into account the internal entities of
11438 abstract interfaces during the analysis of entities that are marked
11439 as potentially use-visible.
11440 (Find_Type): Handle the case of an attribute reference for
11441 implementation defined attribute Stub_Type (simply let the analysis of
11442 the attribute reference rewrite it).
11443 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
11444 type that appears in a Use_Type clause.
11445 (Analyze_Object_Renaming): Add support for renaming of the Priority
11447 (Find_Type): In Ada 2005, a task type can be used within its own body,
11448 when it appears in an access definition.
11449 (Analyze_Object_Renaming): Remove warning on null_exclusion.
11450 (Analyze_Object_Renaming): Introduce checks for required null exclusion
11451 in a formal object declaration or in a subtype declaration.
11452 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
11453 (Check_Null_Exclusion): New local routine to
11454 Analyze_Subprogram_Renaming. Check whether the formals and return
11455 profile of a renamed subprogram have required null exclusions when
11456 their counterparts of the renaming already impose them.
11457 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
11458 Determine whether an entity is inside a generic scope.
11459 (In_Open_Scope): First pass of documentation update.
11460 (Find_Expanded_Name): Add support for shadow entities associated with
11461 limited withed packages. This is required to handle nested packages.
11462 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
11463 that makes a renaming of a limited withed package illegal.
11465 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
11466 Ed Schonberg <schonberg@adacore.com>
11468 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
11469 Check_Overriding_Indicator.
11470 (Analyze_Task_Definition): Ditto.
11471 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
11472 (Check_Overriding_Indicator): To find overridden interface operation,
11473 examine only homonyms that have an explicit subprogram declaration, not
11474 inherited operations created by an unrelated type derivation.
11475 (Check_Overriding_Indicator): When checking for the presence of "null"
11476 in a procedure, ensure that the queried node is a procedure
11478 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
11479 type when the formal is an access to variable.
11480 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
11481 (Analyze_Task_Type): Same addition
11482 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
11483 provide navigation capabilities for entries.
11485 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
11486 Ed Schonberg <schonberg@adacore.com>
11487 Javier Miranda <miranda@adacore.com>
11488 Gary Dismukes <dismukes@adacore.com>
11490 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
11491 inherited from an interface ancestor by another interface in the
11492 context of an instance as 'late'.
11493 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
11494 of a call to a function that dispatches on access result.
11495 (Check_Dispatching_Operation): In case of late overriding of a primitive
11496 that covers abstract interface subprograms we register it in all the
11497 secondary dispatch tables associated with abstract interfaces.
11498 (Check_Dispatching_Call): Add check that a dispatching call is not made
11499 to a function with a controlling result of a limited type. This is a
11500 current implementation restriction.
11501 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
11502 (Check_Dispatching_Operation): Do no emit a warning if the controlling
11503 argument is an interface type that is a generic formal.
11504 (Is_Interface_Subprogram): Removed.
11505 (Check_Dispatching_Operation): If the subprogram is not a dispatching
11506 operation, check the formals to handle the case in which it is
11507 associated with an abstract interface type.
11509 2006-10-31 Robert Dewar <dewar@adacore.com>
11510 Ed Schonberg <schonberg@adacore.com>
11512 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
11513 Add new calls to this procedure during traversal
11514 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
11515 another unit if expansion is disabled.
11517 2006-10-31 Robert Dewar <dewar@adacore.com>
11519 * sem_eval.adb (Compile_Time_Compare): Make use of information from
11520 Current_Value in the conditional case, to evaluate additional
11521 comparisons at compile time.
11523 2006-10-31 Ed Schonberg <schonberg@adacore.com>
11524 Hristian Kirtchev <kirtchev@adacore.com>
11525 Javier Miranda <miranda@adacore.com>
11527 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
11528 subprogram type to provide better diagnostics in case of ambiguity.
11529 (Covers): Handle coverage of formal and actual anonymous access types in
11530 the context of generic instantiation.
11531 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
11532 abstract interface types; this is required to handle concurrent types
11533 with discriminants and abstract interface types.
11534 (Covers): Include type coverage of both regular incomplete subtypes and
11535 incomplete subtypes of incomplete type visibles through a limited with
11538 2006-10-31 Robert Dewar <dewar@adacore.com>
11539 Hristian Kirtchev <kirtchev@adacore.com>
11540 Ed Schonberg <schonberg@adacore.com>
11542 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
11543 messages for entities in packages which are not used.
11544 (Collect_Synchronized_Interfaces): New procedure.
11545 (Overrides_Synchronized_Primitive): New function.
11546 (Denotes_Discriminant): Extend predicate to apply to task types.
11547 Add missing continuation marks in error msgs
11548 (Unqualify): New function for removing zero or more levels of
11549 qualification from an expression. There are numerous places where this
11550 ought to be used, but we currently only deal properly with zero or one
11552 (In_Instance); The analysis of the actuals in the instantiation of a
11553 child unit is not within an instantiation, even though the parent
11554 instance is on the scope stack.
11555 (Safe_To_Capture_Value): Exclude the case of variables that are
11557 (Check_Obsolescent): Removed
11558 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
11559 is an aliased view, even when rewritten as a reference to the target
11560 object in an assignment.
11561 (Get_Subprogram_Entity): New function
11562 (Known_To_Be_Assigned): New function
11563 (Type_Access_Level): Compute properly the access level of a return
11564 subtype that is an anonymous access type.
11565 (Explain_Limited_Type): Correct use of "\" for continuation messages.
11566 (Is_Transfer): The new extended_return_statement causes a transfer of
11568 (Has_Preelaborable_Initialization): New function
11569 (Has_Null_Exclusion): New function. Given a node N, determine whether it
11570 has a null exclusion depending on its Nkind.
11571 Change Is_Lvalue to May_Be_Lvalue
11572 (May_Be_Lvalue): Extensive additional code to deal with subprogram
11573 arguments (IN parameters are not Lvalues, IN OUT parameters are).
11574 (Safe_To_Capture_Value): Extend functionality so it can be used for
11575 the current value condition case.
11576 (Has_Compatible_Alignment): New function
11577 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
11578 objects to handle the Ada 2005 case, where aliasedness no longer implies
11579 that the object is constrained. In particular, for dereferenced names,
11580 the designated object must be assumed to be unconstrained.
11581 (Kill_Current_Values): Properly deal with the case where we encounter
11582 a loop in the scope chain.
11583 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
11585 (Compile_Time_Constraint_Error): Improve error message in error case
11587 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
11588 associated with entities of abstract interface primitives.
11589 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
11591 2006-10-31 Robert Dewar <dewar@adacore.com>
11593 * s-osinte-tru64.adb:
11594 Mark Asm statements Volatile to prevent warnings (seems a
11595 reasonable change anyway)
11598 * s-mastop-irix.adb: Add Volatile to Asm statements
11599 Suppresses warning, and seems appropriate in any case
11601 * s-osinte-vms.adb: Add Volatile to Asm statement
11603 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
11605 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
11607 Add call to Check_Code_Statement
11609 2006-10-31 Robert Dewar <dewar@adacore.com>
11610 Ed Schonberg <schonberg@adacore.com>
11611 Bob Duff <duff@adacore.com>
11613 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
11614 Synchronized_Present): Add Formal_Derived_Type_Definition and
11615 Private_Extension_Declaration to the list of assertions.
11616 (Is_Entry_Barrier_Function): New flag
11617 (Has_Self_Reference): New flag on aggregates, to indicate that they
11618 contain a reference to the enclosing type, inserted through a default
11620 (Next_Rep_Item): Move from Node4 to Node5.
11621 (Entity): Add this field for N_Attribute_Definition_Clause.
11622 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
11623 (N_Return_Object_Declaration): Remove this node kind. We now use
11624 N_Object_Declaration instead.
11625 (Actual_Designated_Subtype): Move to a different place to make room in
11626 N_Extended_Return_Statement.
11627 (Procedure_To_Call): Move to a different place to make room in
11628 N_Extended_Return_Statement.
11629 (Return_Type): Removed this field to make room in return statements
11631 (Return_Statement_Entity): New field in return statements, in part to
11632 replace Return_Type, and in part to support the fact that return
11633 statements are now pushed on the scope stack during semantic analysis.
11634 (Return_Object_Declarations): New field to support extended return
11636 (N_Extended_Return_Statement): New node for extended_return_statement
11638 (N_Return_Object_Declaration): New node for part of
11639 extended_return_statement nonterminal. Needed because all the necessary
11640 fields won't fit in N_Extended_Return_Statement.
11641 Generic_associations now carry the Box_Present flag, to indicate a
11642 default for an actual in a partially parametrized formal package.
11644 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
11645 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
11646 and for the new predefined dispatching policies: EDF_Across_Priorities,
11647 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
11648 Introduce new name Stub_Type for implementation defined attribute.
11649 Add pragma Preelaborable_Initialization
11650 Add entry for Priority attribute.
11651 Add Pragma_Wide_Character_Encoding
11652 (Get_Convention_Name): Given a convention id, this function returns the
11653 corresponding name id from the names table.
11655 2006-10-31 Ed Schonberg <schonberg@adacore.com>
11656 Robert Dewar <dewar@adacore.com>
11657 Bob Duff <duff@adacore.com>
11659 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
11660 print null exclusion twice in the case of an access definition,
11661 Implement new -gnatL switch
11662 Remove N_Return_Object_Declaration. We now use
11663 N_Object_Declaration instead. Implement the case for
11664 N_Extended_Return_Statement. Alphabetize the cases.
11665 Add cases for new nodes N_Extended_Return_Statement and
11666 N_Return_Object_Declaration. The code is not yet written.
11667 Update the output for N_Formal_Object_Declaration
11668 and N_Object_Renaming_Declaration.
11669 (Write_Itype): Account for the case of a modular integer subtype whose
11670 base type is private.
11672 2006-10-31 Arnaud Charlet <charlet@adacore.com>
11674 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
11675 Remove elaboration code, now done in the binder.
11677 * s-rident.ads: Make this unit Preelaborate.
11678 (No_Restrictions): New constant used to clean up code and follow
11679 preelaborate constraints.
11682 Add System.Restrictions dependence, referenced directly from the
11683 binder generated file.
11685 2006-10-31 Gary Dismukes <dismukes@adacore.com>
11687 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
11688 True when AAMP extended floating-point is in use (48-bit). Change type
11689 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
11690 the two byte array types on AFloat. Change type of IV_Ilf overlay
11691 variable from Byte8 to ByteLF. Add appropriate initializations of
11692 floating-point overlays for AAMP cases.
11694 2006-10-31 Javier Miranda <miranda@adacore.com>
11696 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
11697 (Get_Ceiling): New subprogram that returns
11698 the ceiling priority of the protected object.
11699 (Set_Ceiling): New subprogram that sets the new ceiling priority of
11700 the protected object.
11702 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
11704 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
11706 2006-10-31 Jose Ruiz <ruiz@adacore.com>
11708 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
11709 requeuing to the same protected object to give higher priority tasks
11710 the opportunity to execute.
11712 2006-10-31 Robert Dewar <dewar@adacore.com>
11714 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
11715 add more precise check for the character sequence that follows '[' to
11716 avoid possible confusion in case if '[' is the last character of a
11718 (Scan_Wide): Always allow brackets encoding
11720 2006-10-31 Olivier Hainque <hainque@adacore.com>
11722 * s-stchop.ads: make this unit preelaborate. This is desirable in
11723 general and made mandatory by the use of this unit by s-taprop which
11724 is itself preelaborate.
11726 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
11727 Td_Events component.
11729 2006-10-31 Vincent Celier <celier@adacore.com>
11731 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
11734 2006-10-31 Vincent Celier <celier@adacore.com>
11736 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
11738 2006-10-31 Vincent Celier <celier@adacore.com>
11740 * makegpr.adb (Check_Compilation_Needed): Take into account path names
11742 (Check_Compilation_Needed): When checking a C or C++ source, do not
11743 resolve symbolic links.
11744 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
11745 When not in verbose mode and Ellipse is True, display "..." for the
11746 first argument with Display set to False.
11747 (Build_Global_Archive): Always set Display True for the first object
11748 file. Call Display_Command with Ellipse set to True.
11750 2006-10-31 Matt Heaney <heaney@adacore.com>
11752 * a-crbtgo.ads: Commented each subprogram
11754 * a-crbtgo.adb: Added reference to book from which algorithms were
11757 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
11758 indicate which child.
11759 (Generic_Conditional_Insert): changed parameter name from "Success" to
11761 (Generic_Unconditional_Insert_With_Hint): improved algorithm
11763 * a-coorse.adb (Replace_Element): changed parameter name in call to
11764 conditional insert operation.
11766 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
11768 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
11771 * a-ciorse.adb (Replace_Element): changed parameter name in call to
11772 conditional insert operation.
11774 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
11777 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
11778 instead of mode inout.
11780 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
11782 (Generic_Read): preserve existing buckets array if possible
11783 (Generic_Write): don't send buckets array length anymore
11785 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
11786 instead of mode inout.
11788 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
11789 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
11791 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
11792 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
11793 (Replace_Element): local operation is now an instantiation
11795 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
11796 check current length.
11797 (Generic_Replace_Element): new operation
11799 2006-10-31 Doug Rupp <rupp@adacore.com>
11801 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
11802 Call TBK$SYMBOLIZE without omitting parameters.
11804 2006-10-31 Vincent Celier <celier@adacore.com>
11806 * symbols-processing-vms-ia64.adb,
11807 symbols-processing-vms-alpha.adb (Process): Do not include symbols
11808 that come from generic instantiations in bodies.
11810 2006-10-31 Pat Rogers <rogers@adacore.com>
11812 * a-rttiev.ads, a-rttiev.adb:
11813 This is a significant redesign primarily for the sake of automatic
11814 timer task termination but also to fix a design flaw.
11815 Therefore we are now using an RTS lock, instead of a protected
11816 object, to provide mutual exclusion to the queue of pending events
11817 and the type Timing_Event is no longer a protected type.
11819 2006-10-31 Robert Dewar <dewar@adacore.com>
11820 Cyrille Comar <comar@adacore.com>
11821 Ben Brosgol <brosgol@adacore.com>
11823 * debug.adb: Update flags documentation
11825 * gnat_ugn.texi: Add documentation for new -gnatwq switch
11826 Clean up documentation for several other warning switches
11827 Clarify how task stack size can be specified with various
11828 versions of Windows.
11829 Add note that -gnatVo includes ranges including loops
11830 Add documentation for -gnatL switch
11831 Add note on elaboration warning for initializing variables
11832 Add documentation for new -gnatwt warning switch
11833 Document new form of pragma Warnings (On|Off, string)
11834 Add comment on use of pragma Warnings to control warnings
11835 Add documentation for -gnatjnn switch
11836 Modify section on interfacing with C for VMS 64-bit.
11837 Add doc for -gnatVe/E
11838 Add documentation of new warning flags -gnatww/-gnatwW
11839 Add warnings about address clause overlays to list of warnings
11840 (Exception Handling Control): Document that the option --RTS must be
11841 used consistently for gcc and gnatbind.
11842 Clarify that inlining is not always possible
11843 Update documentation on pragma Unchecked_Union.
11846 Add documentation for new extended version of pragma Obsolescent
11847 Add documentation for implementation defined attribute 'Stub_Type.
11848 Add note on use of Volatile in asm statements
11849 Add documentation on use of pragma Unreferenced in context clause
11850 Document new form of pragma Warnings (On|Off, pattern)
11851 Document pragma Wide_Character_Encoding
11852 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
11853 enforced if code generation is active.
11854 Add section on pragma Suppress to document GNAT specific check
11856 Clarify difference between No_Dispatching_Calls & No_Dispatch.
11857 Add documentation for pragma Restrictions (No_Elaboration_Code)
11860 Add comments on layout of subprogram local variables in the
11861 presence of nested subprograms.
11863 * ug_words: Resync.
11865 * elists.ads: Minor reformatting
11866 Node returns Node_Or_Entity_Id (doc change only)
11868 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
11870 * g-arrspl.ads (Create): Update comments.
11872 * sem.ads: Add details on the handling of the scope stack.
11874 * usage.adb: Update documentation.
11876 * validsw.ads, validsw.adb:
11877 Add definition of Validity_Check_Components and implement -gnatVe/E
11879 * vms_data.ads: Add missing VMS qualifiers.
11881 * s-addope.ads: Add documentation on overflow and divide by zero
11883 2006-10-31 Robert Dewar <dewar@adacore.com>
11884 Thomas Quinot <quinot@adacore.com>
11885 Arnaud Charlet <charlet@adacore.com>
11887 * fmap.adb: Put routines in alpha order
11889 * g-boumai.ads: Remove redundant 'in' keywords
11891 * g-cgi.adb: Minor reformatting
11893 * g-cgi.ads: Remove redundant 'in' keywords
11895 * get_targ.adb: Put routines in alpha order
11897 * prj-attr.ads: Minor reformatting
11899 * s-atacco.ads: Minor reformatting
11901 * scn.adb: Put routines in alpha order
11903 * sinput-l.adb: Minor comment fix
11905 * sinput-p.adb: Minor comment fix
11907 * s-maccod.ads: Minor reformatting
11909 * s-memory.adb: Minor reformatting
11911 * s-htable.adb: Fix typo in comment.
11913 * s-secsta.adb: Minor comment update.
11915 * s-soflin.adb: Minor reformatting
11918 Add comment about odd qualification in Storage_Offset declaration
11921 Remove unnecessary 'in' keywords for formal parameters.
11923 * treeprs.adt: Minor reformatting
11925 * urealp.adb: Put routines in alpha order
11927 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
11930 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
11932 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
11934 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
11935 workaround as on other platforms.
11937 * g-eacodu-vms.adb: Remove redundant 'in' keywords
11938 * g-expect-vms.adb: Remove redundant 'in' keywords
11940 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
11941 clear error message if the list-of-files file cannot be opened.
11943 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
11944 equality operator is always visible.
11946 * lang.opt: Woverlength-strings: New option.
11949 Update copyright, since nmake.ads and nmake.adb have changed.
11951 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
11952 (Binder_Output_Time_Stamps_Set): removed.
11953 (Old_Binder_Output_Time_Stamp): idem.
11954 (New_Binder_Output_Time_Stamp): idem.
11955 (Recording_Time_From_Last_Bind): idem.
11956 (Recording_Time_From_Last_Bind): Make constant.
11958 * output.ads, output.adb (Write_Str): Allow LF characters
11959 (Write_Spaces): New procedure
11961 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
11963 * inline.adb: Minor reformatting
11965 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
11967 * s-mastop-vms.adb: Remove redundant 'in' keywords
11969 * s-osprim-vms.adb: Remove redundant 'in' keywords
11971 * s-trafor-default.adb: Remove redundant 'in' keywords
11973 * 9drpc.adb: Remove redundant 'in' keywords
11975 * s-osinte-mingw.ads: Minor reformatting
11977 * s-inmaop-posix.adb: Minor reformatting
11979 * a-direio.ads: Remove quotes from Compile_Time_Warning message
11981 * a-exexda.adb: Minor code reorganization
11983 * a-filico.adb: Minor reformatting
11985 * a-finali.adb: Minor reformatting
11987 * a-nudira.ads: Remove quote from Compile_Time_Warning message
11989 * a-numeri.ads: Minor reformatting
11991 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
11993 * exp_pakd.ads: Fix obsolete comment
11995 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
11996 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
11997 Probably not a bug, but certainly neater and more efficient.
11999 * a-tienio.adb: Minor reformatting
12001 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
12002 Avoid assuming low bound of string is 1.
12004 * gnatbind.adb: Change Bindusg to package and rename procedure as
12005 Display, which now ensures that it only outputs usage information once.
12006 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
12008 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
12011 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
12013 (Match): Add pragma Assert to ensure that Matches'First is zero
12015 * g-regpat.ads (Match): Document that Matches lower bound must be zero
12017 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
12018 documented preconditions (also kills warnings about bad indexes).
12020 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
12022 (Build_Import_Library): Ditto;
12024 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
12026 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
12028 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
12029 lower bound of choice table is 1.
12031 * sem_case.ads (Analyze_Choices): Document that lower bound of
12034 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
12037 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
12038 and add appropriate Assert pragma to suppress warnings.
12040 * atree.h, atree.ads, atree.adb
12041 Change Elist24 to Elist25
12042 Add definitions of Field28 and Node28
12043 (Traverse_Field): Use new syntactic parent table in sinfo.
12045 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
12047 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
12049 * exp_tss.adb: Put routines in alpha order
12051 * fe.h: Remove redundant declarations.
12053 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
12055 * utils.c (builtin_function): Rename to gnat_builtin_function.
12056 Move common code to add_builtin_function.
12057 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
12058 gnat_builtin_function.
12059 * gigi.h (builtin_function): Rename to gnat_builtin_function.
12060 Change the signature.
12062 2006-10-16 Brooks Moses <bmoses@stanford.edu>
12064 * Makefile.in: Add TEXI2PDF definition.
12065 * Make-lang.in: Add "ada.pdf" target.
12067 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
12069 * decl.c, utils.c: Fix comment typos.
12070 * utils.c: Fix a typo.
12072 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
12074 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
12075 on "pure" Ada subprograms if SJLJ exceptions are used.
12076 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
12077 on the declaration node of JMPBUF_SAVE.
12078 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
12079 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
12080 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
12082 2006-08-20 Laurent GUERBY <laurent@guerby.net>
12085 g-socket.adb (Bind_Socket): Call Set_Address.
12087 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
12090 * decl.c (same_discriminant_p): New static function.
12091 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
12092 subtype and we have discriminants, fix up the COMPONENT_REFs
12093 for the discriminants to make them reference the corresponding
12094 fields of the parent subtype after it has been built.
12096 2006-09-15 Roger Sayle <roger@eyesopen.com>
12099 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
12100 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
12102 2006-09-13 Olivier Hainque <hainque@adacore.com>
12105 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
12106 of a SAVE_EXPR, just make the operand addressable/not-readonly and
12107 let the common gimplifier code make and propagate a temporary copy.
12108 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
12109 out/in-out actuals and defer setting the addressable/readonly bits
12112 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
12115 * decl.c (components_to_record): Defer emitting debug info for the
12116 record type associated with the variant until after we are sure to
12119 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
12122 * gigi.h (gnat_internal_attribute_table): Declare.
12123 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
12124 * utils.c (gnat_internal_attribute_table): New global variable.
12125 (builtin_function): Always call decl_attributes on the builtin.
12126 (handle_const_attribute): New static function.
12127 (handle_nothrow_attribute): Likewise.
12129 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
12131 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
12133 2006-06-23 Olivier Hainque <hainque@adacore.com>
12135 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
12136 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
12138 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
12139 Eric Botcazou <ebotcazou@adacore.com>
12142 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
12143 check-gnat into check-acats.
12145 2006-06-17 Karl Berry <karl@gnu.org>
12147 * gnat-style.texi (@dircategory): Use "Software development"
12148 instead of "Programming", following the Free Software Directory.
12150 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12153 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
12155 2006-06-06 Laurent GUERBY <laurent@guerby.net>
12158 mlib-utl.adb: Use Program_Name.
12160 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
12162 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
12163 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
12164 trans.c, utils.c: Fix comment typos. Follow spelling
12166 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
12169 2006-05-19 Nicolas Setton <setton@adacore.com>
12171 * misc.c (gnat_dwarf_name): New function.
12172 (LANG_HOOKS_DWARF_NAME): Define to it.
12174 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
12176 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
12177 (ada/misc.o): Likewise.
12178 (ada/utils.o): Likewise.
12180 2006-04-08 Aurelien Jarno <aurel32@debian.org>
12182 * Makefile.in: Add Ada support for GNU/kFreeBSD.
12183 * s-osinte-kfreebsd-gnu.ads: New file.
12185 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
12187 * Make-lang.in: Rename docdir to gcc_docdir.
12189 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
12191 * gigi.h (get_ada_base_type): Delete.
12192 * utils2.c (get_ada_base_type): Likewise.
12193 * trans.c (convert_with_check): Operate in the real base type.
12195 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12197 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
12199 2006-03-02 Richard Sandiford <richard@codesourcery.com>
12201 * utils.c (create_var_decl): Use have_global_bss_p when deciding
12202 whether to make the decl common.
12204 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
12206 * Make-lang.in (Ada): Remove.
12207 (.PHONY): Remove Ada
12209 2006-02-17 Ed Schonberg <schonberg@adacore.com>
12211 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
12212 aggregate, check the interpretations of the other operand to find one
12213 that may be a boolean array.
12215 (Analyze_Selected_Component): Fix flow-of-control typo in case where
12216 the prefix is a private extension.
12218 2006-02-17 Eric Botcazou <botcazou@adacore.com>
12221 * utils2.c (find_common_type): If both input types are BLKmode and
12222 have the same constant size, keep using the first one.
12224 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
12226 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
12228 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
12230 2006-02-17 Jose Ruiz <ruiz@adacore.com>
12232 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
12233 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
12234 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
12235 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
12236 Abort_Defer/Undefer pairs to avoid the possibility of a task being
12237 aborted while owning a lock.
12239 2006-02-17 Javier Miranda <miranda@adacore.com>
12240 Robert Dewar <dewar@adacore.com>
12242 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
12243 through an access to class-wide interface we force the displacement of
12244 the pointer to the allocated object to reference the corresponding
12245 secondary dispatch table.
12246 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
12247 if Long_Shifts are supported on the target, even if 64 bit divides
12248 are not supported (configurable run time mode).
12249 (Expand_N_Type_Conversion): Do validity check if validity checks on
12250 operands are enabled.
12251 (Expand_N_Qualified_Expression): Do validity check if validity checks
12252 on operands are enabled.
12254 2006-02-17 Ed Schonberg <schonberg@adacore.com>
12256 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
12257 must be materialized when the renamed expression is an explicit
12260 2006-02-17 Ed Schonberg <schonberg@adacore.com>
12262 * freeze.adb (Statically_Discriminated_Components): Return false if
12263 the bounds of the type of the discriminant are not static expressions.
12265 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
12266 the bounds of the discriminant type are not static.
12268 2006-02-17 Robert Dewar <dewar@adacore.com>
12270 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
12271 then we close To if it is valid.
12273 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
12275 * init.c (facility_resignal_table): new array
12276 (__gnat_default_resignal_p): enhance default predicate to resignal if
12277 VMS condition has one of the predefined facility codes.
12279 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
12281 * Makefile.in: Use VMS64 specialized versions of several units in
12282 Interfaces.C hierarchy to be compatible with HP C default size choices.
12283 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
12285 2006-02-17 Ed Schonberg <schonberg@adacore.com>
12287 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
12288 instantiation, the corresponding entity is the related_instance of the
12289 wrapper package created for the instance.
12291 2006-02-17 Ed Schonberg <schonberg@adacore.com>
12293 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
12294 the current instance is nested within another instance in a child unit.
12296 2006-02-17 Javier Miranda <miranda@adacore.com>
12297 Ed Schonberg <schonberg@adacore.com>
12299 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
12300 type we cannot inherit the primitive operations; we inherit the
12301 Corresponding_Record_Type (which has the list of primitive operations).
12302 (Check_Anonymous_Access_Types): When creating anonymous access types for
12303 access components, use Rewrite in order to preserve the tree structure,
12305 (Analyze_Object_Declaration): For limited types with access
12306 discriminants with defaults initialized by an aggregate, obtain
12307 subtype from aggregate as for other mutable types.
12308 (Derived_Type_Declaration): If the derived type is a limited interface,
12309 set the corresponding flag (Is_Limited_Record is not sufficient).
12311 2006-02-17 Ed Schonberg <schonberg@adacore.com>
12313 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
12314 to inline a function that returns an unconstrained type, the return
12315 expression must be the first variable declared in the body of the
12318 2006-02-17 Javier Miranda <miranda@adacore.com>
12320 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
12321 abstract interface type, the static analysis is not enough to know if
12322 the interface is implemented or not by the source tagged type. Hence
12323 we must pass the work to the expander to generate the required code to
12324 evaluate the conversion at run-time.
12325 (Resolve_Equality_Op): Do not apply previous
12326 transformation if expansion is disasbled, to prevent anomalies when
12327 locating global references in a generic unit.
12329 2006-02-17 Vincent Celier <celier@adacore.com>
12331 * snames.ads, snames.adb: New standard names for new project attributes:
12332 archive_builder, archive_indexer, compiler_pic_option,
12333 config_body_file_name, config_body_file_name_pattern,
12334 config_file_switches, config_file_unique, config_spec_file_name,
12335 config_spec_file_name_pattern, default_builder_switches,
12336 default_global_compiler_switches, default_language,
12337 dependency_file_kind, global_compiler_switches, include_path,
12338 include_path_file, language_kind, linker_executable_option,
12339 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
12340 roots, runtime_project.
12342 2006-02-17 Matthew Heaney <heaney@adacore.com>
12344 * a-convec.ads, a-convec.adb:
12345 (operator "&"): handle potential overflow for large index types
12346 (Insert): removed Contraint_Error when using large index types
12347 (Insert_Space): removed Constraint_Error for large index types
12348 (Length): moved constraint check from Length to Insert
12350 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
12351 as not null access.
12352 Explicit raise statements now include an exception message.
12353 (operator "&"): handle potential overflow for large index types
12354 (Insert): removed Contraint_Error when using large index types
12355 (Insert_Space): removed Constraint_Error for large index types
12356 (Length): moved constraint check from Length to Insert
12358 2006-02-17 Robert Dewar <dewar@adacore.com>
12360 * s-wchcnv.adb: Document handling of [ on output (we do not change
12361 this to ["5B"] and the new comments say why not.
12364 Add note for -gnatVo that this now includes the cases of type
12365 conversions and qualified expressions.
12366 Add comments on handling of brackets encoding for Text_IO
12368 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
12369 Thomas Quinot <quinot@adacore.com>
12370 Robert Dewar <dewar@adacore.com>
12371 Javier Miranda <miranda@adacore.com>
12373 * expander.adb: Fix typo in comment
12375 * exp_pakd.adb: Fix typo
12376 Minor comment reformatting.
12378 * g-dyntab.adb: Minor reformatting
12380 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
12381 aliased subprograms to look for the abstract interface subprogram.
12383 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
12385 * env.c (__gnat_setenv): Use size_t.
12386 (__gnat_unsetenv): Likewise.
12387 (__gnat_clearenv): Likewise.
12389 2006-02-16 Arnaud Charlet <charlet@adacore.com>
12391 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
12393 2006-02-13 Arnaud Charlet <charlet@adacore.com>
12395 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
12396 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
12397 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
12398 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
12399 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
12400 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
12401 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
12402 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
12403 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
12406 2006-02-13 Jose Ruiz <ruiz@adacore.com>
12408 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
12409 protection against race conditions is not needed.
12410 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
12412 (Set_Specific_Handler): Add mutual exclusive access to the specific
12414 (Specific_Handler): Add mutual exclusive access for retrieving the
12417 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
12420 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
12421 Fall_Back_Handler and Specific_Handler.
12423 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
12424 termination handlers.
12425 Set two different owerflow depending on the maximal stack size.
12427 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
12428 protection against race conditions is not needed when executing the
12429 task termination handler.
12431 2006-02-13 Robert Dewar <dewar@adacore.com>
12433 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
12434 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
12435 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
12436 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
12437 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
12438 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
12439 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
12440 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
12441 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
12442 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
12443 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
12444 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
12445 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
12446 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
12447 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
12448 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
12449 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
12450 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
12451 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
12452 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
12453 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
12454 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
12455 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
12456 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
12457 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
12458 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
12459 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
12460 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
12461 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
12462 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
12463 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
12464 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
12465 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
12466 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
12469 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
12471 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
12472 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
12473 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
12474 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
12475 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
12476 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
12477 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
12478 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
12479 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
12481 2006-02-13 Arnaud Charlet <charlet@adacore.com>
12483 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
12484 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
12485 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
12486 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
12487 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
12488 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
12489 replaced by anonymous access type.
12490 (pthread_sigmask): Now take an access sigset_t
12492 * s-osinte-hpux.ads: Ditto.
12493 (pthread_mutex_t, pthread_cond_t): Update definitions to support
12494 properly 32 and 64 bit ABIs.
12496 2006-02-13 Pascal Obry <obry@adacore.com>
12498 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
12499 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
12500 s-taprop-linux.adb, s-taprop-solaris.adb,
12501 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
12502 adjustement is already done when calling this routine.
12504 2006-02-13 Pascal Obry <obry@adacore.com>
12506 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
12507 table to take advantage of the 16 priority levels available on Windows
12508 2000 and XP. On NT4 there are only 7 priority levels, this is properly
12509 supported by this new mapping.
12511 2006-02-13 Nicolas Setton <setton@adacore.com>
12513 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
12514 (get_encoding): New subprogram. Extracts the encodings from an encoded
12517 2006-02-13 Pascal Obry <obry@adacore.com>
12518 Nicolas Roche <roche@adacore.com>
12519 Arnaud Charlet <charlet@adacore.com>
12521 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
12523 (__gnat_try_lock): Add unicode support by using a specific section on
12525 (__gnat_get_current_dir): Idem.
12526 (__gnat_open_read): Idem.
12527 (__gnat_open_rw): Idem.
12528 (__gnat_open_create): Idem.
12529 (__gnat_create_output_file): Idem.
12530 (__gnat_open_append): Idem.
12531 (__gnat_open_new): Idem.
12532 (__gnat_file_time_name): Idem.
12533 (__gnat_set_file_time_name): Idem.
12534 (__gnat_stat): Idem.
12535 (win32_no_block_spawn): Idem.
12536 (__gnat_locate_exec_on_path): Idem.
12537 (__gnat_opendir): New routine.
12538 (__gnat_closedir): Idem.
12539 (__gnat_readdir): Add new parameter length (pointer to int). Update
12540 implementation to use it and add specific Win32 code for Unicode
12542 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
12543 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
12544 (convert_addresses): Do not define this dummy routine on VMS.
12546 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
12547 runtime Unicode support will be activated.
12548 (S2WS): String to Wide-String conversion. This version just copy a
12549 string in non Unicode version.
12550 (WS2S): Wide-String to String conversion. This version just copy a
12551 string in non Unicode version.
12553 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
12554 (Open): Now import __gnat_opendir from adaint.c.
12555 (Read): Change the implementation to support unicode characters. It is
12556 not possible to use strlen() on Windows as this version supports only
12557 standard ASCII characters. So the length of the directory entry is now
12558 returned from the imported __gnat_readdir routine.
12559 Update copyright notice.
12561 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
12562 (opendir): Moved to adaint.c.
12564 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
12565 (Get_Directory): Fix wrong indexing.
12566 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
12567 __gnat_getenv from env.c
12568 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
12571 * env.h, env.c: New file.
12573 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
12574 adaint.c by __gnat_getenv from env.c
12576 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
12577 adaint.c by __gnat_getenv from env.c
12579 * Make-lang.in: Add env.o in the list of C object needed by gnat1
12581 Update dependencies.
12583 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12584 Olivier Hainque <hainque@adacore.com>
12585 Eric Botcazou <ebotcazou@adacore.com>
12587 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
12589 * gigi.h (value_factor_p): Add prototype and description, now public.
12591 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
12592 promotion for field with rep clause if the associated size was proven
12594 Expand comments describing attempts to use a packable type.
12595 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
12596 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
12597 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
12598 necessary since these are not different types and pointers may
12599 actually designate any subtype in this hierarchy.
12600 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
12601 discriminants but put them into record only if not Unchecked_Union;
12602 pass flag to components_to_record showing Unchecked_Union.
12603 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
12604 components before variants; don't set TYPE_UNCHECKED_UNION_P.
12605 (components_to_record): New argument UNCHECKED_UNION.
12606 Remove special case code for Unchecked_Union and instead use main code
12607 with small changes.
12610 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
12611 variable with the expression being built, only its inner field.
12613 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
12614 emit_sequence_entry_statements.
12615 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
12616 (establish_gnat_vms_condition_handler): Move before
12617 Subprogram_Body_to_gnu.
12618 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
12619 for a subprogram if it has a foreign convention or is exported.
12620 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
12621 substituted for a CONST_DECL.
12622 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
12623 Etype to assoc_to_constructor.
12624 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
12625 discriminants of Unchecked_Union.
12626 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
12627 don't need cluttering preprocessor directives.
12628 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
12629 condition handler as current in the compiled function.
12630 (body_with_handlers_p): New function. Tell whether a given sequence of
12631 statements node is attached to a package or subprogram body and involves
12632 exception handlers possibly nested within inner block statements.
12633 (emit_sequence_entry_statements): New function, to emit special
12634 statements on entry of sequences when necessary. Establish GNAT
12635 condition handler in the proper cases for VMS.
12636 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
12637 emit_sequence_entry_statements.
12639 * utils2.c (find_common_type): If both input types are BLKmode and
12640 have a constant size, use the smaller one.
12641 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
12644 * utils.c (value_factor_p): Make public, to allow uses from other gigi
12646 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
12647 (convert, case UNION_TYPE): Remove special treatment for unchecked
12651 (update_pointer_to): Update variants of pointer types to unconstrained
12652 arrays by attaching the list of fields of the main variant.
12654 2006-02-13 Arnaud Charlet <charlet@adacore.com>
12655 Robert Dewar <dewar@adacore.com>
12657 * a-exexpr.adb, a-exexpr-gcc.adb
12658 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
12659 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
12660 Remove code unused for exception propagation for the compiler itself
12661 from a-except.adb and update to still share separate packages.
12663 * a-except.ads, a-except.adb: Ditto.
12664 Add comments that this version is now used only by the compiler and
12665 other basic tools. The full version that includes the Ada 2005 stuff
12666 is in separate files a-except-2005.ads/adb. The reason is that we do
12667 not want to cause bootstrap problems with compilers not recognizing
12669 Add exception reason code PE_Implicit_Return
12670 Add new exception reason code (Null Exception_Id)
12672 * a-except-2005.adb, a-except-2005.ads: New files.
12674 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
12676 * s-wchcon.adb: New file.
12678 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
12679 (traceback.o deps): Likewise.
12680 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
12681 Activate build of GMEM instrumentation library on VMS targets.
12682 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
12683 Use a-except-2005.ads/adb for all run-time library builds unless
12684 specified otherwise.
12685 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
12686 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
12687 Use s-parame.adb on all native platforms.
12688 Use s-parame-vxworks.adb on all vxworks platforms.
12689 Add env.c env.h in LIBGNAT_SRCS
12690 Add env.o in LIBGNAT_OBJS
12691 (GNATMAKE_OBJS): Remove ctrl_c.o object.
12692 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
12693 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
12694 supports VxWorks 6 RTPs.
12695 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
12696 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
12698 * types.h, types.ads (Terminate_Program): New exception
12699 Add comment on modifying multiple versions of a-except.adb when the
12700 table of exception reasons is modified.
12701 Add exception reason code PE_Implicit_Return
12702 Add new exception reason code (Null Exception_Id)
12704 * clean.adb (Initialize): Get the target parameters before checking
12705 if target is OpenVMS. Move the OpenVMS specific code here from package
12706 body elaboration code.
12708 2006-02-13 Thomas Quinot <quinot@adacore.com>
12709 Vincent Celier <celier@adacore.com>
12710 Robert Dewar <dewar@adacore.com>
12712 * ali-util.adb (Get_File_Checksum): Update to account for change in
12713 profile of Initialize_Scanner.
12715 * gprep.adb (Gnatprep): Update to account for change in profile of
12716 Initialize_Scanner.
12717 (Process_One_File): Same.
12719 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
12720 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
12721 that behaviour using the new Unit information recorded in the source
12722 files table, rather than going through all units every time.
12723 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
12724 (Get_Source_Unit): Same.
12726 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
12727 change in profile of Initialize_Scanner.
12728 (Prepare_To_Preprocess): Same.
12730 * lib.ads: Fix typo in comment (templace -> template).
12732 * prj-part.adb (Parse_Single_Project): Update to account for change in
12733 profile of Initialize_Scanner.
12735 * scn.adb (Initialize_Scanner): Account for change in profile of
12736 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
12737 Also record the association of the given Source_File_Index to the
12738 corresponding Unit_Number_Type.
12740 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
12742 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
12743 Remove Unit formal for generic scanner: this formal
12744 is only relevant to Scn (the scanner instance used to parse Ada source
12745 files), not to other instances. Update comment accordingly.
12746 (Scan): Use new function Snames.Is_Keyword_Name.
12748 * sinfo-cn.adb: Fix typo in comment.
12750 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
12753 * sinput.ads (Source_File_Record): New component Unit, used to capture
12754 the unit identifier (if any) associated to a source file.
12756 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
12757 Unit in Source_File_Record.
12759 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
12760 in profile of Initialize_Scanner.
12762 * scans.adb (Initialize_Ada_Keywords): New procedure
12764 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
12765 Ada keywords in the Namet table, without the need to call
12766 Initialize_Scanner.
12768 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
12769 (Is_Keyword_Name): New function
12771 * snames.ads: Add subtype Configuration_Pragma_Names
12772 Add pragma Ada_2005 (synonym for Ada_05)
12773 (Is_Keyword_Name): New function
12775 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
12777 2006-02-13 Arnaud Charlet <charlet@adacore.com>
12779 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
12782 * a-stwima.adb (To_Set): Add extra check when N = 0.
12784 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
12786 2006-02-13 Arnaud Charlet <charlet@adacore.com>
12788 * s-parame-mingw.adb, s-parame-linux.adb,
12789 s-parame-solaris.adb: Removed, replaced by s-parame.adb
12791 * s-parame-vxworks.ads: Fix typo.
12793 * s-parame-vxworks.adb: New file.
12795 * s-parame.adb: Version now used by all native platforms.
12796 (Default_Stack_Size): Use 2 megs for default stack size and use
12797 __gl_default_stack_size when available.
12798 (Minimum_Stack_Size): Use 12K.
12800 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
12801 (Create_Task): Refine implementation taking advantage of the XP stack
12802 size support. On XP, we now create the thread using the flag
12803 STACK_SIZE_PARAM_IS_A_RESERVATION.
12805 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
12807 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
12808 XP and 0 on older Windows versions.
12810 * interfac-vms.ads: Removed, no longer used.
12812 2006-02-13 Matthew Heaney <heaney@adacore.com>
12814 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
12815 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
12816 a-cohase.adb: All explicit raise statements now include an exception
12819 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
12820 (Update_Element_Preserving_Key): renamed op to just Update_Element.
12821 Explicit raise statements now include an exception message
12823 * a-cihase.ads, a-cohase.ads: Removed comment.
12825 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
12826 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
12827 a-szbzha.adb, a-szfzha.ads: New files.
12829 2006-02-13 Matthew Heaney <heaney@adacore.com>
12831 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
12834 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
12836 * lang.opt: Wvariadic-macros: New option.
12837 Wold-style-definition: Likewise.
12838 Wmissing-format-attribute: Likewise.
12840 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
12841 -Wold-style-definition and -Wmissing-format-attribute.
12843 2006-02-13 Robert Dewar <dewar@adacore.com>
12845 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
12847 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
12849 2006-02-13 Nicolas Roche <roche@adacore.com>
12851 * a-envvar.adb, a-envvar.ads: New files.
12853 2006-02-13 Douglas Rupp <rupp@adacore.com>
12855 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
12857 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
12859 2006-02-13 Pat Rogers <rogers@adacore.com>
12861 * a-rttiev.adb, a-rttiev.ads: New files.
12863 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
12865 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
12866 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
12868 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
12870 2006-02-13 Robert Dewar <dewar@adacore.com>
12872 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
12873 sem_case.adb: Minor code reorganization (not Present should be No)
12875 2006-02-13 Geert Bosch <bosch@adacore.com>
12876 Gary Dismukes <dismukes@adacore.com>
12878 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
12879 0, since the lower bound of the actual string may be greater than one.
12882 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
12883 layout is requested.
12885 2006-02-13 Vincent Celier <celier@adacore.com>
12887 * back_end.adb (Scan_Compiler_Arguments): Check if
12888 Search_Directory_Present is True and, if it is, add the argument in
12889 the source search directory path.
12891 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
12892 Search_Directory_Present to True.
12894 2006-02-13 Joel Brobecker <brobecke@adacore.com>
12896 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
12897 volatile, to tell the compiler to preserve this variable at any level
12899 (Gen_Versions_Ada): Temporarily work around codegen bug.
12901 2006-02-13 Vincent Celier <celier@adacore.com>
12903 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
12904 gcc to link with option -shared-libgcc.
12905 (Gnatlink): Remove duplicate switches -shared-libgcc
12907 2006-02-13 Robert Dewar <dewar@adacore.com>
12909 * gnatvsn.ads (Current_Year): New constant, used to easily update
12910 copyright on all GNAT tools.
12912 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
12915 2006-02-13 Robert Dewar <dewar@adacore.com>
12917 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
12918 after hyphen (small aesthetic change useful for a range of numbers
12920 Suppress range checks for a couple of assignments which otherwise
12921 cause validity checks with validity checking turned on.
12923 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
12924 Improvement in error message for object.
12925 (Rep_Item_Too_Late): Remove '!' in warning message.
12927 2006-02-13 Robert Dewar <dewar@adacore.com>
12928 Eric Botcazou <ebotcazou@adacore.com>
12930 * err_vars.ads: Suppress range checks for a couple of assignments
12931 which otherwise cause validity checks with validity checking turned on.
12934 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
12935 Make message unconditional if it is a warning.
12936 (Error_Msg_NEL): Always output warning messages.
12937 Suppress range checks for a couple of assignments which otherwise
12938 cause validity checks with validity checking turned on.
12940 * errout.ads (Message Insertion Characters): Document that '!' is
12941 implied by '?' in error messages.
12943 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
12944 (Gnat1drv): Use a goto to end of main subprogram instead of
12945 Exit_Program (E_Success) so that finalization can occur normally.
12947 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
12949 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
12952 2006-02-13 Vincent Celier <celier@adacore.com>
12954 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
12955 Unchecked_Conversion functions.
12956 (Modification_Time): Use direct conversion of OS_Time to Calendar time
12957 when OpenVMS returns False.
12959 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
12960 a-dirval.adb (OpenVMS): New Boolean function
12962 2006-02-13 Ed Schonberg <schonberg@adacore.com>
12963 Thomas Quinot <quinot@adacore.com>
12965 * checks.adb (Build_Discriminant_Checks): If the expression being
12966 checks is an aggregate retrieve the values of its discriminants to
12967 generate the check, rather than creating a temporary and a reference
12969 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
12970 (Install_Null_Excluding_Check): Ditto
12971 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
12972 not for the renamed object, so that the actual itype is attached in the
12975 2006-02-13 Robert Dewar <dewar@adacore.com>
12976 Vincent Celier <celier@adacore.com>
12978 * debug.adb: Eliminate numeric switches for binder/gnatmake
12980 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
12981 switches for the compiler.
12982 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
12983 (Scan_Make_Switches): When failing with an illegal switch, output an
12984 error message with the full switch.
12985 Eliminate numeric switches for binder/gnatmake
12987 * switch.ads, switch.adb (Bad_Switch): New procedure
12989 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
12990 Remove 0-9 as debug flag character possibilities
12991 -d is now controlling the primary stack size when its value is a
12992 positive. Also add checks against invalid values, and support for kb,
12993 mb. Ditto for -D switch.
12995 2006-02-13 Robert Dewar <dewar@adacore.com>
12996 Serguei Rybin <rybin@adacore.com>
12998 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
12999 save/restore routines.
13000 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
13001 were not always properly handled previously.
13002 Since we are changing the tree format anyway, also get rid of the
13003 junk obsolete Immediate_Errors flag.
13004 (Tree_Read): Change the way of reading Tree_Version_String - now we
13005 read the version string from the tree even if its length is not the
13006 same as the length of the version string computed from Gnatvsn.
13007 (Search_Directory_Present): New Boolean flag for the compiler.
13008 Define Tree_Version_String as a dynamic string.
13009 (Default_Stack_Size): new variable, used to handle switch -d.
13012 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
13013 only for main unit.
13014 Add pragma Ada_2005 (synonym for Ada_05)
13015 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
13016 were not always properly handled previously.
13018 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
13019 explicit Ada_95 to Ada_2005.
13021 2006-02-13 Javier Miranda <miranda@adacore.com>
13022 Robert Dewar <dewar@adacore.com>
13023 Ed Schonberg <schonberg@adacore.com>
13025 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
13026 against errors in the source program: a private types for which the
13027 corresponding full type declaration is missing and pragma CPP_Virtual
13029 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
13030 (Is_Known_Null): New flag
13031 (Has_Pragma_Pure): New flag
13032 (No_Return): Present in all entities, set only for procedures
13033 (Is_Limited_Type): A type whose ancestor is an interface is limited if
13034 explicitly declared limited.
13035 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
13036 entities. Only used for component marked Is_Tag. If present it stores
13037 the Offset_To_Top function used to provide this value in tagged types
13038 whose ancestor has discriminants.
13040 * exp_ch2.adb: Update status of new Is_Known_Null flag
13042 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
13044 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
13045 the categorization sense if Is_Pure was set by pragma Pure_Function.
13047 2006-02-13 Quentin Ochem <ochem@adacore.com>
13048 Olivier Hainque <hainque@adacore.com>
13050 * bindusg.adb: Updated documentation for -d and -D switches.
13052 * raise.h (__gnat_set_globals): added new parameter for
13053 Default_Stack_Size.
13055 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
13056 (__gnat_handle_vms_condition): Adjust context before raise.
13057 (__gnat_install_handler): Restore the global vector setup for GCC
13058 versions before 3.4, as the frame based circtuitry is not available
13060 (__gnat_set_globals): added a parameter default_stack_size
13061 (__gl_default_stack_size): new variable.
13063 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13065 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
13066 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
13067 does not exist in the Ada RM.
13068 (Compatible_Int_Bounds): Determine whether two integer range bounds
13069 are of equal length and have the same start and end values.
13070 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
13071 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
13072 aggregate when it is part of an object declaration.
13073 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
13074 constrains discriminants of its parent, add explicitly the discriminant
13075 constraints of the ancestor by retrieving them from the
13076 stored_constraint of the parent.
13078 2006-02-13 Robert Dewar <dewar@adacore.com>
13080 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
13081 attribute Mechanism_Code is applied to renamed subprogram, modify
13082 prefix to point to base subprogram.
13083 Max/Min attributes now violate Restriction No_Implicit_Conditionals
13085 * sinfo.ads: Document that Mechanism_Code cannot be applied to
13086 renamed subprograms so that the front-end must replace the prefix
13089 2006-02-13 Javier Miranda <miranda@adacore.com>
13090 Gary Dismukes <dismukes@adacore.com>
13092 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
13093 availability of RE_Interface_Tag.
13094 (Build_Initialization_Call): Fix wrong access to the discriminant value.
13095 (Freeze_Record_Type): Do not generate the tables associated with
13096 timed and conditional dispatching calls through synchronized
13097 interfaces if compiling under No_Dispatching_Calls restriction.
13098 When compiling for Ada 2005, for a nonabstract
13099 type with a null extension, call Make_Controlling_Function_Wrappers
13100 and insert the wrapper function declarations and bodies (the latter
13101 being appended as freeze actions).
13102 (Predefined_Primitive_Bodies): Do not generate the bodies of the
13103 predefined primitives associated with timed and conditional
13104 dispatching calls through synchronized interfaces if we are
13105 compiling under No_Dispatching_Calls.
13106 (Build_Init_Procedure): Use RTE_Available to check if a run-time
13107 service is available before generating a call.
13108 (Make_Controlling_Function_Wrappers): New procedure.
13109 (Expand_N_Full_Type_Declaration): Create a class-wide master for
13110 access-to-limited-interfaces because they can be used to reference
13111 tasks that implement such limited interface.
13112 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
13113 procedure spec and body of the Offset_To_Top function that is generated
13114 when the parent of a type with discriminants has secondary dispatch
13116 (Init_Secondary_Tags): Handle the case in which the parent of the type
13117 containing secondary dispatch tables has discriminants to generate the
13118 correct arguments to call Set_Offset_To_Top.
13119 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
13121 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
13122 Add Wide_[Wide_]Expanded_Name.
13123 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
13124 the same functionality of Get_Prim_Op_Address but applied to predefined
13125 primitive operations because the pointers to the predefined primitives
13126 are now saved in a separate table.
13127 (Parent_Size): Modified to get access to the separate table of primitive
13128 operations or the parent type.
13129 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
13130 functionality of Set_Prim_Op_Address but applied to predefined primitive
13132 (Set_Signature): New subprogram used to store the signature of a DT.
13133 (Displace): If the Offset_To_Top value is not static then call the
13134 function generated by the expander to get such value; otherwise use
13135 the value stored in the table of interfaces.
13136 (Offset_To_Top): The type of the actual has been changed to Address to
13137 give the correct support to tagged types with discriminants. In this
13138 case this value is stored just immediately after the tag field.
13139 (Set_Offset_To_Top): Two new formals have been added to indicate if the
13140 offset_to_top value is static and hence pass this value to the run-time
13141 to store it in the table of interfaces, or else if this value is dynamic
13142 and then pass to the run-time the address of a function that is
13143 generated by the expander to provide this value for each object of the
13146 * rtsfind.ads (Default_Prin_Op_Count): Removed.
13147 (Default_Prim_Op_Count): New entity
13148 (Get_Predefined_Prim_Op_Address): New entity
13149 (Set_Predefined_Prim_Op_Address): New entity
13150 (RE_Set_Signature): New entity
13152 2006-02-13 Thomas Quinot <quinot@adacore.com>
13153 Ed Schonberg <schonberg@adacore.com>
13155 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
13156 Make_Adjust_Call done for a newly-allocated object.
13158 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
13159 in a subprogram are wrapped in a cleanup block, indicate that the
13160 subprogram contains an inner block with an exception handler.
13161 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
13162 Adjust call is for a newly-allocated object. In that case we must not
13163 assume that the finalization list chain pointers are correct (since they
13164 come from a bit-for-bit copy of the original object's pointers) so if
13165 the attach level would otherwise be zero (no change), we set it to 4
13166 instead to cause the pointers to be reset to null.
13168 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
13169 reset chain pointers to null.
13171 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13173 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
13174 string, and the context requires a loop for the assignment (e.g.
13175 because the left-hand side is packed), generate a unique name for the
13176 temporary that holds the string, to prevent spurious name clashes.
13178 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13179 Javier Miranda <miranda@adacore.com>
13180 Robert Dewar <dewar@adacore.com>
13181 Gary Dismukes <dismukes@adacore.com>
13183 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
13184 return unconstrained arrays.
13186 (Expand_Call): An indirect call through an access parameter of a
13187 protected operation is not a protected call.
13188 Add circuit to raise CE in Ada 2005 mode following call
13189 to Raise_Exception.
13190 (Register_DT_Entry): Do nothing if
13191 the run-time does not give support to abstract interfaces.
13192 (Freeze_Subprogram): In case of dispatching operations, do not generate
13193 code to register the operation in the dispatch table if the source
13194 is compiled with No_Dispatching_Calls.
13195 (Register_Predefined_DT_Entry): Generate code that calls the new
13196 run-time subprogram Set_Predefined_Prim_Op_Address instead of
13197 Set_Prim_Op_Address.
13199 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
13200 on array assignments if the right-hand side is a function call that has
13201 been inlined. Check is performed on the assignment in the block.
13202 (Process_Bounds): If bounds and range are overloaded, apply preference
13203 rule for root operations to disambiguate, and diagnose true ambiguity.
13204 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
13205 a tag-indeterminate right-hand side even when Expander_Active is True.
13206 Needed to ensure that dispatching calls to T'Input are allowed and
13207 get the tag of the target class-wide object.
13209 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
13210 an inherited primitive operation that already overrides several
13211 abstract interface primitives. For transitivity, the new entity must
13212 also override all the abstract interface primitives covered by the
13213 inherited overriden primitive.
13214 Emit warning if new entity differs from homograph in same scope only in
13215 that one has an access parameter and the other one has a parameter of
13216 a general access type with the same designated type, at the same
13217 position in the signature.
13218 (Make_Inequality_Operator): Use source locations of parameters and
13219 subtype marks from corresponding equality operator when creating the
13220 tree structure for the implicit declaration of "/=". This does not
13221 change anything in behaviour except that the decoration of the
13222 components of the subtree created for "/=" allows ASIS to get the
13223 string images of the corresponding identifiers.
13224 (Analyze_Return_Statement): Remove '!' in warning message.
13225 (Check_Statement_Sequence): Likewise.
13226 (Analyze_Subprogram_Body): For an access parameter whose designated type
13227 is an incomplete type imported through a limited_with clause, use the
13228 type of the corresponding formal in the body.
13229 (Check_Returns): Implicit return in No_Return procedure now raises
13230 Program_Error with a compile time warning, instead of beging illegal.
13231 (Has_Single_Return): Function returning unconstrained type cannot be
13232 inlined if expression in unique return statement is not an identifier.
13233 (Build_Body_To_Inline): It is possible to inline a function call that
13234 returns an unconstrained type if all return statements in the function
13235 return the same local variable. Subsidiary procedure Has_Single_Return
13236 verifies that the body conforms to this restriction.
13238 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
13239 same type, and one of them is of an anonymous access type, convert
13240 the other operand to it, so that this is a valid binary operation for
13242 (Resolve_Type_Conversion): Handle subtypes of protected types and
13243 task types when accessing to the corresponding record type.
13244 (Resolve_Allocator): Add '\' in 2-line warning message.
13245 Remove '!' in warning message.
13246 (Resolve_Call): Add '\' in 2-line warning message.
13247 (Valid_Conversion): Likewise.
13248 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
13249 resulting type may be an access type with an implicit dereference.
13250 Obtain the proper component from the designated type.
13251 (Make_Call_Into_Operator): Handle properly a call to predefined equality
13252 given by an expanded name with prefix Standard, when the operands are
13253 of an anonymous access type.
13254 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
13255 Explicit_Dereference and Resolve_Selected_Component, to verify that the
13256 prefix of the expression is not of an incomplete type. Allows full
13257 diagnoses of all semantic errors.
13258 (Resolve_Actuals): If the actual is an allocator whose directly
13259 designated type is a class-wide interface we build an anonymous
13260 access type to use it as the type of the allocator. Later, when
13261 the subprogram call is expanded, if the interface has a secondary
13262 dispatch table the expander will add a type conversion to force
13263 the displacement of the pointer.
13264 (Resolve_Call): If a function that returns an unconstrained type is
13265 marked Inlined_Always and inlined, the call will be inlined and does
13266 not require the creation of a transient scope.
13267 (Check_Direct_Boolean_Op): Removed
13268 (Resolve_Comparison_Op): Remove call to above
13269 (Resolve_Equality_Op): Remove call to above
13270 (Resolve_Logical_Op): Inline above, since this is only call.
13271 (Valid_Conversion): Handle properly conversions between arrays of
13272 convertible anonymous access types.
13275 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
13276 the literal in an unchecked conversion, because GCC 4.x needs a static
13277 value for a string bound.
13279 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13280 Hristian Kirtchev <kirtchev@adacore.com>
13282 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
13283 components of the corresponding record, take into account component
13284 definitions that are access definitions.
13285 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
13286 procedure is not considered a dispatching call and will be expanded
13289 2006-02-13 Javier Miranda <miranda@adacore.com>
13291 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
13292 controlling argument of the dispatching call is an abstract interface
13293 class-wide type then we use it directly.
13294 Check No_Dispatching_Calls restriction.
13295 (Default_Prim_Op_Position): Remove the code that looks for the last
13296 entity in the list of aliased subprograms. This code was wrong in
13298 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
13299 when the source is compiled with the No_Dispatching_Calls restriction.
13300 (Init_Predefined_Interface_Primitives): No need to inherit primitives
13301 if we are compiling with restriction No_Dispatching_Calls.
13302 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
13303 subprograms if we are compiling under No_Dispatching_Calls restriction.
13304 (Make_DT): Generate a dispatch table with a single dummy entry if
13305 we are compiling with the No_Dispatching_Calls restriction. In
13306 addition, in this case we don't generate code that calls to the
13307 following run-time subprograms: Set_Type_Kind, Inherit_DT.
13308 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
13309 of this subprogram if compiling with the No_Dispatching_Calls
13311 (Expand_Type_Conversion): Instead of using the actual parameter,
13312 the argument passed as parameter to the conversion function was
13313 erroneously referenced by the expander.
13314 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
13315 Set_Predefined_Primitive_Op_Address and Set_Signature.
13316 (Expand_Dispatching_Call): Generate call to
13317 Get_Predefined_Prim_Op_Address for predefined primitives.
13318 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
13319 predefined primitives.
13320 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
13321 primitives we reserve one dummy entry to ensure that the tag does not
13322 point to some memory that is associated with some other object. In
13323 addition, remove all the old code that generated the assignments
13324 associated with the signature of the dispatch table and replace them
13325 by a call to the new subprogram Set_Signature.
13326 (Set_All_DT_Position): Change the algorithm because now we have a
13327 separate dispatch table associated with predefined primitive operations.
13328 (Expand_Interface_Conversion): In case of non-static offset_to_top
13329 add explicit dereference to get access to the object after the call
13330 to displace the pointer to the object.
13331 (Expand_Interface_Thunk): Modify the generation of the actual used
13332 in the calls to the run-time function Offset_To_Top to fulfil its
13334 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
13336 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13338 * exp_dist.adb (Copy_Specification): For access parameters, copy
13339 Null_Exclusion flag, which will have been set for stream subprograms
13342 2006-02-13 Pascal Obry <obry@adacore.com>
13344 * expect.c (__gnat_expect_portable_execvp): New implementation. The
13345 previous implementation was using the C runtime spawnve routine but
13346 the corresponding wait was using directly the Win32 API. This was
13347 causing some times a lock when waiting for an event using
13348 WaitForSingleObject in __gnat_waitpid. This new implementation uses
13349 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
13350 API fixes this problem.
13352 2006-02-13 Robert Dewar <dewar@adacore.com>
13354 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
13357 2006-02-13 Thomas Quinot <quinot@adacore.com>
13359 * exp_pakd.ads: Fix typos in comments.
13361 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
13362 array reference that is an explicit dereference, mark the converted
13363 (packed) array reference as analyzed to prevent a forthcoming
13364 reanalysis from resetting its type to the original (non-packed) array
13367 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13368 Javier Miranda <miranda@adacore.com>
13369 Eric Botcazou <ebotcazou@adacore.com>
13371 * exp_util.ads, exp_util.adb (Find_Prim_Op,
13372 Is_Predefined_Primitive_Operation): When
13373 searching for the predefined equality operator, verify that operands
13374 have the same type.
13375 (Is_Predefined_Dispatching_Operation): Remove the code that looks
13376 for the last entity in the list of aliased subprograms. This code
13377 was wrong in case of renamings.
13378 (Set_Renamed_Subprogram): New procedure
13379 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
13380 Exp_Type constant computed when entering this subprogram.
13381 (Known_Null): New function
13382 (OK_To_Do_Constant_Replacement): New function
13383 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
13384 (Side_Effect_Free): An attribute reference 'Input is not free of
13385 side effect, unlike other attributes that are functions. (from code
13387 (Remove_Side_Effects): Expressions that involve packed arrays or records
13388 are copied at the point of reference, and therefore must be marked as
13389 renamings of objects.
13390 (Is_Predefined_Dispatching_Operation): Return false if the operation is
13391 not a dispatching operation.
13394 (Remove_Side_Effects): Lift enclosing type conversion nodes for
13395 elementary types in all cases.
13397 2006-02-13 Javier Miranda <miranda@adacore.com>
13399 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
13400 task types when accessing to the corresponding record type.
13401 Remove '!' in warning message.
13403 2006-02-13 Olivier Hainque <hainque@adacore.com>
13405 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
13406 to avoid useless and space inefficient overalignments on targets where
13407 Max_Alignment is larger than 16.
13409 2006-02-13 Pascal Obry <obry@adacore.com>
13411 * g-catiio.adb (Sec_Number): New type used to compute the number of
13412 seconds since 1-1-1970.
13413 (Image) [Natural]: The parameter was an Integer, as we can't deal with
13414 negative numbers (years, months...) it is better to have a Natural here.
13416 (Image) [Number]: Change parameter from Long_Integer to Number.
13417 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
13418 overflow for dates past year 2038.
13420 2006-02-13 Matthew Heaney <heaney@adacore.com>
13422 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
13425 2006-02-13 Arnaud Charlet <charlet@adacore.com>
13427 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
13429 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
13430 finalization can occur normally.
13432 2006-02-13 Vincent Celier <celier@adacore.com>
13434 * gnatcmd.adb (Rules_Switches): New table
13435 (Add_To_Rules_Switches): New procedure
13436 (GNATCmd): For command CHECK, put all options following "-rules" in the
13437 Rules_Switches table. Append these -rules switches after the -cargs
13440 2006-02-13 Robert Dewar <dewar@adacore.com>
13442 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
13443 These two cases were generating incorrect output, and if this unit
13444 was built with checks on, generated a discriminant mismatch constraint
13447 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13448 Robert Dewar <dewar@adacore.com>
13450 * lib-xref.adb (Get_Type_Reference): For a private type whose full
13451 view is an array type, indicate the component type as well, for
13452 navigation purposes.
13453 (Generate_Reference): Don't consider array ref on LHS to be a case
13454 of violating pragma Unreferenced.
13455 Do not give Ada 2005 warning except on real reference.
13457 2006-02-13 Vincent Celier <celier@adacore.com>
13459 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
13460 main source, add switch -mdebug-main=_ada_ so that the executable can
13461 be debugged by the standard VMS debugger.
13462 (Gnatmake): Set No_Main_Subprogram to True when there is no main
13463 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
13464 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
13465 of the last source, as the binding and linking phases are never
13467 Set all executable obsolete when rebuilding a library.
13469 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
13472 2006-02-13 Javier Miranda <miranda@adacore.com>
13475 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
13476 code to improve the error message reported when the program has
13477 declarations of abstract interface types and it is not compiled with
13478 the -gnat05 switch.
13479 (P_Access_Definition): Reorganize the code to improve the error
13480 message reported when the new Ada 2005 syntax for anonymous
13481 access types is used and the program is not compiled with the
13484 2006-02-13 Robert Dewar <dewar@adacore.com>
13486 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
13487 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
13490 2006-02-13 Javier Miranda <miranda@adacore.com>
13492 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
13493 against source containing syntax errors.
13495 2006-02-13 Vincent Celier <celier@adacore.com>
13497 * prj.adb (Reset): Initialize the first element of table Namings with
13498 the standard naming data.
13500 2006-02-13 Vincent Celier <celier@adacore.com>
13502 * prj.ads (Error_Warning): New enumeration type
13504 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
13505 unknown, use the location of the project to report the error.
13506 (When_No_Sources): New global variable
13507 (Report_No_Ada_Sources): New procedure
13508 (Check): New parameter When_No_Sources. Set value of global variable
13510 (Find_Sources): Call Report_No_Ada_Sources when appropriate
13511 (Get_Sources_From_File): Ditto
13512 (Warn_If_Not_Sources): Better warning messages indicating the unit name
13515 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
13516 Call Prj.Proc.Process with parameter When_No_Sources.
13518 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
13519 Call Recursive_Check with parameter When_No_Sources.
13520 (Recursive_Check): New parameter When_No_Sources. Call itself and
13521 Prj.Nmsc.Check with parameter When_No_Sources.
13522 (Process): New parameter When_No_Sources. Call Check with parameter
13524 (Copy_Package_Declarations): New procedure to copy renamed parameters
13525 and setting the location of the declared attributes to the location
13526 of the renamed package.
13527 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
13530 2006-02-13 Vincent Celier <celier@adacore.com>
13532 * prj-makr.adb (Make): Preserve the comments from the original project
13534 When removing nodes (attributes Source_Dirs, Source_Files,
13535 Source_List_File and package Naming), save the comments and attach the
13536 saved comments to the newly created nodes.
13537 Do not add a with clause for the naming package if one already exists.
13539 2006-02-13 Javier Miranda <miranda@adacore.com>
13540 Gary Dismukes <dismukes@adacore.com>
13541 Robert Dewar <dewar@adacore.com>
13543 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
13545 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
13546 aliased entities to look for the overriden abstract interface
13548 (Is_Interface_Subprogram): Complete documentation.
13549 (Check_Dispatching_Operation): Do not generate code to register the
13550 operation in the dispatch table if the source is compiled with
13551 restriction No_Dispatching_Calls.
13552 (Override_Dispatching_Operation): Check for illegal attempt to override
13553 No_Return procedure with procedure that is not No_Return
13554 (Check_Dispatching_Call): Suppress the check for an abstract operation
13555 when the original node of an actual is a tag-indeterminate attribute
13556 call, since the attribute, which must be 'Input, can never be abstract.
13557 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
13558 call to the Input attribute (even when rewritten).
13559 (Propagate_Tag): Augment comment to indicate the possibility of a call
13560 to an Input attribute.
13562 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
13563 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
13565 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
13566 No_Wide_Characters is no longer partition-wide
13567 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
13570 2006-02-13 Douglas Rupp <rupp@adacore.com>
13572 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
13574 2006-02-13 Javier Miranda <miranda@adacore.com>
13576 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
13577 handles default-initialized components to keep separate the management
13578 of this feature but also avoid the unrequired resolution and
13579 expansion of components that do not have partially initialized
13581 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
13582 (Check_Bounds): Likewise.
13583 (Check_Length): Likewise.
13585 2006-02-13 Javier Miranda <miranda@adacore.com>
13586 Ed Schonberg <schonberg@adacore.com>
13588 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
13589 abstract interface type call analyze_and_resolve to expand the type
13590 conversion into the corresponding displacement of the
13591 reference to the base of the object.
13592 (Eval_Attribute, case Width): For systems where IEEE extended precision
13593 is supported, the maximum exponent occupies 4 decimal digits.
13594 (Accessibility_Message): Add '\' in 2-line warning message.
13595 (Resolve_Attribute): Likewise.
13596 (case Attribute_Access): Significantly revise checks
13597 for illegal access-to-subprogram Access attributes to properly enforce
13598 the rules of 3.10.2(32/2).
13599 Diagnose use of current instance with an illegal attribute.
13601 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
13603 (Enclosing_Generic_Unit): New function to return a node's innermost
13604 enclosing generic declaration node.
13605 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
13606 (Type_Access_Level): The accessibility level of anonymous acccess types
13607 associated with discriminants is that of the current instance of the
13608 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
13609 (Compile_Time_Constraint_Error): Handle case of conditional expression.
13610 (Kill_Current_Values_For_Entity): New function
13611 (Enter_Name): Change formal type to Entity_Id
13613 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
13614 Ed Schonberg <schonberg@adacore.com>
13615 Gary Dismukes <dismukes@adacore.com>
13617 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
13618 Analyze_Compilation_Unit.
13619 Detect and warn on redundant with clauses detected in a package spec
13620 and/or body when -gnatwr is used.
13621 (Analyze_Context): Analyze config pragmas before other items
13622 (Install_Context_Items): Don't analyze config pragmas here
13623 (Install_Limited_Withed_Unit): Set limited entity of package in
13624 with_clause so that cross-reference information or warning messages on
13625 unused packages can be properly generated
13626 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
13627 has Error_Posted set. Prevent infinite loops in illegal programs.
13628 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
13629 to the point of the error test requiring the current unit to be private.
13630 This ensures that private with clauses are not exempted from the basic
13631 checking for being a descendant of the same library unit parent as a
13632 withed private descendant unit.
13633 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
13634 handle private with clauses properly, as well as to account for cases
13635 where the withed unit is a public descendant of a private ancestor
13636 (in which case the current unit must be a descendant of the private
13637 ancestor's parent). The spec comments were updated accordingly. Also,
13638 the old error message in this subprogram was replaced with error
13639 messages that mirror the errors tested and reported by
13640 Check_Private_Child_Unit.
13641 Parameter and variable names improved for readability.
13642 (Install_Limited_Context_Clauses): Remove test for a withed unit being
13643 private as the precondition for calling
13644 Check_Private_Limited_Withed_Unit since that subprogram has been
13645 revised to test public units as well as private units.
13647 2006-02-13 Thomas Quinot <quinot@adacore.com>
13648 Robert Dewar <dewar@adacore.com>
13649 Ed Schonberg <schonberg@adacore.com>
13650 Javier Miranda <miranda@adacore.com>
13652 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
13653 that Scope_Stack.First = 1.
13654 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
13655 were not always properly handled previously.
13656 (Formal_Entity): Complete rewrite, to handle properly some complex case
13657 with multiple levels of parametrization by formal packages.
13658 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
13659 to the corresponding derived type declaration for proper semantics.
13661 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
13662 (Check_Component): Enforce restriction on components of
13663 unchecked_unions: a component in a variant cannot contain tasks or
13665 (Unchecked_Union): Allow nested variants and multiple discriminants, to
13667 Add pragma Ada_2005 (synonym for Ada_05)
13668 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
13669 were not always properly handled previously.
13670 Document that pragma Propagate_Exceptions has no effect
13671 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
13672 (Set_Convention_From_Pragma): Check that if a convention is
13673 specified for a dispatching operation, then it must be
13674 consistent with the existing convention for the operation.
13675 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
13676 longer required to specify an vtable-ptr component in the record. For
13677 compatibility reasons we leave the support for the previous definition.
13678 (Analyze_Pragma, case No_Return): Allow multiple arguments
13680 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
13681 non-overrideen inherited operation with a controlling result as
13682 illegal only its implicit declaration comes from the derived type
13683 declaration of its result's type.
13684 (Check_Possible_Deferred_Completion): Relocate the object definition
13685 node of the subtype indication of a deferred constant completion rather
13686 than directly analyzing it. The analysis of the generated subtype will
13687 correctly decorate the GNAT tree.
13688 (Record_Type_Declaration): Check whether this is a declaration for a
13689 limited derived record before analyzing components.
13690 (Analyze_Component_Declaration): Diagnose record types not explicitly
13691 declared limited when a component has a limited type.
13692 (Build_Derived_Record_Type): Code reorganization to check if some of
13693 the inherited subprograms of a tagged type cover interface primitives.
13694 This check was missing in case of a full-type associated with a private
13696 (Constant_Redeclaration): Check that the subtypes of the partial and the
13697 full view of a constrained deferred constant statically match.
13698 (Mentions_T): A reference to the current type in an anonymous access
13699 component declaration must be an entity name.
13700 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
13701 class_wide type to refer to full type, not to the incomplete one.
13702 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
13703 available. Required to give support to the certified run-time.
13704 (Analyze_Component_Declaration): In case of anonymous access components
13705 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
13706 (Process_Discriminants): For an access discriminant, use the
13707 discriminant specification as the associated_node_for_itype, to
13708 simplify accessibility checks.
13710 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13711 Javier Miranda <miranda@adacore.com>
13713 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
13714 abstract interpretations on an operator, remove interpretations that
13715 yield Address or a type derived from it, if one of the operands is an
13717 (Try_Object_Operation.Try_Primitive_Operation,
13718 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
13719 location when creating the new reference to a primitive or class-wide
13720 operation as a part of rewriting a subprogram call.
13721 (Try_Primitive_Operations): If context requires a function, collect all
13722 interpretations after the first match, because there may be primitive
13723 operations of the same type with the same profile and different return
13724 types. From code reading.
13725 (Try_Primitive_Operation): Use the node kind to choose the proper
13726 operation when a function and a procedure have the same parameter
13728 (Complete_Object_Operation): If formal is an access parameter and prefix
13729 is an object, rewrite as an Access reference, to match signature of
13730 primitive operation.
13731 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
13732 by an expanded name with prefix Standard, when the operands are of an
13733 anonymous access type.
13734 (Remove_Abstract_Operations): If the operation is abstract because it is
13735 inherited by a user-defined type derived from Address, remove it as
13736 well from the set of candidate interpretations of an overloaded node.
13737 (Analyze_Membership_Op): Membership test not applicable to cpp-class
13740 2006-02-13 Bob Duff <duff@adacore.com>
13742 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
13743 redundant use clauses.
13744 In particular, if the scope of two use clauses overlaps, but one is not
13745 entirely included in the other, we should not warn. This can happen
13746 with nested packages.
13747 (Analyze_Subprogram_Renaming): Protect the compiler against previously
13748 reported errors. The bug was reported when the compiler was built
13749 with assertions enabled.
13750 (Find_Type): If the node is a 'Class reference and the prefix is a
13751 synchronized type without a corresponding record, return the type
13754 2006-02-13 Javier Miranda <miranda@adacore.com>
13756 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
13757 if this is the full-declaration associated with a private declaration
13758 that implement interfaces, then the private type declaration must be
13760 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
13761 as aliased. The use of the 'access attribute is not available for such
13762 object (for this purpose the object should be explicitly marked as
13763 aliased, but being an anonymous type this is not possible).
13765 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13766 Robert Dewar <dewar@adacore.com>
13768 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
13769 compilation unit is an elaboration scope.
13770 (Add_Task_Proc): Add '\' in 2-line warning message.
13771 (Activate_All_Desirable): Deal with case of unit with'ed by parent
13773 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13774 Javier Miranda <miranda@adacore.com>
13776 * sem_type.adb (Write_Overloads): Improve display of candidate
13778 (Add_One_Interp): Do not add to the list of interpretations aliased
13779 entities corresponding with an abstract interface type that is an
13780 immediate ancestor of a tagged type; otherwise we have a dummy
13781 conflict between this entity and the aliased entity.
13782 (Disambiguate): The predefined equality on universal_access is not
13783 usable if there is a user-defined equality with the proper signature,
13784 declared in the same declarative part as the designated type.
13785 (Find_Unique_Type): The universal_access equality operator defined under
13786 AI-230 does not cover pool specific access types.
13787 (Covers): If one of the types is a generic actual subtype, check whether
13788 it matches the partial view of the other type.
13790 2006-02-13 Thomas Quinot <quinot@adacore.com>
13792 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
13793 line. This is necessary to allow In_Extended_Main_Unit to provide
13794 correct results for itypes while writing out expanded source.
13795 (Close_File): No need to update the source_index_table here since it's
13796 now done for each line.
13798 2006-02-13 Ed Schonberg <schonberg@adacore.com>
13799 Robert Dewar <dewar@adacore.com>
13801 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
13802 preserve the source unit where the itype is declared, and prevent a
13804 (Note_Implicit_Run_Time_Call): New procedure
13805 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
13808 * sprint.ads: Document use of $ for implicit run time routine call
13810 2006-02-13 Quentin Ochem <ochem@adacore.com>
13812 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
13815 2006-02-13 Bob Duff <duff@adacore.com>
13817 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
13818 Scan_Unsigned, so we do not scan leading blanks and sign twice.
13819 Integer'Value("- 5") and Integer'Value("-+5") now correctly
13820 raise Constraint_Error.
13822 * s-vallli.adb (Scan_Long_Long_Integer): Call
13823 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
13824 do not scan leading blanks and sign twice.
13825 Integer'Value("- 5") and Integer'Value("-+5") now correctly
13826 raise Constraint_Error.
13828 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
13829 Scan_Long_Long_Unsigned): Split out most of the processing from
13830 Scan_Long_Long_Unsigned out into
13831 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
13832 This prevents scanning leading blanks and sign twice.
13833 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
13836 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
13837 out most of the processing from Scan_Unsigned out into
13838 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
13839 This prevents scanning leading blanks and sign twice.
13841 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
13842 use with Modular'Value attribute.
13843 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
13846 2006-02-13 Robert Dewar <dewar@adacore.com>
13848 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
13850 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
13852 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
13853 (PPC VxWorks): Likewise.
13854 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
13855 (forced_callee): Make non-inlinable and non-pure.
13856 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
13858 2006-02-13 Arnaud Charlet <charlet@adacore.com>
13859 Ben Brosgol <brosgol@adacore.com>
13860 Robert Dewar <dewar@adacore.com>
13862 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
13864 Document that gnatbind -M option is for cross environments only.
13865 Added description of using gnatmem to trace gnat rtl allocs and deallocs
13866 Add note on use of $ to label implicit run time calls
13867 Add documentation for -gnatyI (check mode IN)
13868 Updated chapter on compatibility with HP Ada
13869 VMS-oriented edits.
13870 Ran spell and corrected errors
13871 Add documentation for gnatbind -d and rework documentation of -D
13873 Add subprogram/data elimination section.
13874 Minor editing of annex A.
13875 Add section for gnatcheck.
13876 Add documentation for restriction No_Dispatching_Calls
13877 Add documentation for pragma Ada_2005
13878 Remove mention of obsolete pragma Propagate_Exceptions
13879 Document that pragma Unreferenced can appear after DO in ACCEPT
13880 Clarify Pure_Function for library level units
13881 Mention Max/Min in connection with No_Implicit_Conditionals
13882 No_Wide_Characters restriction is no longer partition-wide
13883 Add a nice example for Universal_Literal_String attribute
13884 Document that pragma No_Return can take multiple arguments
13886 * ug_words: Added entry for gnatcheck
13888 * g-ctrl_c.ads (Install_Handler): Enhance comments
13890 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
13892 * g-trasym.ads: Add documentation on how to do off line symbolic
13893 traceback computation.
13895 * s-fatgen.adb: Add comments for Unaligned_Valid
13897 * stand.ads: Fix typo in comment
13899 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13901 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
13903 2006-02-06 Roger Sayle <roger@eyesopen.com>
13905 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
13907 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13910 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
13911 implementation that calls __main.
13913 2006-01-25 Peter O'Gorman <peter@pogma.com>
13916 * Makefile.in (GCC_LINK): Remove quotes.
13917 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
13920 (powerpc-darwin): Pass -shared-libgcc when building shared library.
13922 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13925 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
13927 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13929 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
13931 2005-12-12 Arnaud Charlet <charlet@adacore.com>
13933 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
13936 2005-12-12 Arnaud Charlet <charlet@adacore.com>
13938 * Make-lang.in: Update dependencies
13940 2005-12-12 Arnaud Charlet <charlet@adacore.com>
13942 * Make-lang.in: Add rule for ada/exp_sel.o
13944 2005-12-12 Arnaud Charlet <charlet@adacore.com>
13946 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
13948 2005-12-09 Arnaud Charlet <charlet@adacore.com>
13950 * gnatvsn.ads (Library_Version): Bump to version 4.2
13951 (ASIS_Version_Number): Bumped.
13953 2005-12-09 Doug Rupp <rupp@adacore.com>
13955 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
13956 Ada bind file prefix on VMS from b$ to b__.
13957 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
13960 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
13961 Targparm.OpenVMS_On_Target.
13962 (Object_Suffix): Initialize with target object suffix.
13963 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
13965 * butil.adb: Change some Hostparm.OpenVMS checks to
13966 Targparm.OpenVMS_On_Target.
13968 * clean.adb: Change some Hostparm.OpenVMS checks to
13969 Targparm.OpenVMS_On_Target.
13970 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
13971 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
13972 Ada bind file prefix on VMS from b$ to b__.
13974 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
13975 --GCC so that Get_Target_Parameters can find system.ads.
13976 (Gnatlink): Call Get_Target_Parameters in mainline.
13977 Initialize standard packages for Targparm.
13978 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
13979 (Process_Args): Also Check for object files with target object
13981 (Make_Binder_File_Names): Create with target object extension.
13982 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
13985 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
13986 Targparm.OpenVMS_On_Target.
13987 ({declaration},Build_Library,Check_Library): Change Ada bind file
13988 prefix on VMS from b$ to b__.
13990 * osint-b.adb: Change some Hostparm.OpenVMS checks to
13991 Targparm.OpenVMS_On_Target.
13992 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
13995 * targext.c: New file.
13997 * Makefile.in: add support for vxworks653 builds
13998 (../../vxaddr2line): gnatlink with targext.o.
13999 (TOOLS_LIBS): Move targext.o to precede libgnat.
14000 (init.o, initialize.o): Minor clean up in dependencies.
14001 (GNATLINK_OBJS): Add targparm.o, snames.o
14002 Add rules fo building targext.o and linking it explicitly with all
14004 Also add targext.o to gnatlib.
14006 * Make-lang.in: Add rules for building targext.o and linking it in
14007 with gnat1 and gnatbind.
14008 Add entry for exp_sel.o.
14010 * osint.adb Change some Hostparm.OpenVMS checks to
14011 Targparm.OpenVMS_On_Target.
14012 (Object_File_Name): Use target object suffix.
14014 * osint.ads (Object_Suffix): Remove, no longer used.
14015 (Target_Object_Suffix): Initialize with target object suffix.
14017 * rident.ads: Add special exception to license.
14019 * targparm.adb (Get_Target_Parameters): Set the value of
14020 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
14022 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
14024 * targparm.ads: Add special exception to license.
14026 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
14028 (Copy_File): Make sure from file is closed if error on to file
14029 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
14031 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
14032 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
14034 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
14035 target object suffix.
14037 2005-12-09 Jose Ruiz <ruiz@adacore.com>
14038 Quentin Ochem <ochem@adacore.com>
14039 Florian Villoing <villoing@adacore.com>
14041 * a-taster.ads, a-taster.adb: New files.
14043 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
14044 link to the version that does nothing. This way the task termination
14045 routine is not executed twice for the environment task when finishing
14046 because of an unhandled exception.
14048 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
14049 handler because of an unhandled exception.
14051 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
14052 System.Tasking.Utilities instead of that in System.Tasking.Stages.
14054 * s-finimp.adb (initialization code): Modify the soft link for the
14055 finalization of the global list instead of Adafinal.
14057 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
14058 non-tasking version of the soft link for task termination. We do
14059 nothing since if we are using the non-tasking version it
14060 means that the task termination functionality is not used.
14061 (Null_Finalize_Global_List): Add this null version for the procedure
14062 in charge of finalizing the global list for controlled objects.
14063 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
14064 instead for handling run-time termination in a more flexible way.
14065 (Adafinal_NT): This new procedure will take care of finalizing the
14066 global list for controlled objects if needed, but no tasking
14069 * s-tarest.adb (Task_Lock): Do not try to lock again the
14070 Global_Task_Lock if we already own it. Otherwise, we get blocked in
14071 some run-time operations.
14072 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
14073 until all nested locks have been released.
14074 (Task_Wrapper): Call the fall-back task termination handler. It
14075 applies to all tasks but the environment task.
14076 (Finalize_Global_Tasks): Add the call for the task termination
14077 procedure for the environment task.
14078 (Task_Wrapper): suppress warnings around declaration of
14079 Secondary_Stack_Address.
14081 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
14082 moved to the Common_ATCB record.
14083 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
14084 Common_ATCB record.
14085 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
14086 Common_ATCB record.
14088 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
14089 Fall_Back_Handler, and Specific_Handler.
14091 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
14092 defined in Ada.Task_Termination, to avoid circular dependencies.
14093 (Termination_Handler): Redefine this type here, alredy defined in
14094 Ada.Task_Termination, for avoiding circular dependencies.
14095 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
14096 for storing task termination handlers. In addition,
14097 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
14098 Common_ATCB because it is used by both the regular and the restricted
14100 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
14101 Common_ATCB because it is used by both the regular and the restricted
14103 (Common_ATCB): Added a dynamic task analyzer field.
14105 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
14106 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
14107 (Task_Wrapper): Call the task termination handler. It applies to all
14108 tasks but the environment task.
14109 (Finalize_Global_Tasks): Call the task termination procedure for the
14110 environment task. The call to Finalize_Global_List is now performed
14111 using the soft links mechanism.
14112 (Task_Wrapper): added dynamic stack analysis.
14114 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
14115 potentially blocking operations has been moved from
14116 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
14117 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
14118 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
14119 this run-time check.
14121 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
14122 of task termination procedure.
14123 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
14124 link for the task termination procedure.
14126 * bindusg.adb: (Bindusg): Added documentation for -u option.
14128 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
14129 (Get_Main_C): Add handling of dynamic stack analysis.
14130 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
14132 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
14133 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
14134 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
14136 * opt.ads: Added flags used by dynamic stack measurement.
14137 (Max_Line_Length): Remove (not used anymore)
14139 * s-io.ads, s-io.adb (Standard_Error): new subprogram
14140 (Standart_Output): new subprogram
14141 (Set_Output): new subprogram
14142 (Put): now uses the value of Current_Out to know if the output has to be
14143 send to stderr or stdout.
14145 * s-stausa.ads: Complete implementation.
14147 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
14149 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
14150 list of Ada 05 files.
14151 (GNAT Library Units): Add AltiVec files.
14153 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
14154 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
14155 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
14157 2005-12-09 Nicolas Setton <setton@adacore.com>
14159 * adaint.c (__gnat_locate_regular_file): Return immediately if
14160 file_name is empty.
14162 2005-12-09 Javier Miranda <miranda@adacore.com>
14163 Hristian Kirtchev <kirtchev@adacore.com>
14165 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
14166 to the specification because the frontend generates code that uses this
14168 (Set_Interface_Table): Add missing assertion.
14169 Update documentation describing the run-time structure.
14170 (Displace): New subprogram that displaces the pointer to the object
14171 to reference one of its secondary dispatch tables.
14172 (IW_Membership): Modified to use the new table of interfaces.
14173 (Inherit_TSD): Modified to use the new table of interfaces.
14174 (Register_Interface_Tag): Use the additional formal to fill the
14175 contents of the new table of interfaces.
14176 (Set_Interface_Table): New subprogram that stores in the TSD the
14177 pointer to the table of interfaces.
14178 (Set_Offset_To_Top): Use the additional formal to save copy of
14179 the offset value in the table of interfaces.
14180 Update structure of GNAT Primary and Secondary dispatch table diagram.
14181 Add comment section on GNAT dispatch table prologue.
14182 (Offset_To_Signature): Update the constant value of the Signature field.
14183 (Dispatch_Table): Update comment on hidden fields in the prologue.
14184 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
14185 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
14186 the type of formal parameter T to Tag, introduce additional assertions.
14187 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
14189 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
14191 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
14192 in all the calls to Expand_Interface_Thunk. Instead of referencing the
14193 record component containing the tag of the secondary dispatch table we
14194 have to use the Offset_To_Top run-time function to get this information;
14195 otherwise if the pointer to the base of the object has been displace
14196 we get a wrong value if we use the 'position attribute.
14198 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
14199 all the calls to Expand_Interface_Thunk.
14200 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
14201 interfaces; hence the call to Set_Interface_Table was clearly wrong.
14202 (Collect_All_Interfaces): Modify the internal subprogram Collect to
14203 ensure that the interfaces implemented by the ancestors are placed
14204 at the header of the generated list.
14205 (Expand_Interface_Conversion): Handle the case in which the displacement
14206 associated with the interface conversion is not statically known. In
14207 this case we generate a call to the new run-time subprogram Displace.
14208 (Make_DT): Generate and fill the new table of interfaces.
14209 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
14210 Get_Tagged_Kind and Set_Tagged_Kind.
14211 (Tagged_Kind): New function that determines the tagged kind of a type
14212 with respect to limitedness and concurrency and returns a reference to
14214 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
14215 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
14216 primary dispatch table for a type.
14217 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
14218 secondary dispatch table respectively of a tagged type.
14220 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
14221 (Expand_Interface_Conversion): New subprogram to indicate if the
14222 displacement of the type conversion is statically known.
14223 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
14225 * rtsfind.ads (RE_Offset_To_Top): New entity
14226 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
14227 accessible to users.
14228 (Re_Displace): New entity
14229 (RE_Interface_Data): New entity
14230 (RE_Set_Interface_Data): New_Entity
14231 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
14232 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
14233 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
14234 RE_TK_Tagged, RE_TK_Task.
14236 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
14237 Init_Secondary_Tags_Internal to allow its use with interface types and
14238 also to generate the code for the new additional actual required
14239 by Set_Offset_To_Top.
14240 (Build_Init_Statements): In case of components associated with abstract
14241 interface types there is no need to generate a call to its IP.
14242 (Freeze_Record_Type): Generate Select Specific Data tables only for
14244 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
14245 the bodies and specifications of the predefined primitive operations
14246 dealing with dispatching selects and abort, 'Callable, 'Terminated only
14247 for concurrent types.
14249 * exp_sel.ads, exp_sel.adb: New files.
14251 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
14252 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
14253 properly protected objects and attach handler in the case of the
14254 restricted profile.
14255 Move embeded package Select_Expansion_Utilities into a separate external
14257 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
14258 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
14259 (Build_K, Build_S_Assignment): New subprograms, part of the select
14260 expansion utilities.
14261 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
14262 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
14263 where the trigger is a dispatching procedure of a limited tagged type.
14265 2005-12-09 Olivier Hainque <hainque@adacore.com>
14267 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
14268 pointer initialization values. Make a SAVE_EXPR instead. Add comments
14269 about the use and expansion of SAVE_EXPRs in the various possible
14270 renaming handling cases.
14271 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
14272 abusing DECL_FCONTEXT.
14274 2005-12-09 Matthew Heaney <heaney@adacore.com>
14276 * a-convec.adb (Merge): Added assertions to check whether vector params
14279 * a-coinve.adb (Merge): Added assertions to check whether vector params
14282 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
14284 (Cursor'Read): raises PE
14286 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
14287 to its default value.
14289 * a-cihama.adb: Manually check whether cursor's key and elem are
14292 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
14293 (Merge): Assert that target and source lists are in order
14294 (Swap): Declare non-const temporaries, to pass to Splice
14296 * a-cdlili.ads: (Splice): Changed param name and param mode
14298 * a-cdlili.adb: (Splice): Changed param name and param mode
14299 (Merge): Assert that target and source lists are in order
14300 (Swap): Declare non-const temporaries, to pass to Splice
14302 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
14303 (Write): declare Stream param as not null
14305 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
14306 an exception message.
14308 2005-12-09 Thomas Quinot <quinot@adacore.com>
14309 Robert Dewar <dewar@adacore.com>
14311 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
14312 which is the absolute maximum length we can support.
14314 * frontend.adb: For the processing of configuration pragma files,
14315 remove references to Opt.Max_Line_Length, which is not checked anymore.
14317 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
14320 * scn.adb, scng.adb:
14321 Always check line length against the absolute supported maximum,
14322 Hostparm.Max_Line_Length.
14324 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
14325 value for the maximum line length is Max_Line_Length (not
14326 Column_Number'Last).
14327 Minor error msg update
14328 (Set_Style_Check_Options): New interface returning error msg
14329 Minor code reorganization (processing for 'M' was out of alpha order)
14331 * switch-c.adb: New interface for Set_Style_Check_Options
14333 * stylesw.ads (Set_Style_Check_Options): New interface returning error
14336 2005-12-09 Javier Miranda <miranda@adacore.com>
14338 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
14339 with IP subprogram were only supported if there were limited types.
14341 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
14342 records with IP subprogram were only supported if there were limited
14345 2005-12-09 Olivier Hainque <hainque@adacore.com>
14346 Eric Botcazou <ebotcazou@adacore.com>
14348 * trans.c (tree_transform, emit_check): Adjust calls to
14349 build_call_raise, passing the now expected GNAT_NODE argument.
14351 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
14352 source line information than what the current global locus indicates
14355 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
14356 field has overflowed.
14357 (build_call_raise): Add a GNAT_NODE argument to convey better source
14358 line information than what the current global locus indicates when
14360 (build_component_ref): Adjust call to build_call_raise.
14362 2005-12-09 Pascal Obry <obry@adacore.com>
14364 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
14365 the iterator is quitting iteration on parent directory.
14367 2005-12-09 Javier Miranda <miranda@adacore.com>
14369 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
14370 and the assignment to a class-wide object, before the assignment we
14371 generate a run-time check to ensure that the tag of the Target is
14372 covered by the tag of the source.
14374 2005-12-09 Robert Dewar <dewar@adacore.com>
14376 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
14377 parameter in call to Image_Wide_Character.
14379 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
14380 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
14381 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
14382 annoying FFFE/FFFF inconsistency.
14384 2005-12-09 Robert Dewar <dewar@adacore.com>
14385 Javier Miranda <miranda@adacore.com>
14386 Ed Schonberg <schonberg@adacore.com>
14388 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
14389 of type conversion.
14390 (Find_Interface): New subprogram that given a tagged type and one of its
14391 component associated with the secondary table of an abstract interface
14392 type, return the entity associated with such abstract interface type.
14393 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
14394 base type to create anonymous subtype, because entity may be a locally
14395 declared subtype or generic actual.
14396 (Find_Interface): New subprogram that given a tagged type and one of its
14397 component associated with the secondary table of an abstract interface
14398 type, return the entity associated with such abstract interface type.
14400 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
14401 conversion cannot be handled at compile time. In this case we pass this
14402 information to the expander to generate the appropriate code.
14404 2005-12-09 Robert Dewar <dewar@adacore.com>
14405 Ed Schonberg <schonberg@adacore.com>
14406 Gary Dismukes <dismukes@adacore.com>
14407 Javier Miranda <miranda@adacore.com>
14408 Hristian Kirtchev <kirtchev@adacore.com>
14410 * einfo.adb (Itype_Printed): New flag
14411 (Is_Limited_Type): Derived types do not inherit limitedness from
14412 interface progenitors.
14413 (Is_Return_By_Reference_Type): Predicate does not apply to limited
14416 * einfo.ads (Itype_Printed): New flag
14417 Move Is_Wrapper_Package to proper section
14418 Add missing Inline for Is_Volatile
14420 * output.ads, output.adb (Write_Erase_Char): New procedure
14421 (Save/Restore_Output_Buffer): New procedures
14422 (Save/Restore_Output_Buffer): New procedures
14424 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
14425 Add missing support for anonymous access type
14426 (Write_Id): Insert calls to Write_Itype
14427 (Write_Itype): New procedure to output itypes
14429 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
14430 use of "limited" in declaration.
14432 * sinfo.ads, sinfo.adb:
14433 Formal derived types can carry an explicit "limited" indication.
14435 * sem_ch3.adb: Add with and use of Targparm.
14436 (Create_Component): If Frontend_Layout_On_Target is True and the
14437 copied component does not have a known static Esize, then reset
14438 the size and positional fields of the new component.
14439 (Analyze_Component_Declaration): A limited component is
14440 legal within a protected type that implements an interface.
14441 (Collect_Interfaces): Do not add to the list the interfaces that
14442 are implemented by the ancestors.
14443 (Derived_Type_Declaration): If the parent of the full-view is an
14444 interface perform a transformation of the tree to ensure that it has
14445 the same parent than the partial-view. This simplifies the job of the
14446 expander in order to generate the correct object layout, and it is
14447 needed because the list of interfaces of the full-view can be given in
14449 (Process_Full_View): The parent of the full-view does not need to be
14450 a descendant of the parent of the partial view if both parents are
14452 (Analyze_Private_Extension_Declaration): If declaration has an explicit
14453 "limited" the parent must be a limited type.
14454 (Build_Derived_Record_Type): A derived type that is explicitly limited
14455 must have limited ancestor and progenitors.
14456 (Build_Derived_Type): Ditto.
14457 (Process_Full_View): Verify that explicit uses of "limited" in partial
14458 and full declarations are consistent.
14459 (Find_Ancestor_Interface): Remove function.
14460 (Collect_Implemented_Interfaces): New procedure used to gather all
14461 implemented interfaces by a type.
14462 (Contain_Interface): New function used to check whether an interface is
14464 (Find_Hidden_Interface): New function used to determine whether two
14465 lists of interfaces constitute a set equality. If not, the first
14466 differing interface is returned.
14467 (Process_Full_View): Improve the check for the "no hidden interface"
14468 rule as defined by AI-396.
14470 2005-12-09 Robert Dewar <dewar@adacore.com>
14472 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
14473 types, not on record subtypes.
14474 (Freeze_Entity): Code cleanup. Add barrier to the loop
14475 that generates the references for primitive operations. This allows to
14476 remove an unnecessary exception handler.
14477 Code reformatting and comment clean ups.
14479 2005-12-09 Vincent Celier <celier@adacore.com>
14481 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
14482 If GNAT CHECK is called with a project file, but with no
14483 source on the command line, call gnatcheck with all the compilable
14484 sources of the project.
14485 Take into account the new command Check, for gnatcheck. Treat as for
14486 other ASIS tools: take into account project, specific package Check and
14488 For ASIS tools, add the switches in package Compiler for
14489 the invocation of the compiler.
14491 * prj-attr.adb: Add package Check and its attributes
14493 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
14495 * vms_conv.adb (Initialize): Change Params of command Check to
14497 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
14498 Add data for new command Check
14500 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
14502 Add qualifiers for Check command options
14503 (Command_Type): New command Check
14505 2005-12-09 Thomas Quinot <quinot@adacore.com>
14507 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
14508 command line switch overruns the output buffer.
14510 2005-12-09 Robert Dewar <dewar@adacore.com>
14512 * sem_prag.adb: Processing for new pragma Complete_Representation
14513 (Analyze_Pragma, case Debug): Implement two argument form.
14515 * par-prag.adb: Entry for new pragma Complete_Representation
14516 (Prag, case Debug): Recognize two argument form of pragma Debug
14517 New interface for Set_Style_Check_Options.
14519 * sem_ch13.adb: Implement new pragma Complete_Representation.
14521 * snames.adb, snames.ads, snames.h: Entry for new pragma
14522 Complete_Representation.
14524 2005-12-09 Gary Dismukes <dismukes@adacore.com>
14526 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
14527 available user-specified stream attributes on limited parameters to
14528 also test the type directly rather than only its underlying type (for
14529 Ada 95) and, in the case of Ada 2005, to check that the user-specified
14530 attributes are visible at the point of the subprogram declaration.
14531 For Ada 2005, the error message is modified to indicate that the
14532 type's stream attributes must be visible (again, only for -gnat05).
14534 2005-12-09 Ed Schonberg <schonberg@adacore.com>
14536 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
14537 anonymous access types.
14539 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
14540 matching of anonymous access types and anonymous access to subprogram
14541 types. 'R'M 4.9.1 (2/2).
14543 2005-12-09 Ed Schonberg <schonberg@adacore.com>
14545 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
14546 rule prematurely when operands are universal, remaining ambiguities
14547 will be removed during resolution.
14550 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
14551 that are Ada 2005 functions.
14552 (Has_Abstract_Interpretation): Subsidiary to
14553 Remove_Conversions, to remove ambiguities caused by abstract operations
14554 on numeric types when operands are universal.
14556 2005-12-09 Robert Dewar <dewar@adacore.com>
14558 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
14559 for case where spec is categorized.
14561 2005-12-09 Javier Miranda <miranda@adacore.com>
14563 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
14564 types use the corresponding record type. This was not needed before
14565 the implementation of Ada 2005 synchronized types because
14566 concurrent types were never tagged types in Ada 95.
14568 2005-12-09 Ed Schonberg <schonberg@adacore.com>
14570 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
14571 first subtype of the type of the expression to verify that it is a
14574 2005-12-09 Robert Dewar <dewar@adacore.com>
14576 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
14579 2005-12-09 Quentin Ochem <ochem@adacore.com>
14580 Robert Dewar <dewar@adacore.com>
14581 Ed Falis <falis@adacore.com>
14582 Florian Villoing <villoing@adacore.com>
14583 Thomas Quinot <quinot@adacore.com>
14584 Arnaud Charlet <charlet@adacore.com>
14586 * gnat_ugn.texi: Created section "Stack Related Tools"
14587 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
14588 "Stack Related Tools"
14589 Added subsection "Static Stack Usage Analysis"
14590 Added subsection "Dynamic Stack Usage Analysis"
14591 Include documentation of itypes in sprint listing (-gnatG)
14592 Documented gnatbind -D switch (default sec stack size for fixed sec
14594 Added Interrupt_State and Persistent_BSS to list of configuration
14596 Add missing doc for maximum value of nnn in -gnatyMnnn
14598 * gnat_rm.texi: Document the AltiVec binding.
14599 Add documentation for pragma Complete_Representation
14600 Shortened an overly long line (> 79 chars)
14601 Clarify documentation of unchecked conversion in implementation
14603 Document two argument form of pragma Debug
14605 * types.ads (Column_Number): Update documentation.
14607 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
14608 library level Finalize_Storage_Only objects (these are not attached to
14609 any finalization list).
14611 * system-mingw.ads: (Underlying_Priorities): Update comment.
14613 2005-12-09 Robert Dewar <dewar@adacore.com>
14615 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
14616 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
14617 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
14618 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
14619 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
14620 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
14621 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
14622 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
14625 2005-12-09 Robert Dewar <dewar@adacore.com>
14627 * s-vaflop-vms-alpha.adb: (Ne_F): New function
14628 (Ne_G): New function
14630 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
14631 for tag assignment.
14632 (Rewrite_Comparison): Handle case where operation is not a comparison
14633 and ignore, and also handle type conversion case.
14635 2005-12-09 Thomas Quinot <quinot@adacore.com>
14637 * exp_aggr.ads: Fix typo in comment.
14638 ???-mark Convert_Aggr_In_Assignment as needing documentation.
14640 2005-12-09 Gary Dismukes <dismukes@adacore.com>
14642 * layout.adb: Replace various uses of byte by storage unit throughout.
14643 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
14644 static size, convert to storage units before returning, to conform to
14647 2005-12-09 Matthew Gingell <gingell@adacore.com>
14649 * g-exctra.ads: Fix typo in comment.
14651 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14653 * utils.c: Minor reformatting.
14655 2005-12-09 Robert Dewar <dewar@adacore.com>
14658 Further comment fixes to make the status of the default file clear
14660 * s-bitops.adb: Clarify comment for Bits_Array
14662 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
14664 * Make-lang.in (ada.install-normal): Remove.
14666 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
14668 * Make-lang.in: Remove all dependencies on s-gtype.
14670 2005-12-05 Richard Guenther <rguenther@suse.de>
14672 * utils.c (convert): Use fold_convert where appropriate.
14674 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
14676 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
14679 2005-12-02 Richard Guenther <rguenther@suse.de>
14681 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
14683 2005-12-01 Roger Sayle <roger@eyesopen.com>
14685 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
14688 2005-11-23 Laurent GUERBY <laurent@guerby.net>
14690 * mlib-prj.adb (Build_Library): Initialize Delete.
14692 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
14694 * socket.c: Add extern int h_errno for rtems since networking header
14695 files are not available at this point in a tool bootstrap. Newlib
14696 only has basic C library header files.
14698 2005-11-19 Richard Guenther <rguenther@suse.de>
14699 Roger Sayle <roger@eyesopen.com>
14702 * misc.c (internal_error_function): Don't use vsprintf to format
14703 the error message text, instead use pp_format_text and the new
14704 pretty printer APIs. This allows handling of %qs, %w, etc.
14706 2005-11-18 Laurent GUERBY <laurent@guerby.net>
14709 * Makefile.in: Use s-auxdec-empty for RTEMS.
14711 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14714 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
14715 a temporary if taking the address of something that is neither
14716 reference, declaration, or constant, since the gimplifier
14717 can't handle that case.
14719 2005-11-17 Laurent GUERBY <laurent@guerby.net>
14722 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
14724 2005-11-16 Richard Guenther <rguenther@suse.de>
14726 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
14728 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
14731 * raise-gcc.c: Add missing stdarg.h include.
14733 2005-11-16 Richard Guenther <rguenther@suse.de>
14735 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
14736 (ada/misc.o): Likewise.
14738 2005-11-14 Thomas Quinot <quinot@adacore.com>
14740 * g-soccon.ads: Minor reformatting. Update comments.
14742 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
14743 gain visibility on the declaration of struct timeval.
14745 * g-soccon-freebsd.ads,
14746 g-soccon-darwin.ads,
14747 g-soccon-tru64.ads,
14751 g-soccon-solaris.ads,
14753 g-soccon-mingw.ads,
14754 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
14756 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
14757 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
14758 g-soccon-linux-x86.ads: New files.
14760 * g-socthi-mingw.adb:
14761 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
14763 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
14764 (time_t, suseconds_t): New types constructed to match the tv_sec
14765 and tv_usec fields of C struct timeval.
14766 (Timeval): Construct structure in terms of the new types.
14767 (Host_Errno): New function (imported from socket.c), returns last hosts
14770 * g-socthi-vxworks.adb: Add error handling circuitry.
14772 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
14773 components of struct timeval.
14774 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
14775 (Check_Selector): In error conditions, clear internal socket sets to
14776 avoid a memory leak.
14777 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
14778 Send_Timeout, Receive_Timeout.
14780 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
14781 the tv_sec and tv_usec fields of C struct timeval.
14782 (Timeval): Construct structure in terms of the new types.
14783 (Host_Errno): New function (imported from socket.c), returns last hosts
14786 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
14787 hosts database last error code.
14789 * gen-soccon.c: Complete value expansion should not be performed on
14790 TARGET, as it has the form of a math expression, and some components
14791 may be platform-defined macros.
14792 For VxWorks, generate the OK and ERROR values.
14793 New constants giving the sizes of the components of C struct timeval.
14795 2005-11-14 Robert Dewar <dewar@adacore.com>
14796 Ed Schonberg <schonberg@adacore.com>
14799 * types.ads: Include All_Checks in Suppress_Array
14801 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
14802 not(a=b), since we no longer do this rewriting, and hence it is not
14804 (Elaboration_Checks_Suppressed): Add special casing to
14805 deal with different cases of static and dynamic elaboration checks (all
14806 checks does not count in the first case, but does in the second).
14807 (Expr_Known_Valid): Do not assume that the result of any arbitrary
14808 function call is valid, since this is not the case.
14809 (Ensure_Valid): Do not apply validity check to a real literal
14810 in a universal or fixed context
14812 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
14813 elementary types using the operator in standard. It is cleaner not to
14814 modify the programmers intent, especially in the case of floating-point.
14815 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
14816 it did not matter because we always rewrote a/=b to not(a=b).
14817 (Expand_Allocator_Expression): For an allocator expression whose nominal
14818 subtype is an unconstrained packed type, convert the expression to its
14819 actual constrained subtype.
14820 Implement warning for <= or >= where < or > not possible
14821 Fix to Vax_Float tests (too early in many routines, causing premature
14822 Vax_Float expansions.
14824 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
14825 to be used with packages and generic packages as well as with
14827 (Suppress): Set All_Checks, but not Elaboration_Check, for case
14828 of pragma Suppress (All_Checks)
14829 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
14830 a string literal for precise control over warnings.
14831 Avoid raise of pragma in case of unrecognized pragma and just return
14834 * sem_prag.ads: Minor reformatting
14836 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
14837 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
14838 Switch. Do not handle any exception.
14839 Include -gnatwx as part of -gnatg (warn on redundant parens)
14840 Allow optional = after -gnatm
14841 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
14842 longer sets Elaboration_Checks.
14843 Code to set warning mode moved to Sem_Warn
14844 so that it can be shared by pragma processing.
14846 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
14849 * s-taprop-solaris.adb:
14850 Change some <= to =, to avoid new warning
14852 * a-exexda.adb, prj-proc.adb:
14853 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
14854 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
14856 2005-11-14 Robert Dewar <dewar@adacore.com>
14858 * exp_vfpt.adb: Handle /= case
14859 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
14860 so that we do not get duplicate scaling for fixed point conversions.
14862 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
14864 2005-11-14 Matthew Gingell <gingell@adacore.com>
14866 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
14867 Increase default priority on Lynx from 15 to 17, and meet the Ada
14868 requirement that Default_Priority be ((Priority'First +
14869 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
14871 2005-11-14 Vincent Celier <celier@adacore.com>
14873 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
14874 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
14875 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
14876 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
14877 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
14878 mlib-tgt-lynxos.adb (DLL_Prefix): New function
14880 2005-11-14 Doug Rupp <rupp@adacore.com>
14882 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
14885 2005-11-14 Arnaud Charlet <charlet@adacore.com>
14887 * s-traces-default.adb, s-trafor-default.ads,
14888 s-tratas-default.adb: Fix compilation errors.
14890 2005-11-14 Jose Ruiz <ruiz@adacore.com>
14892 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
14893 raising the exception so the memory used is freed.
14895 2005-11-14 Arnaud Charlet <charlet@adacore.com>
14897 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
14898 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
14899 (convert_address): Update comments and list of platforms using this.
14901 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
14904 2005-11-14 Pascal Obry <obry@adacore.com>
14905 Vincent Celier <celier@adacore.com>
14907 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
14910 * memroot.adb: Remove redundant with/use clause on
14911 System.Storage_Elements.
14913 2005-11-14 Arnaud Charlet <charlet@adacore.com>
14915 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
14916 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
14917 related code to a-exexpr.adb
14918 (Save_Occurrence_And_Private): Move GCC EH related code to
14920 (Raise_Current_Excep): Add new variable Id with pragma
14921 volatile, to ensure that the variable lives on stack.
14923 * a-exexpr-gcc.adb, raise-gcc.c: New file.
14925 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
14927 Move GCC EH related code to a-exexpr-gcc.adb
14929 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
14931 Split the Linux version of g-soccon into separate variants for 32 and 64
14933 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
14934 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
14935 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
14936 of host variable $(RANLIB_FLAGS).
14937 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
14938 Code clean up: remove unused/obsolete targets.
14939 (EH_MECHANISM): New variable introduced to differenciate between the
14940 two EH mechanisms statically.
14941 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
14942 (LIBGNAT_OBJS): Add raise-gcc.o
14943 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
14944 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
14945 supports VxWorks 6 RTPs.
14946 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
14947 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
14949 * raise.c: Move all GCC EH-related routines to raise-gcc.c
14951 2005-11-14 Jose Ruiz <ruiz@adacore.com>
14953 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
14954 deferral level, when abort is not allowed, to a later stage (the
14956 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
14957 it will not get changed by the generated code. It was previously done
14960 2005-11-14 Thomas Quinot <quinot@adacore.com>
14961 Olivier Hainque <hainque@adacore.com>
14962 Eric Botcazou <ebotcazou@adacore.com>
14965 Factor common code to build a storage type for an unconstrained object
14966 from a fat or thin pointer type and a constrained object type.
14967 (annotate_value): Handle BIT_AND_EXPR.
14968 (annotate_rep): Don't restrict the back annotation of inherited
14969 components to the type_annotate_only case.
14970 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
14971 we are not defining the type.
14972 <E_Record_Type>: Likewise.
14973 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
14974 to get advantage of the new maybe_stabilize_reference interface, to
14975 ensure that what we reference is indeed stabilized instead of relying
14976 on assumptions on what the stabilizer does.
14977 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
14978 type imported through a limited_with clause, use its non-limited view.
14979 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
14981 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
14982 of #if sections + explicit comparisons of convention identifiers.
14983 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
14984 before early-returning for certain types when code generation is
14986 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
14987 nullification of gnu_expr we do for objects with address clause and
14988 that we are not defining.
14989 (elaborate_expression_1): Do not create constants when creating
14990 variables needed by the debug info: the dwarf2 writer considers that
14991 CONST_DECLs is used only to represent enumeration constants, and emits
14993 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
14994 object with an address clause into an indirect reference, drop the
14995 initializing expression.
14997 (STACK_CHECK_BUILTIN): Delete.
14998 (STACK_CHECK_PROBE_INTERVAL): Likewise.
14999 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
15000 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
15001 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
15002 corresponding to the renamed object as ignored for debugging purposes.
15004 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
15005 related): For a prefix that is a dereference of a fat or thin pointer,
15006 if there is an actual subtype provided by the front-end, use that
15007 subtype to build an actual type with bounds template.
15008 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
15009 is provided by the front-end, use that subtype to compute the size of
15010 the deallocated object.
15011 (gnat_to_gnu): When adding a statement into an elaboration procedure,
15012 check for a potential violation of a No_Elaboration_Code restriction.
15013 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
15014 with extra arguments to control whether to recurse through non-values
15015 and to let the caller know if the stabilization has succeeded.
15016 (gnat_stabilize_reference): Now a simple wrapper around
15017 maybe_stabilize, for common uses without restriction on lvalues and
15018 without need to check for the success indication.
15019 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
15020 pass false instead of 0 as the FORCE argument which is a bool.
15021 (Identifier_to_gnu): Remove checks ensuring that an renamed object
15022 attached to a renaming pointer has been properly stabilized, as no such
15023 object is attached otherwise.
15024 (call_to_gnu): Invoke create_var_decl to create the temporary when the
15025 function uses the "target pointer" return mechanism.
15026 Reinstate conversion of the actual to the type of the formal
15027 parameter before any other specific treatment based on the passing
15028 mechanism. This turns out to be necessary in order for PLACEHOLDER
15029 substitution to work properly when the latter type is unconstrained.
15031 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
15033 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
15034 with extra arguments to control whether to recurse through non-values
15035 and to let the caller know if the stabilization has succeeded.
15037 * utils2.c (gnat_build_constructor): Only sort the fields for possible
15038 static output of record constructor if all the components are constant.
15039 (gnat_build_constructor): For a record type, sort the list of field
15040 initializers in increasing bit position order.
15041 Factor common code to build a storage type for an unconstrained object
15042 from a fat or thin pointer type and a constrained object type.
15043 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
15044 types variants, and process special cases of VIEW_CONVERT expressions
15045 as their NOP_EXPR counterpart to ensure we get to the
15046 CORRESPONDING_VARs associated with CONST_DECls.
15047 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
15048 on the right-hand side.
15050 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
15052 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
15053 are converting back to its original type.
15054 (convert) <JM input>: Fallthrough regular conversion code instead of
15055 extracting the object if converting to a type variant.
15056 (create_var_decl): When a variable has an initializer requiring code
15057 generation and we are at the top level, check for a potential violation
15058 of a No_Elaboration_Code restriction.
15059 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
15060 SIZE and SIZE_UNIT which we need for later back-annotations.
15061 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
15062 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
15063 is an unchecked union.
15064 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
15065 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
15066 main variant, just replace the VIEW_CONVERT_EXPR.
15067 <UNION_TYPE>: Revert 2005-03-02 change.
15069 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
15071 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
15073 2005-11-14 Matthew Heaney <heaney@adacore.com>
15075 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
15076 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
15077 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
15078 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
15079 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
15080 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
15081 Compiles against the spec for ordered maps described in sections
15082 A.18.6 of the most recent (August 2005) AI-302 draft.
15084 2005-11-14 Olivier Hainque <hainque@adacore.com>
15086 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
15087 to ensure bias adjustments take place when need be and to prevent
15088 occurrences of intermediate overflows.
15090 2005-11-14 Matthew Gingell <gingell@adacore.com>
15091 Olivier Hainque <hainque@adacore.com>
15093 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
15096 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
15097 tracebacks on ia64 HP-UX and provide explanatory comment.
15098 Enable backtraces on ia64 GNU/Linux.
15099 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
15100 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
15102 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
15103 Javier Miranda <miranda@adacore.com>
15105 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
15106 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
15107 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
15108 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
15110 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
15111 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
15114 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
15115 subprogram that generates the external name associated with a
15116 secondary dispatch table.
15117 (Get_Secondary_DT_External_Name): New subprogram that generates the
15118 external name associated with a secondary dispatch table.
15120 2005-11-14 Emmanuel Briot <briot@adacore.com>
15122 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
15123 line in the ALI file to include both an instantiation reference, and a
15126 2005-11-14 Vincent Celier <celier@adacore.com>
15128 * clean.adb (Check_Project): Look for Ada code in extending project,
15129 even if Ada is not specified as a language.
15130 Use new function DLL_Prefix for DLL_Name
15131 (Clean_Interface_Copy_Directory): New procedure
15132 (Clean_Library_Directory): New procedure
15133 (Clean_Directory): Remove procedure, no longer used
15134 (Clean_Project): Do not delete any file in an externally built project
15136 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
15137 directory of an extending project, even when there are no Ada source
15139 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
15140 (Set_Ada_Paths.Add.Recursive_Add): Ditto
15142 * mlib-prj.adb (Check_Library): For all library projects, get the
15143 library file timestamp.
15144 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
15145 (Build_Library): Use new function DLL_Prefix for the DLL_Name
15146 (Clean): Remove procedure, no longer used
15147 (Ultimate_Extension_Of): New function
15148 (Build_Library): When cleaning the library directory, only remove an
15149 existing library file and any ALI file of a source of the project.
15150 When cleaning the interface copy directory, remove any source that
15151 could be a source of the project.
15153 * prj.ads, prj.adb (Project_Empty): Add values of new components
15154 Library_TS and All_Imported_Projects.
15155 (Project_Empty): Add values for new components of Project_Data:
15156 Library_ALI_Dir and Display_Library_ALI_Dir
15158 * prj-attr.adb: New project level attribute name Library_ALI_Dir
15160 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
15161 attribute Library_ALI_Dir.
15162 (Check_Library_Attributes): The library directory cannot be the same as
15163 any source directory of the project tree.
15164 (Check_Stand_Alone_Library): The interface copy directory cannot be
15165 the same as any source directory of the project tree.
15167 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
15168 all temporary files.
15170 2005-11-14 Robert Dewar <dewar@adacore.com>
15171 Ed Schonberg <schonberg@adacore.com>
15173 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
15174 (Check_Elab_Call): A call within a protected body is never an
15175 elaboration call, and does not require checking.
15176 (Same_Elaboration_Scope): Take into account protected types for both
15178 (Activate_Elaborate_All_Desirable): New procedure
15180 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
15183 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
15184 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
15186 * lib-writ.ads, lib-writ.adb:
15187 Implement new AD/ED for Elaborate_All/Elaborate desirable
15188 Use new Elaborate_All_Desirable flag in N_With_Clause node
15190 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
15191 N_Free_Statement nodes.
15192 Define new class N_Subprogram_Instantiation
15193 Add Elaborate_Desirable flag to N_With_Clause node
15194 Add N_Delay_Statement (covering two kinds of delay)
15196 * debug.adb: Introduce d.f flag for compiler
15197 Add -da switch for binder
15199 2005-11-14 Ed Schonberg <schonberg@adacore.com>
15200 Cyrille Comar <comar@adacore.com>
15202 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
15203 for task component, in the case of a limited aggregate. The enclosed
15204 object declaration will create it earlier. Otherwise, in the case of a
15205 nested aggregate, the object may appear in the wrong scope.
15206 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
15207 (Gen_Assign): If the component being assigned is an array type and the
15208 expression is itself an aggregate, wrap the assignment in a block to
15209 force finalization actions on the temporary created for each row of the
15211 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
15212 structures are initialized after all discriminants are set so that
15213 they can be accessed even when their offset is dynamic.
15215 2005-11-14 Robert Dewar <dewar@adacore.com>
15216 Hristian Kirtchev <kirtchev@adacore.com>
15218 * sem_attr.adb: Implement Machine_Rounding attribute
15219 (Analyze_Access_Attribute): The access attribute may appear within an
15220 aggregate that has been expanded into a loop.
15221 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
15222 'Terminated whenever the prefix is of a task interface class-wide type.
15223 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
15224 the prefix is of a task interface class-wide type.
15226 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
15229 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
15230 Remove pragma Inline for [Unaligned_]Valid.
15231 Add comments that Valid routines do not work for Vax_Float
15233 * exp_attr.adb: Implement Machine_Rounding attribute
15235 * snames.h: Add entry for Machine_Rounding attribute
15237 2005-11-14 Javier Miranda <miranda@adacore.com>
15238 Robert Dewar <dewar@adacore.com>
15239 Hristian Kirtchev <kirtchev@adacore.com>
15241 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
15242 and related): For a prefix that is an explicit dereference of an
15243 access to unconstrained packed array type, annotate the dereference
15244 with an actual subtype so GIGI can make a correct size computation.
15245 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
15246 'Unrestricted_Access, if the designated type is an interface we
15247 add a type conversion to force the displacement of the pointer
15248 to the secondary dispatch table.
15249 Use Universal_Real instead of Long_Long_Float when we need a high
15250 precision float type for the generated code (prevents gratuitous
15251 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
15252 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
15253 'Terminated for task interface class-wide objects. Generate a call to
15254 the predefined dispatching routine used to retrieve the _task_id from
15255 a task corresponding record.
15256 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
15258 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
15259 (Check_Dispatching_Operation): Protect the frontend againts
15260 previously detected errors.
15262 * Makefile.rtl: Add new instantiations of system.fat_gen
15264 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
15265 Change name of instantiated package for better consistency
15266 with newly added system.fat_gen instantiations.
15268 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
15269 s-fvagfl.ads: New files.
15271 2005-11-14 Cyrille Comar <comar@adacore.com>
15272 Thomas Quinot <quinot@adacore.com>
15274 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
15275 assignment of a value of a tagged type that has been rewritten to a
15276 block statement, it is known by construction that no checks are
15277 necessary for the statements within the block: analyze it with checks
15279 (Expand_N_If_Statement): When killing a dead then-branch in an
15280 if-statement that has elsif_parts, recompute the Current_Value node
15281 for any entity whose value is known from the condition of the first
15283 (Expand_N_Return_Statement): When returning a mutable record, convert
15284 the return value into its actual subtype in order to help the backend
15285 to return the actual size instead of the maximum. This is another
15286 aftermath of not returning mutable records on the sec-stack anymore.
15288 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
15289 handling of error msg for suspicious reverse range iteration.
15290 (Check_Possible_Current_Value_Condition): Move declaration from body to
15291 spec, to allow this subprogram to be called from exp_ch5.
15293 2005-11-14 Thomas Quinot <quinot@adacore.com>
15295 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
15296 generate a set of nested array aggregates instead of a single flat
15297 aggregate for multi-dimensional arrays.
15299 2005-11-14 Pascal Obry <obry@adacore.com>
15301 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
15302 by spawnve is a process handle, no need to convert. Add a parameter
15303 close to control wether the process handle must be closed.
15304 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
15305 a process handle, not need to convert.
15306 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
15308 * g-expect.adb: (Kill): Document the new close parameter.
15309 (Close): Do not release the process handle in the kill there as
15310 waitpid() is using it.
15311 (Send_Signal): Release the process handle.
15313 2005-11-14 Robert Dewar <dewar@adacore.com>
15315 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
15316 need a high precision float type for the generated code (prevents
15317 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
15320 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
15321 need a high precision float type for the generated code (prevents
15322 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
15324 (Expand_Width_Attribute): In configurable run-time, the attribute is not
15325 allowed on non-static enumeration subtypes. Force a load error to emit
15326 the correct diagnostic.
15328 2005-11-14 Thomas Quinot <quinot@adacore.com>
15329 Robert Dewar <dewar@adacore.com>
15330 Ed Schonberg <schonberg@adacore.com>
15332 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
15333 subtype to compute the size of the designated object at run-time,
15334 create such a subtype and store it in the Actual_Designated_Subtype
15335 attribute of the N_Free_Statement.
15336 Generate itype for classwide designated object in both cases of
15337 user-specified storage pool: specific and class-wide, not only in the
15339 Raise CE when trying to set a not null access type object to null.
15340 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
15341 an explicit loop, because freeze nodes make its position variable.
15343 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
15346 2005-11-14 Javier Miranda <miranda@adacore.com>
15348 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
15349 Build_Stream_Procedure): Add the null-excluding attribute to the first
15351 This has no semantic meaning under Ada95 mode but it is a
15352 requirement under Ada05 mode.
15354 * par-ch3.adb (P_Access_Definition): Addition of warning message if
15355 the null exclusion is used under Ada95 mode
15356 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
15357 (P_Access_Definition): Remove assertion that forbids the use of
15358 the null-exclusion feature in Ada95.
15360 2005-11-14 Robert Dewar <dewar@adacore.com>
15362 * impunit.adb: Exclude container helper units not intended for use by
15365 2005-11-14 Ed Schonberg <schonberg@adacore.com>
15367 * freeze.adb (Freeze_Entity): For an access formal that is an access
15368 to subprogram, freeze the anonymous subprogram type at the same time,
15369 to prevent later freezing in the wrong scope, such as the enclosing
15371 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
15372 subprogram whenever available.
15374 2005-11-14 Arnaud Charlet <charlet@adacore.com>
15377 * gnatvsn.ads (Library_Version): Bump to 4.1
15379 2005-11-14 Robert Dewar <dewar@adacore.com>
15381 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
15382 Storage_Offset to avoid wrap around causing invalid results.
15384 2005-11-14 Pascal Obry <obry@adacore.com>
15386 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
15388 (Scan_Bind_Arg): Fail with an error message if -M option is used
15389 on a native compiler.
15391 2005-11-14 Robert Dewar <dewar@adacore.com>
15392 Vincent Celier <celier@adacore.com>
15394 * gprep.adb: Implement -C switch to scan comments
15396 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
15398 * scans.ads: Comment updates (including new use of Tok_Comment in
15401 * opt.ads: Add documentation for flags that are used by gprmake,
15402 currently and in the next version of gprmake.
15403 (Verbosity_Level): New variable
15404 Add Replace_In_Comments switch
15406 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
15408 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
15410 2005-11-14 Arnaud Charlet <charlet@adacore.com>
15412 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
15413 message, friendlier.
15415 2005-11-14 Robert Dewar <dewar@adacore.com>
15417 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
15419 2005-11-14 Doug Rupp <rupp@adacore.com>
15421 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
15423 2005-11-14 Robert Dewar <dewar@adacore.com>
15425 * interfac.ads: Change declarations of IEEE float types so that we no
15426 longer need a separate version of this package for VMS.
15428 2005-11-14 Ed Schonberg <schonberg@adacore.com>
15430 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
15431 internal entity created for the declaration of a child subprogram body
15432 with no spec as coming from source, to generate proper cross-reference
15435 2005-11-14 Vincent Celier <celier@adacore.com>
15437 * make.adb (Compile_Sources): Change verbose message to minimum
15438 verbosity level High for "is in an Ada library", "is a read-only
15439 library" and "is an internal library",
15440 (Create_Binder_Mapping_File): Path name of ALI file for library project
15441 must include the library directory, not the object directory.
15442 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
15443 for new switches -vl, -vm and -vh.
15444 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
15445 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
15446 (Compile_Sources): Do not attempt to compile if an ALI file is missing
15447 in a project that is externally built.
15448 (Compute_All_Imported_Projects): New procedure
15449 (Gnatmake): Check if importing libraries should be regenerated because
15450 at least an imported library is more recent.
15451 (Initialize): For each project compute the list of the projects it
15452 imports directly or indirectly.
15453 (Add_Library_Search_Dir): New procedure, used in place of
15454 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
15455 put in the search paths.
15456 (Add_Source_Search_Dir): New procedure, used in place of
15457 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
15458 put in the search paths.
15459 (Mark_Directory): Resolve the absolute path the directory before marking
15462 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
15463 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
15464 Switch. Do not handle any exception.
15465 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
15466 so that the switch is recognized as valid.
15467 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
15469 2005-11-14 GNAT Script <nobody@adacore.com>
15471 * Make-lang.in: Makefile automatically updated
15473 2005-11-14 Pascal Obry <obry@adacore.com>
15475 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
15477 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
15478 In both cases the last argument was dropped.
15480 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
15482 * namet.h: (Column_Numbe): New type.
15483 (Get_Column_Number): Define to sinput__get_column_number.
15484 (Instantiation): Define to sinput__instantiation.
15485 (Get_Column_Number): Declare.
15486 (Instantiation): Likewise.
15488 2005-11-14 Robert Dewar <dewar@adacore.com>
15490 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
15491 syntax, which could cause compiler hangs.
15493 2005-11-14 Vincent Celier <celier@adacore.com>
15495 * prj-ext.adb: Take into account new environment variable
15496 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
15498 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
15499 normalize its path name, making it absolute and resolving symbolic
15500 links, and replace the original if resolved path is different.
15502 2005-11-14 Vincent Celier <celier@adacore.com>
15504 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
15505 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
15507 2005-11-14 Emmanuel Briot <briot@adacore.com>
15509 * prj-pp.adb (Print): Do not output the with statement if the
15510 associated name is empty, which happens for virtual extending projects.
15511 (Print): Preserve the "extends all" attribute when printing the project.
15513 * prj-tree.ads (String_Value_Of): Add comment about returned value for
15514 a virtual extending project.
15516 2005-11-14 Ed Schonberg <schonberg@adacore.com>
15518 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
15519 rhs of an assignment even if the type is unconstrained, when the
15520 context is non-expanding.
15521 In an inlined body, if the context type is private,
15522 resolve with its full view, which must be a composite type.
15524 2005-11-14 Robert Dewar <dewar@adacore.com>
15525 Ed Schonberg <schonberg@adacore.com>
15527 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
15528 Do not give obsolescent warning on with of subprogram (since we
15530 (Analyze_With_Clause): Add test for obsolescent package
15531 (Install_Context_Clauses): If the unit is the body of a child unit, do
15532 not install twice the private declarations of the parents, to prevent
15533 circular lists of Use_Clauses in a parent.
15534 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
15535 compiling body of child unit.
15536 Use new class N_Subprogram_Instantiation
15537 (Expand_With_Clause): If this is a private with_clause for a child unit,
15538 appearing in the context of a package declaration, then the implicit
15539 with_clauses generated for parent units are private as well.
15540 (License_Check): Do not generate message if with'ed unit is internal
15542 2005-11-14 Gary Dismukes <dismukes@adacore.com>
15543 Ed Schonberg <schonberg@adacore.com>
15544 Thomas Quinot <quinot@adacore.com>
15546 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
15547 names are internal, because they will not have a corresponding partner
15548 in the actual package.
15549 (Analyze_Formal_Package): Move the setting of the formal package spec's
15550 Generic_Parent field so that it occurs prior to analyzing the package,
15551 to allow proper operation of Install_Parent_Private_Declarations.
15552 (Analyze_Package_Instantiation): Set the instantiated package entity's
15553 Package_Instantiation field.
15554 (Get_Package_Instantiation_Node): Move declaration to package spec.
15555 Retrieve the N_Package_Instantiation node when the Package_Instantiation
15557 (Check_Generic_Child_Unit): Within an inlined call, the only possible
15558 instantiation is Unchecked_Conversion, for which no parents are needed.
15559 (Inline_Instance_Body): Deinstall and record the use_clauses for all
15560 parent scopes of a scope being removed prior to inlining an instance
15562 (Analyze_Package_Instantiation): Do not perform front-end inlining when
15563 the current context is itself an instance within a non-instance child
15564 unit, to prevent scope stack errors.
15565 (Save_References): If the node is an aggregate that is an actual in a
15566 call, rewrite as a qualified expression to preserve some type
15567 information, to resolve possible ambiguities in the instance.
15568 (Instance_Parent_Unit): New global variable to record the ultimate
15569 parent unit associated with a generic child unit instance (associated
15570 with the existing Parent_Unit_Visible flag).
15571 (type Instance_Env): New component Instance_Parent_Unit for stacking
15572 parents recorded in the global Instance_Parent_Unit.
15573 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
15575 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
15576 it's not a top-level unit, and only do this if Instance_Parent_Unit is
15577 not already set. Replace test of Is_Child_Unit with test of parent's
15578 scope against package Standard. Add comments and a ??? comment.
15579 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
15580 on a child instance parent to test that the parent equals
15581 Instance_Parent rather than simply checking that the unit is not a
15583 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
15584 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
15585 a formal interface are ancestors of the corresponding actual.
15586 (Validate_Formal_Interface_Type): Additional legality checks.
15587 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
15588 interface types with ancestors.
15589 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
15590 to diagnose attempts to use generic within its own declaration.
15592 2005-11-14 Ed Schonberg <schonberg@adacore.com>
15593 Javier Miranda <miranda@adacore.com>
15595 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
15597 (Build_Private_Derived_Type): The entity of the created full view of the
15598 derived type does not come from source. If after installing the private
15599 declarations of the parent scope the parent is still private, use its
15600 full view to construct the full declaration of the derived type.
15601 (Build_Derived_Record_Type): Relax the condition that controls the
15602 execution of the check that verifies that the partial view and
15603 the full view agree in the set of implemented interfaces. In
15604 addition, this test now only takes into account the progenitors.
15605 (Derive_Interface_Subprograms): No need to derive subprograms
15606 of ancestors that are interfaces.
15607 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
15609 Change name Is_Package to Is_Package_Or_Generic_Package
15610 (Complete_Subprograms_Derivation): Handle the case in which the full
15611 view is a transitive derivation of the ancestor of the partial view.
15612 (Process_Full_View): Rename local subprogram Find_Interface_In_
15613 Descendant to Find_Ancestor_Interface to leave the code more clear.
15614 Remove wrong code that avoids the generation of an error message
15615 when the immediate ancestor of the partial view is an interface.
15616 In addition some minor reorganization of the code has been done to
15617 leave it more clear.
15618 (Analyze_Type_Declaration): If type has previous incomplete tagged
15619 partial view, inherit properly its primitive operations.
15620 (Collect_Interfaces): Make public, for analysis of formal
15622 (Analyze_Interface_Declaration): New procedure for use for regular and
15623 formal interface declarations.
15624 (Build_Derived_Record_Type): Add support for private types to the code
15625 that checks if a tagged type implements abstract interfaces.
15626 (Check_Aliased_Component_Type): The test applies in the spec of an
15628 (Access_Type_Declaration): Clean up declaration of malformed type
15629 declared as an access to its own classwide type, to prevent cascaded
15631 (Collect_Interfaces): For private extensions and for derived task types
15632 and derived protected types, the parent may be an interface that must
15633 be included in the interface list.
15634 (Access_Definition): If the designated type is an interface that may
15635 contain tasks, create Master_Id for it before analyzing the expression
15636 of the declaration, which may be an allocator.
15637 (Record_Type_Declaration): Set properly the interface kind, for use
15638 in allocators, the creation of master id's for task interfaces, etc.
15640 2005-11-14 Javier Miranda <miranda@adacore.com>
15641 Ed Schonberg <schonberg@adacore.com>
15643 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
15644 omitted in case of stream attribute subprograms.
15645 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
15646 appear immediately after a subprogram body, when there is no previous
15647 subprogram declaration.
15648 Change name Is_Package to Is_Package_Or_Generic_Package
15649 (Process_Formals): A non null qualifier on a non null named access
15650 type is not an error, and is a warning only if Redundant_Constructs
15653 2005-11-14 Gary Dismukes <dismukes@adacore.com>
15654 Ed Schonberg <schonberg@adacore.com>
15656 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
15657 nested within Analyze_Package_Specification to install the private
15658 declarations and use clauses within each of the parent units of a
15659 package instance of a generic child package.
15660 (Analyze_Package_Specification): When entering a private part of a
15661 package associated with a generic instance or formal package, the
15662 private declarations of the parent must be installed (by calling new
15663 procedure Install_Parent_Private_Declarations).
15664 Change name Is_Package to Is_Package_Or_Generic_Package
15665 (Preserve_Full_Attributes): For a synchronized type, the corresponding
15666 record is absent in a generic context, which does not indicate a
15669 2005-11-14 Ed Schonberg <schonberg@adacore.com>
15671 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
15672 not try to rewrite a renamed stream attribute, because the operations
15673 on the type may not have been generated.
15674 Handle properly a renaming_as_body generated for a stream operation
15675 whose default is abstract because the object type itself is abstract.
15676 (Find_Type): If the type is incomplete and appears as the prefix of a
15677 'Class reference, it is tagged, and its list of primitive operations
15678 must be initialized properly.
15679 (Chain_Use_Clauses): When chaining the use clauses that appear in the
15680 private declaration of a parent unit, prior to compiling the private
15681 part of a child unit, find on the scope stack the proper parent entity
15682 on which to link the use clause.
15683 (Note_Redundant_Use): Emit a warning when a redundant use clause is
15685 (Analyze_Object_Renaming): An attribute reference is not a legal object
15686 if it is not a function call.
15688 2005-11-14 Robert Dewar <dewar@adacore.com>
15689 Ed Schonberg <schonberg@adacore.com>
15691 * sem_eval.adb: Implement d.f flag
15692 (Subtype_Statically_Match): A generic actual type has unknown
15693 discriminants when the corresponding actual has a similar partial view.
15694 If the routine is called to validate the signature of an inherited
15695 operation in a child instance, the generic actual matches the full view,
15697 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
15698 Ed Schonberg <schonberg@adacore.com>
15699 Robert Dewar <dewar@adacore.com>
15700 Thomas Quinot <quinot@adacore.com>
15702 * sem_res.adb (Resolve_Call): Provide a better error message whenever
15703 a procedure call is used as a select statement trigger and is not an
15704 entry renaming or a primitive of a limited interface.
15705 (Valid_Conversion): If the operand has a single interpretation do not
15706 remove address operations.
15707 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
15708 statement to inhibit warning.
15709 (Resolve_Unary_Op): Do not produce a warning when
15710 processing an expression of the form -(A mod B)
15711 Use Universal_Real instead of Long_Long_Float when we need a high
15712 precision float type for the generated code (prevents gratuitous
15713 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
15714 (Resolve_Concatenation_Arg): Improve error message when argument is an
15715 ambiguous call to a function that returns an array.
15716 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
15717 there is an implicit operator in the given scope if we are within an
15718 instance: legality check has been performed on the generic.
15719 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
15720 after resolving operand, to avoid false warnings on overloaded calls.
15722 2005-11-14 Ed Schonberg <schonberg@adacore.com>
15723 Javier Miranda <miranda@adacore.com>
15726 * sem_type.adb (Covers): In an inlined body, a composite type matches
15727 a private type whose full view is a composite type.
15728 (Interface_Present_In_Ancestor): Protect the frontend against
15729 previously detected errors to ensure that its compilation
15730 with assertions enabled gives the same output that its
15731 compilation without assertions.
15732 (Interface_Present_In_Ancestor): Add support for private types.
15733 Change name In_Actual to In_Generic_Actual (clean up)
15734 (Disambiguate): New predicate In_Actual, to recognize expressions that
15735 appear in the renaming declaration generated for generic actuals, and
15736 which must be resolved in the outer context.
15738 2005-11-14 Robert Dewar <dewar@adacore.com>
15739 Thomas Quinot <quinot@adacore.com>
15740 Hristian Kirtchev <kirtchev@adacore.com>
15741 Ed Schonberg <schonberg@adacore.com>
15743 * sem_util.ads, sem_util.adb: Change name Is_Package to
15744 Is_Package_Or_Generic_Package.
15745 (Check_Obsolescent): New procedure.
15746 (Set_Is_Public): Remove obsolete junk test.
15747 (Set_Public_Status): Do not set Is_Public on an object whose declaration
15748 occurs within a handled_sequence_of_statemets.
15749 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
15750 for a parameterless procedure.
15751 (Enter_Name): Recognize renaming declarations created for private
15752 component of a protected type within protected operations, so that
15753 the source name of the component can be used in the debugger.
15755 2005-11-14 Ed Schonberg <schonberg@adacore.com>
15756 Robert Dewar <dewar@adacore.com>
15758 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
15759 of a generic subprogram are not visible outside the body.
15760 (Set_Warning_Switch): New procedure (code to set warning mode moved
15761 here from Switch.C so that it can be shared by pragma processing.
15762 (Check_References): Special case warning for non-modified non-imported
15764 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
15765 form with a string literal argument
15767 2005-11-14 Javier Miranda <miranda@adacore.com>
15769 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
15771 (Write): Addition of "not null" to the anonymous access.
15772 (Read): Addition of "not null" to the anonymous access.
15773 (Write): Addition of "not null" to the anonymous access.
15775 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
15776 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
15777 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
15778 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
15779 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
15780 "not null" to the anonymous access.
15782 2005-11-14 Robert Dewar <dewar@adacore.com>
15784 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
15787 2005-11-14 Vincent Celier <celier@adacore.com>
15789 * switch.adb (Bad_Switch): New procedure
15790 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
15791 message when in error.
15793 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
15794 Too_Many_Output_Files): Remove declarations, no longer used.
15795 (Scan_Nat): New parameter Switch
15797 (Bad_Switch): New procedure
15799 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
15800 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
15801 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
15802 to Osint.Fail. Do not handle any exception.
15804 2005-11-14 Vincent Celier <celier@adacore.com>
15806 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
15807 designates a non existent directory.
15809 2005-11-14 Robert Dewar <dewar@adacore.com>
15811 * xgnatugn.adb: Replace invalid membership test by 'Valid
15813 2005-11-14 Vincent Celier <celier@adacore.com>
15815 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
15816 there is no object directory.
15818 2005-11-14 Robert Dewar <dewar@adacore.com>
15820 * usage.adb: Minor adjustment to output format, use nn instead of nnn
15821 (so that -gnateInnn does not run into next column)
15823 2005-11-14 Ed Falis <falis@adacore.com>
15825 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
15828 2005-11-14 Cyrille Comar <comar@adacore.com>
15830 * s-chepoo.ads: Add comments on Dereference.
15831 Remove unnecessary inherited abstract primitives.
15834 2005-11-14 Robert Dewar <dewar@adacore.com>
15836 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
15837 node parameter, not needed, since it is available as Declaration_Node.
15839 2005-11-14 Geert Bosch <bosch@adacore.com>
15841 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
15842 grammatically correct.
15844 2005-11-14 Vincent Celier <celier@adacore.com>
15846 * s-fileio.ads: Correct spelling error in comment
15848 2005-11-14 Cyrille Comar <comar@adacore.com>
15849 Robert Dewar <dewar@adacore.com>
15850 Vincent Celier <celier@adacore.com>
15851 Ben Brosgol <brosgol@adacore.com>
15852 Jose Ruiz <ruiz@adacore.com>
15853 Pascal Obry <obry@adacore.com>
15856 Document that -fstack-check is needed for strict compliance with the
15857 Ada 95 Reference Manual.
15858 Correct reference to VAX systems to meet HP guidelines
15859 Add documentation for new gnatmake switches -vl, -vm and -vh
15860 Replace DEC Ada by HP Ada
15861 Replace DIGITAL by HP
15862 Remove empty section on tools in compatibility section
15863 Clarify the Windows convention semantics.
15864 Document the Win32 calling convention.
15865 The Stdcall, Win32 and DLL convention are synonyms.
15866 Add a note in -gnatR description about zero size record components
15867 Note on new >= and <= warnings for -gnatwc
15868 Document that equal sign after -gnatm is optional.
15869 Note that strip is working fine on DLL built with a Library
15870 Project. The restriction apply only to DLL built with gnatdll.
15871 Update section about the way to debug a DLL.
15872 Update information about the DLL convention.
15873 Document -C switch for gnatprep
15874 Document new attribute Library_ALI_Dir
15875 Update elaboration doc to include implicit Elaborate pragmas now
15876 generated for subprogram instantiations.
15877 Document limitation on executable names that include spaces for --GCC,
15878 --GNATBIND, and --GNATLINK switches.
15879 Document that -w causes -gnatws to be added at start of gcc switches
15881 * gnat_rm.texi: Document that -mieee is needed for generating infinite
15882 and NaN values in case of overflow on machines that are not fully
15883 compliant with the IEEE floating-point standard.
15884 Create a section describing the set of compiler options needed for
15885 strict compliance with the Ada 95 Reference Manual.
15886 Add documentation for pragma Obsolescent applied to a package
15887 Clarify potential issues of mixed language programs related to the
15888 I/O buffering enabling in the elaboration of the GNAT runtime.
15889 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
15890 This documentation only patch adds extra documentsion for pragma
15891 Restrictions (No_Elaboration_Code), explaining why it is not possible
15892 to document this restriction in terms of allowed source constructs.
15893 Document string literal form of pragma Warnings
15894 Document new attribute Library_ALI_Dir
15895 Add documentation on stable attributes in project files that was missing
15897 * gnat-style.texi: Indicate that paragraphs within a single comment
15898 should be separated by empty comment lines
15900 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
15903 * bindusg.adb: Minor cleanup, put -m before -M for consistency
15905 2005-11-14 Robert Dewar <dewar@adacore.com>
15907 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
15908 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
15909 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
15910 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
15911 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
15912 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
15913 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
15914 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
15915 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
15916 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
15917 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
15918 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
15919 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
15920 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
15921 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
15922 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
15923 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
15924 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
15925 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
15926 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
15927 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
15928 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
15929 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
15930 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
15931 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
15932 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
15933 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
15934 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
15935 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
15936 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
15937 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
15938 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
15939 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
15940 system-interix.ads, system-solaris-sparc.ads,
15941 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
15942 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
15943 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
15944 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
15945 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
15946 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
15947 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
15948 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
15949 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
15950 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
15951 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
15952 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
15953 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
15954 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
15955 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
15956 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
15957 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
15958 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
15959 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
15960 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
15961 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
15962 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
15963 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
15964 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
15965 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
15966 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
15967 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
15968 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
15969 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
15970 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
15971 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
15972 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
15973 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
15974 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
15975 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
15976 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
15977 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
15978 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
15979 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
15980 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
15981 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
15982 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
15983 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
15984 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
15985 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
15986 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
15987 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
15988 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
15989 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
15990 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
15991 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
15992 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
15993 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
15994 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
15995 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
15996 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
15997 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
15998 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
15999 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
16000 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
16001 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
16002 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
16003 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
16004 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
16005 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
16006 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
16007 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
16008 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
16009 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
16010 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
16011 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
16012 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
16013 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
16014 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
16015 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
16016 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
16017 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
16018 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
16019 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
16020 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
16021 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
16022 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
16023 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
16024 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
16025 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
16026 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
16027 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
16028 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
16029 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
16030 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
16031 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
16032 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
16033 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
16034 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
16035 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
16036 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
16037 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
16038 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
16039 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
16040 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
16041 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
16042 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
16043 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
16044 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
16045 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
16046 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
16047 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
16048 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
16049 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
16050 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
16051 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
16052 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
16053 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
16054 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
16055 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
16056 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
16057 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
16058 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
16059 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
16060 a-numaux-darwin.ads, a-numaux-darwin.adb,
16061 a-swuwha.ads, a-stunha.ads: Minor reformatting
16063 2005-11-14 Robert Dewar <dewar@adacore.com>
16066 * osint-m.adb: Add pragma Elaborate_All for Osint
16068 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
16071 * trans.c (call_to_gnu): Restore statement lost in translation.
16073 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
16075 * init.c: Use the Linux-specific section for the IA-64/Linux target.
16076 (__gnat_adjust_context_for_raise): Add conditional code so that the
16077 IA-64 is also supported.
16079 2005-11-03 James E Wilson <wilson@specifix.com>
16082 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
16083 TREE_OVERFLOW check.
16085 2005-09-21 Olivier Hainque <hainque@adacore.com>
16088 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
16089 as we create them to store a size in bits.
16091 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
16099 * utils2.c (build_return_expr): New helper function.
16100 * gigi.h (build_return_expr): Declare it.
16101 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
16102 of manually building the RETURN_EXPR tree.
16103 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
16104 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
16105 build_binary_op for the "target pointer" case. Use build_return_expr
16106 instead of manually building the RETURN_EXPR tree.
16108 2005-09-16 Laurent GUERBY <laurent@guerby.net>
16111 * s-tpinop.ads: Make this unit Preelaborate.
16113 2005-09-16 Andreas Jaeger <aj@suse.de>
16115 * socket.c: Add string.h for memcpy.
16117 2005-09-05 Arnaud Charlet <charlet@adacore.com>
16119 * dec-io.ads, dec-io.adb: Removed, no longer used.
16121 2005-09-01 Arnaud Charlet <charlet@adacore.com>
16123 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
16125 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
16126 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
16127 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
16128 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
16129 dependent units are Preelaborate.
16130 (Initialize): Call Interrupt_Managemeent.Initialize and
16131 OS_Primitives.Initialize to ensure proper initialization of this unit.
16132 Remove use of System.Soft_Links
16133 Make this unit Preelaborate.
16135 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
16136 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
16137 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
16138 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
16139 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
16140 s-tratas.ads, s-tasinf.ads: Minor reformatting.
16141 Add pragma Preelaborate, since these packages are suitable for this
16145 * s-traent-vms.ads, s-intman-dummy.adb,
16146 s-taprop-dummy.adb: Make this unit Preelaborate.
16148 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
16149 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
16150 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
16151 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
16152 s-intman-solaris.adb, s-intman-irix-athread.adb,
16153 s-intman-irix.adb: Mark this unit Preelaborate.
16154 (Initialize): New procedure.
16157 * s-taspri-linux.ads: Removed.
16159 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
16160 as done by other implementations (e.g. posix).
16162 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
16163 responsible for deferring abort.
16164 Mark this unit Preelaborate.
16166 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
16167 proper initialization of the tasking run-time.
16169 * s-tasdeb.ads: Mark this unit Preelaborate.
16170 (Known_Tasks): Add explicit default value to avoid elaboration code.
16172 * s-inmaop-vms.adb (Elaboration code): Add call to
16173 Interrupt_Management.Initialize since the elaboration code depends on
16174 proper initialization of this package.
16176 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
16177 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
16178 s-osprim-posix.adb: Make this unit Preelaborate.
16180 * a-calend.adb: Add call to OS_Primitives.Initialize
16182 * a-elchha.adb: Update use of Except.Id.Full_Name.
16183 Minor reformatting.
16184 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
16186 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
16187 Move with clauses outside Warnings Off now that dependent units are
16189 Use raise xxx with "..."; Ada 2005 form.
16191 * a-taside.ads, a-taside.adb:
16192 Remove some dependencies, to make it easier to make this unit truly
16194 Rewrite some code to be conformant with Preelaborate rules.
16196 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
16197 marked Preelaborate in the future.
16199 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
16200 these units Preelaborate.
16202 * s-exctab.adb: Update use of Except.Id.Full_Name.
16204 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
16205 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
16206 Set_Exc_Stack_Addr): Removed, no longer used.
16207 Remove reference to *Machine_State_Addr*, no longer needed.
16209 * s-stalib.ads: Mark this unit as Preelaborate[_05].
16210 (Exception_Data): Full_Name is now a System.Address so that this unit
16211 can be made Preelaborate.
16212 Clean up/simplify code thanks to Full_Name being a System.Address.
16213 Remove obsolete pragma Suppress (All_Checks), no longer needed.
16215 * s-taskin.ads, s-taskin.adb:
16216 Move with clauses outside Warnings Off now that dependent units are
16218 Make this unit Preelaborate.
16219 (Initialize): New proceduure, replace elaboration code and makes the
16220 set up of the tasking run-time cleaner.
16221 (Detect_Blocking): Now a function instead of a deferred boolean, to
16222 obey Preelaborate rules.
16224 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
16225 soft links, no longer used.
16227 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
16228 packages are suitable for this categorization.
16230 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
16231 since we compile run-time sources in Ada 2005 mode.
16232 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
16233 avoid having s-taprop*.adb depend on s-soflin and to avoid code
16235 Remove reference to *Machine_State_Addr*, no longer needed.
16237 2005-09-01 Arnaud Charlet <charlet@adacore.com>
16239 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
16240 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
16241 Remove reference to System.Exceptions.
16243 * s-mastop-x86.adb: Removed, no longer used.
16245 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
16247 * a-excach.adb: Minor reformatting.
16249 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
16250 instead fix new warnings that were hidden by this change.
16251 (AAA, ZZZ): Removed, replaced by...
16252 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
16253 are used instead of constants, to help make Ada.Exception truly
16255 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
16256 Raise_Storage_Error): File is now a System.Address, to simplify code.
16257 (Elab code): Removed, no longer used.
16258 (Null_Occurrence): Remove Warnings Off and make this construct
16260 Remove code related to front-end zero cost exception handling, since
16261 it is no longer used.
16262 Remove -gnatL/-gnatZ switches.
16264 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
16265 Update use of Except.Msg.
16267 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
16268 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
16269 to front-end zero cost exception handling, since it is no longer used.
16270 Remove -gnatL/-gnatZ switches.
16272 * lib-writ.ads: Minor reformatting
16275 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
16277 * Make-lang.in: Remove references to s-except.ads
16279 * s-except.ads: Removed, no longer used.
16281 * s-mastop.ads, s-mastop.adb:
16282 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
16283 Remove reference to System.Exceptions.
16285 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
16286 switch-b.adb: Remove code related to front-end zero cost exception
16287 handling, since it is no longer used.
16288 Remove -gnatL/-gnatZ switches.
16290 2005-09-01 Robert Dewar <dewar@adacore.com>
16291 Gary Dismukes <dismukes@adacore.com>
16292 Javier Miranda <miranda@adacore.com>
16294 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
16295 type by valid test and generate warning.
16296 (Tagged_Membership): Generate call to the run-time
16297 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
16298 Change formal name Subtype_Mark to Result_Definition in several calls to
16299 Make_Function_Specification.
16300 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
16301 check for proper accessibility of the operand of a class-wide allocator.
16302 The check can be left out if checks are suppressed or if the expression
16303 has a specific tagged type whose level is known to be safe.
16305 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
16306 generates the run-time check associated with null-excluding entities.
16307 (Expand_N_Return_Statement): Add tests to determine if the accessibility
16308 check on the level of the return expression of a class-wide function
16309 can be elided. The check usually isn't needed if the expression has a
16310 specific type (unless it's a conversion or a formal parameter). Also
16311 add a test for whether accessibility checks are suppressed. Augment
16312 the comments to describe the conditions for performing the check.
16314 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
16315 Javier Miranda <miranda@adacore.com>
16316 Gary Dismukes <dismukes@adacore.com>
16317 Ed Schonberg <schonberg@adacore.com>
16319 * a-tags.adb (IW_Membership): Give support to
16320 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
16321 subprogram has been extended to look for the tag in the ancestors tag
16323 Update the structure of the GNAT Dispatch Table to reflect the
16324 additional two tables used in dispatching selects.
16325 Introduce appropriate array types and record components in
16326 Type_Specific_Data to reflect the two tables.
16327 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
16328 the TSD of a tag, indexed by position.
16329 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
16330 operation kind in the TSD of a tag, indexed by position.
16332 * a-tags.ads: Introduce an enumeration type to capture different
16333 primitive operation kinds. Define a constant reflecting the number of
16334 predefined primitive operations.
16335 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
16336 of an entry wrapper.
16337 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
16338 callable entity of a primitive operation.
16340 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
16341 primitive operations used in dispatching selects for limited
16342 interfaces, limited tagged, task and protected types what implement a
16344 (Freeze_Type): Generate the bodies of the primitive operations used in
16345 dispatching selects for limited tagged, task and protected types that
16346 implement a limited interface. Generate statements to populate the two
16347 auxiliary tables used for dispatching in select statements.
16348 (Freeze_Record_Type): Add call to initialize the dispatch table entries
16349 associated with predefined interface primitive operations.
16350 (Build_Dcheck_Function): Change Set_Subtype_Mark to
16351 Set_Result_Definition.
16352 (Build_Variant_Record_Equality): Change Subtype_Mark to
16354 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
16355 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
16356 (Build_Assignment): Simplify the code that adds the run-time-check.
16357 (Expand_N_Object_Declaration): Code cleanup.
16359 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
16360 entries when there is a protected type that implements a limited
16363 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
16364 common routines used in expansion of dispatching selects.
16365 (Add_Private_Declarations): Select the appropriate protection type when
16366 there is a protected type that implements a limited interface.
16367 (Build_Parameter_Block): Generate a wrapped parameter block.
16368 (Build_Protected_Subprogram_Body): Select the appropriate type for
16369 locking entries when there is a protected type that implements a
16371 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
16372 classified as entry wrappers.
16373 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
16374 asynchronous selects.
16375 (Expand_N_Conditional_Entry_Call): Add support for expansion of
16376 dispatching conditional selects.
16377 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
16378 protection when there is a protected type that implements limited
16380 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
16382 (Extract_Dispatching_Call): Extract the entity of the name of a
16383 dispatching call, the object parameter, actual parameters and
16384 corresponding formals.
16385 (Make_Initialize_Protection): Correct logic of protection initialization
16386 when there is a protected type that implements a limited interface.
16387 (Parameter_Block_Pack): Populate a wrapped parameter block with the
16388 values of actual parameters.
16389 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
16390 block and assign them to the original actual parameters.
16392 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
16393 (Build_Protected_Sub_Specification): Change the type and name of the
16394 last formal to account for the increased variety of protection modes.
16396 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
16397 entities. Used to save the value of the Is_Hidden attribute when the
16398 limited-view is installed.
16399 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
16400 the attribute of procedures classified as entry wrappers.
16401 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
16402 entity of a primitive wrapper.
16403 (Write_Entity_Flags): Output the name and value of the
16404 Is_Primitive_Wrapper attribute.
16405 (Write_Field27_Name): Output the name and entity of the field Wrapped_
16407 (Underlying_Type): If we have an incomplete entity that comes from
16408 the limited view then we return the Underlying_Type of its non-limited
16409 view if it is already available.
16410 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
16411 including operators.
16412 (Write_Field26_Name): Add entry for Overridden_Operation
16413 (Overridden_Operation): New attribute of functions and procedures.
16415 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
16416 predefined position in the dispatch table for the primitive operations
16417 used in dispatching selects.
16418 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
16419 predefined primitive operations and replace it with
16420 Default_Prim_Op_Count.
16421 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
16422 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
16423 the names of the generated primitive operations used in dispatching
16425 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
16426 case of abstract interface types. They will be inherit by the objects
16427 implementing the interface.
16428 (Make_DT): There is no need to inherit the dispatch table of the
16429 ancestor interface for the elaboration of abstract interface types.
16430 The dispatch table will be inherited by the object implementing the
16432 (Copy_Secondary_DTs): Add documentation.
16433 (Validate_Position): Improve this static check in case of
16434 aliased subprograms because aliased subprograms must have
16436 (Init_Predefined_Interface_Primitives): New subprogram that initializes
16437 the entries associated with predefined primitives of all the secondary
16439 (Build_Anonymous_Access_Type): Removed.
16440 (Expand_Interface_Actuals): With the previous cleanup there is no need
16441 to build an anonymous access type. This allows further cleanup in the
16442 code generated by the expander.
16443 (Expand_Interface_Conversion): If the actual is an access type then
16444 build an internal function to handle the displacement. If the actual
16445 is null this function returns null because no displacement is
16446 required; otherwise performs a type conversion that will be
16447 expanded in the code that returns the value of the displaced actual.
16448 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
16449 conversions that have no effect in the generated code because no
16450 displacement is required. Code cleanup; use local variables to
16451 avoid repeated calls to the subprogram directly_designated_type().
16453 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
16454 Classify the primitive operations used in dispatching selects as
16456 (Implements_Limited_Interface): Determine whether some type either
16457 directly implements a limited interface or extends a type that
16458 implements a limited interface.
16459 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
16460 (Expand_Subtype_From_Expr): Do not build actual subtype if the
16461 expression is limited.
16462 (Find_Interface_Tag): Add code to handle class-wide types and
16463 entities from the limited-view.
16465 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
16466 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
16467 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
16468 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
16471 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
16472 of procedure name or prefix that appears as a trigger in a triggering
16475 * uintp.ads: Introduce constants Uint_11 and Uint_13.
16477 2005-09-01 Arnaud Charlet <charlet@adacore.com>
16479 * s-tataat.adb, a-tasatt.adb:
16480 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
16482 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
16483 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
16484 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
16487 2005-09-01 Arnaud Charlet <charlet@adacore.com>
16488 Jose Ruiz <ruiz@adacore.com>
16490 * s-taprop-vxworks.adb:
16491 Move with clauses outside Warnings Off now that dependent units are
16493 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
16494 initialization of this unit.
16495 (Specific): Add new procedures Initialize and Delete so that this
16496 package can be used for VxWorks 5.x and 6.x
16497 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
16498 differences between VxWorks 5.x and 6.x
16499 Minor reformatting.
16500 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
16502 Use only Preelaborate-compatible constructs.
16504 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
16505 Primitives.Operations.
16506 (Delete, Initialize): New procedures.
16508 * s-osinte-vxworks.adb: Body used to handle differences between
16509 VxWorks 5.x and 6.x
16510 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
16512 * s-osinte-vxworks.ads: Minor reformatting.
16513 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
16514 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
16516 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
16517 between Vxworks 5 and 6.
16518 (taskLock, taskUnlock): Removeed, no longer used.
16520 * adaint.c: The wait.h header is not located in the sys directory on
16521 VxWorks when using RTPs.
16522 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
16524 (__gnat_dup): dup is available on Vxworks when using RTPs.
16525 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
16527 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
16529 * expect.c: The wait.h header is not located in the sys directory on
16530 VxWorks when using RTPs.
16532 2005-09-01 Thomas Quinot <quinot@adacore.com>
16534 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
16536 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
16538 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
16539 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
16540 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
16541 g-soccon-freebsd.ads: Add new constants:
16543 SO_RCVTIMEO/SO_SNDTIMEO
16547 Move all target-specific file inclusions and macro definitions to
16548 gsocket.h, in order to ensure that any C code in socket.c will see a
16549 set of constants that is consistent with the contents of g-soccon.ads.
16551 * gsocket.h: Code imported from gen-soccon.c:
16552 Move all target-specific file inclusions and macro definitions to
16553 gsocket.h, in order to ensure that any C code in socket.c will see a set
16554 of constants that is consistent with the contents of g-soccon.ads.
16555 This change also makes gen-soccon self-contained (removing dependencies
16556 upon GCC internal headers).
16558 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
16560 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
16562 * socket.c: Minor reformatting.
16564 2005-09-01 Ed Schonberg <schonberg@adacore.com>
16565 Thomas Quinot <quinot@adacore.com>
16567 * fname-sf.adb, mlib-tgt.ads,
16568 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
16569 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
16570 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
16571 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
16572 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
16573 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
16574 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
16575 makegpr.adb: Remove redundant use_clauses.
16577 2005-09-01 Arnaud Charlet <charlet@adacore.com>
16579 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
16580 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
16581 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
16582 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
16583 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
16584 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
16585 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
16586 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
16587 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
16588 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
16589 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
16590 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
16591 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
16592 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
16593 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
16594 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
16595 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
16596 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
16597 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
16598 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
16599 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
16600 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
16601 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
16602 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
16603 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
16604 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
16605 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
16606 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
16607 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
16608 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
16609 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
16610 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
16611 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
16612 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
16613 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
16614 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
16615 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
16616 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
16617 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
16618 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
16619 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
16620 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
16621 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
16622 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
16623 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
16624 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
16625 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
16626 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
16627 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
16628 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
16629 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
16630 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
16631 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
16632 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
16633 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
16634 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
16635 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
16636 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
16637 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
16638 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
16639 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
16640 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
16641 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
16642 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
16643 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
16644 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
16645 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
16646 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
16647 and always use the no parameter form for consistency.
16649 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
16651 2005-09-01 Robert Dewar <dewar@adacore.com>
16653 * binde.adb: Minor reformatting
16654 (Find_Elab_Order): Output warning if -p used with static elab order
16656 2005-09-01 Robert Dewar <dewar@adacore.com>
16658 * checks.adb (Check_Needed): New procedure, deals with removing checks
16659 based on analysis of short-circuited forms. Also generates warnings for
16660 improper use of non-short-circuited forms.
16663 2005-09-01 Robert Dewar <dewar@adacore.com>
16665 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
16668 2005-09-01 Robert Dewar <dewar@adacore.com>
16670 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
16672 Implement new insertion char < (conditional warning)
16673 * errutil.adb, erroutc.adb: Implement new insertion char <
16674 (conditional warning).
16675 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
16676 (Error_Msg_Warn): New variable for < insertion char.
16677 * prj-nmsc.adb: Implement new errout insertion char < (conditional
16679 (Check_For_Source): Change value of Source_Id only after the current
16680 source has been dealt with.
16682 2005-09-01 Robert Dewar <dewar@adacore.com>
16683 Doug Rupp <rupp@adacore.com>
16685 * exp_attr.adb: Handle vax fpt for 'Valid attribute
16686 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
16687 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
16688 (Valid_D, Valid_F, Valid_G): New functions
16690 2005-09-01 Ed Schonberg <schonberg@adacore.com>
16691 Hristian Kirtchev <kirtchev@adacore.com>
16692 Javier Miranda <miranda@adacore.com>
16694 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
16695 from object notation, the original node is unanalyzed and carries no
16696 semantic information, so that accessiblity checks must be performed on
16697 the type of the actual itself.
16698 (Expand_N_Subprogram_Declaration): Change last actual parameter for
16699 compatibility with Build_Protected_Sub_Specification.
16700 (Check_Overriding_Inherited_Interfaces): Add suport to handle
16701 overloaded primitives.
16702 (Register_Interface_DT_Entry): Use the new name of the formal
16703 the the calls to Expand_Interface_Thunk
16705 * exp_dbug.ads: Augment comments on encoding of protected types to
16706 include the generation of dispatching subprograms when the type
16707 implements at least one interface.
16709 * lib.ads: Extend information in Load_Stack to include whether a given
16710 load comes from a Limited_With_Clause.
16712 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
16713 whether a potential circularity is harmless, because it includes units
16714 loaded through a limited_with clause. Extends previous treatment which
16715 did not handle properly arbitrary combinations of limited and
16716 non-limited clauses.
16718 2005-09-01 Nicolas Setton <setton@adacore.com>
16720 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
16721 to be encoded as typ___XBLU_lowerbound__upperbound instead of
16722 typ___XB_lowerbound__upperbound.
16724 2005-09-01 Thomas Quinot <quinot@adacore.com>
16726 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
16727 dummy access formal for RACW/RAS TypeCode TSS.
16728 (Build_TypeCode_Call): Do not generate dummy null access actual for
16729 calls to the TypeCode TSS.
16731 2005-09-01 Ed Schonberg <schonberg@adacore.com>
16733 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
16734 fully qualified name, to distinguish instances with the same local name.
16736 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
16739 2005-09-01 Robert Dewar <dewar@adacore.com>
16741 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
16744 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
16746 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
16747 (Free): New deallocation procedure for filter elements
16748 (Close): Deallocate any existing filter for the concerned connection
16750 2005-09-01 Laurent Pautet <pautet@adacore.com>
16752 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
16753 position set is provided, we compute one in order to reduce the maximum
16754 length of the keys. This computation first selects a character
16755 position between 1 and the minimum length of the keys in order to
16756 avoid reducing one of the keys to an empty string.
16757 (Initialize, Compute): When the ratio V to K is too low, the algorithm
16758 does not converge. The initialization procedure now comes with a
16759 maximum number of iterations such that when exceeded, an exception is
16760 raised in Compute. The user can initialize this ratio to another value
16762 Reformating and updated headers.
16764 2005-09-01 Javier Miranda <miranda@adacore.com>
16766 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
16767 that given an entity T creates and returns an Itype that duplicates the
16768 contents of T. The returned Itype has the null-exclusion
16769 attribute set to True, and its Etype attribute references T
16770 to keep the association between the two entities.
16771 Update copyright notice
16773 * sem_aggr.adb (Check_Can_Never_Be_Null,
16774 Aggregate_Constraint_Checks, Resolve_Aggregate,
16775 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
16777 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
16779 2005-09-01 Gary Dismukes <dismukes@adacore.com>
16780 Robert Dewar <dewar@adacore.com>
16781 Hristian Kirtchev <kirtchev@adacore.com>
16783 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
16786 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
16788 Call Set_Result_Definition instead of Set_Subtype_Mark.
16789 (P_Subprogram_Specification): Add parsing of anonymous access result
16790 plus null exclusions. Call Set_Result_Definition instead of
16793 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
16794 (P_Access_Type_Definition): Add parsing for an anonymous access result
16795 subtype, plus parsing for null exclusions. Call Set_Result_Definition
16796 instead of Set_Subtype_Mark.
16798 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
16799 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
16800 (Result_Definition): New function for N_Function_Specifications.
16801 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
16802 N_Function_Specification.
16803 (Set_Null_Exclusion_Present): Allow this flag for
16804 N_Function_Specification.
16805 (Set_Result_Definition): New procedure for N_Function_Specifications.
16806 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
16807 and N_Function_Specification.
16809 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
16810 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
16811 Add support for LIMITED NEW for Ada 2005 AI-419
16812 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
16813 syntax for anonymous access results.
16814 Replace Subtype_Mark field by Result_Definition in
16815 N_Function_Specification and N_Access_Definition specs.
16816 Add Null_Exclusion_Present to spec of N_Function_Specification.
16817 (Result_Definition): New function for N_Function_Specification and
16818 N_Access_Function_Definition.
16819 (Set_Result_Definition): New procedure for N_Function_Specification and
16820 N_Access_Function_Definition.
16822 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
16823 Result_Definition for cases of N_Access_Function_Definition and
16824 N_Function_Specification.
16825 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
16827 2005-09-01 Vincent Celier <celier@adacore.com>
16829 * lib-writ.adb: Update Copyright notice
16830 (Write_With_Lines): On platforms where file names are case-insensitive,
16831 record the file names in lower case.
16832 (Write_ALI): For D lines, on platforms where file names are
16833 case-insensitive, record the file names in lower case.
16835 2005-09-01 Ed Schonberg <schonberg@adacore.com>
16836 Emmanuel Briot <briot@adacore.com>
16838 * lib-xref.adb (Output_Overridden_Op): Display information on
16839 overridden operation.
16841 * lib-xref.ads: Add documentation on overridden operations.
16843 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
16846 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
16847 overriding entity information.
16849 2005-09-01 Vincent Celier <celier@adacore.com>
16851 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
16852 including those that are inherited.
16854 2005-09-01 Robert Dewar <dewar@adacore.com>
16856 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
16858 * par-prag.adb: Implement new pragma Debug_Policy
16860 * sem_prag.adb Implement new pragma Debug_Policy
16861 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
16862 Component_Size attribute specification. Give warning for ignored pragma
16865 * snames.h, snames.ads, snames.adb: Introduce entries in
16866 Preset_Names for Name_Disp_Asynchronous_Select,
16867 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
16868 Name_Disp_Timed_Select.
16869 New pragma Debug_Policy
16871 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
16873 Switch -gnata also sets Debug_Pragmas_Enabled
16875 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
16876 handle an explicit -gnata when compiling predefined files.
16878 2005-09-01 Vincent Celier <celier@adacore.com>
16880 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
16881 directories of projects that have no Ada sources.
16883 2005-09-01 Robert Dewar <dewar@adacore.com>
16885 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
16886 (makes a difference for wide characters)
16888 * widechar.adb, widechar.ads:
16889 Add Wide_Char_Byte_Count feature to count chars vs bytes
16891 2005-09-01 Thomas Quinot <quinot@adacore.com>
16892 Ed Schonberg <schonberg@adacore.com>
16893 Robert Dewar <dewar@adacore.com>
16895 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
16896 'Address attribute reference with an overloaded prefix, use the
16897 location of the prefix (not the location of the attribute reference) as
16898 the error location.
16899 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
16900 a function renaming thereof, is a valid prefix for 'Size (where it is
16901 intepreted as a function call).
16902 (Statically_Denotes_Entity): New predicate to determine whether the
16903 prefix of an array attribute can be considered static.
16906 (Eval_Attr): Fix failure to evaluate Component_Size for
16907 unconstrained arrays (resulted in wrong value in packed case, since
16908 back end cannot handle this case)
16910 2005-09-01 Robert Dewar <dewar@adacore.com>
16912 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
16913 error msgs for most common cases.
16914 Use new errout insertion char < (conditional warning)
16916 2005-09-01 Javier Miranda <miranda@adacore.com>
16917 Ed Schonberg <schonberg@adacore.com>
16919 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
16920 become local to the whole package.
16921 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
16922 the package was already analyzed the new algorithm "replaces" the
16923 real entities by the shadow ones. This is required to ensure that
16924 the order of these entities in the homonym chains does not change;
16925 otherwise we can have undefined references at linking time because
16926 in case of conflicts the external name of the entities will have
16927 a suffix that depends on the order of the entities in the chain.
16928 (Remove_Limited_With_Clause): Complementary code that completes the
16929 new algorithm and replaces the shadow entities by the real ones.
16930 (Install_Limited_Withed_Unit): When unchaining entities before the
16931 installation of the shadow entities, only regular entities of the
16932 public part must be taken into account. This is required to
16933 keep this routine in synch with the work done by Remove_Limited_
16935 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
16936 even if unit is analyzed, because the analysis of the unit is
16937 idempotent in any case, and the limited view of the unit may have to
16938 be installed for proper visibility.
16939 (Expand_Limited_With_Clause): Even if the unit in the implicit
16940 with_clause has been analyzed already, a limited view of the package
16941 must be built for the current context, if it does not exist yet.
16943 2005-09-01 Ed Schonberg <schonberg@adacore.com>
16944 Javier Miranda <miranda@adacore.com>
16945 Gary Dismukes <dismukes@adacore.com>
16947 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
16948 defining entity for the instance body, make a new defining identifier
16949 rather than copying the entity of the spec, to prevent accidental
16950 sharing of the entity list.
16951 (Check_Private_View): When exchanging views of private types, build the
16952 list of exchanged views as a stack, to ensure that on exit the exchanges
16953 are undone in the proper order.
16954 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
16955 Restore the compilation environment in case of instantiation_error.
16956 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
16957 for an anonymous access result.
16958 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
16959 (Formal_Entity): Handle properly the case of a formal package that
16960 denotes a generic package renaming.
16962 2005-09-01 Thomas Quinot <quinot@adacore.com>
16964 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
16965 clause if the array aggregate is surrounded by parentheses.
16967 2005-09-01 Cyrille Comar <comar@adacore.com>
16968 Gary Dismukes <dismukes@adacore.com>
16969 Ed Schonberg <schonberg@adacore.com>
16970 Javier Miranda <miranda@adacore.com>
16972 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
16974 to check if a type is Constrained in cases related to code generation
16975 (rather than semantic checking) since otherwise we do not generate
16976 similar code for mutable private types depending if their
16977 discriminants are visible or not.
16978 (Check_Abstract_Overriding): Do not complain about failure to override
16979 the primitive operations used in dispatching selects since they will
16980 always be overriden at the freeze point of the type.
16981 (Access_Definition): Separate out handling for resetting the scope
16982 of an anonymous access function result type. Retrieve the scope
16983 of the associated function rather than using Current_Scope, which
16984 does not have a consistent value (depends on whether we're in the
16985 middle of analyzing formal parameters). Add ??? comment about
16986 finding a cleaner way to handle the special cases of scope setting.
16987 (Process_Incomplete_Dependents): A protected operation is never a
16988 dispatching operation (only its wrapper may be).
16989 (Build_Derived_Record_Type): In case of tagged private types that
16990 implement interfaces add derivation of predefined primitive
16992 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
16993 by two parameters that are used in case of derivation from abstract
16994 interface types: No_Predefined_Prims is used to avoid the derivation
16995 of predefined primitives from the interface, and Predefined
16996 Prims_Only is used to complete the derivation predefined primitives
16997 in case of private tagged types implementing interfaces.
16998 Fix typo in comments
16999 (Find_Interface_In_Descendant): Protect the frontend against
17000 wrong code with large circularity chains.
17001 (Is_Private_Overriding): Add support for entities overriding interface
17002 subprograms. The test failed because Entities associated with overriden
17003 interface subprograms are always marked as hidden (and used to build
17004 the secondary dispatch table); in this case the overriden entity is
17005 available through the field abstract_interface_alias (cf. override_
17006 dispatching_operation)
17007 (Access_Definition): Set the scope of the type to Current_Scope for the
17008 case of a function with an anonymous access result type.
17009 (Access_Subprogram_Declaration): Handle creation of the type entity for
17010 an access-to-function type with an anonymous access result.
17011 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
17012 in handling for N_Access_Function_Definition.
17013 (Analyze_Subtype_Declaration): Modify the text of error message.
17014 (Derived_Type_Declaration): Modify the text of error message.
17015 (Process_Subtype): Modify the text of error message plus cleanup
17016 of one redundant error message.
17017 (Analyze_Component_Declaration): Code cleanup.
17018 (Analyze_Object_Declaration): Code cleanup.
17019 (Analyze_Subtype_Declaration): Propagate the null-exclusion
17020 attribute in case of access types. Code cleanup.
17021 (Array_Type_Declaration): Code cleanup.
17022 (Process_Discriminants): Create the new null-excluding itype
17023 if required. Code cleanup.
17024 (Process_Subtype): Create the new null-excluding itype if
17025 required. Code cleanup.
17026 (Build_Derived_Record_Type): Code cleanup to avoid calling
17027 twice the subprogram derive_subprograms in case of private
17028 types that implement interfaces. In this particular case the
17029 subprogram Complete_Subprograms_Derivation already does the
17030 job associated with the second call.
17032 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
17033 conversion to the full view when generating an operation for a
17034 discriminant whose type may currently be private.
17036 2005-09-01 Ed Schonberg <schonberg@adacore.com>
17037 Javier Miranda <miranda@adacore.com>
17039 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
17040 V (Obj.F), the rewriting does not involve the indexed component, but
17041 only the selected component itself.
17042 Do not apply the transformation if the analyzed node is an actual of a
17043 call to another subprogram.
17044 (Complete_Object_Operation): Retain the entity of the
17045 dispatching operation in the selector of the rewritten node. The
17046 entity will be used in the expansion of dispatching selects.
17047 (Analyze_One_Call): Improve location of the error message associated
17049 (Analyze_Selected_Component): No need to resolve prefix when it is a
17050 function call, resolution is done when parent node is resolved, as
17052 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
17053 when attempting to resolve a call transformed from its object notation.
17054 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
17055 of the argument list for each interpretation of the operation.
17056 (Try_Object_Operation): The designated type of an access parameter may
17057 be an incomplete type obtained through a limited_with clause, in which
17058 case the primitive operations of the type are retrieved from its full
17060 (Analyze_Call): If this is an indirect call, and the return type of the
17061 access_to_subprogram is incomplete, use its full view if available.
17063 2005-09-01 Javier Miranda <miranda@adacore.com>
17064 Gary Dismukes <dismukes@adacore.com>
17066 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
17067 access types the null-exclusion and access-to-constant attributes must
17069 (Analyze_Return_Statement): When the result type is an anonymous access
17070 type, apply a conversion of the return expression to the access type
17071 to ensure that appropriate accessibility checks are performed.
17072 (Analyze_Return_Type): For the case of an anonymous access result type,
17073 generate the Itype and set Is_Local_Anonymous_Access on the type.
17074 Add ??? placeholder for check to disallow returning a limited object
17075 in Ada 2005 unless it's an aggregate or a result of a function call.
17076 Change calls from Subtype_Mark to Result_Definition.
17077 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
17078 Result_Definition in call to Make_Function_Specification.
17079 (Build_Body_To_Inline): Change Set_Subtype_Mark to
17080 Set_Result_Definition.
17081 (Make_Inequality_Operator): Change formal Subtype_Mark to
17082 Result_Definition in call to Make_Function_Specification.
17083 (Process_Formals): Create the new null-excluding itype if required.
17084 (New_Overloaded_Entity): For an entity overriding an interface primitive
17085 check if the entity also covers other abstract subprograms in the same
17086 scope. This is required to handle the general case, that is, overriding
17087 other interface primitives and overriding abstract subprograms inherited
17088 from some abstract ancestor type.
17089 (New_Overloaded_Entity): For an overriding entity that comes from
17090 source, note the operation that it overrides.
17091 (Check_Conformance, Type_Conformant): Addition of one new formal
17092 to skip controlling formals in the analysis. This is used to
17093 handle overloading of abstract interfaces.
17094 (Base_Types_Match): Add missing case for types imported from
17095 limited-with clauses
17096 (New_Overloaded_Entity): Add barrier to protect the use of
17097 the "alias" attribute.
17099 2005-09-01 Ed Schonberg <schonberg@adacore.com>
17101 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
17102 verify that the procedure and the entry are mode conformant.
17103 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
17104 as a different operator, which is often a cut-and-paste error.
17106 2005-09-01 Javier Miranda <miranda@adacore.com>
17107 Ed Schonberg <schonberg@adacore.com>
17109 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
17110 used in controlling parameters exclude null because it is necessary to
17111 read the tag to dispatch, and null has no tag.
17112 (Override_Dispatching_Operation): If the previous operation is inherited
17113 from an interface, it becomes hidden and does not participate in later
17116 2005-09-01 Javier Miranda <miranda@adacore.com>
17117 Ed Schonberg <schonberg@adacore.com>
17118 Gary Dismukes <dismukes@adacore.com>
17120 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
17121 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
17122 the expander will generate the corresponding run-time check to evaluate
17124 (Resolve_Call): Check for legal type of procedure name or prefix that
17125 appears as a trigger in a triggering alternative.
17126 (Valid_Conversion): If expression is ambiguous and the context involves
17127 an extension of System, remove System.Address interpretations.
17128 (Resolve_Qualified_Expression): Reject the case of a specific-type
17129 qualification applied to a class-wide argument. Enhance comment
17130 to explain checking of Original_Node.
17131 (Resolve_Type_Conversion): The location of the error message was not
17132 general enough to handle the general case and hence it has been removed.
17133 In addition, this patch improves the text of the message.
17134 (Resolve_Type_Conversion): Add missing support for access to interface
17136 (Resolve_Type_Conversion): If the target is a class-wide interface type,
17137 do not expand if the expression is the actual in a call, because proper
17138 expansion will take place when the call itself is expanded.
17139 (Resolve_Allocator): If the context is an unchecked conversion, the
17140 allocator inherits its storage pool, if any, from the target type of
17143 2005-09-01 Ed Schonberg <schonberg@adacore.com>
17144 Javier Miranda <miranda@adacore.com>
17146 * sem_type.adb (Add_One_Interp): If a candidate operation is an
17147 inherited interface operation that has an implementation, use the
17148 implementation to avoid spurious ambiguities.
17149 (Interface_Present_In_Ancestor): In case of concurrent types we can't
17150 use the Corresponding_Record_Typ attribute to look for the interface
17151 because it is set by the expander (and hence it is not always
17152 available). For this reason we traverse the list of interfaces
17153 (available in the parent of the concurrent type).
17154 (Interface_Present_In_Ancestor): Handle entities from the limited view
17156 2005-09-01 Ed Schonberg <schonberg@adacore.com>
17158 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
17159 from the list of required components.
17160 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
17161 primitive procedure of a limited interface with a controlling first
17163 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
17165 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
17166 capture if it is generated in the second operand of a short-circuit
17168 Do not capture values for variables with address clauses.
17169 (Is_Object_Reference): Treat a function call as an object reference only
17170 if its type is not Standard_Void_Type.
17172 2005-09-01 Ed Schonberg <schonberg@adacore.com>
17174 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
17175 to a variable that is statically known to be constant.
17177 2005-09-01 Geert Bosch <bosch@adacore.com>
17178 Robert Dewar <dewar@adacore.com>
17180 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
17181 (VAXGF_Safe_First): Idem.
17183 2005-09-01 Robert Dewar <dewar@adacore.com>
17184 Arnaud Charlet <charlet@adacore.com>
17186 * g-dirope.ads: Minor reformatting
17187 Document that bounds of result of Base_Name match the input index
17189 Add documentation on environment variable syntax for Expand_Path
17191 * gnat_ugn.texi: Update documentation to include mention of -m switches
17192 Document new treatment of wide characters in max line length
17194 Remove -gnatL/-gnatZ switches, no longer used.
17195 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
17198 * gnat_rm.texi: Add doc for two argument form of pragma
17199 Float_Representation.
17200 Add documentation for pragma No_Strict_Aliasing
17201 Add note that explicit component clause overrides pragma Pack.
17202 Add documentation of pragma Debug_Policy
17204 2005-09-01 Matthew Heaney <heaney@adacore.com>
17206 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
17207 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
17208 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
17209 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
17210 draft (Draft 13, August 2005) of Ada Amendment 1.
17212 2005-09-01 Arnaud Charlet <charlet@adacore.com>
17214 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
17215 Note that the platform-specific version of g-soccon.ads for VMS is now
17216 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
17217 really is a package spec).
17218 Replace s-taspri-linux.ads by s-taspri-posix.ads
17219 Remove references to s-mastop-x86.adb
17221 * system-vxworks-xscale.ads: Removed, no longer used.
17222 * s-vxwork-xscale.ads: Removed, no longer used.
17224 2005-09-01 Robert Dewar <dewar@adacore.com>
17226 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
17227 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
17228 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
17229 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
17230 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
17231 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
17232 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
17233 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
17234 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
17235 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
17236 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
17237 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
17238 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
17239 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
17240 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
17241 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
17242 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
17243 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
17244 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
17245 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
17246 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
17248 2005-08-29 Arnaud Charlet <charlet@adacore.com>
17252 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
17254 2005-08-29 Arnaud Charlet <charlet@adacore.com>
17255 Doug Rupp <rupp@adacore.com>
17257 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
17259 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
17260 this code in the GNAT run-time.
17262 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
17265 * init.c (__gnat_error_handler [many]): Mark "msg" as const
17266 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
17268 (__gnat_inside_elab_final_code): Moved here from
17269 Standard_Library and only defined for the compiler.
17270 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
17271 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
17272 using RTPs because directly vectored Interrupt routines are not
17273 supported on this configuration.
17274 (getpid): Do not redefine this function on VxWorks when using RTPs
17275 because this primitive is well supported by the RTP libraries.
17276 (copy_msg): Correct the code that checks for buffer overflow.
17277 Discovered during code reading.
17279 2005-08-29 Olivier Hainque <hainque@adacore.com>
17281 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
17282 a library level mutable variable with an initializer, tell
17283 build_allocator to ignore the initializer's size. It may not be large
17284 enough for all the values that might be assigned to the variable later
17287 2005-08-29 Arnaud Charlet <charlet@adacore.com>
17288 Eric Botcazou <ebotcazou@adacore.com>
17290 * trans.c: Protect < in error msg with quote
17291 Replace GCC_ZCX by Back_End_Exceptions.
17292 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
17293 has been sufficiently aligned in the record.
17295 2005-08-15 James E. Wilson <wilson@specifix.com>
17297 * system-linux-alpha.ads: Change ia64 to alpha.
17299 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
17301 * decl.c, utils.c: Fix comment typos.
17303 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
17305 * decl.c, init.c, initialize.c: Fix comment typos.
17307 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
17309 Make CONSTRUCTOR use VEC to store initializers.
17310 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
17312 * trans.c (extract_values): Likewise.
17313 * utils.c (convert, remove_conversions): Likewise.
17314 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
17315 gnat_build_constructor): Likewise.
17317 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
17319 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
17321 (compare_field_bitpos): Likewise.
17323 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
17325 * utils.c (create_var_decl): Only set DECL_COMMON on
17326 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
17327 VAR_OR_FUNCTION_DECL_P.
17329 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
17331 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
17334 2005-07-07 Pascal Obry <obry@adacore.com>
17336 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
17337 returned type on Windows.
17339 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
17342 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
17343 exception in this case.
17344 Simplify the code as "Image (Image'Range)" = "Image".
17346 2005-07-07 Vincent Celier <celier@adacore.com>
17348 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
17349 the destructor/constructor attributes for <lib>final/<lib>init.
17351 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
17353 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
17355 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
17356 type if the parameter is not passed by copy but reference by default.
17358 2005-07-07 Javier Miranda <miranda@adacore.com>
17360 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
17361 Reimplementation of the support for abstract interface types in order
17362 to leave the code more clear and easy to maintain.
17364 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
17365 abstract interface types in order to leave the code clearer and easier
17368 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
17369 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
17370 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
17371 appropriate entry of the secondary dispatch table.
17372 (Make_DT): Add code to inherit the secondary dispatch tables of
17375 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
17376 implementing both functionalities by means of a common routine, each
17377 routine has its own code.
17379 2005-07-07 Javier Miranda <miranda@adacore.com>
17381 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
17383 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
17386 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
17389 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
17390 use of tag incomplete types.
17392 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
17393 give support to tagged incomplete types.
17395 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
17396 expression is a discriminant reference and its type is private, as can
17397 happen within a stream operation for a mutable record, use the full
17398 view of the type to resolve the case alternatives.
17399 (Analyze_Assignment): Check wrong dereference of incomplete types.
17401 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
17404 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
17407 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
17408 N_Incomplete_Type_Declaration nodes.
17410 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
17411 Tag_Present to give support to tagged incomplete types:
17413 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
17416 2005-07-07 Olivier Hainque <hainque@adacore.com>
17419 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
17420 definitions for the Unwind wrappers in the compiler case.
17422 2005-07-07 Ed Schonberg <schonberg@adacore.com>
17423 Javier Miranda <miranda@adacore.com>
17425 * par-load.adb (Load): If a child unit is loaded through a limited_with
17426 clause, each parent must be loaded as a limited unit as well.
17428 * sem_ch10.adb (Previous_Withed_Unit): Better name for
17429 Check_Withed_Unit. Return true if there is a previous with_clause for
17430 this unit, whether limited or not.
17431 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
17433 (Is_Visible_Through_Renamings): New local subprogram of install_limited
17434 _withed_unit that checks if some package installed through normal with
17435 clauses has a renaming declaration of package whose limited-view is
17436 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
17437 of the current Draft document for Ada 2005.
17438 (Analyze_Context): Complete the list of compilation units that
17439 are allowed to contain limited-with clauses. It also contains
17440 checks that were previously done by Install_Limited_Context_Clauses.
17441 This makes the code more clear and easy to maintain.
17442 (Expand_Limited_With_Clause) It is now a local subprogram of
17443 Install_Limited_Context_Clauses, and contains the code that adds
17444 the implicit limited-with clauses for parents of child units.
17445 This functionality was prevously done by Analyze_Context.
17447 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
17450 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
17451 been erroneously named in a limited-with clause of its own context.
17452 In this case the error has been previously notified by Analyze_Context.
17454 2005-07-07 Ed Schonberg <schonberg@adacore.com>
17456 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
17457 generic package that contains local declarations with the same name.
17458 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
17460 2005-07-07 Bernard Banner <banner@adacore.com>
17462 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
17463 ia64 platform only on platforms that you the GCC unwind library
17464 rather than the system unwind library.
17466 2005-07-07 Thomas Quinot <quinot@adacore.com>
17468 * expect.c: Minor reformatting
17470 2005-07-07 Sergey Rybin <rybin@adacore.com>
17472 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
17475 * gnat_ugn.texi: Add description for new gnatpp option
17478 2005-07-04 Thomas Quinot <quinot@adacore.com>
17480 * g-expect-vms.adb, g-expect.ads, g-expect.adb
17481 (Get_Command_Output): New subprogram to launch a process and get its
17482 standard output as a string.
17484 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
17485 Olivier Hainque <hainque@adacore.com>
17487 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
17488 fetch a code-range descriptor associated with the machine state. On
17489 failure set the machine state's PC to 0; on success, pass the
17490 descriptor to exc_virtual_unwind.
17492 * init.c (Tru64 section): New function __gnat_set_code_loc.
17494 2005-07-04 Vincent Celier <celier@adacore.com>
17496 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
17497 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
17498 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
17499 Remove all auto-initialization code, as this is now done through the
17500 constructor mechanism.
17502 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
17503 __gnat_sals_init_using_constructors): New functions.
17505 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
17506 Linker_Constructor and Linker_Destructor when switch -a is used.
17508 * bindusg.adb: Add line for new switch -a
17510 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
17511 (Gnatbind): When switch -a is used, check if it is allowed
17513 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
17515 2005-07-04 Joel Brobecker <brobecker@adacore.com>
17517 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
17518 This prevents us from hitting a limitation during the debug info
17519 generation when using stabs.
17520 (Prims_Ptr): Likewise.
17522 2005-07-04 Gary Dismukes <dismukes@adacore.com>
17523 Ed Schonberg <schonberg@adacore.com>
17524 Javier Miranda <miranda@adacore.com>
17526 * checks.adb (Null_Exclusion_Static_Checks): In the case of
17527 N_Object_Declaration, only perform the checks if the Object_Definition
17528 is not an Access_Definition.
17530 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
17531 where the parent of an the access definition is an N_Object_Declaration
17532 when determining the Associated_Node_For_Itype and scope of an
17533 anonymous access-to-subprogram type.
17535 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
17536 Corresponding_Spec on the body created for a null procedure. Add ???
17537 comment. Remove New_Copy_Tree call on body argument to
17538 Set_Body_To_Inline.
17540 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
17541 discriminants, use the type of the actual as well, because the
17542 discriminants may be read by the called subprogram.
17544 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
17545 access type we do not need to handle non-limited views.
17546 (Build_Derived_Record_Type): Additional check to check that in case of
17547 private types, interfaces are only allowed in private extensions.
17549 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
17551 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
17552 <Pragma_Linker_Destructor>: Likewise.
17554 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
17555 Pragma_Linker_Destructor.
17557 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
17558 ATTR_LINK_DESTRUCTOR.
17559 (static_ctors, static_dtors): New variables.
17561 * misc.c (gnat_expand_body): Output current function as constructor
17562 and destructor if requested.
17564 * par-prag.adb: Add processing for pragma Linker_Constructor and
17567 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
17568 extracted from Check_Interrupt_Or_Attach_Handler.
17569 (Check_Interrupt_Or_Attach_Handler): Invoke it.
17570 Implement pragma Linker_Constructor and Linker_Destructor with the
17571 help of Find_Unique_Parameterless_Procedure.
17572 Replace Name_Alias with Name_Target for pragma Linker_Alias.
17574 * snames.h, snames.ads, snames.adb:
17575 Add Name_Linker_Constructor and Name_Linker_Destructor.
17576 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
17577 * snames.adb: Remove Name_Alias.
17579 * trans.c: Include cgraph.h.
17580 (build_global_cdtor): New function.
17581 (Compilation_Unit_to_gnu): Build global constructor and destructor if
17583 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
17585 (addressable_p) <COMPONENT_REF>: Unconditionally test
17586 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
17588 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
17589 variable if it is external.
17591 (static_ctors, static_dtors): New global variables.
17592 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
17593 <ATTR_LINK_DESTRUCTOR>: Likewise.
17594 (end_subprog_body): Chain function as constructor and destructor
17597 * exp_util.adb (Force_Evaluation): Unconditionally invoke
17598 Remove_Side_Effects with Variable_Ref set to true.
17599 (Remove_Side_Effects): Handle scalar types first. Use a renaming
17600 for non-scalar types even if Variable_Ref is true and for class-wide
17603 2005-07-04 Ed Schonberg <schonberg@adacore.com>
17605 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
17606 to prevent spurious warnings.
17608 2005-07-04 Thomas Quinot <quinot@adacore.com>
17610 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
17611 Itypes. Itypes are really unexpected there.
17612 (Build_TypeCode_Function): Generalise special processing for Itypes to
17613 handle the case of numeric implicit base types as well as enumerated
17616 2005-07-04 Ed Schonberg <schonberg@adacore.com>
17618 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
17619 controlled, indicate the expected type of the dereference that is
17620 created for the call to Deep_Finalize, to prevent spurious errors when
17621 the designated type is private and completed with a derivation from
17622 another private type.
17624 2005-07-04 Vincent Celier <celier@adacore.com>
17626 * make.adb (Change_To_Object_Directory): When unable to change the
17627 current dir to the object directory, output the full path of the
17630 2005-07-04 Matthew Gingell <gingell@adacore.com>
17632 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
17634 * indepsw-linux.adb: Replace by...
17636 * indepsw-gnu.adb: ...this new file
17638 2005-07-04 Vincent Celier <celier@adacore.com>
17640 * mlib-prj.adb (Auto_Initialize): New constant String
17641 (SALs_Use_Constructors): New Boolean function
17642 (Build_Library): Call gnatbind with Auto_Initialize switch when
17643 SALs_Use_Constructors returns True.
17645 * mlib-tgt.ads: Minor reformatting
17647 * mlib-utl.ads: Minor reformatting
17649 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
17651 2005-07-04 Ed Schonberg <schonberg@adacore.com>
17653 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
17654 single protected declarations can have an interface list.
17655 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
17656 with seriously malformed entry declarations, and lead to compilation
17657 abandoned messages.
17659 2005-07-04 Javier Miranda <miranda@adacore.com>
17661 * par-load.adb: Load the context items in two rounds.
17663 2005-07-04 Robert Dewar <dewar@adacore.com>
17665 * scng.adb: Do not consider Mod used as an attribute to be a keyword
17667 2005-07-04 Ed Schonberg <schonberg@adacore.com>
17668 Javier Miranda <miranda@adacore.com>
17670 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
17671 type extension needs a limited view.
17672 Remove previous restriction on private types available through the
17673 limited-view (only tagged private types were previously allowed).
17674 (Install_Withed_Unit): In the code that implements the
17675 legality rule given in AI-377, exclude a child unit with the name
17676 Standard, because it is a homonym of the Standard environment package.
17678 2005-07-04 Thomas Quinot <quinot@adacore.com>
17680 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
17681 overloaded function call, carry interpretations from the original tree
17684 2005-07-04 Ed Schonberg <schonberg@adacore.com>
17686 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
17687 types check whether some designated type is a limited view, and use
17688 the non-limited view if available.
17690 2005-07-04 Gary Dismukes <dismukes@adacore.com>
17692 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
17693 constraint of full view of a private view T1 if present, when T2 is a
17694 discriminated full view.
17696 2005-07-04 Thomas Quinot <quinot@adacore.com>
17698 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
17699 actual that is a view conversion of a bit packed array reference.
17701 2005-07-04 Ed Schonberg <schonberg@adacore.com>
17703 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
17704 present before checking whether an interface type covers a synchronized
17707 2005-07-04 Ed Schonberg <schonberg@adacore.com>
17709 * sem_util.adb (Is_Object_Reference): An indexed or selected component
17710 whose prefix is an implicit dereference is an object reference. Removes
17711 spurious errors when compiling with -gnatc.
17713 2005-07-04 Robert Dewar <dewar@adacore.com>
17716 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
17718 2005-07-04 Matthew Gingell <gingell@adacore.com>
17720 * tracebak.c: Enable tracebacks on ia64 platforms
17722 2005-07-04 Vincent Celier <celier@adacore.com>
17724 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
17725 the GNAT BIND command, as gnatbind accepts multiples ALI files with
17726 the -L or -n switches.
17728 2005-07-04 Vincent Celier <celier@adacore.com>
17730 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
17731 correctly computed and the main project data is not modified while
17733 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
17734 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
17735 c++linker as this does not work on some platforms.
17737 2005-07-04 Matthew Heaney <heaney@adacore.com>
17739 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
17741 * a-coinve.adb: Perform constraint checks explicitly.
17743 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17744 Thomas Quinot <quinot@adacore.com>
17746 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
17747 new target gen-soccon.
17749 2005-07-04 Robert Dewar <dewar@adacore.com>
17751 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
17753 2005-07-04 Thomas Quinot <quinot@adacore.com>
17755 * g-socket.ads (Check_Selector): Minor rewording of comment.
17757 2005-07-04 Vincent Celier <celier@adacore.com>
17759 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
17761 2005-07-04 Thomas Quinot <quinot@adacore.com>
17763 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
17765 2005-07-04 Sergey Rybin <rybin@adacore.com>
17767 * gnat_ugn.texi: Add description of --eol gnatpp option
17769 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
17770 Thomas Quinot <quinot@adacore.com>
17772 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
17773 if the user wants all calls of a subprogram to be flagged,
17774 independently of whether they are made from within the same unit or
17776 Mention restriction for pragma Linker_Alias on some platforms.
17777 Document pragma Linker_Constructor and Linker_Destructor.
17778 Rewrite documentation of Weak_External, Linker_Section and
17779 Linker_Alias pragmas.
17781 2005-07-04 Arnaud Charlet <charlet@adacore.com>
17783 * s-stausa.ads, s-stausa.adb: New files.
17785 2005-06-30 Kelley Cook
17787 * all files: Update FSF address in copyright headers.
17788 * gen-soccon.co (main): Output new FSF address in generated files.
17790 2005-06-28 Paul Brook <paul@codesourcery.com>
17792 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
17794 2005-06-14 Olivier Hainque <hainque@adacore.com>
17795 Eric Botcazou <ebotcazou@adacore.com>
17797 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
17798 exc_unwind, now that we are generating proper .debug_frame output for
17801 * tracebak.c: Remove the mips-irix section, as we are now using the
17802 s-mastop based unwinder again.
17803 Under SPARC/Solaris, take into account the stack bias to compute the
17804 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
17807 2005-06-14 Doug Rupp <rupp@adacore.com>
17809 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
17811 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
17813 2005-06-14 Pascal Obry <obry@adacore.com>
17815 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
17816 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
17817 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
17820 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
17821 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
17822 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
17823 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
17824 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
17825 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
17826 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
17827 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
17828 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
17829 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
17830 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
17831 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
17832 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
17833 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
17834 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
17835 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
17836 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
17837 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
17838 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
17839 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
17840 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
17841 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
17842 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
17843 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
17844 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
17845 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
17846 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
17847 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
17848 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
17849 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
17850 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
17851 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
17852 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
17853 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
17854 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
17855 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
17856 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
17857 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
17858 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
17859 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
17860 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
17861 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
17862 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
17863 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
17864 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
17865 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
17866 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
17867 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
17868 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
17869 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
17870 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
17871 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
17872 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
17873 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
17874 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
17875 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
17876 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
17877 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
17878 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
17879 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
17880 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
17881 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
17882 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
17883 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
17884 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
17885 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
17886 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
17887 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
17888 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
17889 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
17890 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
17891 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
17892 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
17893 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
17894 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
17895 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
17896 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
17897 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
17898 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
17899 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
17900 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
17901 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
17902 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
17903 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
17904 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
17905 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
17906 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
17907 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
17908 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
17909 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
17910 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
17911 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
17912 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
17913 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
17914 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
17915 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
17916 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
17917 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
17918 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
17919 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
17920 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
17921 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
17922 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
17923 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
17924 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
17925 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
17926 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
17927 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
17928 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
17929 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
17930 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
17931 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
17932 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
17933 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
17934 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
17935 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
17936 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
17937 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
17938 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
17939 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
17940 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
17941 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
17942 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
17943 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
17944 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
17945 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
17946 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
17947 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
17948 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
17949 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
17950 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
17951 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
17952 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
17954 2005-06-14 Jose Ruiz <ruiz@adacore.com>
17955 Arnaud Charlet <charlet@adacore.com>
17957 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
17958 longer protected objects. They have been replaced by lower-level
17959 suspension objects made up by a mutex and a condition variable (or
17960 their equivalent given a particular OS) plus some internal data to
17961 reflect the state of the suspension object.
17962 (Initialize, Finalize): Add this initialization procedure for
17963 Suspension_Object, which is a controlled type.
17964 (Finalize): Add the finalization procedure for Suspension_Object,
17965 which is a controlled type.
17967 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
17968 Ada.Synchronous_Task_Control because there is no longer a need for a
17969 VxWorks specific version of this package. Target dependencies
17970 has been moved to System.Task_Primitives.Operations.
17972 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
17974 (InitializeCriticalSection, EnterCriticalSection,
17975 LeaveCriticalSection, DeleteCriticalSection): Replace the type
17976 pCriticalSection by an anonymous access type so that we avoid problems
17977 of accessibility to local objects.
17979 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
17980 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
17981 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
17982 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
17983 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
17984 set the environment task mask here.
17985 (Current_State): Add this function that returns the state of the
17987 (Set_False): Add this procedure that sets the state of the suspension
17989 (Set_True): Add this procedure that sets the state of the suspension
17990 object to True, releasing the task that was suspended, if any.
17991 (Suspend_Until_True): Add this procedure that blocks the calling task
17992 until the state of the object is True. Program_Error is raised if
17993 another task is already waiting on that suspension object.
17994 (Initialize): Add this procedure for initializing the suspension
17995 object. It initializes the mutex and the condition variable which are
17996 used for synchronization and queuing, and it sets the internal state
17998 (Finalize): Add this procedure for finalizing the suspension object,
17999 destroying the mutex and the condition variable.
18001 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
18002 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
18003 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
18004 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
18005 which provides a low-level abstraction (using operating system
18006 primitives) for Ada.Synchronous_Task_Control.
18007 This object is made up by a mutex (for ensuring mutual exclusion), a
18008 condition variable (for queuing threads until the condition is
18009 signaled), a Boolean (State) indicating whether the object is open,
18010 and a Boolean (Waiting) reflecting whether there is a task already
18011 suspended on this object.
18013 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
18014 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
18015 s-intman-vms.ads, s-intman-mingw.adb,
18016 (Initialize_Interrupts): Removed, no longer used.
18018 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
18019 (Setup_Interrupt_Mask): New procedure.
18021 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
18023 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
18025 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
18026 this is no longer done in the body of s-taprop
18027 (Server_Task): Explicitely test for Pending_Action in case
18028 System.Parameters.No_Abort is True.
18030 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
18031 is no longer done in the body of s-taprop
18033 2005-06-14 Robert Dewar <dewar@adacore.com>
18035 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
18036 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
18037 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
18038 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
18039 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
18040 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
18041 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
18042 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
18043 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
18044 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
18045 system-linux-hppa.ads, system-vms_64.ads,
18046 system-vxworks-alpha.ads: Minor comment update for
18047 AI-362 (unit is Pure).
18049 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
18050 Add pragma Pure_05 for AI-362
18051 Make remaining conversion functions obsolescent in Ada 95
18053 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
18054 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
18055 Add entries for a-wichun and a-zchuni
18056 Add a-widcha a-zchara for AI-395
18057 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
18059 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
18060 Add entries for a-wichun.o and a-zchuni.o
18061 Entries for a-widcha.o and a-zchara.o
18062 Add entry for a-chacon.o
18064 * a-ztenau.adb: Add with of Ada.Characters.Conversions
18066 * a-chacon.ads, a-chacon.adb: New files.
18068 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
18069 categorization violations.
18071 * a-strmap.ads: Add pragma Pure_05 for AI-362
18072 * a-strmap.ads: Add note on implicit categorization for AI-362
18074 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
18076 * par-prag.adb: Dummy entry for pragma Persistent_BSS
18077 Set Ada_Version_Explicit, for implementation of AI-362
18078 Add processing for pragma Pure_05 and Preelaborate_05
18079 Add entry for Assertion_Policy pragma
18081 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
18082 when needed for proper processing of categorization stuff
18085 For several cases, make errors in preealborate units warnings,
18086 instead of errors, if GNAT_Mode is set. For AI-362.
18088 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
18089 preelaborate unit is now warning if in GNAT mode
18091 * s-stoele.ads: Document AI-362 for pragma preelaborate
18093 2005-06-14 Doug Rupp <rupp@adacore.com>
18095 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
18096 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
18097 Default_Exception_Msg_Max_Length: new parameter.
18099 * a-except.ads: (Exception_Msg_Max_Length): Set to
18100 System.Parameters.Default_Exception_Msg_Max_Length
18101 Add pragma Preelaborate_05 for AI-362
18102 Add warnings off to allow categorization violations for AI-362
18104 2005-06-14 Vincent Celier <celier@adacore.com>
18106 * gnatsym.adb: Adapt to modification of package Symbols: procedure
18107 Process is now in package Processing.
18109 * symbols.ads, symbols.adb:
18110 (Processing): New package, containing procedure Process
18112 * symbols-vms-alpha.adb:
18113 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
18115 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
18116 symbols-processing-vms-ia64.adb: New files.
18118 2005-06-14 Pascal Obry <obry@adacore.com>
18120 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
18121 implementation. This new version generates the proper DllMain routine
18122 to initialize the SAL. The DllMain is generated in Ada and compiled
18123 before being added as option to the library build command.
18125 2005-06-14 Doug Rupp <rupp@adacore.com>
18126 Pascal Obry <obry@adacore.com>
18128 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
18129 call to decc$translate_vms.
18130 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
18131 need to remove those quotes before catenating the filename.
18132 (__gnat_locate_exec_on_path): improvements to the Win32 section:
18133 * avoid allocating the memory twice for better efficiency;
18134 * allocate 32K buffer for environment expansion as suggested by MSDN;
18135 * prepend ".;" to the path so that current directory is searched too.
18137 2005-06-14 Robert Dewar <dewar@adacore.com>
18139 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
18140 instead of raising CE (AI-241)
18141 Add warnings off to allow categorization violations for AI-362
18143 2005-06-14 Robert Dewar <dewar@adacore.com>
18145 * ali-util.adb, gnatbind.adb: Remove references to
18146 Force_RM_Elaboration_Order.
18148 * switch-b.adb: Remove recognition of -f switch
18150 2005-06-14 Pascal Obry <obry@adacore.com>
18152 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
18153 implementation which is slightly more efficient.
18155 2005-06-14 Gary Dismukes <dismukes@adacore.com>
18156 Javier Miranda <miranda@adacore.com>
18157 Ed Schonberg <schonberg@adacore.com>
18158 Hristian Kirtchev <kirtchev@adacore.com>
18160 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
18161 allocator's designated type is a class-wide type, and compiling for
18162 Ada 2005, emit a run-time check that the accessibility level of the
18163 type given in the allocator's expression is not deeper than the level
18164 of the allocator's access type.
18166 (Tagged_Membership): Modified to gives support to abstract interface
18169 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
18171 (Descendant_Tag): New predefined function
18172 (Is_Descendant_At_Same_Level): New predefined function
18173 (Get_Access_Level): New private function
18174 (Set_Access_Level): New private procedure
18175 (IW_Membership): New function. Given the tag of an object and the tag
18176 associated with an interface, evaluate if the object implements the
18178 (Register_Interface_Tag): New procedure used to initialize the table of
18179 interfaces used by the IW_Membership function.
18180 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
18181 of the dispatch table.
18182 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
18183 table of interfaces of the parent.
18184 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
18185 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
18186 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
18187 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
18188 Ada 2005 semantics for the new predefined function.
18190 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
18191 call to Descendant_Tag rather than Internal_Tag.
18192 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
18193 the accessibility level of the attribute's Item parameter is not deeper
18194 than the level of the attribute's prefix type. Tag_Error is raised if
18195 the check fails. The check is only emitted for Ada_05.
18196 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
18197 requested stream attribute, use it.
18198 (Expand_N_Attribute_Reference): If the designated type is an interface
18199 then rewrite the referenced object as a conversion to force the
18200 displacement of the pointer to the secondary dispatch table.
18201 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
18202 is a dereference of an object with a constrained partial view.
18204 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
18205 type is a class-wide type, emit a run-time check that the accessibility
18206 level of the returned object is not deeper than the level of the
18207 function's master (only when compiling for Ada 2005).
18209 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
18210 Action_Nb_Arg): Add entries for new Get_Access_Level and
18211 Set_Access_Level routines in these tables.
18212 (Make_DT): Generate a call to set the accessibility level of the
18213 tagged type in its TSD.
18214 (Make_DT): Code cleanup. The functionality of generating all the
18215 secondary dispatch tables has been moved to freeze_record_type.
18216 (Make_Abstract_Interface_DT): Minor code cleanup.
18217 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
18218 this subprogram implements a new algorithm that provides the
18219 same functionality and it is more clear in case of primitives
18220 associated with abstract interfaces.
18221 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
18222 clean up, the functionality of this subprogram is now provided
18223 by Set_All_DT_Position.
18224 (Write_DT): New subprogram: a debugging procedure designed to be called
18225 within gdb to display the dispatch tables associated with a tagged
18227 (Collect_All_Interfaces): New subprogram that collects the whole list
18228 of interfaces that are directly or indirectly implemented by a tagged
18230 (Default_Prim_Op_Position): New subprogram that returns the fixed
18231 position in the dispatch table of the default primitive operations.
18232 (Expand_Interface_Actuals): New subprogram to generate code that
18233 displaces all the actuals corresponding to class-wide interfaces to
18234 reference the interface tag of the actual object.
18235 (Expand_Interface_Conversion): New subprogram. Reference the base of
18236 the object to give access to the interface tag associated with the
18237 secondary dispatch table.
18238 (Expand_Interface_Thunk): New subprogram that generates the code of the
18239 thunk. This is required for compatibility with the C+ ABI.
18240 (Make_Abstract_Interface_DT): New subprogram that generate the
18241 declarations for the secondary dispatch tables associated with an
18242 abstract interface.
18243 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
18244 attribute for each primitive operation covering interface subprograms
18245 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
18246 These subprograms were upgraded to give support to abstract interfaces
18248 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
18249 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
18250 RE_Set_Access_Level.
18251 (RE_Unit_Table): Add entries for new Ada.Tags operations.
18252 Add support to call the followig new run-time subprograms:
18253 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
18255 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
18256 match its full declaration when both have an access definition with
18257 statically matching designated subtypes.
18258 (Analyze_Component_Declaration): Delete commented out code that was
18259 incorrectly setting the scope of an anonymous access component's type.
18260 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
18261 an access discriminant when the containing type is nonlimited.
18262 (Make_Incomplete_Type_Declaration): Create an incomplete type
18263 declaration for a record type that includes self-referential access
18265 (Check_Anonymous_Access_Types): Before full analysis of a record type
18266 declaration, create anonymous access types for each self-referential
18268 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
18269 an access component in this context is a Local_Anonymous_Access, for
18270 proper accessibility checks.
18271 (Access_Definition): Set properly the scope of the anonymous access type
18272 created for a stand-alone access object.
18273 (Find_Type_Of_Object): An object declaration may be given with an access
18275 (Complete_Subprograms_Derivation): New subprogram used to complete
18276 type derivation of private tagged types implementing interfaces.
18277 In this case some interface primitives may have been overriden
18278 with the partial-view and, instead of re-calculating them, they
18279 are included in the list of primitive operations of the full-view.
18280 (Build_Derived_Record_Type): Modified to give support to private
18281 types implemening interfaces.
18282 (Access_Definition): Reject ALL on anonymous access types.
18283 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
18284 type derivation to occur at a deeper accessibility level than the
18286 For the case of derivation within a generic body however, disallow the
18287 derivation if the derived type has an ancestor that is a formal type
18288 declared in the formal part of an enclosing generic.
18289 (Analyze_Object_Declaration): For protected objects, remove the check
18290 that they cannot contain interrupt handlers if not declared at library
18292 (Add_Interface_Tag_Components): New subprogram to add the tag components
18293 corresponding to all the abstract interface types implemented by a
18294 record type or a derived record type.
18295 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
18296 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
18297 Process_Full_View, Record_Type_Declaration): Modified to give
18298 support to abstract interface types
18299 (Collect_Interfaces): New subprogram that collects the list of
18300 interfaces that are not already implemented by the ancestors
18301 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
18302 when partial view has no discriminants and full view has defaults.
18303 (Constrain_Access): Reject a constraint on a general access type
18304 if the discriminants of the designated type have defaults.
18305 (Access_Subprogram_Declaration): Associate the Itype node with the inner
18306 full-type declaration or subprogram spec. This is required to handle
18307 nested anonymous declarations.
18308 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
18309 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
18310 Process_Full_View, Record_Type_Declaration): Modified to give
18311 support to abstract interface types
18312 (Derive_Subprograms): Addition of a new formal to indicate if
18313 we are in the case of an abstact-interface derivation
18314 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
18315 to the specification because it is requied to analyze all the
18316 identifiers found in a list of interfaces
18318 * debug.adb: Complete documentation of flag "-gnatdZ"
18320 * exp_ch3.adb: Implement config version of persistent_bss pragma
18321 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
18322 testing for TSS presence to properly enforce visibility rules.
18323 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
18324 Make_Abstract_Interfaces_DT to generate the secondary tables
18325 associated with abstract interfaces.
18326 (Build_Init_Procedure): Modified to initialize all the tags
18328 (Component_Needs_Simple_Initialization): Similar to other tags,
18329 interface tags do not need initialization.
18330 (Freeze_Record_Type): Modified to give support to abstract interface
18332 (Expand_N_Object_Declaration): Do not generate an initialization for
18333 a scalar temporary marked as internal.
18335 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
18336 in-out parameter that is a component in an initialization procedure,
18337 whose constraint might depend on discriminants, and that may be
18338 misaligned because of packing or representation clauses.
18339 (Is_Legal_Copy): New predicate to determine whether a possibly
18340 misaligned in-out actual can actually be passed by copy/return. This
18341 is an error in case the type is by_reference, and a warning if this is
18342 the consequence of a DEC import pragma on the subprogram.
18343 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
18345 (Expand_Inlined_Call): Mark temporary generated for the return value as
18346 internal, so that no useless scalar normalization is generated for it.
18347 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
18348 null procedure can always be inlined.
18349 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
18350 procedure, generate an explicit empty body for it.
18352 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
18353 Given a type implementing an interface, returns the corresponding
18354 access_disp_table value.
18355 (Find_Interface_Tag): New subprogram. Given a type implementing an
18356 interface, returns the record component containing the tag of the
18358 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
18359 previous ones that return the corresponding tag and access_disp_table
18361 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
18362 is a predefined primitive operation.
18363 (Expand_Subtype_From_Expr): If the expression is a selected component
18364 within an initialization procedure, compute its actual subtype, because
18365 the component may depend on the discriminants of the enclosing record.
18367 * i-cpp.ads, i-cpp.adb:
18368 This package has been left available for compatibility with previous
18369 versions of the frontend. As part of the new layout this is now a
18370 dummy package that uses declarations available at a-tags.ads
18372 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
18373 "constant access" and "aliased [constant] access" when not compiling
18375 Suppress Ada 2005 keyword warning if -gnatwY used
18376 (P_Identifier_Declarations): Add support for object declarations with
18377 access definitions.
18378 (Private_Extension_Declaration): Complete the documentation
18379 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
18380 attribute in case of private extension declaration
18381 (P_Type_Declaration): Mark as "abstract" the type declarations
18382 corresponding with protected, synchronized and task interfaces
18383 (P_Declarative_Items): "not" and "overriding" are overriding indicators
18384 for a subprogram or instance declaration.
18386 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
18387 instantiation that is a dispatching operation has controlling access
18388 parameters that are null excluding.
18389 Save and restore Ada_Version_Explicit, for implementation of AI-362
18390 (Validate_Derived_Type_Instance): Add check for abstract interface
18392 (Analyze_Formal_Package): Establish Instantiation source for the copy of
18393 the generic that is created to represent the formal package.
18394 (Analyze_Package_Instantiation): Instantiate body immediately if the
18395 package is a predefined unit that contains inlined subprograms, and
18396 we are compiling for a Configurable_Run_Time.
18397 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
18398 If the program has a null default, generate an empty body for it.
18400 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
18401 error message condition, null procedures are correctly detected now.
18402 (New_Overloaded_Entity): Bypass trivial overriding indicator check
18403 for subprograms in the context of protected types. Instead, the
18404 indicator is examined in Sem_Ch9 while analysing the subprogram
18406 (Check_Overriding_Indicator): Check consistency of overriding indicator
18407 on subprogram stubs as well.
18408 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
18410 (Analize_Subprogram_Specification): When analyzing a subprogram in which
18411 the type of the first formal is a concurrent type, replace this type
18412 by the corresponding record type.
18413 (Analyze_Subprogram_Body): Undo the previous work.
18414 (Analyze_Procedure_Call): If the call has the form Object.Op, the
18415 analysis of the prefix ends up analyzing the call itself, after which
18417 (Has_Interface_Formals): New subprogram subsidiary to analyze
18418 subprogram_specification that returns true if some non
18419 class-wide interface subprogram is found
18420 (New_Overloaded_Entity): Modified to give support to abstract
18422 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
18423 access to subprograms must be recursive.
18424 (Is_Unchecked_Conversion): Improve the test that recognizes
18425 instantiations of Unchecked_Conversion, and allows them in bodies that
18426 are to be inlined by the front-end. When the body comes from an
18427 instantiation, a reference to Unchecked_Conversion will be an
18428 Expanded_Name, even though the body has not been analyzed yet.
18429 Replace Is_Overriding and Not_Overriding in subprogram_indication with
18430 Must_Override and Must_Not_Override, to better express intent of AI.
18431 (Analyze_Subprogram_Body): If an overriding indicator is given, check
18432 that it is consistent with the overrinding status of the subprogram
18434 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
18436 If the subprogram is a null procedure, indicate that it does not need
18439 * sem_disp.adb (Check_Controlling_Type): Give support to entities
18440 available through limited-with clauses.
18441 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
18442 allowed as the last primitive of a tagged type if it has no previous
18444 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
18445 to give support to abstract interface types
18447 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
18448 in the case where the target type is an anonymous access type of an
18449 object or component (that is, when Is_Local_Anonymous_Access is true).
18450 Prevent the special checks for conversions of access discriminants in
18451 the case where the discriminant belongs to a nonlimited type, since
18452 such discriminants have their accessibility level defined in the same
18453 way as a normal component of an anonymous access type.
18454 (Resolve_Allocator): When an allocator's designated type is a class-wide
18455 type, check that the accessibility level of type given in the
18456 allocator's expression or subtype indication is not statically deeper
18457 than the level of the allocator's access type.
18458 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
18459 name in a discriminant constraint of a record component.
18460 (Resolve_Explicit_Dereference): Do not check whether the type is
18461 incomplete when the dereference is a use of an access discriminant in
18462 an initialization procedure.
18463 (Resolve_Type_Conversion): Handle conversions to abstract interface
18465 (Valid_Tagged_Conversion): The conversion of a tagged type to an
18466 abstract interface type is always valid.
18467 (Valid_Conversion): Modified to give support to abstract interface types
18468 (Resolve_Actuals): Enable full error reporting on view conversions
18469 between unrelated by_reference array types.
18470 The rule for view conversions of arrays with aliased components is
18471 weakened in Ada 2005.
18472 Call to obsolescent subprogram is now considered to be a violation of
18473 pragma Restrictions (No_Obsolescent_Features).
18474 (Check_Direct_Boolean_Operator): If the boolean operation has been
18475 constant-folded, there is nothing to check.
18476 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
18477 check on possible violation of restriction No_Direct_Boolean_Operators
18478 until after expansion of operands, to prevent spurious errors when
18479 operation is constant-folded.
18481 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
18482 Has_Compatible_Type): Modified to give support to abstract interface
18484 (Interface_Present_In_Ancestor): New function to theck if some ancestor
18485 of a given type implements a given interface
18487 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
18488 prefix is a parameterless function that returns an access_to_procedure.
18489 (Transform_Object_Operation): Handle properly function calls of the
18490 form Obj.Op (X), which prior to analysis appear as indexed components.
18491 (Analyze_One_Call): Complete the error notification to help new Ada
18493 (Analyze_Allocator): For an allocator without an initial value, where
18494 the designated type has a constrained partial view, a discriminant
18495 constraint is illegal.
18497 2005-06-14 Robert Dewar <dewar@adacore.com>
18499 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
18500 do with treatment of Set_Col when positioned at end of line character.
18502 2005-06-14 Robert Dewar <dewar@adacore.com>
18504 * atree.adb: (Elist*): Protect against uninitialized field
18506 2005-06-14 Ed Schonberg <schonberg@adacore.com>
18508 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
18509 for an attribute reference that returns an access type.
18510 (Apply_Discriminant_Check): No need for check if (designated) type has
18511 constrained partial view.
18513 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
18514 both bound checks, rather than a conjunction.
18515 (Insert_Valid_Check): If the expression is an actual that is an indexed
18516 component of a bit-packed array, force expansion of the packed element
18517 reference, because it is specifically inhibited elsewhere.
18519 2005-06-14 Vincent Celier <celier@adacore.com>
18521 * clean.adb (Clean_Project): Correctly delete executable specified as
18522 absolute path names.
18524 * make.adb (Gnatmake): Allow relative executable path names with
18525 directory information even when project files are used.
18526 (Change_To_Object_Directory): Fail gracefully when unable to change
18527 current working directory to object directory of a project.
18528 (Gnatmake): Remove exception handler that could no longer be exercized
18529 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
18530 may be deallocated by Normalize_Arguments.
18531 (Collect_Arguments): Eliminate empty arguments
18533 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
18534 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
18535 (Check_Project): Return False when Project is No_Project. Return True
18536 when All_Projects is True.
18537 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
18538 All_Projects to True.
18541 2005-06-14 Ed Schonberg <schonberg@adacore.com>
18542 Javier Miranda <miranda@adacore.com>
18543 Thomas Quinot <quinot@adacore.com>
18544 Robert Dewar <dewar@adacore.com>
18545 Hristian Kirtchev <kirtchev@adacore.com>
18546 Gary Dismukes <dismukes@adacore.com>
18548 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
18549 anonymous access types, to indicate that the accessibility level of
18550 the type is determined by that of the enclosing declaration.
18551 (Has_Persistent_BSS): New flag
18552 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
18553 of this attribute with functions.
18554 (Is_Primitive_Wrapper): Remove the barrier.
18555 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
18556 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
18558 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
18559 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
18561 (Is_Pure_Unit_Access_Type): New flag
18562 (Abstract_Interfaces): Complete the assertion to cover all usages.
18563 (Set_Is_Interface): Complete the assertion to cover all usages.
18564 (Is_Primitive_Wrapper): New attribute.
18565 (Is_Obsolescent): Now applies to all entities (though it is only set
18566 for subprograms currently)
18567 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
18568 which solves various problems concerning access subtypes.
18569 (Has_Persistent_BSS): New flag
18570 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
18571 Remove these subprograms because this attribute is currently
18574 Has_Specified_Stream_Input (Flag190)
18575 Has_Specified_Stream_Output (Flag191)
18576 Has_Specified_Stream_Read (Flag192)
18577 Has_Specified_Stream_Write (Flag193)
18578 Present in all type and subtype entities. Set for a given view if the
18579 corresponding stream-oriented attribute has been defined by an
18580 attribute definition clause. When such a clause occurs, a TSS is set
18581 on the underlying full view; the flags are used to track visibility of
18582 the attribute definition clause for partial or incomplete views.
18583 (Is_Pure_Unit_Access_Type): New flag
18584 Clarify use of Is_Internal.
18585 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
18586 internally generated to wrap the invocation of tasks and protected
18587 types that implement interfaces.
18588 (Implementation_Base_Type): Documentation correction
18589 (Is_Obsolescent): Now applies to all entities (though it is only set
18590 for subprograms currently)
18591 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
18592 which solves various problems concerning access subtypes.
18594 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
18595 for examined parameters. Identify unequal parameter list lengths as
18596 non-conformant parameters.
18597 (Overriding_Possible): Do not check for "All" qualifier in declaration
18598 of controlling access parameter, following prescription of AI-404.
18599 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
18600 that build the procedure body that wraps an entry invocation
18601 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
18602 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
18603 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
18604 give support to abstract interface types
18606 * freeze.adb (Freeze_Entity): Issue error message if
18607 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
18608 type has no storage pool (Ada 2005) AI-366.
18609 Also modified to give support to abstract interface types
18610 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
18611 Inline_Always pragma.
18613 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
18614 now begin an entry declaration.
18615 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
18616 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
18617 a subprogram declaration preceded by an overriding indicator.
18618 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
18619 declarations or subprogram declarations preceded by reserved words
18620 "not" or "overriding".
18621 (P_Entry_Declaration): Update comment. Parse and check overriding
18622 indicator, set semantic flags of entry declarations.
18623 (P_Task): New error message in case of private applied
18624 to a task type declaration.
18625 (P_Protected): New error message in case of private applied
18626 to a task type declaration.
18628 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
18629 in which the full view of a type implementing an interface is a
18631 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
18632 Declare_Inherited_Private_Subprograms): If an explicit operation
18633 overrides an operation that is inherited in the private part, mark the
18634 explicit one as overriding, to enable overriding indicator checks.
18635 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
18636 full view to partial view, to simplify handling in back-end.
18638 * sprint.adb: Print interface lists where needed: derived types,
18639 protected types, task types.
18640 output "is null" for null procedures. Part of implementation of
18642 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
18643 relaxation of rules for access types in pure, shared passive partitions.
18645 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
18646 first read discriminants into temporary objects, performing checks on
18647 the read values, then possibly performing discriminant checks on the
18648 actual (if it is constrained), and only finally reading the components
18649 into a constrained temporary object.
18650 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
18651 case of reading discriminants of a mutable record type to recognize
18652 the new form of the code generated by
18653 Build_Mutable_Record_Read_Procedure.
18655 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
18656 of a simple call to Make_TSS_Name.
18657 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
18658 buffer, in order for Is_TSS to work correctly on local TSS names.
18660 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
18661 Is_Local_Anonymous_Access to check legaliy of attributes in the
18662 context of access components and stand-alone access objects.
18663 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
18664 treated as available for a limited private type if there is an
18665 attribute_definition_clause that applies to its full view, but not in
18666 other cases where the attribute is available for the full view
18667 (specifically, the sole fact that the full view is non-limited does not
18668 make the attribute available for the partial view).
18669 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
18670 non-overloaded intrinsic subprogram.
18671 (Check_Stream_Attribute): Reject an attribute reference for an
18672 unavailable stream attribute even if the prefix is not a limited type
18673 (case of a 'Input attribute reference for an abstract, non-classwide
18675 (Stream_Attribute_Available): New function to determine whether a stream
18676 attribute is available at a place.
18677 (Check_Attribute): Use Stream_Attribute_Available instead of just
18678 testing for TSS presence on the implementation base type.
18679 (Analyze_Attribute): Modified to give support to task interfaces.
18680 (Analyze_Access_Attribute): Add error check for use of an Access (or
18681 Unrestricted_Access) attribute with a subprogram marked as
18683 (Analyze_Attribute, case Attribute_Address): Add error check for use of
18684 an Address attribute with a subprogram marked as Inline_Always.
18685 Update Eval_Attribute to handle new value of Width from AI-395
18687 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
18688 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
18689 Factor common code across the stream-oriented attribute circcuits into
18690 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
18691 processing is functionally identical to the previous duplicated one,
18692 except that an expression that denotes an abstract subprogram will now
18693 be rejected, as mandated by AI-195 item 5.
18695 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
18696 Is_Local_Anonymous_Access to apply accessibility checks to access
18697 components and stand-alone access objects.
18698 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
18700 (Is_Potentially_Persistent_Type): New function
18701 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
18702 a heap-object whose type has a constrained partial view, the object is
18703 unconstrained and the component may depend on a discriminant, making its
18706 * sinfo.ads, sinfo.adb
18707 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
18708 (Must_Override): Flag applicable to N_Entry_Declaration.
18709 Indicate that interface_list can appear in single task and single
18710 protected declarations.
18711 Replace Is_Overriding and Not_Overriding with Must_Override and
18712 Must_Not_Override, to better express intent of AI.
18713 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
18714 of an overriding indicator in a subprogram or instance.
18715 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
18716 Add the overriding indicator [[not] overriding] construct to the
18717 following grammar productions:
18719 GENERIC_INSTANTIATION
18720 SUBPROGRAM_SPECIFICATION
18722 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
18723 can start with an overriding indicator.
18725 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
18726 flags accordingly on subrogram specifications or instances.
18729 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
18730 overriding_indicator, if present, is consistent with status of spec.
18731 Improve error message for null-excluding checks on controlling access
18733 (Check_In_Previous_With_Clause): Protect the frontend against
18734 previously reported critical errors in the context clauses.
18735 Save and restore Ada_Version_Explicit, for implementation of AI-362
18736 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
18737 operation verify that controlling formals of the renamed entity that
18738 are access parameters are explicitly non-null.
18739 (Find_Expanded_Name): Improve error message when prefix is an illegal
18740 reference to a private child unit.
18742 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
18743 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
18744 Rewrite to correspond to new wide character names in AI-395
18746 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
18747 default procedures.
18749 2005-06-14 Ed Schonberg <schonberg@adacore.com>
18750 Robert Dewar <dewar@adacore.com>
18752 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
18753 code, not on the bodies of predefined operations, to cut down on
18756 2005-06-14 Ed Schonberg <schonberg@adacore.com>
18758 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
18759 be expanded in place. The size computation does not require a
18760 subtraction, which would raise an exception on a compiler built with
18761 assertions when the upper bound is Integer'first.
18762 (Flatten): For an array of composite components, take into account the
18763 size of the components to determine whether it is safe to expand the
18764 array into a purely positional representation.
18766 2005-06-14 Thomas Quinot <quinot@adacore.com>
18768 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
18769 denoting a formal parameter into account.
18771 2005-06-14 Ed Schonberg <schonberg@adacore.com>
18773 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
18774 the entry_call alternative of a conditional entry call, wrap the
18775 conditional entry call itself.
18777 2005-06-14 Nicolas Setton <setton@adacore.com>
18778 Ed Schonberg <schonberg@adacore.com>
18780 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
18781 the "simple_choice" member in a variant record, in accordance with the
18782 description in the package spec: the information output for a constant
18783 should be "S number", not "SS number".
18784 (Get_Encoded_Name): Return at once if not generating code. Avoids name
18785 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
18787 2005-06-14 Thomas Quinot <quinot@adacore.com>
18789 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
18790 RACW without any primitives, do not generate the if statement for
18791 dispatching by name in the PolyORB/DSA case, as it would be malformed
18792 (it would have an Elsif_Parts list that is not No_List, but with a
18795 2005-06-14 Robert Dewar <dewar@adacore.com>
18797 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
18799 2005-06-14 Jose Ruiz <ruiz@adacore.com>
18801 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
18802 can determine whether pragma Suppress_Exception_Locations is in effect.
18804 * utils2.c (build_call_raise): Do not pass the file name to the
18805 exception handler if pragma Suppress_Exception_Locations is in effect.
18806 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
18808 2005-06-14 Emmanuel Briot <briot@adacore.com>
18810 * g-debpoo.adb (Deallocate, Dereference): Improve output.
18812 2005-06-14 Nicolas Roche <roche@adacore.com>
18814 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
18816 (Next_Level): Fix minor bug in handling of ../dir case
18817 (Read): Add dir separator to Directory name so that "" is understood as
18820 2005-06-14 Pascal Obry <obry@adacore.com>
18822 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
18823 releasing the items.
18825 2005-06-14 Vincent Celier <celier@adacore.com>
18826 Cyrille Comar <comar@adacore.com>
18828 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
18829 with output file descriptor and with output file name.
18830 (Dup, Dup2): Now global procedures as they are used by two subprograms
18831 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
18833 2005-06-14 Thomas Quinot <quinot@adacore.com>
18836 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
18838 (Create_Selector): Bind listening socket used to create the signalling
18839 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
18840 Set listen backlog to 1 to ensure that we detect socket theft by a
18841 failure of our own connect(2) call.
18842 (Check_Selector): Improve documentation of the selector mechanism.
18843 (Broadcast_Inet_Addr): New constant.
18845 2005-06-14 Gary Dismukes <dismukes@adacore.com>
18847 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
18848 type which turns out to be an incomplete and incorrect fix.
18849 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
18850 of the type is declared in a record (for determination of insertion
18852 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
18853 a private type and ensure that the primary entity is used for the type
18854 of the newly created function's V formal by taking the Etype of the
18857 2005-06-14 Javier Miranda <miranda@adacore.com>
18858 Jose Ruiz <ruiz@adacore.com>
18859 Robert Dewar <dewar@adacore.com>
18860 Ed Schonberg <schonberg@adacore.com>
18862 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
18863 that indicates if we are parsing a compilation unit found in a
18864 limited-with clause.
18865 It is use to avoid the circularity check.
18867 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
18868 we are parsing a compilation unit found in a limited-with clause. This
18869 is use to avoid the circularity check.
18871 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
18872 unit as a consequence of parsing a limited-with clause. This is used
18873 to avoid the circularity check.
18875 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
18876 (Analyze_Context): Limited-with clauses are now allowed
18877 in more compilation units.
18878 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
18879 againts previously reported critical errors in context clauses
18880 (Install_Limited_Withed_Unit): Code cleanup plus static detection
18881 of two further errors: renamed subprograms and renamed packages
18882 are not allowed in limited with clauses.
18883 (Install_Siblings): Do not install private_with_clauses on the package
18884 declaration for a non-private child unit.
18885 (Re_Install_Parents): When a parent of the subunit is reinstalled,
18886 reset visibility of child units properly.
18887 (Install_Withed_Unit): When a child unit appears in a with_clause of its
18888 parent, it is immediately visible.
18890 2005-06-14 Ed Schonberg <schonberg@adacore.com>
18891 Emmanuel Briot <briot@adacore.com>
18893 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
18894 declared within an inlined body as referenced, to prevent spurious
18896 (Output_One_Ref): If an entity renames an array component, indicate in
18897 the ALI file that this aliases (renames) the array. Capture as well
18898 function renamings that rename predefined operations.
18899 Add information about generic parent for package and subprogram
18901 (Get_Type_Reference): For a subtype that is the renaming of an actual in
18902 an instantiation, use the first_subtype to ensure that we don't generate
18903 cross-reference information for internal types.
18904 For objects and parameters of a generic private type, retain the '*'
18905 indicator to distinguish such an entity from its type.
18907 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
18908 to store information about instantiated entities.
18910 * ali.adb (Scan_ALI): Add support for parsing the reference to the
18913 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
18914 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
18917 2005-06-10 Doug Rupp <rupp@adacore.com>
18918 Arnaud Charlet <charlet@adacore.com>
18919 Olivier Hainque <hainque@adacore.com>
18920 Jose Ruiz <ruiz@adacore.com>
18922 * Make-lang.in: Add initialize.o when needed.
18923 Remove obsolete references to RT_FLAGS.
18924 Add missing dependencies for sdefault.o
18926 * initialize.c: New file.
18928 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
18929 [VMS] cond_signal_table: Fix problem in declaration.
18930 [VMS] __gnat_error_handler: rewrite.
18931 Move all __gnat_initialize() routines to initialize.c
18932 Specialize the former "hpux" section to "hppa hpux", as this is what the
18933 section really is here for and we now have other hpux ports that need
18934 different contents.
18935 (__gnat_adjust_context_for_raise) i386-linux: First version of this
18936 function for this target. Adjust PC by one in the machine context. This
18937 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
18938 it is more reliable to do that in the signal handler itself.
18939 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
18940 flags, so that the handler is passed the context structure to adjust
18941 prior to the raise.
18942 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
18943 SA_SIGINFO sigaction should look like. Call
18944 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
18945 Machine_State_Operations stuff.
18946 Add conditional code so that the x86_64 is also supported.
18948 2005-06-14 Pascal Obry <obry@adacore.com>
18950 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
18953 2005-06-14 Robert Dewar <dewar@adacore.com>
18955 * opt.ads, opt.adb: New flags for persistent_bss mode
18956 Add Ada_Version_Explicit, for implementation of AI-362
18957 Add Assertions_Enabled_Config and associated handling
18958 Needed since setting can be changed with Assertion_Policy pragma
18959 Add new flag Warn_On_Ada_2005_Compatibility
18961 * switch-c.adb: Recognize -gnatwy/Y
18962 Set Ada_Version_Explicit, for implementation of AI-362
18963 The -gnatg switch now includes -gnatyu
18965 * usage.adb: Add -gnatwy/Y
18966 Remove wrong asterisk on -gnatwX line
18967 Add line for -gnatyu switch
18969 2005-06-14 Vincent Celier <celier@adacore.com>
18971 * osint.adb (Add_Default_Search_Dirs): Put source and object
18972 directories of project files before directories coming from
18973 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
18975 2005-06-14 Robert Dewar <dewar@adacore.com>
18978 * par-ch2.adb (Scan_Pragma_Argument): New procedure
18979 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
18981 2005-06-14 Vincent Celier <celier@adacore.com>
18983 * prep.adb (Preprocess): Ignore error when scanning the first token of
18986 2005-06-14 Vincent Celier <celier@adacore.com>
18988 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
18989 (Check_Stand_Alone_Library): If the specified reference symbol file does
18990 not exist, only issue a warning when the symbol policy is not
18991 Controlled. And, when symbol policy is Compliant, set the symbol
18992 policy to Autonomous.
18994 2005-06-14 Vincent Celier <celier@adacore.com>
18996 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
18997 when the project file in a with clause is not the last one, that is the
18998 project file name is followed by a comma.
18999 * prj-pp.adb: (First_With_In_List): New Boolean global variable
19000 (Print): Issue list of project files separated by commas in with clauses
19001 according to the values returned by Is_Not_Last_In_List.
19002 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
19003 (Set_Is_Not_Last_In_List): New procedure
19005 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
19007 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
19009 2005-06-14 Robert Dewar <dewar@adacore.com>
19011 * scng.adb: Add call to new Check_EOF routine
19012 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
19013 Add some comments regarding wide character handling
19015 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
19017 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
19019 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
19020 characters are now considered graphic characters and hence yield false
19023 * nmake.adt: Modify header so that xnmake does not generate output
19024 files with multiple blank lines.
19026 * treeprs.adt: Remove a blank line so that output from xtreeprs does
19027 not have an extra blank line
19029 2005-06-14 Gary Dismukes <dismukes@adacore.com>
19031 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
19032 expression when the component type is an anonymous access type to
19033 ensure that appropriate accessibility checks are done.
19035 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
19036 expression of an assignment when the target object is of an anonymous
19037 access type. This ensures that required accessibility checks are done.
19038 (One_Bound): Move the check for type Universal_Integer to
19040 (Process_Bounds): Check whether the type of the preanalyzed range is
19041 Universal_Integer, and in that case set Typ to Integer_Type prior
19042 to setting the type of the original range and the calls to One_Bound.
19044 2005-06-14 Ed Schonberg <schonberg@adacore.com>
19046 * sem_case.adb (Expand_Others_Choice): Improve warning.
19048 2005-06-14 Ed Schonberg <schonberg@adacore.com>
19050 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
19051 constraint of full view if present, when other type is discriminated.
19052 (Eval_Relational_Op): Recognize tests of pointer values against Null,
19053 when the pointer is known to be non-null, and emit appropriate warning.
19055 2005-06-14 Robert Dewar <dewar@adacore.com>
19056 Ed Schonberg <schonberg@adacore.com>
19059 * sem_prag.adb: Implement pragma Persistent_BSS
19060 Remove obsolete pragma Persistent_Data, Persistent_Object
19061 Set Ada_Version_Explicit, for implementation of AI-362
19062 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
19063 Add processing for pragma Pure_05 and Preelaborate_05
19064 Add processing for Assertion_Policy pragma
19065 Add pragma identifiers for Assert
19066 (Analyze_Pragma, case Assert): Check number of arguments
19067 (Process_Inline): Additional guard against an illegal program, where the
19068 argument of the pragma is undefined, and warnings on redundant
19069 constructs are enabled.
19070 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
19071 Ada_05 to this pragma, specifying that the pragma is only active in
19073 (Check_Arg_Order): New procedure
19074 Add appropriate calls to this procedure throughout
19075 Also throughout, check entity name before doing any other checks
19077 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
19078 Remove obsolete pragma Persistent_Data, Persistent_Object
19079 Add entries for pragma Pure_05 and Preelaborate_05
19080 Add entries for Assertion_Policy pragma and associated names
19081 Add some names for pragma argument processing
19083 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
19085 2005-06-14 Ed Schonberg <schonberg@adacore.com>
19087 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
19088 appears within a negation (either from source or as a rewriting of
19089 inequality) adjust text of warning accordingly.
19091 2005-06-14 Thomas Quinot <quinot@adacore.com>
19093 * s-strxdr.adb: Follow AI95-00132
19095 2005-06-14 Arnaud Charlet <charlet@adacore.com>
19097 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
19099 2005-06-14 Arnaud Charlet <charlet@adacore.com>
19100 Jose Ruiz <ruiz@adacore.com>
19102 * s-tposen.adb, s-tpobop.adb
19103 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
19105 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
19106 there is no violation of the Max_Entry_Queue_Length restriction (if it
19107 has been set); Program_Error is raised otherwise.
19108 (Requeue_Call): Before requeuing the task on the target entry queue we
19109 check that there is no violation of the Max_Entry_Queue_Length
19110 restriction (if it has been set); Program_Error is raised otherwise.
19112 2005-06-14 Robert Dewar <dewar@adacore.com>
19114 * styleg.adb: Fix several remaining problems in -gnatyu switch
19115 Blank line count not reset at start
19116 Scanning outside source buffer in some cases
19117 Confusing message for blanks at end of file
19118 Non-empty blank lines not recognized
19120 * nmake.adt: Modify header so that xnmake does not generate output
19121 files with multiple blank lines.
19123 * treeprs.adt: Remove a blank line so that output from xtreeprs does
19124 not have an extra blank line
19126 2005-06-14 Sergey Rybin <rybin@adacore.com>
19128 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
19130 2005-06-14 Doug Rupp <rupp@adacore.com>
19131 Vincent Celier <celier@adacore.com>
19133 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
19136 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
19137 Remove "Library" command.
19138 Change keyword for style check -gnatyd from NOCRLF to
19140 Remove useless second style check keyword NONE
19141 Remove help documentation for inexistent style check keyword
19143 Add help documentation for style check keywords DOS_LINE_ENDINGS,
19144 UNNECESSARY_BLANK_LINES and XTRA_PARENS
19145 Add UNNECESSARY_BLANK_LINES for -gnatyu
19146 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
19148 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
19150 2005-06-14 Vincent Celier <celier@adacore.com>
19152 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
19153 gprmake was invoked with -d.
19154 (Compile_Sources): If -d was used, output the "completed ..." message
19155 for each compilation.
19156 (Scan_Arg): Recognize new switch -d
19157 When -c and at least one main is specified, set
19158 Unique_Compile to True to guarantee that no other sources will be
19161 2005-06-14 Matthew Heaney <heaney@adacore.com>
19163 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
19164 * a-swuwha.ads, a-swuwha.adb: New files
19166 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
19167 * a-szuzha.ads, a-szuzha.adb: New files.
19169 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
19170 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
19171 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
19172 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
19173 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
19174 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
19175 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
19176 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
19177 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
19178 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
19181 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
19182 Olivier Hainque <hainque@adacore.com>
19183 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19184 Pascal Obry <obry@adacore.com>
19186 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
19188 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
19189 making a temporary around a procedure call because of non-addressable
19191 (process_freeze_entity): If entity is a private type, capture size
19192 information that may have been computed for the full view.
19193 (tree_transform, case N_Allocator): If have initializing expression,
19194 check type for Has_Constrained_Partial_View and pass that to
19196 (tree_transform, case N_Return_Statement): Pass extra arg to
19199 * decl.c (annotate_value): Remove early return if -gnatR is not
19201 (gnat_to_gnu_field): Don't make a packable type for a component clause
19202 if the position is byte aligned, the field is aliased, and the clause
19203 size isn't a multiple of the packable alignment. It serves no useful
19204 purpose packing-wise and would be rejected later on.
19205 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
19208 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
19209 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
19211 (create_concat_name): Idem.
19213 2005-06-10 Robert Dewar <dewar@adacore.com>
19214 Eric Botcazou <ebotcazou@adacore.com>
19215 Ben Brosgol <brosgol@adacore.com>
19216 Cyrille Comar <comar@adacore.com>
19217 Sergey Rybin <rybin@adacore.com>
19218 Pascal Obry <obry@adacore.com>
19220 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
19221 Document second argument (Ada_05) of pragma Obsolescent
19222 Add note that call to subprogram marked with pragma Obsolescent
19223 is now considered to be a violation of program Restrictions
19224 (No_Obsolescent_Features).
19225 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
19226 that only machine-dependent attributes are supported.
19229 Commented out menu lines and empty section for gnatclean examples
19231 Fix some over long lines
19232 Clarify and enhance documentation of ADA_PROJECT_PATH.
19233 Rework section 2.11.2(3) about linking with a non-GNU compiler.
19234 Mention new switch -fcallgraph-info.
19235 Mention new switch -fstack-usage.
19236 For gnatpp, replace '-notab' with '-N' and add this option to Index
19237 Corrected VMS example.
19238 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
19240 Add documentation for -gnatyu switch (unnecessary blank lines)
19241 Document new switch -U for GNAT PRETTY and GNAT METRIC
19242 Add note about Stdcall being handled as C convention on non Windows OS.
19243 Remove some junk typo in description of gnatbind -S switch
19244 Remove reference to Extensions_Allowed pragma
19245 Document the new order of the directories to be searched (source and
19246 object directories of project files before directories in ADA_*_PATH
19247 environment variables.
19249 * g-trasym.ads: Document that IRIX is supported
19251 2005-06-10 Arnaud Charlet <charlet@adacore.com>
19253 * Makefile.in: Add initialize.o when needed.
19254 Adapt to new VMS package body Symbols and subunits
19255 No specialized version of a-sytaco is needed for VxWorks.
19257 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
19258 * a-zchara.ads, a-widcha.ads: New files.
19260 * system-hpux-ia64.ads: New file.
19262 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
19263 is imported from the VxWorks kernel.
19265 2005-06-14 Robert Dewar <dewar@adacore.com>
19267 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
19268 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
19269 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
19270 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
19271 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
19272 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
19273 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
19274 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
19275 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
19276 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
19277 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
19278 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
19280 2005-06-14 Thomas Quinot <quinot@adacore.com>
19282 * xeinfo.adb: Fix typo in comment
19284 2005-06-14 Javier Miranda <miranda@adacore.com>
19286 * repinfo.ads: Fix typo in comment
19288 2005-06-14 Gary Dismukes <dismukes@adacore.com>
19290 * s-finimp.adb (Parent_Tag): Delete this imported function (function
19291 Parent_Tag is now in the visible part of Ada.Tags).
19292 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
19293 using imported function.
19295 2005-06-14 Bernard Banner <banner@adacore.com>
19297 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
19298 also apply for handling support for VxSim 653.
19300 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
19302 * xsnames.adb: Add automatic generation of snames.h.
19304 2005-06-14 Thomas Quinot <quinot@adacore.com>
19306 * gen-soccon.c: Add IP_MULTICAST_IF constant
19307 Minor reformatting and adjustments to prevent warnings.
19309 2005-06-14 Pascal Obry <obry@adacore.com>
19311 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
19313 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
19315 * trans.c (gnat_gimplify_expr): Call
19316 recompute_tree_invarant_for_addr_expr when we change
19317 the operand of the ADDR_EXPR.
19319 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19321 * misc.c: Don't include errors.h.
19323 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19325 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
19327 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
19329 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
19331 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
19333 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
19336 * Makefile.in: Make TGT_LIB behave correctly.
19338 2005-04-23 DJ Delorie <dj@redhat.com>
19340 * misc.c: Adjust warning() callers.
19342 2005-04-16 Laurent GUERBY <laurent@guerby.net>
19345 * a-nudira.adb (Value): Check for valid string.
19346 * a-nuflra.adb (Value): Likewise.
19348 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
19350 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
19352 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
19354 * adaint.c, init.c, tracebak.c: Fix comment typos.
19355 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
19357 2005-04-07 Laurent GUERBY <laurent@guerby.net>
19358 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19360 * Makefile.in: Add make ifeq define for hppa linux tasking support.
19361 * system-hpux.ads: Define Signed_Zeros to be True.
19362 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
19364 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
19366 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
19367 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
19370 2005-03-30 Tom Tromey <tromey@redhat.com>
19372 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
19374 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
19376 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
19378 2005-03-29 Robert Dewar <dewar@adacore.com>
19380 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
19381 fixed-point expression has value that is not a multiple of the Small
19384 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
19386 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
19389 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
19391 2005-03-29 Vincent Celier <celier@adacore.com>
19393 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
19394 (Build_Dynamic_Library.Version_String): Return the empty string when
19395 Lib_Version is empty or when the symbol policy is not Autonomous.
19397 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
19398 a symbol is not in the reference symbol file, increase the Major ID
19399 and set the Minor ID to 0.
19400 Use gsmatch=lequal instead of gsmatch=equal
19402 2005-03-29 Doug Rupp <rupp@adacore.com>
19404 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
19405 name and translate.
19407 2005-03-29 Javier Miranda <miranda@adacore.com>
19409 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
19410 (Inherit_DT): The first formal has been redefined as a Tag.
19411 This allows us the removal of the subprogram Get_TSD.
19412 (TSD): Replace the call to Get_TSD by the actual code.
19414 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
19415 (Make_DT): Upgrade the call to Inherit_TSD according to the
19416 new interface: the first formal is now a Tag.
19418 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
19419 redefined as a Tag.
19420 This change allows us to remove the subprogram Get_TSD.
19421 (CPP_Get_TSD): Subprogram removed.
19422 (TSD): Replace the call to CPP_Get_TSD by the actual code.
19424 * rtsfind.ads: Remove support to call the run-time
19427 2005-03-29 Robert Dewar <dewar@adacore.com>
19429 * errutil.adb, errout.adb:
19430 Minor comment updates on Line_Terminator references
19432 * par-ch10.adb: Add ??? comment about line terminator
19434 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
19435 (check dos line terminator).
19436 (Check_Line_Max_Length): New procedure, split off from the existing
19437 Check_Line_Terminator routine. Separating this out allows -gnatyf to
19438 be properly recognized.
19440 * styleg.adb: Add ??? comment for line terminator reference
19442 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
19443 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
19445 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
19446 (check dos line terminator).
19447 (Check_Line_Max_Length): New procedure, split off from the existing
19448 Check_Line_Terminator routine. Separating this out allows -gnatyf to
19449 be properly recognized.
19451 * stylesw.ads, stylesw.adb:
19452 Add handling for new -gnatyd switch (check dos line terminator)
19454 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
19455 Recognize -gnatwb/-gnatwB switches
19456 Include Warn_On_Bad_Fixed_Value for -gnatg
19459 Add line for new -gnatyd switch (check dos line terminator)
19461 * usage.adb: Add lines for -gnatwb/-gnatwB
19463 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
19465 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
19467 * gnat_ugn.texi: Fix overlong lines
19468 Document new -gnatyd switch
19469 Document new -gnatwb/-gnatwB switches
19471 2005-03-29 Ed Schonberg <schonberg@adacore.com>
19473 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
19474 order to retrieve the component list of the type, before examining
19475 individual components.
19477 * sem_type.adb (Covers): Types are compatible if one is the base type
19478 of the other, even though their base types might differ when private
19479 views are involved.
19481 2005-03-29 Thomas Quinot <quinot@adacore.com>
19483 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
19484 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
19485 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
19486 analyzed if expansion is disabled (which could otherwise cause spurious
19487 error messages if expansion has been disabled due to previous
19488 (unrelated) errors).
19490 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
19491 is disabled, the entity denoted by the argument is the access type
19492 itself, not an underlying record type, so there is no need to go back
19493 to the Corresponding_Remote_Type.
19495 2005-03-29 Gary Dismukes <dismukes@adacore.com>
19496 Robert Dewar <dewar@adacore.com>
19498 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
19499 expand a call to an instance of
19500 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
19501 Constructor actual of the instance. A class-wide membership
19502 check is also generated, to ensure that the tag passed to the instance
19503 denotes a type in the class.
19504 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
19505 of Name_Generic_Dispatching_Constructor.
19507 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
19508 05 unit for AI-260-02).
19510 * a-tgdico.ads: New file.
19512 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
19513 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
19515 * snames.ads, snames.adb (Preset_Names): Add entry for
19516 Generic_Dispatching_Constructor.
19519 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
19520 character type cases.
19521 (Analyze_Subprogram_Renaming): Add special handling for
19522 the case of renaming of stream attributes when the renaming denotes a
19523 generic formal subprogram association for an abstract formal subprogram.
19524 Check that the attribute is a primitive stream attribute (and not
19525 a class-wide stream attribute) and then rewrite the attribute name
19526 as the name of the appropriate compiler-generated stream primitive.
19528 2005-03-29 Robert Dewar <dewar@adacore.com>
19530 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
19532 (Is_Possibly_Unaligned_Object): Correct typo that
19533 resulted in inaccurate result for unaligned scalars within records.
19535 2005-03-29 Ed Schonberg <schonberg@adacore.com>
19537 * freeze.adb (Freeze_Record_Type): If the type of the component is an
19538 itype whose parent is controlled and not yet frozen, do not create a
19539 freeze node for the itype if expansion is disabled.
19541 2005-03-29 Vincent Celier <celier@adacore.com>
19543 * make.adb (Gnatmake): Don't fail if the main project file is declared
19544 as having no Ada sources. Do not display message "no sources to
19545 compile" in quiet output.
19547 2005-03-29 Doug Rupp <rupp@adacore.com>
19549 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
19552 2005-03-29 Robert Dewar <dewar@adacore.com>
19554 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
19557 2005-03-29 Robert Dewar <dewar@adacore.com>
19559 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
19560 missing TYPE Improve the error message generated when compiling a
19561 limited interface in Ada83 or Ada95 mode.
19563 2005-03-29 Robert Dewar <dewar@adacore.com>
19565 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
19566 rather than proceed ahead using a junk attribute name.
19568 2005-03-29 Vincent Celier <celier@adacore.com>
19570 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
19572 * prj-part.adb (Parse_Single_Project): Set the location of a project
19573 on its defining identifier, rather than on the reserved word "project".
19575 * prj-proc.adb (Expression): Adapt to the fact that default of external
19576 references may be string expressions, not always literal strings.
19577 (Recursive_Process): Set Display_Name equal to Name
19578 when Location is No_Location, that is when there is no actual file.
19579 Get the Display_Name of the project from the source, when it is not a
19581 (Process): Use the Display_Name in error messages
19583 * prj-strt.adb (External_Reference): Allow default to be string
19584 expressions, not only literal strings.
19586 2005-03-29 Vincent Celier <celier@adacore.com>
19588 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
19589 file and the reference symbol file to be the same file.
19591 2005-03-29 Thomas Quinot <quinot@adacore.com>
19593 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
19594 forbid conversion of a local access-to-subprogram type to a remote one.
19596 * sem_util.adb (Wrong_Type): For a record type that is the expanded
19597 equivalent type for a remote access-to-subprogram type, go back to the
19598 original RAS entity when displaying an error message, so the casing is
19599 the original source casing.
19601 2005-03-29 Robert Dewar <dewar@adacore.com>
19603 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
19606 2005-03-29 Ed Schonberg <schonberg@adacore.com>
19608 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
19609 subtype if code is being pre-analyzed, to prevent un-expanded
19610 references to protected formals, among others.
19611 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
19612 interpretation that can be a call, include the result of the call as a
19613 possible interpretation of the dereference.
19615 * sem_ch5.adb (Process_Bounds): Determine type of range by
19616 pre-analyzing a copy of the original range, and then analyze the range
19617 with the expected type.
19619 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
19620 with an overloaded prefix where not all interpretations yield an
19621 access to subprogram, do not rewrite node as a call.
19622 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
19623 the node as a call once the context identifies the interpretation of
19624 the prefix whose call yields the context type.
19625 (Valid_Conversion): For the case of a conversion between
19626 local access-to-subprogram types, check subtype conformance using
19627 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
19628 detailed error message.
19630 2005-03-29 Ed Schonberg <schonberg@adacore.com>
19632 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
19633 indicator, indicate that the formal can never be null.
19634 (Process_Formals): If a formal has a non_null indicator, insert the
19635 resulting subtype immediately before the enclosing subprogram decl,
19636 and not at the beginning of the corresponding declarative part, to
19637 prevent access before elaboration (Ada2005).
19639 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19642 * utils.c (finish_record_type): Use variable_size when setting sizes.
19644 2005-03-29 Robert Dewar <dewar@adacore.com>
19646 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
19647 guarantee Unix style line terminators for the output files, even when
19648 running on windows.
19650 2005-03-29 Robert Dewar <dewar@adacore.com>
19652 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
19653 buffer if an exception is raised.
19655 2005-03-29 Ed Falis <falis@adacore.com>
19657 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
19660 2005-03-29 Robert Dewar <dewar@adacore.com>
19662 * sem_util.ads: Minor reformatting
19663 * gnat_rm.texi: Minor editing.
19665 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
19667 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
19668 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
19670 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
19672 * adaint.c (__gnat_portable_spawn): Adjust cast.
19674 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
19676 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
19678 2005-03-17 Pascal Obry <obry@adacore.com>
19680 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
19683 * expect.c (__gnat_waitpid): Moved here from adaint.c.
19684 Reimplement under Win32 using Win32 API.
19686 (__gnat_kill) [Win32]: Properly close the process handle before leaving
19689 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
19691 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
19692 (DECL_RENAMED_OBJECT): New accessor macro.
19693 (SET_DECL_RENAMED_OBJECT): New setter macro.
19695 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
19696 object in all cases. Attach the renamed object to the VAR_DECL.
19697 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
19698 field is not prescribed.
19700 * misc.c (gnat_handle_option): Handle -gnatO separately.
19701 (gnat_print_decl) <VAR_DECL>: New case.
19702 Print the DECL_RENAMED_OBJECT node.
19704 * lang.opt: Declare separate -gnatO option.
19706 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
19707 pointer, replace it with the renamed object.
19708 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
19709 pointer type if the source is not a fat pointer type whose underlying
19710 array has the same non-zero alias set as that of the destination array.
19712 2005-03-17 Javier Miranda <miranda@adacore.com>
19714 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
19715 (Get_Inheritance_Depth): Removed.
19716 (Set_Inheritance_Depth): Removed.
19718 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
19719 subprogram Get_Expanded_Name because it is not referenced by the
19722 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
19723 (CPP_Get_Inheritance_Depth): Removed.
19724 (CPP_Set_Inheritance_Depth): Removed.
19726 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
19728 2005-03-17 Robert Dewar <dewar@adacore.com>
19730 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
19731 3, since we now expect GCC 3 to do all the work.
19733 2005-03-17 Javier Miranda <miranda@adacore.com>
19735 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
19736 of one barrier to avoid wrong usage of this attribute.
19738 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
19739 First_Private_Entity.
19741 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
19742 the subprogram against wrong usage.
19743 Adapt the code to traverse the entities in the
19744 scope of a record_type because in addition to its usage regarding
19745 packages, this subprogram is also called by Expand_N_Freeze_Entity
19746 to install the visible declarations of the enclosing scope of a
19747 record_type_with_private to establish the proper visibility before
19748 freezing the entity and related subprograms.
19750 2005-03-17 Ed Schonberg <schonberg@adacore.com>
19752 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
19755 2005-03-17 Thomas Quinot <quinot@adacore.com>
19757 * exp_ch3.adb (Check_Attr): New subprogram.
19758 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
19759 into a new Check_Attr subprogram, in order to provide a more
19760 explanatory error message (including the name of the missing attribute).
19761 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
19762 subprogram determines whether a default implementation exists for a
19763 given stream attribute.
19764 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
19765 Determine whether to generate a default implementation for each stream
19766 attribute separately, as this depends on the specific attribute.
19768 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
19769 limited extension where a stream attribute is missing for a limited
19770 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
19771 generate a bogus reference to the missing attribute to prevent
19772 cascaded errors. Instead, generate a null statement.
19774 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
19775 available for a limited type if it has been specified for an ancestor
19778 2005-03-17 Ed Schonberg <schonberg@adacore.com>
19780 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
19781 entity is an operator.
19783 2005-03-17 Thomas Quinot <quinot@adacore.com>
19785 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
19786 spec, to make this predicate available to other units.
19788 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
19791 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
19792 when no distribution runtime library is available.
19794 * sem_res.adb, sem_dist.adb: Disable expansion of remote
19795 access-to-subprogram types when no distribution runtime library is
19797 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
19798 predicate available to other units.
19800 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
19801 spec, to make this predicate available to other units.
19803 2005-03-17 Vincent Celier <celier@adacore.com>
19805 * make.adb (Insert_Project_Sources): Make sure the Q is always
19808 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
19809 the default for the tree, not the global default naming.
19811 * prj-proc.adb (Recursive_Process): No need to put the default naming
19812 in the project data, it's already there.
19814 2005-03-17 Doug Rupp <rupp@adacore.com>
19816 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
19818 * 5xcrtl.ads: Renamed to...
19819 * s-crtl-vms64.ads: ...this new file
19821 2005-03-17 Robert Dewar <dewar@adacore.com>
19824 * namet.adb (Copy_One_Character): Set proper wide character encoding
19825 for upper half character if we have upper half encoding.
19827 2005-03-17 Robert Dewar <dewar@adacore.com>
19829 * par.adb (Par): Improved msg for attempt to recompile predefined unit
19831 2005-03-17 Thomas Quinot <quinot@adacore.com>
19833 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
19834 tagged limited type, the TSS is a newly built renaming declaration:
19835 insert it using Set_TSS, not Copy_TSS.
19837 2005-03-17 Javier Miranda <miranda@adacore.com>
19839 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
19840 Try_Object_Operation): Analyze the object that is accessible
19841 through the prefix of the subprogram call before we apply
19842 the transformation of the object-operation notation.
19844 2005-03-17 Jose Ruiz <ruiz@adacore.com>
19846 * s-taprob.adb (Initialize_Protection): Initialize the protected
19847 object's owner to Null_Task.
19848 (Lock): If pragma Detect_Blocking is in effect and the caller of this
19849 procedure is already the protected object's owner then Program_Error
19850 is raised. In addition the protected object's owner is updated.
19851 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
19852 of this procedure is already the protected object's owner then
19853 Program_Error is raised.
19854 In addition the protected object's owner is updated.
19855 (Unlock): Remove the ownership of the protected object.
19857 * s-taprob.ads (Protection): Add the field Owner, used to store the
19858 protected object's owner.
19859 This component is needed for detecting one type of potentially blocking
19860 operations (external calls on a protected subprogram with the same
19861 target object as that of the protected action). Document the rest of
19864 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
19865 Initialize the protected object's owner to Null_Task.
19866 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
19867 caller of this procedure is already the protected object's owner then
19868 Program_Error is raised.
19869 Do not raise Program_Error when this procedure is called from a
19871 (Unlock_Entries): Remove the ownership of the protected object.
19872 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
19873 of this procedure is already the protected object's owner then
19874 Program_Error is raised.
19875 Do not raise Program_Error when this procedure is called from
19876 a protected action.
19878 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
19879 used to store the protected object's owner.
19881 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
19882 effect and this procedure (a potentially blocking operation) is called
19883 from whithin a protected action, Program_Error is raised.
19884 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
19885 and this procedure (a potentially blocking operation) is called from
19886 whithin a protected action, Program_Error is raised.
19888 2005-03-17 Vincent Celier <celier@adacore.com>
19889 Nicolas Setton <setton@adacore.com>
19891 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
19892 switch, not supported by the linker on Darwin. Add '_' before
19893 <library>init, as this character is added unconditionally by the
19895 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
19896 correct one ".dylib". This fixes detection of the archive files when
19897 building library projects.
19899 2005-03-17 Vincent Celier <celier@adacore.com>
19901 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
19902 -gnat83, -gnat95 and -gnat05.
19904 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
19906 * gnat_ugn.texi: Document gnatmem restriction
19908 2005-03-17 Thomas Quinot <quinot@adacore.com>
19910 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
19913 2005-03-17 Robert Dewar <dewar@adacore.com>
19915 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
19916 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
19917 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
19919 * casing.adb: Comment improvements
19921 2005-03-17 Pascal Obry <obry@adacore.com>
19923 * g-expect.adb: Minor reformatting.
19925 2005-03-15 Zack Weinberg <zack@codesourcery.com>
19927 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
19928 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
19931 2005-03-15 Vincent Celier <celier@adacore.com>
19933 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
19934 Add new parameter In_Tree to specify the project tree: needed
19935 by the project manager. Adapt to changes in project manager
19936 using new parameter In_Tree.
19938 2005-03-15 Jakub Jelinek <jakub@redhat.com>
19940 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
19941 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
19942 ada/bldtools to avoid make -jN failures.
19944 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
19946 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
19947 to NULL_TREE on entry.
19949 2005-03-15 Robert Dewar <dewar@adacore.com>
19951 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
19952 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
19953 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
19954 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
19955 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
19956 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
19957 system-interix.ads, system-solaris-sparc.ads,
19958 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
19959 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
19960 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
19961 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
19962 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
19963 Compiler_System_Version to be False.
19965 * opt.ads: Add new flag Opt.Address_Is_Private
19967 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
19968 Add new parameter Compiler_System_Version to avoid checking for
19969 completeness of parameters when compiler is compiling itself.
19970 Allows old versions of GNAT to be compiled with new compiler.
19972 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
19974 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
19975 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
19977 (Stack_Base_Available): New flag.
19978 (Get_Page_Size): New overloaded functions imported from C.
19979 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
19980 PROT_ON, PROT_OFF): New constants.
19981 (mprotect): New function imported from C.
19982 (pthread_teb_t): New record type.
19984 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
19985 (Create_Task): Account for the Yellow Zone and the guard page.
19987 2005-03-15 Vincent Celier <celier@adacore.com>
19989 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
19990 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
19991 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
19992 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
19993 Library_File_Name_For): Add new parameter In_Tree
19994 to specify the project tree: needed by the project manager.
19995 Adapt to changes in project manager using new parameter In_Tree.
19996 Remove local imports, use functions in System.CRTL.
19998 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
19999 to use the project manager.
20001 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
20002 In_Tree to designate the project tree. Adapt to changes in the project
20003 manager, using In_Tree.
20005 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
20006 Copy_Interface_Sources): Add new parameter In_Tree to specify the
20007 project tree: needed by the project manager.
20008 (Build_Library): Check that Arg'Length >= 6 before checking if it
20009 contains "--RTS=...".
20011 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
20012 Library_File_Name_For): Add new parameter In_Tree to specify the
20013 project tree: needed by the project manager.
20015 * prj.ads, prj.adb: Major modifications to allow several project trees
20016 in memory at the same time.
20017 Change tables to dynamic tables and hash tables to dynamic hash
20018 tables. Move tables and hash tables from Prj.Com (in the visible part)
20019 and Prj.Env (in the private part). Move some constants from the visible
20020 part to the private part. Make other constants deferred.
20021 (Project_Empty): Make it a variable, not a function
20022 (Empty_Project): Add parameter Tree. Returns the data with the default
20023 naming data of the project tree Tree.
20024 (Initialize): After updating Std_Naming_Data, copy its value to the
20025 component Naming of Project Empty.
20026 (Register_Default_Naming_Scheme): Use and update the default naming
20027 component of the project tree, instead of the global variable
20029 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
20030 Tree is not defaulted, return the default naming data of the Tree.
20031 (Initial_Buffer_Size): Constant moved from private part
20032 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
20033 variables initialized in procedure Initialize.
20034 (Add_To_Buffer): Add two in out parameters to replace global variables
20035 Buffer and Buffer_Last.
20036 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
20038 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
20040 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
20041 for the project tree.
20042 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
20043 constant at the beginning of the package spec, so that they cane be used
20044 in subprograms before their full declarations.
20045 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
20046 (Empty_Project): Add parameter of type Project_Node_Ref
20047 (Private_Project_Tree_Data): Add component Default_Naming of type
20049 (Buffer, Buffer_Last): remove global variables
20050 (Add_To_Buffer): Add two in out parameters to replace global variables
20051 Buffer and Buffer_Last.
20052 (Current_Packages_To_Check): Remove global variable
20053 (Empty_Name): Move to private part
20054 (No-Symbols): Make it a constant
20055 (Private_Project_Tree_Data): New type for the private part of the
20057 (Project_Tree_Data): New type for the data of a project tree
20058 (Project_Tree_Ref): New type to designate a project tree
20059 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
20060 for the project tree.
20062 * prj-attr.ads: Add with Table; needed, as package Prj no longer
20063 imports package Table.
20065 * prj-com.adb: Remove empty, no longer needed body
20067 * prj-com.ads: Move most of the content of this package to package Prj.
20069 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
20070 designate the project node tree and Packages_To_Check to replace
20071 global variable Current_Packages_To_Check.
20072 Add new parameters In_Tree and Packages_To_Check to local subprograms,
20073 when needed. Adapt to changes in project manager with project node tree
20076 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
20077 project tree to most subprograms. Move tables and hash tables to
20078 private part of package Prj.
20079 Adapt to changes in project manager using project tree In_Tree.
20081 * prj-makr.adb (Tree): New constant to designate the project node tree
20082 Adapt to change in project manager using project node tree Tree
20084 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
20085 display the Library_Src_Dir and the Library_Dir.
20086 Add new parameter In_Tree to designate the project node tree to most
20087 subprograms. Adapt to changes in the project manager, using project tree
20089 (Check_Naming_Scheme): Do not alter the casing on platforms where
20090 the casing of file names is not significant.
20091 (Check): Add new parameter In_Tree to designate the
20093 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
20094 designate the project tree.
20095 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
20097 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
20098 to replace those that were in the private part of package Prj.
20099 Add new parameter In__Tree to designate the project node tree to most
20100 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
20101 (Post_Parse_Context_Clause): When specifying the project node of a with
20102 clause, indicate that it is a limited with only if there is "limited"
20103 in the with clause, not necessarily when In_Limited is True.
20104 (Parse): Add new parameter In_Tree to designate the project node tree
20106 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
20107 designate the project node tree. Adapt to change in Prj.Tree with
20108 project node tree In_Tree.
20110 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
20111 tree In_Tree in the call to function Empty_Process to give its initial
20112 value to the project data Processed_Data.
20113 Add new parameters In_Tree to designate the project tree and
20114 From_Project_Node_Tree to designate the project node tree to several
20115 subprograms. Adapt to change in project manager with project tree
20116 In_Tree and project node tree From_Project_Node_Tree.
20118 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
20119 to replace those that were in the private part of package Prj.
20120 Add new parameter In_Tree to designate the project node tree to most
20121 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
20123 * prj-tree.ads, prj-tree.adb: Add new parameter of type
20124 Project_Node_Tree_Ref to most subprograms.
20125 Use this new parameter to store project nodes in the designated project
20127 (Project_Node_Tree_Ref): New type to designate a project node tree
20128 (Tree_Private_Part): Change table to dynamic table and hash tables to
20129 dynamic hash tables.
20131 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
20132 the project tree to most subprograms. Adapt to changes in project
20133 manager using project tree In_Tree.
20135 * makegpr.adb (Project_Tree): New constant needed to use project
20138 2005-03-15 Olivier Hainque <hainque@adacore.com>
20140 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
20141 for sigactions with SA_SIGINFO set. Call
20142 __gnat_adjust_context_for_raise before raising, to perform the
20143 potentially required adjustments to the machine context for the GCC
20146 * raise.h (__gnat_adjust_context_for_raise): New prototype.
20148 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
20149 Adjust PC by one in the provided machine context.
20150 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
20151 so that the handler is passed the context structure to adjust prior to
20153 (__gnat_error_handler) HPUX: Adjust the signature to match what an
20154 SA_SIGINFO sigaction should look like. Call
20155 __gnat_adjust_context_for_raise before actually raising.
20156 (__gnat_adjust_context_for_raise): Default noop to help PC
20157 adjustments before raise from signal handlers.
20158 (__gnat_error_handler): Indirectly call a predicate function to
20159 determine if a condition should be resignaled or not.
20160 (__gnat_set_resignal_predicate): User interface to modify the predicate.
20161 (__gnat_default_resignal_p): Default GNAT predicate.
20163 2005-03-15 Doug Rupp <rupp@adacore.com>
20165 * adaint.c: Prefix #include of VMS system header files with vms/
20166 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
20167 Do not define a dummy function "convert_addresses" under Darwin,
20170 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
20173 2005-03-15 Nicolas Setton <setton@adacore.com>
20175 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
20178 2005-03-15 Robert Dewar <dewar@adacore.com>
20180 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
20183 * a-retide.ads: Minor comment changes
20185 2005-03-15 Robert Dewar <dewar@adacore.com>
20187 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
20188 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
20189 Realloc_For_Chunk to private part of package.
20190 New subprograms for AI-301
20192 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
20193 Get_Line procedure.
20194 Avoid unnecessary use of Get/Set_Wide_String
20196 2005-03-15 Robert Dewar <dewar@adacore.com>
20199 * a-stunau.ads, a-stunau.adb:
20200 Change interface to allow efficient (and correct) implementation
20201 The previous changes to allow extra space in unbounded strings had
20202 left this interface a bit broken.
20204 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
20206 * g-spipat.ads, g-spipat.adb: New interface for Get_String
20207 Minor reformatting (function specs)
20209 * g-spitbo.adb: New interface for Get_String
20211 * g-spitbo.ads: Minor reformatting
20213 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
20215 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
20217 2005-03-15 Javier Miranda <miranda@adacore.com>
20218 Robert Dewar <dewar@adacore.com>
20219 Thomas Quinot <quinot@adacore.com>
20220 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20222 * atree.ads, atree.adb: Add support for Elist24 field
20224 * atree.h: Fix wrong definition of Field27
20225 Add support for Elist16 field
20226 Add support for Elist24 field
20228 * einfo.ads, einfo.adb (Abstract_Interfaces,
20229 Set_Abstract_Interfaces): New subprograms.
20230 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
20232 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
20233 entities rather than a single node.
20234 (Is_Interface, Set_Is_Interface): New subprogram
20235 (First_Tag_Component): New syntesized attribute
20236 (Next_Tag_Component): New synthesized attribute
20237 (Write_Entity_Flags): Upgraded to write Is_Interface
20238 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
20239 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
20240 (Task_Body_Procedure): New subprogram to read this attribute.
20241 (Set_Task_Body_Procedure): New subprogram to set this attribute.
20242 (Has_Controlled_Component): Now applies to all entities.
20243 This is only a documentation change, since it always worked to apply
20244 this to other than composite types (yielding false), but now this is
20246 Update documentation on Must_Be_Byte_Aligned for new spec
20248 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
20249 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
20250 uses of the Access_Disp_Table attribute to reference the first dispatch
20251 table associated with a tagged type. As
20252 part of the implementation of abstract interface types,
20253 Access_Disp_Table has been redefined to contain a list of dispatch
20254 tables (rather than a single dispatch table).
20255 Similarly, upgrade all the references to Tag_Component by the
20256 new attribute First_Tag_Component.
20257 (Find_Inherited_TSS): Moved to exp_tss.
20258 Clean up test in Expand_N_Object_Declaration for cases
20259 where we need to do a separate assignment of the initial value.
20260 (Expand_N_Object_Declaration): If the expression in the
20261 declaration of a tagged type is an aggregate, no need to generate an
20262 additional tag assignment.
20263 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
20265 Bit packed array ops are only called if operands are known to be
20267 (Component_Equality): When returning an N_Raise_Program_Error statement,
20268 ensure that its Etype is set to Empty to avoid confusing GIGI (which
20269 expects that only expressions have a bona fide type).
20270 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
20271 determine the amount of data to be copied.
20273 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
20274 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
20275 INTERFACE_TYPE_DEFINITION ::=
20276 [limited | task | protected | synchronized] interface
20277 [AND interface_list]
20279 * par-ch3.adb (P_Type_Declaration): Modified to give support to
20281 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
20283 (P_Interface_Type_Definition): New subprogram that parses the new
20284 syntax rule of Ada 2005 interfaces
20285 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
20286 messages by the correct RENAMES (quotes removed).
20288 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
20289 attribute First_Tag_Component.
20291 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
20292 (Interface_List, Set_Interface_List): New subprograms.
20293 (Interface_Present, Set_Interface_Present): New subprograms.
20294 (Limited_Present, Set_Limited_Present): Available also in derived
20295 type definition nodes.
20296 (Protected_Present, Set_Protected_Present): Available also in
20297 record type definition and
20298 derived type definition nodes.
20299 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
20300 (Task_Present, Set_Task_Present): New subprogram.
20301 (Task_Body_Procedure): Removed.
20302 (Set_Task_Body_Procedure): Removed.
20303 These subprogram have been removed because the attribute
20304 Task_Body_Procedure has been moved to the corresponding task type
20305 or task subtype entity to leave a field free to store the list
20306 of interfaces implemented by a task (for AI-345)
20307 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
20308 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
20309 expression flag Do_Range_Check
20310 (Exception_Junk): Change to Flag7 to accomodate above change
20311 (Box_Present, Default_Name, Specification, Set_Box_Present,
20312 Set_Default_Name, Set_Specification): Expand the expression
20313 "X in N_Formal_Subprogram_Declaration" into the corresponding
20314 two comparisons. Required to use the csinfo tool.
20316 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
20317 "with string" given.
20319 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
20322 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
20325 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
20326 attribute Task_Body_Procedure rather than the old semantic field that
20327 was available in the task_type_declaration node.
20329 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
20330 interface type definitions.
20331 (P_Formal_Derived_Type_Definition): Modified to handle the list of
20334 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
20335 task type declaration.
20336 (P_Protected): Modified to handle the list of interfaces in a
20337 protected type declaration.
20339 2005-03-15 Doug Rupp <rupp@adacore.com>
20340 Vincent Celier <celier@adacore.com>
20342 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
20343 (Gen_Output_File_C): Likewise.
20344 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
20346 2005-03-15 Thomas Quinot <quinot@adacore.com>
20348 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
20349 is an N_Raise_Constraint_Error node, create a new copy of it without
20350 going through a call to Duplicate_Subexpr.
20352 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
20353 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20354 Nicolas Setton <setton@adacore.com>
20355 Ed Schonberg <schonberg@adacore.com>
20361 * decl.c (gnat_to_gnu_field): Reject aliased components with a
20362 representation clause that prescribes a size not equal to the rounded
20363 size of their types.
20364 (gnat_to_gnu_entity, case E_Component): Always look at
20365 Original_Record_Component if Present and not the entity.
20366 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
20367 of tagged extension types by not making field for components that are
20369 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
20370 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
20371 expression to the type of the object when the object is constant.
20372 Reverse defer_debug_incomplete_list before traversing it, so that trees
20373 are processed in the order at which they were added to the list. This
20374 order is important when using the stabs debug format.
20375 If we are deferring the output of debug information, also defer this
20376 output for a function return type.
20377 When adding fields to a record, prevent emitting debug information
20378 for incomplete records, emit the information only when the record is
20380 (components_to_record): New parameter defer_debug.
20381 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
20382 (gnat_to_gnu_field_decl): New function.
20383 (substitution_list, annotate_rep): Call it.
20384 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
20385 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
20386 No longer update discriminants to not be a COMPONENT_REF.
20387 (copy_alias_set): Strip padding from input type; also handle
20388 unconstrained arrays properly.
20390 * gigi.h (write_record_type_debug_info): New function.
20391 Convert to use ANSI-style prototypes. Remove unused
20392 declarations for emit_stack_check, elab_all_gnat and
20393 set_second_error_entity.
20394 (gnat_to_gnu_field_decl): New decl.
20396 * utils.c (write_record_type_debug_info): New function.
20397 (finish_record_type): Delegate generation of debug information to
20398 write_record_type_debug_info.
20399 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
20400 (update_pointer_to): Fix pasto.
20401 (convert) <UNION_TYPE>: Accept slight type variations when
20402 converting to an unchecked union type.
20404 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
20405 replace the N_Freeze_Entity with a null statement.
20407 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
20408 within a constrained subcomponent of an enclosing record, place the
20409 freeze nodes in the scope stack entry for the enclosing record.
20410 (Undelay_Type): New Subprogram.
20411 (Set_Small_Size): Pass T, the type to modify; all callers changed.
20412 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
20413 within records; allow them to have freeze nodes if their base types
20416 * exp_util.adb (Remove_Side_Effects): Properly test for
20417 Expansion_Delayed and handle case when it's inside an
20418 N_Qualified_Expression.
20420 * sem_ch3.adb (Derived_Type_Declaration): New predicate
20421 Comes_From_Generic, to recognize accurately that the parent type in a
20422 derived type declaration can be traced back to a formal type, because
20423 it is one or is derived from one, or because its completion is derived
20425 (Constrain_Component_Type): If component comes from source and has no
20426 explicit constraint, no need to constrain in in a subtype of the
20428 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
20429 Minor change to propagate Is_Ada_2005 flag
20431 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
20432 Expansion_Delayed is False.
20433 (assoc_to_constructor): Ignore fields that have a
20434 Corresponding_Discriminant.
20435 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
20436 function returns "by target", dereference the target pointer using the
20437 type of the actual return value.
20438 <all>: Be prepared for a null gnu_result.
20439 (processed_inline_subprograms): Check flag_really_no_inline
20440 instead of flag_no_inline.
20441 (set_second_error_entity): Remove unused function.
20442 (gnat_to_gnu, case N_Selected_Component): Call
20443 gnat_to_gnu_field_decl.
20444 (assoc_to_constructor): Likewise.
20446 2005-03-15 Robert Dewar <dewar@adacore.com>
20447 Ed Schonberg <schonberg@adacore.com>
20448 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20450 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
20451 Must_Be_Byte_Aligned for cases where we do not need to use a
20452 System.Pack_nn unit.
20454 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
20456 Needed now that we do some processing for IN parameters as well. This
20457 may well fix some unrelated errors.
20458 (Expand_Call): Handle case of unaligned objects (in particular those
20459 that come from packed arrays).
20460 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
20461 renamed entity is an inherited operation, re-expand the call using the
20462 original operation, which is the one to call.
20463 Detect attempt to inline parameterless recursive subprogram.
20464 (Represented_As_Scalar): Fix to work properly with private types
20465 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
20466 accurate estimate. Yields True in far fewer cases than before,
20467 improving the quality of code that depends on this test.
20469 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
20470 over both visible and private declarations to remove them from tree,
20471 and mark subprograms declared in package as eliminated, to prevent
20472 spurious use in subsequent compilation of generic units in the context.
20474 * exp_util.ads: Minor cleanup in variable names
20476 * sem_eval.ads, sem_eval.adb: Minor reformatting
20477 (Compile_Time_Known_Bounds): New function
20479 2005-03-15 Ed Schonberg <schonberg@adacore.com>
20481 * exp_ch7.adb (Convert_View): Use base types of underlying types when
20482 determining whether an unchecked conversion is needed for the argument
20483 of an initialization call.
20485 2005-03-15 Ed Schonberg <schonberg@adacore.com>
20487 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
20488 that appears in the instantiation rather than the internal subtype
20489 generated in the wrapper package, to avoid anomalies in gigi when the
20490 target is derived from a private type whose full view is an access type.
20492 2005-03-15 Robert Dewar <dewar@adacore.com>
20494 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
20496 Add documentation to replace the use of this flag
20497 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
20500 2005-03-15 Thomas Quinot <quinot@adacore.com>
20502 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
20503 here from exp_attr so it can be shared between exp_attr and exp_dist.
20504 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
20505 all TSS names, not a subset thereof, and the previous name introduced
20506 an unnecessarily confusion that a distinction might exist between
20507 "OK" TSS names and some "not OK" TSS names.
20509 2005-03-15 Doug Rupp <rupp@adacore.com>
20511 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
20514 2005-03-15 Pascal Obry <obry@adacore.com>
20515 Eric Botcazou <ebotcazou@adacore.com>
20519 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
20520 when IN_RTS. This is to work around a bootstrap path problem.
20522 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
20523 table and pass it to __gnat_install_SEH_handler().
20524 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
20526 * lang.opt: Fix specification of -fRTS=.
20528 2005-03-15 Doug Rupp <rupp@adacore.com>
20529 Bernard Banner <banner@adacore.com>
20530 Vincent Celier <celier@adacore.com>
20531 Arnaud Charlet <charlet@adacore.com>
20534 This change works fine when gnatlib is built from the gcc directory,
20535 but does not work when using the libada Makefile, since GCC_FOR_TARGET
20536 is not passed to ada/Makefile.in, so more work is needed by a
20537 Makefile/configure expert.
20539 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
20540 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
20541 Setup gnatlink switch -M for x86_64 linux, as it is already setup
20543 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
20544 Run ranlib on libgccprefix.a
20545 Define PREFIX_OBJS for Darwin, to build libgccprefix.
20546 (ADA_INCLUDE_SRCS): Split Ada packages.
20548 2005-03-15 Robert Dewar <dewar@adacore.com>
20550 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
20552 * impunit.adb: Add GNAT.UTF_32
20554 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
20556 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
20557 now uses GNAT.UTF_32).
20559 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
20560 capabilities for categorizing characters using Unicode categories
20562 2005-03-15 Ed Schonberg <schonberg@adacore.com>
20564 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
20565 instantiation that has been rewritten as a package body, retrieve spec
20566 to generate proper name for implicit_with_clause.
20567 (Install_Parents): Recognize a parent that is an instantiation but has
20568 been rewritten as a package declaration during analysis.
20570 2005-03-15 Javier Miranda <miranda@adacore.com>
20571 Ed Schonberg <schonberg@adacore.com>
20573 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
20574 parameter reported some error we immediately return. This improves the
20575 behaviour of the frontend in case of errors.
20576 (Install_Parent, Remove_Parent): Introduce new flag
20577 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
20578 ancestor of a generic child unit, when the child is being instantiated.
20579 (Inline_Instance_Body): If we are compiling the private
20580 part or the body of a child unit, restore the proper visibility of the
20581 parents after compiling the instance body.
20583 2005-03-15 Ed Schonberg <schonberg@adacore.com>
20584 Javier Miranda <miranda@adacore.com>
20587 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
20588 of a private type, in which case it is underlying_type that denotes
20589 the proper task. Also modified to use the new entity attribute
20590 that is directly available in the task type and task subtype entities
20591 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
20592 arrays when other dimensions than the first are constrained by
20593 discriminants of an enclosing record.
20594 (Insert_Explicit_Dereference): If the prefix is an indexed component or
20595 a combination of indexed and selected components, find ultimate entity
20596 and generate the appropriate reference for it, to suppress spurious
20598 (Note_Possible_Modification): If an entity name has no entity, return.
20599 (Is_Variable): A function call never denotes a variable.
20600 (Requires_Transient_Scope): For record types, recurse only on
20601 components, not on internal subtypes that may have been generated for
20602 constrained components.
20604 2005-03-15 Ed Schonberg <schonberg@adacore.com>
20606 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
20607 Eliminated as candidates for resolution. Both efficient, and avoids
20608 anomalies with operators declared in deleted code.
20609 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
20610 expansion is disabled (as when compiling a generic) to prevent spurious
20611 warnings on prefixes of selected components.
20613 2005-03-15 Ed Schonberg <schonberg@adacore.com>
20615 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
20616 attached to a list before checking whether it appears in the private
20617 declarations of the current package.
20618 (Make_Inequality_Operator): Insert declaration in proper declarative
20619 list rather than just setting the Parent field, so that
20620 Is_Private_Declaration can handle it properly.
20622 2005-03-15 Ed Schonberg <schonberg@adacore.com>
20624 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
20625 a renaming a body, check that the renamed subprogram in not intrinsic.
20626 (Find_Direct_Name): If several use_visible entities hide
20627 each other, and the context is a predefined file compiled through
20628 rtsfind, keep only the entity that comes from a predefined file.
20630 2005-03-15 Geert Bosch <bosch@adacore.com>
20632 * s-fatgen.adb (Valid): Extend special exceptions to account for long
20633 long float padding to also cover AMD64 and IA64.
20635 2005-03-15 Gary Dismukes <dismukes@adacore.com>
20637 * s-imgwch.adb: Add with and use of Interfaces.
20638 (Img_Wide_Character): Change type of Val to Unsigned_16.
20639 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
20641 2005-03-15 Matthew Gingell <gingell@adacore.com>
20643 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
20645 2005-03-15 Robert Dewar <dewar@adacore.com>
20647 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
20649 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
20651 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
20653 2005-03-15 Robert Dewar <dewar@adacore.com>
20655 * s-bitops.adb, s-bitops.ads,
20656 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
20657 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
20658 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
20659 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
20660 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
20661 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
20662 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
20663 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
20666 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
20668 * utils2.c (build_binary_op): Fix typo.
20670 2005-03-15 Doug Rupp <rupp@adacore.com>
20672 * s-crtl.ads (popen,pclose): New imports.
20674 2005-03-15 Cyrille Comar <comar@adacore.com>
20676 * comperr.adb (Compiler_Abort): remove references to obsolete
20677 procedures in the bug boxes for various GNAT builds.
20679 2005-03-15 Vincent Celier <celier@adacore.com>
20681 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
20683 2005-03-15 Geert Bosch <bosch@adacore.com>
20684 Arnaud Charlet <charlet@adacore.com>
20685 Robert Dewar <dewar@adacore.com>
20686 Cyrille Comar <comar@adacore.com>
20687 Sergey Rybin <rybin@adacore.com>
20689 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
20690 too specific and long-winded to be appropriate for the GNAT User's
20692 Warn about use of GCC switches not documented in the GNAT User's Guide,
20693 as these may cause generated code to not conform to Ada semantics.
20694 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
20695 Add documentation for -gnat95 and -gnat05 switches
20696 Remove paragraph documenting obsolete way to refer to third party
20698 Add a few references to Ada_05 that were missing.
20699 Update documentation on -gnatZ/-gnatL.
20700 Document limitation when using -m64 under Solaris.
20701 Change the "Name Casing" subsection of the pretty-printer section
20702 according to the changes in the dictionary processing.
20704 * gnat_rm.texi: Document the Ada_05 pragma.
20705 Section on record representation clauses describes the new more
20706 relaxed rules about placement of large packed bit array components.
20707 Add documentation of GNAT.UTF_32
20709 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
20711 * misc.c (gnat_post_options): Turn off structural
20714 2005-03-08 Laurent Guerby <laurent@guerby.net>
20716 * system-linux-sparc.ads: Fix typo in previous commit.
20718 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
20719 Laurent Guerby <laurent@guerby.net>
20722 * system-linux-sparc.ads: New.
20723 * Makefile.in: Add sparc linux entry.
20725 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
20727 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
20728 parameters as unused.
20730 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
20731 Partial merge from libada-gnattools-branch:
20733 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
20734 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
20735 into code in gnattools/Makefile.in. Remove direct dependencies on
20736 stamp-tools by tools clauses.
20737 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
20738 * config-lang.in: Add gnattools to $lang_dirs.
20740 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
20743 * utils.c (gnat_type_for_mode): Return null instead of ICE because
20744 we asked for an unknown mode.
20746 2005-02-12 Richard Henderson <rth@redhat.com>
20748 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
20749 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
20751 2005-02-10 Andreas Jaeger <aj@suse.de>
20753 * init.c (__gnat_initialize): Mark parameter as unused.
20755 2005-02-09 Doug Rupp <rupp@adacore.com>
20757 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
20758 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
20760 2005-02-09 Doug Rupp <rupp@adacore.com>
20762 * gnatchop.adb (dup, dup2),
20763 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
20765 * gnatlbr.adb (mkdir),
20766 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
20768 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
20770 2005-02-09 Doug Rupp <rupp@adacore.com>
20772 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
20774 2005-02-09 Robert Dewar <dewar@adacore.com>
20775 Thomas Quinot <quinot@adacore.com>
20776 Javier Miranda <miranda@adacore.com>
20777 Pascal Obry <obry@adacore.com>
20778 Ed Schonberg <schonberg@adacore.com>
20779 Doug Rupp <rupp@adacore.com>
20780 Gary Dismukes <dismukes@adacore.com>
20781 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20783 * g-zstspl.ads: New file.
20785 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
20787 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
20789 Add definition of Wide_Wide_Space for AI-285
20791 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
20792 interface (to support Ada 95 and Ada 2005 units).
20793 Add Unbounded_IO files
20794 Add entries for Wide_Wide packages for AI-285
20795 Add list of containers packages to Ada 2005 unit list
20797 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
20798 support new Unbounded_IO package cleanly.
20800 * g-utf_32.ads, g-utf_32.adb: New files.
20802 * Makefile.rtl: Add entry for g-utf_32
20803 Add new files for Unbounded_IO
20804 Adjust make file for new AI-285 wide wide packages
20805 Add AI-302 containers to the run time.
20807 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
20808 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
20809 subprograms for AI-301.
20811 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
20813 * a-stunau.ads: Minor comment correction
20815 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
20817 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
20818 (Check_RPC): Update to match changes in expanded code.
20819 Clean up unused entity.
20821 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
20822 was not taken into account.
20823 This includes proper initialization with Normalize_Scalars.
20824 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
20825 normalize scalars cases (particularly the latter) to do a better job
20826 of finding invalid representations.
20828 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
20830 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
20833 * exp_dist.adb: Add support for wide wide character type
20834 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
20835 private part, generate stub bodies at the end of the private part,
20836 not the visible part.
20837 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
20839 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
20840 generic wrapper to execute final processing after completing the
20841 expansion of the RPC receiver for an RACW.
20843 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
20844 packages and attributes.
20845 (Preset_Names): Addition of the new reserved words of Ada 2005,
20846 that is interface, overriding and synchronized.
20847 (Get_Pragma_Id): Give support to the use of the new reserved word
20848 "interface" as a pragma name.
20849 (Is_Pragma_Name): Give support to the use of the new reserved word
20850 "interface" as a pragma name.
20851 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
20852 attribute implementation.
20854 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
20855 checks to entities that are output parameters of Asm operations.
20856 Handle the Stream_Size attribute.
20857 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
20859 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
20861 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
20862 for second parameter being 0.0.
20863 Add support for wide wide character type.
20864 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
20866 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
20867 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
20868 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
20869 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
20870 for wide wide character cases.
20872 * cstand.adb: Create entities for Wide_Wide_Character and
20875 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
20876 accordance with AI-258.
20877 Add new declarations for 16/32 bit C character types (Part of AI285)
20879 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
20880 (Obsolescent_Warning): New field
20881 (Rep_Clause): New local subprogram used to share code. Returns the rep
20882 clause for which the name is given in parameter.
20883 (Has_Stream_Size_Clause): New routine.
20884 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
20885 (Address_Clause): Implementation is now using Rep_Clause.
20886 (Alignment_Clause): Idem.
20887 (Size_Clause): Idem.
20889 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
20890 entity in non-Ada 2005 mode and generate warning.
20892 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
20893 (Prag): Code cleanup. Remove old gnat pragma "overriding"
20895 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
20896 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
20897 on the named unit if the pragma is not in the current compilation unit,
20898 so that elaboration calls in the current unit can set up an elaboration
20899 dependency on the named unit, as needed.
20900 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
20901 subprogram as well as for subprograms declared within a package.
20902 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
20905 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
20906 to z) to avoid some instances of duplication for Wide_Wide packages.
20908 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
20911 * scn.adb: Char_Literal_Value field is now a Uint
20913 * scng.adb: Significant rewrite to handle new Ada 2005 features
20914 allowing wide and wide wide characters in program text, e.g. for
20915 identifiers, as described in AI-285.
20916 (Set_Reserved): New procedure, makes setting up keywords cleaner.
20917 (Initialize_Scanner): Register the new reserved words of Ada 2005.
20918 (Scan): Give support to the new reserved words.
20920 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
20921 warning notifying that interface, overriding, and synchronized are
20922 new reserved words.
20923 (P_Pragma): Allow the use of the new reserved word "interface" as
20926 * gnatls.adb, gnatbind.adb,
20927 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
20928 identifiers named "interface" to "SAL_Interface".
20930 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
20931 (Structured Exception handling).
20932 (Gen_Main_C): Idem.
20935 (Gen_Main_Ada): Set the default exit code if specified.
20936 (Gen_Main_C): Likewise.
20938 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
20939 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
20941 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
20944 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
20945 has a collision with the new Ada 2005 "interface" reserved word.
20947 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
20948 generate a warning notifying that interface, overriding, and
20949 synchronized are new reserved words.
20951 * scans.ads (Token_Type): Addition of the tokens corresponding to the
20952 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
20953 and Tok_Synchronized.
20955 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
20956 "dispatching" rather than "primitive" operations, since dispatching
20957 calls are now allowed to abstract formal subprograms (which are not
20959 Char_Literal_Value field is now a Uint
20960 (Resolve_Slice): If the prefix is an access to an unconstrained array,
20961 compute the actual subtype of the designated object to impose the proper
20963 (Resolve_Selected_Component): Do not insert an access check if the
20964 prefix is an access type: such a node is expanded into an explicit
20965 dereference, on which the access check is performed anyway. Removes
20966 expensive duplicate checks.
20967 (Resolve_Call): Use new flag Is_Obsolescent and field
20968 Obsolescent_Warning so that pragma Obsolescent works on library
20970 Add support for wide wide character type
20971 (Resolve_Allocator): Replace the error message on wrong null-exclusion
20972 value by a warning message.
20973 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
20974 as fixed-point, and one of the operands is non-static and universal, it
20975 can only be an illegal exponentiation operation, in which case there is
20976 no real value to retrieve.
20978 * exp_strm.adb: Add support for wide wide character type
20979 (Build_Elementary_Input_Call): Compute the size of the stream element by
20980 querying the rep chain to find the Stream_Attribute attribute value.
20981 (Build_Elementary_Write_Call): Ditto.
20983 * sem_aggr.adb: Char_Literal_Value field is now a Uint
20984 Add support for wide wide character type
20985 Replace the error messages on wrong null-exclusion value by warnings
20986 as described in Ada 2005.
20987 (Resolve_Extension_Aggregate): Document the fact that the error
20988 message on class-wide expressions in extensions aggregates.
20990 * sem_case.adb: Add support for wide wide character type
20992 * sem_ch13.adb: Add support for wide wide character type
20993 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
20995 * sem_ch3.adb: Add support for wide wide character type
20996 (Process_Subtype): If constraint is illegal for the type, set Ekind of
20997 now-useless Itype, to prevent cascaded errors on a compiler built
21000 * sem_ch8.adb: Add with and use of Sem_Disp.
21001 (Analyze_Subprogram_Renaming): Replace unclean uses of
21002 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
21003 of Corresponding_Spec to Empty).
21004 (Attribute_Renaming): Replace use of Corresponding_Spec with
21005 Corresponding_ Formal_Spec and simplify condition.
21006 (Use_One_Package): Check that scope of homonym of identifier is defined,
21007 before checking whether it is a wrapper package.
21008 Add support for wide wide character type
21010 * sem_eval.adb: Add support for wide wide character type.
21011 (Eval_Arithmetic_Op): Check for compile time known signed integer
21012 overflow in the non-static case.
21013 (Subtypes_Statically_Match): A formal scalar type and its base type do
21014 not statically match.
21016 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
21017 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
21019 (Unit_Declaration_Node): Ditto.
21020 (Is_Variable_Prefix): For the case of an indexed component whose prefix
21021 has a packed array type, the prefix has been rewritten into a type
21022 conversion. Determine variable-ness from the converted expression.
21023 Handle wide wide character cases.
21025 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
21027 * stringt.ads, stringt.adb: Handle full UTF-32 range.
21028 Remove ["0A"] from comment, since it can look like a line terminator.
21029 Currently we don't permit this, but this is under discussion by the
21030 ARG, and it is easy enough to use a different example.
21032 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
21033 handling UTF-32 encoding for wide wide character.
21034 Implement new brackets coding ["hhhhhhhh"]
21035 Add UTF-8 encodings for full UTF-32 range
21037 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
21039 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
21040 bit range Add full UTF-32 support.
21041 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
21042 notify that constraint error will be raised at run-time
21043 because a null value is assigned to a null-excluding object.
21044 Remove some obsolete declarations and make Char_Code
21047 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
21048 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
21049 Rcheck subprograms.
21051 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
21052 wrong null-exclusion value by a warning message.
21053 (Enable_Range_Check): Do range check if the prefix is an
21054 explicit dereference whose designated object is an unconstrained array.
21055 Current algorithm for removing duplicate checks is over-eager in this
21058 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
21059 null-exclusion value by a warning message
21061 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
21062 completely. Add support for Uint2 field
21064 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
21065 exp_prag.adb: Char_Literal_Value field is now a Uint.
21067 * exp_util.adb (Insert_Actions): Replace
21068 N_Formal_Subprogram_Declaration by
21069 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
21070 Char_Literal_Value field is now a Uint.
21072 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
21073 defined for subprogram renaming declarations. When set, the field
21074 indicates the defining entity of a corresponding formal subprogram
21075 when the renaming corresponds to a formal subprogram association in an
21077 (Set_Corresponding_Formal_Spec): New procedure to return
21078 Corresponding_Formal_Spec field.
21079 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
21080 (which is now a subtype).
21081 Char_Literal_Value field is now a Uint
21083 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
21084 pointer to the base of the dispatch table.
21085 Minor changes to comments.
21086 (Controlling_Type): New function for determining the tagged type
21087 associated with a tagged primitive subprogram.
21088 (Expand_Dispatching_Call): Add support for a controlling actual that is
21089 directly a value of type Ada.Tag rather than a tagged object.
21091 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
21092 describing the new layout.
21093 (Dispatch_Table): The expander computes the actual array size, allocates
21094 the Dispatch_Table record accordingly, and generates code that displaces
21095 the base of the record after the Typeinfo_Ptr component. The access to
21096 these components is done by means of local functions.
21097 (Offset_To_Top): New function.
21098 (Typeinfo_Ptr): New function.
21099 (Get_TSD): Modified to access the new position of the TSD.
21100 (Set_TSD): Modified to save the TSD in its new position.
21102 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
21103 case of formal abstract subprograms. Add check and message for -gnat05.
21106 * sem_ch12.adb: Add with and use for Sem_Disp.
21107 (Analyze_Associations): Minor change from "=" to "in" for use of
21108 N_Formal_Subtype_Declaration (which is now a subtype).
21109 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
21110 N_Formal_Subtype_Declaration (which is now a subtype).
21111 (Analyze_Formal_Subprogram): Add handling for
21112 N_Formal_Abstract_Subprogram, marking the formal as abstract and
21113 dispatching, setting the controlling status of the formal parameters
21114 and result, and issuing an error if there is no controlling type for
21115 the formal subprogram.
21116 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
21117 which is an unclean use of that field, we set the new field
21118 Corresponding_Formal_Spec to make the formal subprogram available to
21119 processing in Analyze_Subprogram_Declaration.
21120 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
21121 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
21122 Constrained, so that it is is does not statically match its anonymous
21125 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
21126 abstract formal subprograms in error check for functions returning
21127 abstract types. Set scope of new designator for
21128 a parameterless subprogram, so that it is available when checking the
21129 body for nested subprograms, before full analysis of said body.
21130 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
21131 subprogram only if inner one comes from source.
21132 (Analyze_Function_Call): If the call is given in object notation, the
21133 analysis of the name rewrites the node and analyzes it with the proper
21134 argument list. After analyzing the name, if the call has been rewritten
21135 and the result type is set, no further analysis is needed.
21136 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
21137 mark in function specification, in a context where the formals are
21138 visible and hide outer homographs.
21140 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
21141 as the tagged type for the cases of abstract formal subprograms and
21142 renamings of those. Clean up spec comments.
21143 (Check_Dispatching_Context): Add error message to indicate "abstract
21144 procedure", covering the case of a call to a formal abstract procedure
21145 that has statically tagged operands.
21146 (Check_Dispatching_Call): Check for the case of an actual given by
21147 a tag-indeterminate function call whose type is an ancestor of the
21148 containing call's associated tagged type. This situation can occur
21149 for inherited primitives with function defaults. In this case we
21150 use the tagged type's tag directly as the controlling argument for
21152 (Expand_Call): Name change on call to Expand_Dispatch_Call.
21154 * sprint.adb (Sprint_Node_Actual): Split
21155 N_Formal_Subprogram_Declaration into two alternatives for the new
21156 cases N_Formal_Abstract_Subprogram_Declaration and
21157 N_Formal_Concrete_Subprogram_Declaration.
21158 Char_Literal_Value field is now a Uint.
21160 * trans.c: Get rid of junk Uint2 reference.
21161 Char_Literal_Value field is now a Uint.
21162 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
21163 (gigi): Correct third arg to gimplify_body.
21165 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
21166 (TYPE_LANG_FLAG_0): Check for record or union.
21168 * treepr.adb: Char_Literal_Value field is now a Uint
21170 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
21173 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
21174 Add full UTF-32 support
21175 Char_Code is now 32 bits
21177 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
21178 wide character UTF_32 line terminators.
21179 Initialize Main_Source_File to avoid error when no main
21182 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
21183 (Main_Source_File) when no main source has been loaded, to avoid
21186 2005-02-09 Robert Dewar <dewar@adacore.com>
21188 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
21189 Fix name of Set routine
21191 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
21194 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
21195 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
21198 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
21199 forms of Get_Line subprograms for AI-301.
21201 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
21202 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
21203 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
21204 a-stwima.ads: Minor reformatting.
21206 2005-02-09 Doug Rupp <rupp@adacore.com>
21207 Thomas Quinot <quinot@adacore.com>
21209 * adaint.c, adaint.h
21210 [VMS] (to_ptr32): New function.
21211 (MAYBE_TO_PTR32): New macro.
21212 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
21214 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
21215 [VMS] (#define fork()): Remove since unneccessary.
21216 (__gnat_set_close_on_exec): New routine to support
21217 GNAT.OS_Lib.Set_Close_On_Exec.
21219 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
21220 the parent side as close-on-exec so that they are not inherited by the
21223 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
21224 set or clear the FD_CLOEXEC flag on a file descriptor.
21226 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
21227 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21231 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
21232 on the field if Pragma Component_Alignment (Storage_Unit).
21233 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
21234 side-effects as if it were a constant; also make SAVE_EXPR to protect
21236 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
21238 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
21239 (components_to_record): Test it.
21240 Fix improper usage of REFERENCE_CLASS_P.
21242 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
21245 * utils2.c: Minor reformatting.
21247 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
21248 handle other cases like RECORD_TYPE.
21250 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
21252 2005-02-09 Ed Schonberg <schonberg@adacore.com>
21254 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
21255 component of an array of arrays in an assignment context, and the
21256 aggregate has component associations that require sliding on
21257 assignment, force reanalysis of the aggregate to generate a temporary
21258 before the assignment.
21259 (Must_Slide): Make global to the package, for use in Gen_Assign.
21261 2005-02-09 Ed Schonberg <schonberg@adacore.com>
21263 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
21264 unchecked union with no inferable discriminants, return a
21265 Raise_Program_Error node, rather than inserting it at the point the
21267 (Expand_Record_Equality, Component_Equality): Handle properly the case
21268 where some subcomponent is an unchecked union whose generated equality
21269 code raises program error.
21271 2005-02-09 Doug Rupp <rupp@adacore.com>
21273 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
21274 [VMS] (#define exit hack): Remove.
21276 2005-02-09 Pascal Obry <obry@adacore.com>
21277 Arnaud Charlet <charlet@adacore.com>
21279 * init.c (__gnat_initialize): Add a new parameter eh which contains the
21280 address of the exception registration. The Win32 version of this
21281 routine calls __gnat_install_SEH_handler() to initialize the SEH
21282 (Structured Exception Handling) handler.
21283 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
21284 SEH (Structured Exception Handling) now.
21285 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
21286 (__gnat_initialize for ppc-vxworks): Adjust comments and the
21287 preprocessor condition protecting the call to the extra eh setup
21288 subprogram, which is only available for the ppc target.
21289 (__gnat_clear_exception_count): replaced reference to
21290 variable taskIdCurrent by call to taskIdSelf(), cleaner.
21292 * seh_init.c: New file.
21294 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
21295 (GNATBIND_OBJS): Idem.
21297 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
21298 routine takes a new parameter (a pointer to the exception registration
21299 for the SEH (Structured Exception Handling) support.
21301 * raise.h: (__gnat_install_SEH_handler): New prototype.
21302 Update copyright notice.
21304 * s-tassta.adb (Task_Wrapper): Declare the exception registration
21305 record and initialize it by calling __gnat_install_SEH_handler.
21307 2005-02-09 Vincent Celier <celier@adacore.com>
21309 * make.adb (Gnatmake): Do not fail when the main project has no object
21312 2005-02-09 Doug Rupp <rupp@adacore.com>
21314 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
21315 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
21316 [VMS]: Add translations for g-enblsp.adb.
21318 * s-asthan-vms.adb: Removed.
21319 * s-asthan-vms-alpha.adb: Added.
21321 2005-02-09 Pascal Obry <obry@adacore.com>
21323 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
21324 (LIBGNAT_OBJS): Add seh_init.o.
21326 2005-02-09 Arnaud Charlet <charlet@adacore.com>
21329 * Makefile.in: Link all gnat tools with -static-libgcc, since
21330 -shared-libgcc is now used by default on some systems (e.g. linux with
21332 Remove references to Makefile.prolog/generic, no longer used.
21334 2005-02-09 Vincent Celier <celier@adacore.com>
21336 * prj-makr.adb (Process_Directory): Put file name in canonical case
21337 before matching against the patterns.
21338 If gnatname has been invoked as <prefix>-gnatname
21339 then invoke the compiler as <prefix>-gcc, not just "gcc".
21341 2005-02-09 Ed Schonberg <schonberg@adacore.com>
21343 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
21344 with expansion disabled. The actual subtype is needed among other
21345 places when the selected component appears in the context of a loop
21346 bound, and denotes a packed array.
21347 (Operator_Check): Always use the first subtype in the
21348 error message, to avoid the appearance of internal base types.
21349 (Transform_Object_Operation): Copy each actual in full
21350 to the parameter associations of the constructed call, rather than
21351 using the shallow copy mechanism of New_Copy_List. This ensures that
21352 the chaining of named associations is done properly.
21353 (Complete_Object_Operation): Rewrite node, rather than
21354 replacing it, so that we can trace back to the original selected
21357 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
21358 and calls that use object notation, if the called function is not
21359 declared in a withed unit, place the elaboration constraint on the
21360 unit in the context that makes the function accessible.
21361 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
21362 imposes an elaboration constraint between two packages.
21364 2005-02-09 Ed Schonberg <schonberg@adacore.com>
21366 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
21367 views of a private type after handling its private dependents, to
21368 maintain proper stack discipline between entry and exit from the
21371 2005-02-09 Cyrille Comar <comar@adacore.com>
21373 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
21374 Minor reformatting.
21376 2005-02-09 Arnaud Charlet <charlet@adacore.com>
21378 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
21379 fields for foreign threads.
21381 2005-02-09 Doug Rupp <rupp@adacore.com>
21383 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
21384 recursion warnings when compiled with -gnatdm.
21386 2005-02-09 Robert Dewar <dewar@adacore.com>
21388 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
21389 Slight fix to documentation of -gnaty with no parameters
21391 * xr_tabls.ads: Add ??? comment for missing overall comment
21393 * xsinfo.adb: Make default file name be sinfo.h, since this is what
21394 we now use by default.
21396 * xsnames.adb: Adjust end of file test to look for five space followed
21397 by '#' instead of six spaces. The format of xsnames.adb was modified
21398 in the last update.
21400 * a-numeri.ads: Add reference to AI-388 for greek letter pi
21403 * clean.adb: Minor reformatting.
21405 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
21406 gnatname.adb: Minor reformatting
21407 Add 2005 to copyright output when utility is run
21409 * csets.adb: Eliminate obsolete comment
21411 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
21414 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
21416 2005-02-09 Sergey Rybin <rybin@adacore.com>
21418 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
21419 the difference between compact and incompact layout and add the record
21420 representation clause to the example illustrating different layouts.
21421 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
21422 component clauses").
21424 2005-02-09 Florian Villoing <villoing@adacore.com>
21426 * gnat_ugn.texi: Fix typos.
21427 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
21429 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
21430 in the generated documentation.
21432 2005-02-09 Arnaud Charlet <charlet@adacore.com>
21434 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
21436 Update linker wrapper when linking with non GNU C++.
21438 2005-02-09 Pascal Obry <obry@adacore.com>
21441 Document the procedure to debug the DllMain routine on Windows.
21442 Add note about -funwind-tables and mixed Ada and C/C++ programming in
21444 Document new BIND qualifer /RETURN_CODES=VMS.
21446 2005-02-09 Ben Brosgol <brosgol@adacore.com>
21448 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
21449 Edited gnatmetric chapter
21451 2005-02-09 Robert Dewar <dewar@adacore.com>
21454 Changes to document new wide wide character support
21456 Update documentation on Normalize_Scalars and Initialize_Scalars
21458 2005-02-09 Pascal Obry <obry@adacore.com>
21460 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
21462 2005-02-09 Jose Ruiz <ruiz@adacore.com>
21464 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
21465 from the VxWorks kernel) that is needed for getting the active
21466 priority of the different tasks.
21468 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
21469 Use a pragma Elaborate_Body in the spec file instead.
21470 Noticed by code reading.
21472 2005-02-09 Thomas Quinot <quinot@adacore.com>
21474 * exp_util.ads: Minor correction in comment.
21476 2005-02-09 Arnaud Charlet <charlet@adacore.com>
21478 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
21479 since this procedure is now too complex to be worth inlining.
21481 2005-02-09 Richard Henderson <rth@redhat.com>
21483 * utils.c (gnat_define_builtin): Remove.
21484 (gnat_install_builtins): Use build_common_builtin_nodes.
21486 2005-02-09 Arnaud Charlet <charlet@adacore.com>
21488 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
21489 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
21490 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
21491 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
21492 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
21493 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
21494 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
21495 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
21496 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
21497 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
21498 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
21499 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
21500 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
21501 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
21502 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
21503 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
21504 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
21505 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
21506 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
21507 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
21508 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
21509 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
21510 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
21511 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
21512 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
21513 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
21514 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
21515 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
21516 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
21517 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
21518 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
21519 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
21520 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
21521 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
21524 2005-01-27 Laurent GUERBY <laurent@guerby.net>
21526 * Makefile.in: Fix a-intnam.ads from previous commit,
21527 add 2005 to copyright.
21528 * a-intman-rtems.ads: Renamed to...
21529 * a-intnam-rtems.ads:
21531 2005-01-27 Laurent GUERBY <laurent@guerby.net>
21533 * Makefile.in: Rename GNAT RTEMS specific files.
21534 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
21535 5rosinte.ads, 5rparame.adb: Replaced by files below.
21536 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
21537 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
21539 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
21540 Laurent GUERBY <laurent@guerby.net>
21543 * 5rosinte.ads: Add No_Key constant.
21544 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
21545 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
21547 2005-01-26 Laurent GUERBY <laurent@guerby.net>
21550 * i-cobol.adb (Valid_Numeric): Handle zero length case.
21552 2005-01-20 Richard Henderson <rth@redhat.com>
21554 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
21555 a-intnam-linux.ads and system-linux-alpha.ads.
21556 * a-intnam-linux-alpha.ads: Remove file.
21557 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
21558 * system-linux-alpha.ads: New file.
21560 2005-01-18 Jakub Jelinek <jakub@redhat.com>
21563 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
21564 set to the new string.
21566 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
21568 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
21571 2005-01-18 Richard Henderson <rth@redhat.com>
21573 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
21574 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
21576 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
21578 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
21580 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
21581 (GCC_ZCX_Support): Likewise.
21583 2005-01-11 Bastian Blank <waldi@debian.org>
21585 * system-linux-s390.ads: Define Preallocated_Stacks.
21586 * system-linux-s390x.ads: Likewise.
21588 2005-01-04 Arnaud Charlet <charlet@adacore.com>
21590 * gnat_ugn.texi: Fix texi errors with null variables.
21592 2005-01-03 Thomas Quinot <quinot@adacore.com>
21594 * gen-soccon.c: New utility program to generate g-soccon.ads
21597 * socket.c, gsocket.h: Split inclusion of system header files into a
21598 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
21600 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
21601 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
21602 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
21603 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
21604 should not be edited by hand anymore, but should be regenerated using
21607 2005-01-03 Robert Dewar <dewar@adacore.com>
21608 Ed Schonberg <schonberg@adacore.com>
21609 Vincent Celier <celier@adacore.com>
21611 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
21612 on/off, since this is an obsolescent feature, for which we now generate
21615 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
21616 warning mode is set and obsolescent usage of this attribute occurs.
21617 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
21618 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
21619 predates, and partly motivates, the adoption of the AI.
21620 Implement new Ada 2005 attribute Mod
21622 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
21625 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
21627 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
21628 pragma restrictions.
21629 New entry for Ada 2005 attribute Mod.
21632 Add recognition of new pragma Restrictions No_Dependence
21633 Recognize restriction No_Obsolescent_Features at parse time
21635 * bcheck.adb: Add circuitry for checking for consistency of
21636 No_Dependence restrictions.
21638 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
21641 * restrict.ads, restrict.adb: Add subprograms to deal with
21642 No_Dependence restrictions.
21644 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
21647 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
21648 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
21650 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
21651 dummy parameter to scng instantiation.
21652 Needed for new restriction No_Obsolescent_Features
21654 * scn.adb: (Obsolescent_Check): New procedure
21655 Needed for new restriction No_Obsolescent_Features
21657 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
21658 specified by AI-285, needed for implementation of AI-388 (adding greek
21659 pi to Ada.Numerics).
21660 Add new generic formal to scng, needed for new restriction
21661 No_Obsolescent_Features.
21663 * s-rident.ads: Add new restriction No_Obsolescent_Features.
21665 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
21666 restrictions lines.
21667 (Scan_ALI): When finding an unexpected character on an R line, raise
21668 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
21669 Ignore_Errors is True, default restrictions are set and scanning of the
21670 ALI file continues with the next line. Also, when Bad_R_Line is raised
21671 and Ignore_Errors is True, skip to the end of le line.
21673 * sem_ch10.adb: Check that explicit with's do not violate
21674 No_Dependence restrictions.
21675 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
21676 illegal context clauses containing child units of instance.
21678 * sem_prag.adb: Processing and checking for new No_Dependence
21680 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
21681 analyze and check the External argument.
21683 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
21685 2005-01-03 Robert Dewar <dewar@adacore.com>
21687 * atree.adb: Add a fifth component to entities
21688 This allows us to add 32 flags and four new fields
21690 * atree.ads: Add a fifth component to entities
21691 This allows us to add 32 flags and four new fields
21693 * einfo.ads, einfo.adb: Document new fields and new flags now available
21694 Add routines for printing new fields
21696 * treepr.adb: Call routines to print out additional fields if present
21698 2005-01-03 Arnaud Charlet <charlet@adacore.com>
21700 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
21701 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
21703 * Makefile.in: Add support to build shared Ada libraries on solaris x86
21704 Remove gpr2make, replaced by gprmake.
21705 Remove references to gnatmem and libaddr2line.
21706 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
21707 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
21708 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
21709 a-numaux-darwin.ads and a-numaux-darwin.adb
21710 Enable mlib-tgt-lynxos.adb on lynxos.
21712 * Make-lang.in: Remove rules for gpr2make.
21713 When generating sdefault.adb, do not call Relocate_Path
21714 on S3 for function Target_Name, as it is not a path.
21715 Remove references to gnatmem and libaddr2line.
21717 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
21720 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
21722 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
21723 address is incompatible with its base type alignment constraints when
21724 this can be decided statically.
21726 2005-01-03 Olivier Hainque <hainque@adacore.com>
21728 * decl.c (compatible_signatures_p): New function. The intended purpose
21729 is to check if two function signatures for a call-site and a callee are
21730 compatible enough for the call to be valid. The underlying purpose is
21731 to check if a call to a mapped builtin is using the right interface.
21732 The current code actually does not check antyhing - this a placeholder
21733 for future refinements.
21734 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
21735 builtin calls for convention Intrinsic.
21737 * gigi.h (builtin_decl_for): Declare (new function).
21739 * utils.c (gnat_install_builtins): Install the target specific builtins.
21740 (builtin_decl_for): New function, provide a dummy body for now.
21742 2005-01-03 Geert Bosch <bosch@adacore.com>
21744 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
21745 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
21746 (Pred): Implement in terms of Succ.
21748 * trans.c (convert_with_check): Reimplement conversion of float to
21751 2005-01-03 Ed Schonberg <schonberg@adacore.com>
21752 Vincent Celier <celier@adacore.com>
21754 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
21755 bounds can be negative, and must be declared Int, not Nat.
21757 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
21758 array is checked after using the index in the array.
21760 * makegpr.adb (Add_Switches): Check if there is a package for the
21761 processor. If there is no package, do not look for switches.
21763 2005-01-03 Ed Schonberg <schonberg@adacore.com>
21765 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
21766 generation of predefined stream operations (specs and bodies) should
21767 proceed. Under various restrictions these subprograms must not be
21770 2005-01-03 Thomas Quinot <quinot@adacore.com>
21773 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
21774 amount of PCS-specific code in RACW stubs generation.
21775 (Copy_Specification): Set Etype on copied formal parameter entities, as
21776 this information is needed for PolyORB stubs generation.
21777 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
21778 variable Dynamic_Async.
21779 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
21780 (Build_RPC_Receiver_Specification): Make generic again, as recent
21781 changes have allowed RPC receivers to have the same profile for both
21782 variants of the PCS.
21783 Reorganise RPC receiver generation to reduce differences between the
21784 structure of GARLIC and PolyORB RPC receivers.
21785 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
21787 Simplify elaboration code for RCI packages.
21789 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
21790 generation to reduce differences between the structure of GARLIC and
21791 PolyORB RPC receivers.
21793 * s-stratt.adb: Fix typo in comment.
21795 2005-01-03 Thomas Quinot <quinot@adacore.com>
21797 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
21798 copied from Make_Init_Call).
21800 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
21801 reads and assignments on a temporary variable declared with appropriate
21804 2005-01-03 Robert Dewar <dewar@adacore.com>
21806 * i-c.adb (To_C): Raise CE if string is null and Append_Null
21808 2005-01-03 Robert Dewar <dewar@adacore.com>
21810 * i-cstrin.adb (Update): Do not append a null in form called with a
21811 String. This avoids unintended behavior.
21813 2005-01-03 Arnaud Charlet <charlet@adacore.com>
21816 * init.c: Fix warnings on Free BSD section.
21818 2005-01-03 Arnaud Charlet <charlet@adacore.com>
21821 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
21824 2005-01-03 Vincent Celier <celier@adacore.com>
21826 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
21827 libraries when Unique_Compile is True (-u switch).
21830 2005-01-03 Robert Dewar <dewar@adacore.com>
21832 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
21833 upper case letter or underscore after W, as allowed by spec.
21835 2005-01-03 Arnaud Charlet <charlet@adacore.com>
21837 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
21838 darwin port by using proper type definitions from header files.
21839 Use SIGTERM instead of SIGABRT for SIGADAABORT.
21841 2005-01-03 Robert Dewar <dewar@adacore.com>
21843 * par.adb: Enhance error message handling for configuration file
21846 2005-01-03 Robert Dewar <dewar@adacore.com>
21848 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
21849 removed during the previous update (test properly for case of dividing
21850 largest negative number by -1, which generates overflow).
21852 2005-01-03 Ed Schonberg <schonberg@adacore.com>
21853 Sergey Rybin <rybin@adacore.com>
21855 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
21856 to use as the defining identifier for a formal package.
21857 (Remove_Parent): If the instance takes place within (an instance of)
21858 a sibling, preserve private declarations of common parent.
21860 2005-01-03 Ed Schonberg <schonberg@adacore.com>
21862 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
21863 to determine whether one of the operands is a fixed-point type for
21864 which a user-defined multiplication or division operation might be
21867 * sem_res.adb (Valid_Conversion): The legality rules for conversions
21868 of access types are symmetric in Ada 2005: either designated type can
21871 2005-01-03 Vincent Celier <celier@adacore.com>
21873 * s-fileio.adb (Temp_File_Record): Change length of string component
21874 Name from L_tmpnam + 1 to max_path_len + 1.
21876 2005-01-03 Arnaud Charlet <charlet@adacore.com>
21878 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
21879 Self_Id.Deferral_Level = 0.
21880 (Do_Pending_Action): Move this function to the spec.
21882 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
21883 Do_Pending_Action explicitely when needed, in case we're using
21884 No_Abort restrictions.
21886 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
21887 deferral level since it will not get changed by the generated code.
21888 Keeping a default value of 1 would prevent some operations (e.g.
21889 select or delay) to proceed successfully.
21891 2005-01-03 Ben Brosgol <brosgol@adacore.com>
21892 Robert Dewar <dewar@adacore.com>
21893 Cyrille Comar <comar@adacore.com>
21895 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
21896 porting guide chapter (vms version).
21897 Revised doc title (removed "for native platforms") and subtitle.
21898 Add discussion on warning flag for obsolescent features. First we
21899 note that it applies to obsolete GNAT features, which was previously
21900 omitted. Second we contrast the behavior with that of the new
21901 Ada 2005 AI-368 restriction No_Obsolescent_Features.
21902 Preliminary rewriting of GNAT & libraries chapter in order to take
21903 into account default project locations & new project manager
21906 2005-01-03 Robert Dewar <dewar@adacore.com>
21908 * cstand.adb (Create_Operators): Clean up format and documentation of
21909 unary and binary operator result tables. No change in code, just
21910 reformatting and addition of comments.
21912 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
21913 sem_ch2.adb: Minor reformatting
21915 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
21916 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
21917 comments for Tree_Read and Tree_Write.
21919 2005-01-03 Pascal Obry <obry@adacore.com>
21921 * exp_attr.ads: Minor reformatting.
21923 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
21925 * comperr.adb (Compiler_Abort): Add specialized message for GAP
21928 2005-01-03 Ed Schonberg <schonberg@adacore.com>
21930 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
21931 whether the ancestor type is private, as may be the case with nested
21934 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
21937 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
21939 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
21941 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
21942 * utils2.c (build_unary_op): Likewise.
21944 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21946 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
21948 2004-12-19 Richard Henderson <rth@redhat.com>
21950 * trans.c (gigi): Update gimplify_body call.
21952 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
21954 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
21956 2004-12-07 Ed Falis <falis@adacore.com>
21958 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
21959 current task being suspended.
21961 * init.c (__gnat_clear_exception): added to reset VxWorks exception
21963 (__gnat_map_signal): removed test for current task being suspended.
21965 2004-12-07 Gary Dismukes <dismukes@adacore.com>
21967 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
21968 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
21969 targets (such as AAMP).
21971 2004-12-07 Ed Schonberg <schonberg@adacore.com>
21973 * atree.adb (Visit_Itype): Create a new name for the generated itype,
21974 because the back-end may otherwise treat it as a redefinition of the
21977 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
21979 * back_end.adb (Scan_Back_End_Switches): Accept --param.
21981 * lang-specs.h: Accept --param.
21983 2004-12-07 Vincent Celier <celier@adacore.com>
21985 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
21986 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
21987 Current_Body_Suffix => Ada_Body_Suffix).
21988 Take into account Externally_Built attribute.
21990 * clean.adb (In_Extension_Chain): Always return False when one of the
21991 parameter is No_Project.
21992 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
21993 Ada_Language_Index).
21994 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
21995 Process_Languages for procedure Parse).
21997 * gnatcmd.adb (Carg_Switches): New table.
21998 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
21999 Adapt to name changes in package Prj (Current_Spec_Suffix =>
22000 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
22002 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
22003 Header_Num and function Hash are now declared in package Prj,
22006 * prj.adb (Suffix_Of): New function.
22007 (Set (Suffix)): New procedure.
22008 (Hash): One function moved from Prj.Com
22009 (Is_Present, Language_Processing_Data_Of): New functions
22010 (Set): Two new procedures
22011 (Add_Language_Name, Display_Language_Name): New procedures
22013 * prj.ads: (Suffix_Of): New function
22014 (Set (Suffix)): New procedure
22015 Add several types and tables for multi-language support.
22016 (Header_Num): Type moved from Prj.Com
22017 (Hash): Two functions moved from Prj.Com
22018 (Is_Present, Language_Processing_Data_Of): New functions
22019 (Set): Two new procedures
22020 (Add_Language_Name, Display_Language_Name): New procedures
22021 (Naming): Component name changes:
22022 Current_Spec_Suffix => Ada_Spec_Suffix,
22023 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
22024 Impl_Suffixes, Supp_Suffixes.
22025 (Project_Data): New components: Externally_Built, Supp_Languages,
22026 First_Language_Processing, Supp_Language_Processing, Default_Linker,
22027 Default_Linker_Path.
22029 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
22030 new package Language_Processing with its attributes (Compiler_Driver,
22031 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
22032 Binder_Driver, Default_Linker).
22034 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
22035 (Header_Num): Type moved to package Prj
22037 * prj-env.adb: Adapt to name changes in package Prj
22038 (Current_Spec_Suffix => Ada_Spec_Suffix,
22039 Current_Body_Suffix => Ada_Body_Suffix).
22041 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
22042 default to the project path, except the "-" is one of the directories
22043 in env var ADA_PROJECT_PATH.
22044 (Current_Project_Path): Global variable, replacing Project_Path
22045 that was in the body of Prj.Part.
22046 (Project_Path): New function
22047 (Set_Project_Path): New procedure
22048 Initialize Current_Project_Path during elaboration of the package
22049 Remove dependency on Prj.Com, no longer needed
22051 * prj-ext.ads (Project_Path): New function
22052 (Set_Project_Path): New procedure
22054 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
22055 suffix is defined for language <lang>.
22056 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
22057 accessing directly the components of Naming.
22058 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
22059 Reorganise of this package.
22060 Break procedure Check in several procedures.
22062 * prj-nmsc.ads: Replace all procedures (Ada_Check,
22063 Other_Languages_Check and Language_Independent_Check) with a single
22066 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
22067 Process_Languages, no longer needed.
22069 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
22070 Current_Project_Path.
22071 Remove elaboration code, moved to the body of Prj.Ext
22072 Use new function Prj.Ext.Project_Path instead of old variable
22074 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
22075 When comparing with project paths on the stack, first put the resolved
22076 path in canonical case.
22077 (Parse_Single_Project): Set the path name of the project file in the
22078 tree to the normalized path.
22080 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
22081 parameter Process_Languages, no longer needed.
22082 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
22083 Other_Languages_Check.
22085 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
22086 to store the resolved canonical path of the project file.
22087 Remove dependency to Prj.Com, no longer needed
22089 * prj-util.adb: Adapt to name changes in package Prj
22090 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
22093 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
22094 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
22095 Externally_Built, Include_Option, Language_Processing.
22097 * makegpr.adb: Numerous changes due to changes in packages
22100 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
22101 default to the project path, except whe "-" is one of the directories
22102 in env var ADA_PROJECT_PATH.
22103 (Gnatls): In verbose mode, add the new section "Project Search Path:"
22105 2004-12-07 Robert Dewar <dewar@adacore.com>
22107 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
22109 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
22112 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
22113 flag. No longer needed now that we handle this in gnat1drv.adb.
22115 * repinfo.ads: Minor reformatting
22117 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22118 Olivier Hainque <hainque@adacore.com>
22119 Eric Botcazou <ebotcazou@adacore.com>
22121 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
22122 TYPE_SIZE_UNIT of result type if SIZE is not specified.
22123 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
22124 of a bitfield, which we know is useless and causes trouble because of
22125 alignment implications.
22127 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
22129 (process_attributes): Clear DECL_COMMON again when a section attribute
22131 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
22132 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
22133 (create_field_decl): Special case ADDRESSABLE negative to mean
22134 "no bitfield creation", to be used by make_aligning_type. Don't
22135 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
22136 fields claimed addressable still have to be bitfields. Use
22137 value_factor_p instead of a raw binop construction to check for the
22138 position's alignment.
22140 2004-12-07 Geert Bosch <bosch@adacore.com>
22142 * eval_fat.adb: Revert previous change.
22144 2004-12-07 Thomas Quinot <quinot@adacore.com>
22145 Ed Schonberg <schonberg@adacore.com>
22147 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
22148 with an implicit dereference as its prefix, use
22149 Insert_Explicit_Dereference instead of merely rewriting the prefix into
22150 an explicit dereference. This ensures that a reference to the original
22151 prefix is generated, if appropriate.
22153 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
22154 dereference is rewritten to an explicit one, generate a reference to
22155 the entity denoted by its prefix using the original prefix node, so
22156 the dereference can be properly recorded as a read of the denoted
22157 access value, if appropriate.
22159 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
22160 emitting 'assigned but never read' warning on a variable on the basis
22161 that it has an access type.
22162 (Check_References): Emit unreferenced warning when the scope is a
22165 2004-12-07 Robert Dewar <dewar@adacore.com>
22166 Ed Schonberg <schonberg@adacore.com>
22168 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
22171 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
22172 leaving call unchanged.
22173 This deals with the case where the pragma Import specified
22174 an external name, to be handled by the back end.
22176 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
22177 subprogram which is Imported with convention Intrinsic if an
22178 External_Name argument is specified.
22179 (Process_Import_Or_Interface): Properly diagnose link name argument.
22180 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
22181 with Sem_Ch6.Cannot_Inline.
22182 (Process_Inline): Provide separate warning for inapplicable inline
22184 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
22185 treatment is uniform on different targets.
22187 2004-12-07 Ed Schonberg <schonberg@adacore.com>
22189 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
22190 construct is rewritten, preserve end label to permit source navigation.
22192 2004-12-07 Thomas Quinot <quinot@adacore.com>
22194 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
22195 Specific_Build_Stub_Target): New subprograms.
22196 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
22197 the PCS implementation used, using the above PCS-customized subprograms.
22198 Minor reformatting.
22199 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
22200 for generation of DSA code targeted to the PolyORB PCS.
22201 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
22202 implementation of the partition communication subsystem in ancillary
22204 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
22205 PolyORB_Support.Build_Stub_Type): New subrograms containing the
22206 PCS-specific part of Add_Stub_Type.
22207 (Insert_Partition_Check): Use runtime library function to perform
22210 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
22211 (RE_Same_Partition): New entity, from s-parint.
22213 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
22215 2004-12-07 Gary Dismukes <dismukes@adacore.com>
22217 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
22218 Output the copyright message on a separate line from the version
22221 2004-12-07 Joel Brobecker <brobecker@adacore.com>
22223 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
22224 compile-time warning.
22226 2004-12-07 Robert Dewar <dewar@adacore.com>
22228 * g-regpat.adb: (Match): Change a misuse of or to or else
22230 2004-12-07 Ed Schonberg <schonberg@adacore.com>
22233 (Generate_Reference): Handle properly a reference to an entry formal,
22234 when an accept statement has a pragma Unreferenced for it.
22236 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
22237 and the Has_Pragma_Unreferenced flag for each formal before analyzing
22238 the body, to ensure that warnings are properly emitted for each accept
22239 statement of a given task entry.
22241 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
22243 * Makefile.in: Add support for foreign threads on VMS.
22245 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22247 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
22249 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
22251 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
22253 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
22255 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
22257 2004-12-07 Robert Dewar <dewar@adacore.com>
22259 * nlists.adb (Prepend_Debug): Remove parameters and nest within
22261 (Remove_Next_Debug): Same fix
22263 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
22264 maintain back pointers now, though we did not used to, and comments
22266 (Prepend): Remove pragma Inline.
22267 (Remove_Next): Same cleanup
22269 2004-12-07 Thomas Quinot <quinot@adacore.com>
22271 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
22272 used to record an implicit dereference as a read operation on its
22273 prefix when operating under -gnatc. Necessary to avoid spurious
22274 'variable assigned but never read' warnings in that mode.
22275 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
22276 is a non-overloaded implicit dereference, call the above subprogram to
22277 ensure proper recording of references.
22279 2004-12-07 Gary Dismukes <dismukes@adacore.com>
22281 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
22282 to be resolved later as part of Analyze_Iteration_Scheme's call to
22285 2004-12-07 Ed Schonberg <schonberg@adacore.com>
22287 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
22288 prefix is not a scalar type, place error message on prefix, not on
22291 2004-12-07 Bernard Banner <banner@adacore.com>
22293 * vxaddr2line.adb: Add support for x86 vxworks
22295 2004-12-07 Thomas Quinot <quinot@adacore.com>
22297 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
22298 documentation of the behaviour of these functions when passed an IP
22299 address that has no record in the system hosts database and no reverse
22302 * cstand.adb, a-tags.ads: Fix typos in comment.
22304 2004-12-07 Robert Dewar <dewar@adacore.com>
22306 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
22307 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
22308 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
22309 s-poosiz.ads: Minor reformatting
22311 * make.adb: Minor reformatting
22312 Add some ??? comments asking for more comments
22314 * s-poosiz.adb: Minor reformatting
22315 Add comments on alignment requirement
22317 * sinfo.ads: Remove obsolete comment and fix typo.
22319 2004-12-07 Vincent Celier <celier@adacore.com>
22320 Sergey Rybin <rybin@adacore.com>
22322 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
22323 Files" with the new tool and package names.
22324 Reformatting to suppress most of the warnings for line too long
22325 Document the new section "Project Search Path:" in the output of
22327 Add gnatmetric section
22329 2004-12-07 Vincent Celier <celier@adacore.com>
22331 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
22332 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
22333 and -eit to -ept. Added qualifier
22334 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
22336 2004-11-27 Andreas Schwab <schwab@suse.de>
22338 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
22340 2004-11-25 Arnaud Charlet <charlet@adacore.com>
22342 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
22343 internal implementation unit GNAT.Sockets.Thin,
22344 as their usage for sockets is non-portable (using the read and write
22345 functions from the system runtime library is fine on UNIX but won't
22346 work under Windows).
22348 * mingw32.h: Update copyright notice.
22350 2004-11-25 Arnaud Charlet <charlet@adacore.com>
22352 * ada-tree.h: Minor reformatting of previous change to avoid lines
22353 longer than 79 characters.
22355 2004-11-25 Olivier Hainque <hainque@adacore.com>
22357 * tb-gcc.c: GCC infrastructure based implementation of
22360 2004-11-24 Steven Bosscher <stevenb@suse.de>
22362 * misc.c (gnat_post_options): Don't clear
22363 flag_inline_functions.
22365 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
22368 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
22371 2004-11-21 Andreas Jaeger <aj@suse.de>
22373 * stylesw.adb: Change Style_Check_Subprogram_Order to
22374 Style_Check_Order_Subprograms.
22376 2004-11-18 Arnaud Charlet <charlet@adacore.com>
22378 * adaint.h, adaint.c
22379 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
22381 Add also a cast to kill another warning.
22382 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
22383 parameter with the priority class of the parent process instead of
22384 always using the NORMAL_PRIORITY_CLASS.
22385 (__gnat_dup): New function.
22386 (__gnat_dup2): New function.
22387 (__gnat_is_symbolic_link): Enable the effective body of this
22388 function when __APPLE__ is defined.
22390 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
22393 2004-11-18 Olivier Hainque <hainque@adacore.com>
22395 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
22396 address of which may be used to represent "others" and "all others"
22397 choices in exception tables, instead of the current harcoded
22398 (void *)0 and (void *)1.
22399 (Setup_Exception): Do nothing in the GNAT SJLJ case.
22401 * gigi.h (others_decl, all_others_decl): New decls representing the
22402 new Others_Value and All_Others_Value objects.
22403 (struct attrib): Rename "arg" component as "args", since GCC expects a
22404 list of arguments in there.
22406 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
22407 corresponding objects exported by a-exexpr, instead of hardcoded dummy
22410 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
22411 others_decl and all_others_decl instead of hardcoded dummy addresses
22412 to represent "others" and "all others" choices, which is cleaner and
22413 more flexible with respect to the possible eh pointer encoding policies.
22415 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
22416 (process_attributes): Account for the naming change of the "args"
22417 attribute list entry component.
22419 * decl.c (build_attr_list): Rename into prepend_attributes to allow
22420 cumulating attributes for different entities into a single list.
22421 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
22422 attributes for the current entity and propagate first subtype
22423 attributes to other subtypes.
22424 <E_Procedure>: Attribute arguments are attr->args and not
22425 attr->arg any more.
22426 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
22427 argument provided, as this is what GCC expects. Use NULL_TREE instead
22430 2004-11-18 Robert Dewar <dewar@adacore.com>
22432 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
22433 Minor reformatting througout (including new function specs)
22434 Add ??? comments asking for clarification.
22436 2004-11-18 Thomas Quinot <quinot@adacore.com>
22438 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
22439 incomplete duplicate implementation of this subprogram from butil.
22441 2004-11-18 Thomas Quinot <quinot@adacore.com>
22443 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
22444 procedures factors the common processing for building an RPC receiver
22445 for an RCI package or an RACW type.
22446 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
22447 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
22448 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
22450 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
22452 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
22454 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
22455 distribution subprogram identifiers that are either subprogram numbers
22457 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
22458 string distribution identifiers assigned to a given subprogram.
22459 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
22460 (Add_RAS_Dereference_TSS): Add comments.
22461 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
22462 is not referenced yet because it will be used by the PolyORB DSA
22464 (Insert_Partition_Check): Remove fossile code.
22465 (First_RCI_Subprogram_Id): Document this constant.
22466 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
22468 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
22469 replaced with calls to Get_Library_Unit_Name_String. Previously there
22470 were several instances of the same code in different locations in the
22471 compiler; this checkin completes the replacement of all of these
22472 instances with calls to a common subprogram.
22473 Minor reformatting.
22475 * sem_dist.adb: Remove comment noting that RPC receiver generation
22476 should be disabled for RACWs that implement RASs.
22477 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
22479 * sem_util.ads, sem_util.adb (Has_Stream): New function
22480 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
22481 qualified name of a library unit into the name buffer.
22482 (Note_Possible_Modification): Generate a reference only
22483 if the context comes from source.
22485 * snames.ads (PCS_Names): New subtype corresponding to names of
22486 supported implementations of the Partition Communication Subsystem
22487 (PCS) (i.e. the runtime library support modules for the distributed
22490 2004-11-18 Robert Dewar <dewar@adacore.com>
22491 Ed Schonberg <schonberg@adacore.com>
22493 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
22494 (Has_Rep_Pragma): New function
22495 (Has_Attribute_Definition_Clause): New function
22496 (Record_Rep_Pragma): Moved here from sem_ch13.adb
22497 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
22499 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
22501 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
22502 (Expand_Pragma_Psect_Object): New procedure
22503 These procedures contain the revised and cleaned up processing for
22504 these two pragmas. This processing was formerly in Sem_Prag, but
22505 is more appropriately moved here. The cleanup involves making sure
22506 that the pragmas are properly attached to the tree, and that no
22507 nodes are improperly shared.
22509 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
22510 pragmas to Exp_Prag, which is more appropriate.
22511 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
22512 check for duplicates Remove use of Is_Psected flag, no longer needed.
22513 Use new Make_String_Literal function with string.
22515 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
22516 that are functions return universal values, that have to be converted
22517 to the context type.
22518 Use new Make_String_Literal function with string.
22519 (Get_Stream_Convert_Pragma): New function, replaces the use of
22520 Get_Rep_Pragma, which had to be kludged to work in this case.
22522 * freeze.adb: Use new Has_Rep_Pragma function
22524 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
22525 function with string.
22526 Use new Has_Rep_Pragma function.
22528 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
22531 2004-11-18 Robert Dewar <dewar@adacore.com>
22533 * errout.ads, errout.adb: (First_Sloc): New function
22535 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
22536 check (-gnatyx) instead of being included as a redundant construct
22539 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
22540 Style_Check_Order_Subprograms.
22542 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
22543 stylesw.adb: Add Style_Check_Xtra_Parens
22545 * usage.adb: Add line for -gnatyx (check extra parens)
22547 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
22549 2004-11-18 Ed Schonberg <schonberg@adacore.com>
22550 Robert Dewar <dewar@adacore.com>
22552 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
22553 discriminant of a constrained subtype, analyze the copy of the
22554 corresponding constraint, because in some cases it may be only
22555 partially analyzed.
22556 Removes long-lived ??? comments.
22558 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
22559 handled controlled or secondary-stack expressions within the
22560 iteration_scheme of a loop.
22562 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
22563 bounds that may contain functions calls, to prevent memory leaks when
22564 the bound contains a call to a function that uses the secondary stack.
22565 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
22566 generate temporaries for loop bounds that might contain function calls
22567 that require secondary stack and/or finalization actions.
22569 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
22570 selected component and the selector is overloadable (not just a
22571 function) treat as function call, Analyze_Call will disambiguate if
22573 (Analyze_Selected_Component): Do not generate an actual subtype for the
22574 selected component if expansion is disabled. The actual subtype is only
22575 needed for constraint checks.
22576 (Analyze_Allocator): If restriction No_Streams is set, then do
22577 not permit objects to be declared of a stream type, or of a
22578 composite type containing a stream.
22580 * restrict.ads: Remove the a-stream entry from Unit_Array, since
22581 No_Streams no longer prohibits with'ing this package.
22583 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
22584 discriminants, but the parent base has unknown discriminants, there is
22585 no discriminant constraint to inherit. Such a discrepancy can arise
22586 when the actual for a formal type with unknown discriminants is a
22587 similar private type whose full view has discriminants.
22588 (Analyze_Object_Declaration): If restriction No_Streams is set, then
22589 do not permit objects to be declared of a stream type, or of a
22590 composite type containing a stream.
22592 2004-11-18 Ed Schonberg <schonberg@adacore.com>
22594 * exp_dbug.ads: Update documentation to reflect simpler encoding for
22595 protected operations.
22597 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
22598 generated name, it complicates decoding in gdb and hinders debugging
22599 of protected operations.
22600 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
22601 flag for the protected entry barrier function.
22602 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
22603 flag for the protected entry function.
22605 2004-11-18 Nicolas Setton <setton@adacore.com>
22607 * expect.c: Define __unix__ when __APPLE__ is defined.
22609 * Makefile.in: Inform the value of the variable GMEM_LIB in the
22610 Darwin-specific section.
22612 * lang-specs.h: Change the placement of the %1 marker.
22613 Works around the fact that gcc adds -fPIC by default under Darwin.
22615 2004-11-18 Ed Schonberg <schonberg@adacore.com>
22617 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
22618 type of the object with the packed array type, set the Analyzed flag
22619 on the object if it is an entity or simple indexed component, to avoid
22620 spurious type errors.
22622 2004-11-18 Gary Dismukes <dismukes@adacore.com>
22624 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
22625 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
22626 separate line from the version message.
22628 2004-11-18 Ed Falis <falis@adacore.com>
22630 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
22632 (init_float): Eliminate initialization of floating point status for
22633 AE653. The instructions have no effect for vThreads.
22635 2004-11-18 Vincent Celier <celier@adacore.com>
22637 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
22638 gnatbind is invoked with -shared.
22640 2004-11-18 Jose Ruiz <ruiz@adacore.com>
22642 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
22643 for Detect_Blocking which is redundant with the check done within the
22644 procedure Protected_Single_Entry_Call.
22645 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
22646 Detect_Blocking which is redundant with the check done within the
22647 procedure Protected_Single_Entry_Call.
22649 2004-11-18 Vincent Celier <celier@adacore.com>
22651 * makegpr.adb (Compile): Put the compiling switches (in package
22652 Compiler and on the command line) immediately after "-c", instead of
22653 at the end of the command line invocation of the compiler, when
22654 compiling a non-Ada file.
22655 (Build_Global_Archive): When there is no need to rebuild the archive,
22656 set Global_Archive_Exists, so that the archive is passed to the linker
22659 2004-11-18 Robert Dewar <dewar@adacore.com>
22660 Sergey Rybin <rybin@adacore.com>
22663 Remove extra paren check from list of checks for redundant constructs
22664 Add documentation of new -gnatyx style check (check extra parens)
22665 Remove paragraph about gnatelim debug options.
22667 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
22668 objects rather than forbidding dependencies on the package Ada.Streams.
22670 * sinfo.ads: Add ??? note that we should document pragmas passed to
22673 * g-expect.ads: Fix a few typos in the comments.
22675 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
22677 * misc.c (gnat_handle_option): Use %< and %> for quoting in
22680 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
22682 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
22684 2004-11-07 Andreas Schwab <schwab@suse.de>
22686 * Makefile.in (install-gnatlib): Remove spurious hyphen.
22688 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
22691 * Makefile.in (darwin): Set soext to .dylib.
22693 2004-10-26 Vincent Celier <celier@gnat.com>
22694 Thomas Quinot <quinot@act-europe.fr>
22696 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
22697 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
22698 there is no use of GNAT.Sockets.Constants.
22699 Remove remaining pragma Import for C_Write
22700 Remove C_Read and C_Write from internal implementation unit
22701 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
22702 the read and write functions from the system runtime library is fine
22703 on UNIX but won't work under Windows).
22705 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
22706 (Check_Selector): Use C_Recv instead of C_Read.
22707 Selectors are the GNAT.Sockets abstraction to perform a select()
22708 call on a set of descriptors. To allow abortion of an ongoing
22709 select operation, some data is written to a dedicated socket that
22710 is always monitored.
22711 Under Windows, the write and read library functions cannot operate
22712 on sockets, so we need to use send and recv instead, which is portable
22713 across all supported platforms.
22715 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
22716 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
22717 (using the read and write functions from the system runtime library is
22718 fine on UNIX but won't work under Windows).
22720 2004-10-26 Nicolas Setton <setton@act-europe.fr>
22722 * mlib-tgt-darwin.adb: New file.
22724 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22725 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
22726 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
22727 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
22730 * Makefile.in: Add support for building shared libraries under Darwin.
22731 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
22732 the low level EH init subprogram to be called from __gnat_initialize.
22734 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
22735 indicates which options to pass to the archive indexer.
22737 * mlib-utl.adb: Add support for calling ranlib with additional
22738 options. This is needed for instance under Mac OS X.
22739 (Ranlib_Options): New global variable, used to store the potential
22740 options to pass to ranlib.
22741 (Ar): Use Ranlib_Options when spawning ranlib.
22742 (Initialize): Set the value of ranlib option.
22744 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
22746 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
22747 instead of 8K, to reflect the real potential needs for stack-checking
22750 2004-10-26 Pascal Obry <obry@gnat.com>
22752 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
22754 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
22755 Windows only the initial thread stack size can be set so it is good to
22756 start we a low stack size.
22757 The OS will adjust the size as needed.
22759 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
22760 Nicolas Setton <setton@act-europe.fr>
22762 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
22763 "__unix__" instead of "unix".
22764 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
22765 sections were just mistakenly ignored. The former is
22766 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
22767 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
22768 of hpux. This prevents an unwanted definition of the symbol
22769 convert_addresses in adaint.o.
22771 2004-10-26 Gary Dismukes <dismukes@gnat.com>
22773 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
22774 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
22776 2004-10-26 Cyrille Comar <comar@act-europe.fr>
22778 * a-filico.ads, a-filico.adb: fix incorrect header.
22780 2004-10-26 Javier Miranda <miranda@gnat.com>
22782 * a-ststio.ads: Fix typo in identifier
22784 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
22786 * sem_ch4.adb: Minor reformatting.
22788 2004-10-26 Ed Schonberg <schonberg@gnat.com>
22790 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
22791 enabled, check the result of unary and binary operations when the
22792 expression is the right-hand side of an assignment.
22794 2004-10-26 Vincent Celier <celier@gnat.com>
22796 * clean.adb (Delete): Do not output warnings when in quiet output and
22797 not in verbose mode.
22798 (Force_Deletions): New Boolean flag, defaulted to False
22799 (Delete): Only delete a file if it is writable, and when
22800 Force_Deletions is True.
22801 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
22802 (Usage): Line for new switch -f
22803 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
22806 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
22808 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
22809 JM type only if its size matches that of the wrapper. When a size is
22810 prescribed and the field is not aliased, remove the wrapper of a JM
22811 type only if the size is not greater than that of the packed array.
22812 (gnat_to_gnu_entity): Change the extension of packed array wrappers
22815 2004-10-26 Geert Bosch <bosch@gnat.com>
22817 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
22818 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
22819 (Pred): Implement in terms of Succ.
22821 2004-10-26 Ed Schonberg <schonberg@gnat.com>
22823 * exp_aggr.adb (Safe_Component): An aggregate component that is an
22824 unchecked conversion is safe for in-place use if the expression of the
22825 conversion is safe.
22826 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
22827 be expandable in place even if the aggregate does not come from source.
22828 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
22829 designated object of an allocator in place, rather than building it
22830 first on the stack. The previous scheme forces a full copy of the array,
22831 and may be altogether unsusable if the size of the array is too large
22832 for stack allocation.
22834 2004-10-26 Robert Dewar <dewar@gnat.com>
22836 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
22837 compares if the component is atomic.
22839 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
22840 array assignment if the component type is atomic.
22842 2004-10-26 Ed Schonberg <schonberg@gnat.com>
22843 Eric Botcazou <ebotcazou@act-europe.fr>
22845 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
22846 is aliased and is a by_reference type, do not pass by copy.
22847 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
22848 detect whether the call is in the right side of an assignment or
22849 the expression of an object declaration. Recurse on component
22850 association within aggregates.
22851 Call it in the condition that determines whether the temporary is
22852 necessary for correct stack-checking.
22854 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
22856 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
22857 RACW_Type, used in the PolyORB version.
22858 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
22859 version and the GARLIC version.
22861 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
22862 Rename RCI_Info to RCI_Locator for better consistency between the
22863 GARLIC and PolyORB versions of the distributed systems annex.
22864 (DSA_Implementation_Name): This enumeration lists the possible
22865 implementations of the Partition Communication Subsystem for the
22866 Distributed Systems Annex (DSA). The three available implementations
22867 are the dummy stub implementation (No_DSA), and two versions based on
22868 two different distribution runtime libraries: GARLIC and PolyORB. Both
22869 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
22871 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
22874 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
22875 between the GARLIC and PolyORB versions of the distributed systems
22877 Remove RE_Unbounded_Reclaim_Pool since it is unused.
22879 2004-10-26 Gary Dismukes <dismukes@gnat.com>
22881 * gnat1drv.adb: Suppress calling the back end when
22882 Frontend_Layout_On_Target is true.
22884 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
22886 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
22887 Set_Read_Only): New subprograms.
22888 These new routines allow the user to set or unset the Owner execute
22889 and Owner write permission flags on a file.
22891 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
22892 GNAT.OS_Lib.Set_Executable instead of rolling our own.
22894 2004-10-26 Matthew Gingell <gingell@gnat.com>
22896 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
22898 2004-10-26 Pascal Obry <obry@gnat.com>
22900 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
22901 memory before the faulting page we properly test the process read
22902 access for this address using appropriate Win32 routine.
22903 (HPUX sections): guard with "__hpux__" instead of "hpux".
22905 2004-10-26 Robert Dewar <dewar@gnat.com>
22907 * lib-xref.adb (Generate_Reference): Don't complain about reference to
22908 entry parameter if pragma Unreferenced set, since we do not properly
22909 handle the case of multiple parameters.
22911 2004-10-26 Vincent Celier <celier@gnat.com>
22913 * prj-env.adb: (Contains_ALI_Files): New Boolean function
22914 (Ada_Objects_Path.Add): For a library project, add to the object path
22915 the library directory only if there is no object directory or if the
22916 library directory contains ALI files.
22917 (Set_Ada_Paths.Add.Recursive_Add): Ditto
22919 2004-10-26 Vincent Celier <celier@gnat.com>
22921 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
22922 extension of library projects.
22924 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
22925 path defaults to ".:<prefix>/lib/gnat".
22926 (Parse): For an extending all project, allow direct import of a project
22927 that is virtually extended.
22929 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
22930 the specified name is directly imported, return its ID. Otherwise, if
22931 an extension of this project is imported, return the ID of the
22934 2004-10-26 Robert Dewar <dewar@gnat.com>
22936 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
22937 (Sub3): New procedure, used by Scaled_Divide
22938 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
22939 correct more than one instance of failure to propagate carries
22941 (Double_Divide): Handle overflow case of largest negative number
22942 divided by minus one.
22944 * s-arit64.ads (Double_Divide): Document that overflow can occur in
22945 the case of a quotient value out of range.
22948 2004-10-26 Robert Dewar <dewar@gnat.com>
22950 * s-bitops.adb (Bit_Eq): Remove redundant check.
22952 * s-bitops.ads: Minor comment updates
22953 Change some occurrences of Address to System.Address
22955 * s-carsi8.ads: Fix minor cut-and-paste error in comments
22957 2004-10-26 Ed Schonberg <schonberg@gnat.com>
22959 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
22960 accessibility check to prefix that is a protected operation.
22962 2004-10-26 Ed Schonberg <schonberg@gnat.com>
22964 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
22965 empty, post message on stub.
22967 2004-10-26 Ed Schonberg <schonberg@gnat.com>
22968 Javier Miranda <miranda@gnat.com>
22970 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
22971 current instance appears within a unit that is directly in the context
22973 Used to determine whether the body of the instance should be analyzed
22974 immediately after its spec, to make its subprogram bodies available
22975 for front-end inlining.
22976 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
22977 constraint is not allowed on the component type (AARM 12.5.3(3))
22979 2004-10-26 Cyrille Comar <comar@act-europe.fr>
22981 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
22982 'Storage_Pool): enhance, document & limit detection of non-sharable
22985 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
22987 * s-pooglo.ads: Add more documentation now that this pool is properly
22990 2004-10-26 Ed Schonberg <schonberg@gnat.com>
22992 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
22993 or protected type with discriminants, do not constrain the
22994 corresponding record type if the subtype declaration has no
22995 discriminant constraints. This can be the case in source code, or in
22996 the subtype declaration created to rename an actual type within an
22999 2004-10-26 Ed Schonberg <schonberg@gnat.com>
23001 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
23002 different kind of stub (possibly wrong name for file), do not check
23004 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
23005 includes call to some function that returns an unconstrained type, do
23008 2004-10-26 Ed Schonberg <schonberg@gnat.com>
23010 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
23011 appear in the code for the main unit. Dependencies among units in the
23012 context of the main unit are established when those other units are
23013 compiled. Otherwise spurious elaboration constraints can generate
23014 incorrect elaboration circularities.
23016 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
23017 Ed Schonberg <schonberg@gnat.com>
23019 * sem_util.adb (Is_Aliased_View): Defend against the case where this
23020 subprogram is called with a parameter that is not an object name. This
23021 situation arises for some cases of illegal code, which is diagnosed
23022 later, and in this case it is wrong to call Is_Aliased, as that might
23023 cause a compiler crash.
23024 (Explain_Limited_Type): Refine previous fix to include
23025 inherited components of derived types, to provide complete information.
23027 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
23028 is the prival for a protected object.
23029 It is necessary to mark this entity as a variable, in addition to
23030 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
23031 modified to avoid checking the Aliased flag on entities that are not
23032 objects. (Checking that flag for non-objects is erroneous and could
23033 lead to a compiler crash).
23035 2004-10-26 Robert Dewar <dewar@gnat.com>
23037 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
23038 X_Frac = 0.5, then we know that the number X must be positive.
23039 (Succ): Remove the same redundant test, and also fix the primary test
23040 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
23042 (Decompose): Add fuller comments to spec
23044 2004-10-26 Pascal Obry <obry@gnat.com>
23046 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
23047 validity (process must have read access). Set to 0 in all other cases.
23048 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
23049 violation on Win32.
23050 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
23051 segmentation violation.
23053 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
23055 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
23056 whose type is a constructed subtype of an aliased object with an
23057 unconstrained nominal subtype, convert the actual to the constructed
23058 subtype before taking its address.
23060 2004-10-26 Vincent Celier <celier@gnat.com>
23062 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
23063 (Is_Path_Name_Case_Sensitive): New function
23065 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
23066 (Base_Name, Simple_Name, Current_Directory, Compose,
23067 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
23070 2004-10-26 Cyrille Comar <comar@act-europe.fr>
23071 Vasiliy Fofanov <fofanov@act-europe.fr>
23072 Vincent Celier <celier@gnat.com>
23074 * gnat_ugn.texi: Generalize "finding memory problems" section into a
23075 "memory management issues" section and document some of the useful
23076 memory pools provided as part of the GNAT library.
23077 Remove "virtual" from declaration of A::method2 in
23078 the simple example of Ada/C++ mixed system.
23079 Library Projects may be virtually extended: their virtual extensions
23080 are not Library Projects.
23081 Added section on extending project hierarchies.
23083 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
23085 * adaint.c (__gnat_get_libraries_from_registry): Cast value
23087 (__gnat_portable_spawn): Remove const.
23089 * mingw32.h (MAXPATHLEN): Check for previous definition.
23091 2004-10-17 Matthias Klose <doko@debian.org>
23093 * gnatvsn.ads: Set gnat library version to 4.0.
23095 2004-10-05 Vincent Celier <celier@gnat.com>
23097 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
23099 2004-10-04 Laurent GUERBY <laurent@guerby.net>
23102 * Makefile.in: Define and use RANLIB_FLAGS.
23104 2004-10-04 Pascal Obry <obry@gnat.com>
23106 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
23107 other x86 platforms).
23109 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
23111 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
23112 in general and triggers stack alignment adjustment for thread entry
23113 points on targets where this is necessary.
23115 2004-10-04 Bernard Banner <banner@gnat.com>
23118 * Makefile.in: Add section for powerpc linux
23119 Add variant i-vxwork-x86.ads
23121 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
23123 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
23125 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
23126 table registration calls when need be. Ensures no reference to the crt
23127 ctors symbol are issued in the SJLJ case, which avoids possible
23128 undefined symbol errors in the case of modules to be statically linked
23131 2004-10-04 Javier Miranda <miranda@gnat.com>
23133 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
23134 in-line the code corresponding to subprogram Analyze_Actuals. In
23135 addition, analyze the actuals only in case of subprogram call.
23137 2004-10-04 Ed Falis <falis@gnat.com>
23139 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
23141 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
23143 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
23144 in the documentation.
23146 2004-10-04 Robert Dewar <dewar@gnat.com>
23148 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
23150 (Analyze_Block_Statement): Add circuitry to detect following dead code
23151 (Check_Unreachable_Code): Handle case of block exit
23153 2004-10-04 Robert Dewar <dewar@gnat.com>
23155 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
23156 (XMatchD): Avoid warning for Logic_Error call
23158 2004-10-04 Robert Dewar <dewar@gnat.com>
23160 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
23161 consider expressions buried within a procedure actual to be an actual.
23162 This caused some blowups with uses of packed slices within a procedure
23165 2004-10-04 Robert Dewar <dewar@gnat.com>
23167 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
23168 longer need to be initialized to zero.
23169 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
23170 initialized to zero.
23172 * checks.adb (Expr_Known_Valid): Packed arrays are now always
23173 considered valid, even if the representation is modular. That's correct
23174 now that we no longer initialize packed modular arrays to zero.
23176 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
23177 suffixes. These are now documented as the only cases in which the
23178 debugger ignores outer records.
23179 Previously, the spec allowed arbitrary suffixes for this purpose.
23180 Change name of LJM to JM for packed array pad records
23181 Create separate section on packed array handling, and add a whole new
23182 set of comments to this section describing the situation with packed
23183 modular types and justification requirements depending on endianness.
23185 2004-10-04 Robert Dewar <dewar@gnat.com>
23187 * a-except.adb: Add a comment for last change
23189 * einfo.ads: Minor spelling correction in comment
23191 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
23193 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
23196 * sem_util.ads: Minor comment update
23198 2004-10-04 Ed Schonberg <schonberg@gnat.com>
23200 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
23201 Inline_Always when in Configurable_Run_Time mode.
23203 * sem_prag.adb (Process_Convention): If entity is an inherited
23204 subprogram, apply convention to parent subprogram if in same scope.
23205 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
23206 when in Configurable_Run_Time mode.
23208 2004-10-04 Ed Schonberg <schonberg@gnat.com>
23210 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
23211 class_wide type after component list has been inherited.
23213 2004-10-04 Ed Schonberg <schonberg@gnat.com>
23215 * sem_ch12.adb (Check_Generic_Actuals): New predicate
23216 Denotes_Previous_Actual, to handle properly the case of a private
23217 actual that is also the component type of a subsequent array actual.
23218 The visibility status of the first actual is not affected when the
23219 second is installed.
23220 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
23221 make fully recursive the treatment of formals of packages declared
23223 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
23224 the above on exit from an instantiation.
23225 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
23226 current instantiation which is now complete.
23227 (Analyze_Package_Instantiation): No instantiated body is needed if the
23228 main unit is generic. Efficient, and avoid anomalies when a instance
23229 appears in a package accessed through rtsfind.
23231 2004-10-04 Ed Schonberg <schonberg@gnat.com>
23233 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
23234 do not generate a declaration for a temporary if the call is part of a
23235 library-level instantiation.
23237 2004-10-04 Ed Schonberg <schonberg@gnat.com>
23239 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
23240 searching for a limited component to flag.
23242 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
23243 expansion of Input, to account for the fact that the implicit call
23244 generated by the attribute reference must freeze the user-defined
23245 stream subprogram. This is only relevant to 'Input, because it can
23246 appear in an object declaration, prior to the body of the subprogram.
23248 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
23249 expansion can proceed and further errors uncovered.
23250 (Minor clean up): Fix cases of using | instead of \ for continuation
23253 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23255 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
23257 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
23258 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
23259 Use gcc_assert and gcc_unreachable.
23261 * decl.c (gnat_to_gnu_entity, case object): Check and process a
23262 specified alignment before validating size.
23263 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
23264 stripped-down declaration for the type of the inner field when making
23267 * utils.c (finish_record_type): Do not compute the size in units
23268 incrementally. Instead compute it once for the rep clause case.
23269 Use gcc_assert and gcc_unreachable.
23271 2004-10-04 Vincent Celier <celier@gnat.com>
23273 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
23275 (Is_Valid_Path_Name): Take '/' as a directory separator.
23277 2004-10-04 Vincent Celier <celier@gnat.com>
23279 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
23280 (Extended_Project) only if Extended_Project is defined, to avoid
23282 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
23284 (Parse_Single_Project): Ditto.
23286 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
23287 Add_To_Project_Path for virtual projects.
23289 2004-10-04 Vincent Celier <celier@gnat.com>
23291 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
23292 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
23293 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
23294 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
23295 parameter Options_2.
23297 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
23298 Build_Dynamic_Library with an empty Options_2.
23300 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
23303 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
23304 directory separator, if any.
23305 (Gprmake): Do not allow mains on the command line for library projects.
23306 Do not attempt to link when the project is a library project.
23307 (Library_Opts): New table to store Library_Options.
23308 (Build_Library): If Library_Options is specified, pass these options
23309 when building a shared library.
23311 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
23313 * s-tposen.adb (Service_Entry): The object must be always unlocked at
23314 the end of this procedure now that the unlock operation was inserted
23317 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
23319 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
23320 corresponding to the Preallocated_Stacks flags in System.
23321 (Get_Target_Parameters): Including the processing for
23322 Preallocated_Stacks.
23324 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
23325 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
23326 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
23327 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
23328 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
23329 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
23330 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
23331 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
23332 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
23333 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
23334 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
23335 used to signal whether the compiler creates the required stacks and
23336 descriptors for the different tasks (when True) or it is done by the
23337 underlying operating system at run time (when False).
23338 It is initially set to False in all targets.
23340 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
23341 if it is supported by the target.
23342 (Make_Task_Create_Call): Pass the stack address if it has been
23343 previously created. Otherwise pass a Null_Address.
23345 * snames.adb: Add _stack.
23347 * snames.ads: Add Name_uStack. Required to allow the expander to
23348 statically allocated task stacks.
23350 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
23351 Stack_Address argument.
23352 Check that its value is equal to Null_Address because this target does
23353 not support the static stack allocation.
23355 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
23357 * usage.adb: Change "pragma inline" to "pragma Inline" in information
23360 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
23362 * exp_dist.adb: Split declaration of asynchronous flag out of
23363 Add_RACW_Read_Attribute.
23364 Minor reformatting for better alignment with PolyORB version.
23365 Store the entity for the asynchronous flag of an RACW, rather than the
23366 expression, in the asynchronous flags table. This will allow this flag
23367 to be used in other subprograms beside Add_RACW_Read_Attribute.
23369 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
23371 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
23372 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
23373 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
23374 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
23375 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
23376 sockets constant MSG_NOSIGNAL (Linux-specific).
23377 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
23378 all Send operations.
23379 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
23380 from trigerring SIGPIPE.
23381 Rename components to avoid clash with Ada 2005 possible reserved
23383 (Check_Selector): When the select system call returns with an error
23384 condition, propagate Socket_Error to the caller.
23386 2004-10-01 Jan Hubicka <jh@suse.cz>
23388 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
23390 2004-09-23 Robert Dewar <dewar@gnat.com>
23393 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
23394 instead do this at freeze time (we won't do it if there is an address
23396 Change "pragma inline" to "pragma Inline" in information and error
23398 Minor reformatting.
23400 * freeze.adb (Check_Address_Clause): Remove previous change, not the
23401 right way of doing things after all.
23402 (Freeze_Entity): For object, set Is_Public for imported entities
23403 unless there is an address clause present.
23405 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
23407 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
23408 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
23409 ensures proper handling of types with rep clauses, which might have
23410 their TYPE_SIZE set already.
23412 2004-09-21 Robert Dewar <dewar@gnat.com>
23414 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
23415 packed array types in both little- and big-endian cases. This change
23416 ensures that we no longer count on the unused bits being initialized
23417 for such types (and in particular ensures that equality testing will
23418 only read the relevant bits).
23419 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
23420 These changes mean that we no longer need to initialize small packed
23422 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
23423 optimization to an LJM field as to its parent field.
23425 * ada-tree.h, trans.c, utils.c, utils2.c:
23426 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
23428 2004-09-20 Jan Hubicka <jh@suse.cz>
23430 * utils.c (gnat_finalize): Remove.
23431 (end_subprog_body): Directly call cgraph_finalize_function;
23432 do not lower the nested functions.
23434 2004-09-20 Robert Dewar <dewar@gnat.com>
23437 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
23438 if an address clause is present, since that means that the Import
23441 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
23443 * 5tsystem.ads: Removed, no longer used.
23445 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
23446 Zack Weinberg <zack@codesourcery.com>
23448 * ada-tree.def: Use tree_code_class enumeration constants
23449 instead of code letters.
23450 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
23451 Update for new tree-class enumeration constants.
23453 2004-09-17 Vincent Celier <celier@gnat.com>
23455 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
23456 capabilities of the general project manager.
23458 2004-09-09 Vincent Celier <celier@gnat.com>
23460 * a-direct.ads: Add pragma Ada_05
23461 (Directory_Entry_Type): Give default value to component Kind to avoid
23462 not initialized warnings.
23464 * a-direct.adb (Current_Directory): Remove directory separator at the
23466 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
23467 an existing directory.
23468 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
23469 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
23470 Convert the result to File_Size.
23472 * prj.ads: (Project_Error): New exception
23474 * prj-attr.adb: Except in procedure Initialize, Fail comes from
23475 Prj.Com, not from Osint.
23476 (Attrs, Package_Attributes): Tables moved to private part of spec
23477 (Add_Attribute, Add_Unknown_Package): Moved to new child package
23479 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
23480 Prj.Project_Error after call to Fail.
23481 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
23482 Fail. Check that package name is not already in use.
23484 * prj-attr.ads: Comment updates to indicate that all subprograms may be
23485 used by tools, not only by the project manager, and to indicate that
23486 exception Prj.Prj_Error may be raised in case of problem.
23487 (Add_Unknown_Package, Add_Attribute): Moved to new child package
23489 (Attrs, Package_Attributes): Table instantiations moved from the body to
23490 the private part to be accessible from Prj.Attr.PM body.
23492 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
23493 from new package Prj.Attr.PM.
23494 (Parse_Attribute_Declaration): Call Add_Attribute from new package
23497 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
23499 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
23500 instead of Elaboration_Checks).
23502 * a-calend.adb: Minor reformatting
23504 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23506 * gigi.h (maybe_pad_type): New declaration.
23507 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
23509 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
23511 * cuintp.c: Convert to use buildN.
23513 * decl.c (maybe_pad_type): No longer static.
23514 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
23516 Convert to use buildN.
23518 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
23519 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
23520 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
23522 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
23523 (gnat_gimplify_expr, case ADDR_EXPR): New case.
23524 Convert to use buildN.
23526 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
23527 TREE_READONLY for const.
23528 Convert to use buildN.
23530 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
23531 (create_var_decl): Refine when TREE_STATIC is set.
23532 Convert to use buildN.
23534 2004-09-09 Gary Dismukes <dismukes@gnat.com>
23536 * gnat_ugn.texi: Delete text relating to checking of ali and object
23539 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
23542 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
23544 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
23545 pragmas recognized by GNAT.
23547 * gnat_rm.texi: Document pragma Detect_Blocking.
23549 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
23550 raise Program_Error if called from a protected operation.
23552 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
23553 the protected action nesting level.
23554 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
23555 protected action nesting level.
23556 (Unlock): When pragma Detect_Blocking is active decrease the protected
23557 action nesting level.
23559 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
23560 Protected_Action_Nesting.
23562 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
23563 Common_ATCB record. It contains the dynamic level of protected action
23564 nesting for each task. It is needed for checking whether potentially
23565 blocking operations are called from protected operations.
23566 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
23567 Detect_Blocking is active or not in the partition.
23569 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
23570 raise Program_Error if called from a protected operation.
23571 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
23572 Program_Error if called from a protected operation.
23573 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
23574 Program_Error if called from a protected operation.
23576 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
23577 raise Program_Error if called from a protected operation.
23579 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
23580 raise Program_Error if called from a protected operation, and increase
23581 the protected action nesting level.
23582 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
23583 Program_Error if called from a protected operation, and increase the
23584 protected action nesting level.
23585 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
23586 protected action nesting level.
23588 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
23589 raise Program_Error if called from a protected operation, and increase
23590 the protected action nesting level.
23591 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
23592 Program_Error if called from a protected operation, and increase the
23593 protected action nesting level.
23594 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
23595 raise Program_Error if called from a protected operation.
23596 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
23597 active, raise Program_Error if called from a protected operation.
23598 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
23599 protected action nesting level.
23601 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
23602 insertion of the statement raising Program_Error. The run time
23603 contains the required machinery for handling that.
23605 * sem_util.ads: Change comment associated to procedure
23606 Check_Potentially_Blocking_Operation.
23607 This procedure does not insert a call for raising the exception because
23608 that is currently done by the run time.
23610 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
23612 * init.c: Add the global variable __gl_detect_blocking that indicates
23613 whether pragma Detect_Blocking is active (1) or not (0). Needed for
23614 making the pragma available at run time.
23615 (__gnat_set_globals): Pass and update the detect_blocking parameter.
23617 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
23618 pragma Detect_Blocking is active.
23620 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
23622 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
23623 DB is found in the ali file. Any unit compiled with pragma
23624 Detect_Blocking active forces its effect in the whole partition.
23626 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
23627 Detect_Blocking is active and delay is called from a protected
23630 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
23631 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
23632 Detect_Blocking is active (0 otherwise).
23633 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
23634 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
23637 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
23639 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
23640 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
23643 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
23644 (Register_Receiving_Stub): Add Subp_Info formal parameter.
23645 Update API in placeholder implemetation of s-parint to reflect changes
23646 in distribution runtime library.
23648 * sem_ch3.adb (Expand_Derived_Record): Rename to
23649 Expand_Record_Extension.
23651 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
23652 primitive operations of potentially distributed object types that have
23653 non-controlling anonymous access formals.
23655 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
23657 New implementation of expansion for remote access-to-subprogram types,
23658 based on the RACW infrastructure.
23659 This version of sem_dist is compatible with PolyORB/DSA as well as
23662 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
23663 Asynchrronous that applies to a remote access-to-subprogram type, mark
23664 the underlying RACW type as asynchronous.
23666 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
23667 __gnat_using_gnu_linker to 1.
23669 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
23670 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
23671 GNAT.Perfect_Hash_Generators, and remove the empty
23672 GNAT.Perfect_Hash package.
23674 * atree.adb: Minor reformatting
23676 * exp_ch3.adb (Expand_Derived_Record): Rename to
23677 Expand_Record_Extension.
23678 (Build_Record_Init_Proc.Build_Assignment): The default expression in
23679 a component declaration must remain attached at that point in the
23680 tree so New_Copy_Tree copies it if the enclosing record type is derived.
23681 It is therefore necessary to take a copy of the expression when building
23682 the corresponding assignment statement in the init proc.
23683 As a side effect, in the case of a derived record type, we now see the
23684 original expression, without any rewriting that could have occurred
23685 during expansion of the ancestor type's init proc, and we do not need
23686 to go back to Original_Node.
23688 * exp_ch3.ads (Expand_Derived_Record): Rename to
23689 Expand_Record_Extension.
23691 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
23692 Returns the RACW type used to implement a remote access-to-subprogram
23694 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
23695 New subprograms. Used to create a proxy tagged object for a remote
23696 subprogram. The proxy object is used as the designated object
23697 for RAS values on the same partition (unless All_Calls_Remote applies).
23698 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
23699 System.Partition_Interface.Get_Unique_Remote_Pointer.
23700 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
23701 Renamed from Add_RAS_*_Attribute.
23702 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
23704 New implementation of expansion for remote access-to-subprogram types,
23705 based on the RACW infrastructure.
23707 * exp_dist.ads (Copy_Specification): Update comment to note that this
23708 function can copy the specification from either a subprogram
23709 specification or an access-to-subprogram type definition.
23711 2004-09-09 Ed Schonberg <schonberg@gnat.com>
23713 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
23714 in an instance, between an explicit subprogram an one inherited from a
23715 type derived from an actual.
23717 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
23718 add a polling call if the subprogram is to be inlined by the back-end,
23719 to avoid repeated calls with multiple inlinings.
23721 * checks.adb (Apply_Alignment_Check): If the expression in the address
23722 clause is a call whose name is not a static entity (e.g. a dispatching
23723 call), treat as dynamic.
23725 2004-09-09 Robert Dewar <dewar@gnat.com>
23727 * g-trasym.ads: Minor reformatting
23729 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
23730 packed arrays, since unused bits are expected to be zero for a
23733 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
23735 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
23738 2004-09-09 Pascal Obry <obry@gnat.com>
23740 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
23741 enable map file generation. Add the right option to generate the map
23742 file if Map_File is set to True.
23744 * gnatdll.adb (Gen_Map_File): New variable.
23745 (Syntax): Add info about new -m (Map_File) option.
23746 (Parse_Command_Line): Add support for -m option.
23747 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
23748 Minor reformatting.
23750 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
23752 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
23753 new gnatdist implementation.
23754 Define a subpackage isolating the output routines specific to this
23757 2004-09-09 Joel Brobecker <brobecker@gnat.com>
23759 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
23761 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
23763 2004-09-09 Cyrille Comar <comar@act-europe.fr>
23765 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
23768 * opt.ads: Add Ada_Version_Runtime constant used to decide which
23769 version of the language is used to compile the run time.
23771 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
23773 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
23774 of variable length temporaries for function return now that the
23775 back-end and gigi support it.
23777 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23779 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
23781 * trans.c (struct stmt_group): Delete field GLOBAL.
23782 (gnat_init_stmt_group): Do not initialize it.
23783 (call_to_gnu): Use save_expr, not protect_multiple_eval.
23784 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
23785 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
23786 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
23787 (start_stmt_group): Likewise.
23788 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
23790 * utils2.c (ggc.h): Include.
23791 (build_call_raise): Call build_int_cst, not build_int_2.
23793 * utils.c (gnat_init_decl_processing): Fix arg to
23794 build_common_tree_nodes.
23795 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
23796 (gnat_define_builtin): Set built_in_decls.
23797 (init_gigi_decls): Call build_int_cst, not build_int_2.
23799 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
23800 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
23801 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
23802 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
23803 SET_TYPE_MODULE): Use them.
23804 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
23805 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
23806 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
23807 SET_TYPE_ADA_SIZE): Likewise.
23808 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
23809 (DECL_CONST_CORRESPONDING_VAR,
23810 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
23811 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
23812 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
23813 (TYPE_RM_SIZE_NUM): New macro.
23814 (TYPE_RM_SIZE): Modified to use above.
23816 * cuintp.c: (build_cst_from_int): New function.
23817 (UI_To_gnu): Use it.
23819 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
23820 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
23821 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
23822 MIN_EXPR for the size, copy it into new.
23824 2004-09-01 Robert Dewar <dewar@gnat.com>
23826 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
23827 packed indexed component where array is an IN OUT formal. This
23828 generated garbage code previously.
23830 * gnat_ugn.texi: Document -fverbose-asm
23832 * gnat-style.texi: Minor updates (note that boolean constants and
23833 variables are joined with AND/OR rather than short circuit forms).
23835 2004-09-01 Ed Schonberg <schonberg@gnat.com>
23837 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
23838 it is an upward conversion of an untagged type with no representation
23841 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
23843 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
23844 System.Partition_Interface.
23846 * checks.adb (Apply_Access_Checks): Do not generate checks when
23847 expander is not active (but check for unset reference to prefix of
23850 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
23851 pragma Debug as an if statement with a constant condition, for
23852 consistent treatment of entity references contained within the
23853 enclosed procedure call.
23855 2004-09-01 Vincent Celier <celier@gnat.com>
23857 * bindgen.adb: (Set_EA_Last): New procedure
23858 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
23860 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
23861 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
23862 linked without errors.
23863 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
23865 (Gen_Exception_Table_C): Correct same bugs
23867 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
23869 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
23870 on Windows, make sure that the drive letter is in upper case.
23872 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
23873 Windows, when the drive letter is added and Case_Sensitive is True, the
23874 drive letter is forced to upper case.
23876 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
23877 to Options_2 for the call to MLib.Utl.Gcc.
23879 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
23880 directory separator when defining BASE_DIR.
23882 2004-09-01 Pascal Obry <obry@gnat.com>
23884 * gprcmd.adb (Extend): Do not output trailing directory separator. This
23885 is not needed and it confuses Windows GNU/make which does not report
23886 directory terminated by a slash as a directory.
23887 (gprcmd): Idem for "pwd" internal command.
23889 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
23890 target names rewrite to fix regressions with recent version of
23891 GNU/make. Starting with GNU/make 3.80 the pipe character was not
23892 handled properly anymore.
23894 2004-09-01 Andreas Schwab <schwab@suse.de>
23896 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
23897 * raise.c [!IN_RTS]: Undef abort.
23899 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
23901 * utils2.c (build_allocator): Use ssize_int.
23903 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
23905 2004-08-27 Andreas Schwab <schwab@suse.de>
23907 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
23909 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
23910 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23912 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
23914 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
23916 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
23917 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
23918 * utils.c (init_gigi_decls): Likewise.
23919 * utils2.c (build_call_raise, build_allocator): Likewise.
23921 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
23923 * utils.c (gnat_init_decl_processing): Adjust
23924 build_common_tree_nodes call.
23926 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
23928 * utils2.c (build_allocator): Use build_int_cst for negative
23931 2004-08-18 Richard Henderson <rth@redhat.com>
23933 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
23935 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
23937 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
23939 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
23940 (gnat_to_gnu): Likewise.
23942 2004-08-16 Pascal Obry <obry@gnat.com>
23944 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
23945 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
23946 option and not mdll anymore. Update comment.
23948 2004-08-16 Pascal Obry <obry@gnat.com>
23950 * bld.adb (Put_Include_Project): Properly handle directory separators
23953 2004-08-16 Ed Schonberg <schonberg@gnat.com>
23955 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
23956 decreasing the number of allocated junk nodes while searching for the
23957 appropriate subprogram.
23959 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
23961 * cuintp.c (UI_To_gnu): Use build_int_cst..
23962 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
23963 * utils.c (init_gigi_decls): Likewise.
23964 * utils2.c (build_call_raise): Likewise.
23966 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
23968 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
23969 for a global aliased object with a variable size and an unconstrained
23970 nominal subtype, pretend there is no initializer if the one we have is
23971 incomplete, and avoid referencing an inexistant component in there. The
23972 part we have will be rebuilt anyway and the reference may confuse
23973 further operations.
23975 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
23977 * einfo.ads: Minor reformatting
23979 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
23980 restrictions in the ALI if we only want to warn about violations.
23982 2004-08-13 Vincent Celier <celier@gnat.com>
23984 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
23985 when creating a new Unit_Record in table Units.
23987 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
23988 that are violated, if any.
23990 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
23991 add directory separator if path already ends with a directory separator.
23993 2004-08-13 Ed Schonberg <schonberg@gnat.com>
23995 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
23996 unit, this is an attempt to inline a construct that is not available in
23997 the current restricted mode, so abort rather than trying to continue.
23999 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
24000 discriminants that rename those of the parent, recover names of
24001 original discriminants for the constraint on the full view of the
24003 (Complete_Private_Subtype): Do not create a subtype declaration if the
24004 subtype is an itype.
24006 * gnat_rm.texi: Added section on implementation of discriminated
24007 records with default values for discriminants.
24009 2004-08-13 Ed Schonberg <schonberg@gnat.com>
24012 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
24013 the second operand is overloaded.
24015 2004-08-10 Richard Henderson <rth@redhat.com>
24017 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
24018 add __builtin_alloca.
24020 2004-08-10 Richard Henderson <rth@redhat.com>
24022 * config-lang.in (boot_language): Yes.
24024 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
24026 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
24027 from complaining on potential uninitialized reference.
24028 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
24029 new specification and test explicitly for non-zero return value.
24031 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
24032 returning C.int, to avoid using a derived boolean type.
24034 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
24035 Duplicate_Subexpr_No_Checks in preference to direct use of
24036 Remove_Side_Effects and New_Copy_Tree.
24037 Clear Comes_From_Source on prefix of 'Size attribute reference.
24039 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
24040 g-socthi-vxworks.adb: Change calls to
24041 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
24042 and test explicitly for non-zero return value.
24044 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
24045 (Is_Socket_In_Set): Declare imported function as returning C.int, to
24046 avoid using a derived boolean type.
24048 2004-08-09 Albert Lee <lee@gnat.com>
24050 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
24052 2004-08-09 Pascal Obry <obry@gnat.com>
24054 * gnat_ugn.texi: Document new way to build DLLs on Windows using
24055 GCC's -shared option.
24057 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
24058 Options_2 parameter (options put after object files).
24060 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
24062 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
24063 ignore overflows on low and high bounds of an index to also account for
24064 differences in signedness between sizetype and gnu_index_subtype.
24065 These are as legitimate as the ones caused by a lower TYPE_PRECISION
24068 2004-08-09 Robert Dewar <dewar@gnat.com>
24070 * s-solita.ads, s-solita.adb: Minor reformatting
24072 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
24073 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
24074 obsolescent section
24075 Add note that No_Implicit_Conditionals does not suppress
24076 run time constraint checks.
24078 * vms_conv.ads: Minor reformatting
24080 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
24081 and necessary for following change).
24082 (Mark): Return new format Mark_Id containing sec stack address
24083 (Release): Use sec stack address from Mark_Id avoiding Self call
24085 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
24086 pointer (cleanup and necessary for following change).
24087 Define Mark_Id as record containing address of secondary stack, that way
24088 Release does not need to find the stack again, decreasing the number of
24089 calls to Self and improving efficiency.
24091 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
24093 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
24094 case variable into the individual case branches when possible.
24096 * sem_ch11.adb: Minor reformatting
24098 * prj.ads: Correct spelling of suffixs
24100 * prj-nmsc.adb: Minor reformatting
24101 Correct spelling suffixs throughout (also in identifiers)
24103 * freeze.adb: Minor spelling correction
24105 * exp_ch2.adb: Cleanups to handling of Current_Value
24106 (no functional effect).
24108 * bld.adb: Correct spelling of suffixs
24110 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
24112 2004-08-09 Ed Schonberg <schonberg@gnat.com>
24115 * sem_ch7.adb (Install_Private_Declarations): In the body of the
24116 package or of a child, private entities are both immediately_visible
24119 2004-08-09 Ed Schonberg <schonberg@gnat.com>
24121 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
24122 there are no range checks on the value of the literal.
24124 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
24125 wrapped is the triggering alternative of an asynchronous select, action
24126 statements mustbe inserted before the select itself.
24128 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
24129 case where the prefix is a protected function call.
24130 (Resolve_Attribute, case 'Access): The attribute reference on a
24131 subprogram is legal in a generic body if the subprogram is declared
24134 2004-08-09 Vincent Celier <celier@gnat.com>
24136 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
24137 languages, otherwise building the library may fail with unresolved
24139 (Compile_Sources): Do not build libraries if -c switch is used
24141 * gnatlink.adb (Process_Args): New switches -M and -Mmap
24142 (Write_Usage): If map file creation is supported, output new switches
24144 (Gnatlink): When -M is specified, add the necessary switch(es) to the
24145 gcc call, when supported.
24147 * Makefile.in: Added indepsw.o to the object list for gnatlink
24148 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
24150 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
24151 indepsw.adb, indepsw.ads: New files.
24153 2004-08-09 Bernard Banner <banner@gnat.com>
24155 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
24157 * Makefile.in: add section for vxworks x86
24159 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
24161 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
24162 per-object constrained components where the discriminant is of an
24164 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
24165 the parent initialization procedure for derived Unchecked_Unions.
24166 Instead, derived Unchecked_Unions build their own initialization
24168 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
24169 Check the body of the subprogram for details.
24170 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
24171 functions for derived Unchecked_Union types by introducing a condition.
24172 Allow the creation of TSS equality functions for Unchecked_Unions.
24173 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
24174 Add formal parameter Discr to function signature. Discr is used to
24175 control the generated case statement for Unchecked_Union types.
24176 (Make_Eq_If): Rename formal parameter Node to E in function signature.
24178 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
24180 Check the body of the subprogram for details.
24181 (Expand_Composite_Equality): Augment composite type equality to include
24182 correct handling of Unchecked_Union components.
24183 (Expand_N_In): Add condition to detect illegal membership tests when the
24184 subtype mark is a constrained Unchecked_Union and the expression lacks
24185 inferable discriminants, and build a Raise_Program_Error node.
24186 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
24187 to detect types that contain components of unconstrained Unchecked_Union
24188 subtype. Add condition to detect equality between types that have an
24189 unconstrained Unchecked_Union component, and build a Raise_Program_Error
24190 node. Add condition to detect equality between Unchecked_Union types
24191 that lack inferable discriminants, and build a Raise_Program_Error node.
24192 Otherwise build a TSS equality function call.
24193 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
24194 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
24195 with the operand lacking inferable discriminants, and build a Raise_
24196 Program_Error node.
24197 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
24198 composite equality.
24199 (Has_Inferable_Discriminants): Implement new predicate for objects and
24200 expressions of Unchecked_Union type. Check the body of subprogram for
24202 (Has_Unconstrained_UU_Components): Add function
24203 Component_Is_Unconstrained_UU. It is used to detect whether a single
24204 component is of an unconstrained Unchecked_Union subtype. Add function
24205 Variant_Is_Unconstrained_UU. It is used to detect whether a single
24206 component inside a variant is of an unconstrained Unchecked_Union type.
24208 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
24209 inferred discriminant values. Add condition to generate a case
24210 statement with an inferred discriminant as the switch.
24211 (Make_Component_List_Assign): Introduce a Boolean flag that determines
24212 the behaviour of the subprogram in the presence of an Unchecked_Union.
24213 Add condition to trigger the usage of the inferred discriminant value
24214 as the generated case statement switch.
24215 (Make_Field_Assign): Introduce a Boolean flag that determines the
24216 behaviour of the subprogram in the presence of an Unchecked_Union. Add
24217 condition to trigger the usage of the inferred discriminant value as
24218 the right-hand side of the generated assignment.
24220 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
24221 parameter generation when dealing with Unchecked_Unions.
24223 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
24224 checks for Unchecked_Unions.
24226 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
24228 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
24229 Raise_Program_Error nodes for the execution of Read and Write
24230 attributes of Unchecked_Union types and the execution of Input and
24231 Output attributes of Unchecked_Union types that lack default
24232 discriminant values.
24234 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
24235 Unchecked_Union. Add procedure Check_Component. It is used to inspect
24236 per-object constrained components of Unchecked_Unions for being
24237 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
24238 check individual components withing a variant.
24240 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
24241 comparison of Unchecked_Unions.
24242 (Resolve_Equality_OP): Remove guard that prevents equality between
24245 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
24246 of component subtypes for Unchecked_Union components.
24247 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
24248 since it is the actual subtype.
24250 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
24251 pass of Unchecked_Union subtypes as generic actuals to formal types
24252 that lack known_discriminant_parts or that are derived Unchecked_Union
24253 types, and do nothing. In any other case, produce an error message.
24255 * sem_ch3.adb (Analyze_Component_Declaration): Add function
24256 Contains_POC. It determines whether a constraint uses the discriminant
24257 of an enclosing record type.
24258 Add condition to detect per-object constrained component and set the
24260 (Derived_Type_Declaration): Remove guard that prevents derivation from
24261 Unchecked_Union types.
24262 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
24265 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
24266 references to Unchecked_Union discriminants.
24268 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
24269 formal generation when dealing with Unchecked_Unions.
24270 (Set_Actual_Subtypes): Add condition to prevent generation of actual
24271 subtypes for Unchecked_Unions.
24273 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
24274 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
24275 completions of discriminated partial views by Unchecked_Unions and
24276 produce an error message.
24278 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24280 * trans.c (struct stmt_group): New field, GLOBAL.
24281 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
24282 (struct elab_info): New struct.
24283 (elab_info_list, gnu_elab_proc_stack): New variables.
24284 (Compilation_Unit_to_gnu): New procedure.
24285 (gigi): Call it and also handle elaboration procs we've saved.
24286 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
24287 global field from parent.
24288 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
24289 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
24290 (start_stmt_group): Initialize global field from parent.
24291 (add_decl_expr): Set to global for current statement group.
24292 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
24295 * utils.c (global_bindings_p): True when no current_function_decl; no
24296 longer check current_binding_level.
24298 2004-08-09 Ben Brosgol <brosgol@gnat.com>
24300 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
24303 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
24305 2004-08-06 Andreas Schwab <schwab@suse.de>
24307 * utils.c (gnat_define_builtin): Remove second parameter of
24309 (begin_subprog_body): Likewise.
24311 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
24313 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
24314 optimization, not supported by the tree-ssa back-end.
24316 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
24318 * s-mastop-irix.adb: Update comments.
24320 * a-except.adb (Exception_Information): Raise Constraint_Error if
24321 exception Id is Null_Id.
24322 This is required behavior, which is more reliably and clearly checked
24323 at the top level interface level.
24325 2004-07-26 Javier Miranda <miranda@gnat.com>
24327 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
24328 call if a component has no default_expression and the box is used.
24330 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
24331 default_expression and you use box, it behaves as if you had declared a
24332 stand-alone object.
24333 (Resolve_Record_Aggregate): If a component has no default_expression and
24334 you use box, it behaves as if you had declared a stand-alone object.
24336 * sem_ch10.adb (Install_Siblings): Do not make visible the private
24337 entities of private-with siblings.
24339 2004-07-26 Ed Schonberg <schonberg@gnat.com>
24341 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
24342 for a component of an itype, set the parent pointer for analysis,
24343 there is no list in which to insert it.
24345 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
24346 bona-fide renamings, not for inherited operations.
24348 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
24349 actual for a formal that is an access parameter, create local
24350 finalization list even if the expression is not an aggregate.
24352 2004-07-26 Ed Schonberg <schonberg@gnat.com>
24355 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
24356 Diagnose properly illegal subprogram renamings that are library units.
24358 2004-07-26 Ed Schonberg <schonberg@gnat.com>
24361 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
24362 conversion rewritten as an unchecked conversion, check that original
24363 expression is a variable.
24365 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
24366 unchecked_conversion, create new node rather than rewriting in place,
24367 to preserve original construct.
24369 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24371 * gigi.h (gnat_expand_body): Deleted.
24373 * Make-lang.in: (trans.o): Depends on function.h.
24375 * misc.c: (gnat_expand_body): Moved to here.
24377 * trans.c (gnat_expand_body_1): Deleted.
24378 (gnat_expand_body): Moved from here.
24379 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
24380 (add_stmt): Check for marked visited with global_bindings_p.
24381 (gnat_gimplify_expr, case COMPONENT_REF): New case.
24382 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
24384 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
24385 VIEW_CONVERT_EXPR if not operation type.
24387 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
24390 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
24391 changes: reformatting of negation operators, removing unneeded
24392 inequality comparison with zero, converting equality comparisons with
24393 zero to negations, changing int/0/1 to bool/false/true, replace calls
24394 to gigi_abort with abort, and various other similar changes.
24396 2004-07-26 Vincent Celier <celier@gnat.com>
24398 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
24401 * make.adb (Gnatmake): Fail when a library is not present and there is
24402 no object directory.
24404 * mlib-prj.adb (Check_Library): No need to check if the library needs
24405 to be rebuilt if there is no object directory, hence no object files
24406 to build the library.
24408 * opt.ads (Setup_Projects): New Boolean flag.
24410 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
24412 Create directory when Kind /= "" and in "gnat setup". Report error if
24413 directory cannot be created.
24414 (Ada_Check): Create library interface copy dir if it does not exist
24415 and we are in "gnat setup".
24416 (Find_Sources): No error if in "gnat setup" and no Ada sources were
24418 (Language_Independent_Check): Create object directory, exec directory
24419 and/or library directory if they do not exist and we are in
24422 * vms_conv.ads: (Command_Type): New command Setup.
24424 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
24426 * vms_data.ads: Add qualifiers/switches for new built-in command
24429 2004-07-25 Richard Henderson <rth@redhat.com>
24431 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
24432 DECL_IGNORED_P on RESULT_DECL.
24434 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
24436 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
24437 allocation and potentially overflowing update with
24438 Tailored_Exception_Information. Use the sec-stack free procedural
24439 interface to output Exception_Information instead.
24441 * a-except.adb (To_Stderr): New subprogram for character, and string
24442 version moved from a-exextr to be visible from other separate units.
24443 (Tailored_Exception_Information): Remove the procedural version,
24444 previously used by the default Last_Chance_Handler and not any more.
24445 Adjust various comments.
24447 * a-exexda.adb: Generalize the exception information procedural
24448 interface, to minimize the use of secondary stack and the need for
24449 local buffers when the info is to be output to stderr:
24450 (Address_Image): Removed.
24451 (Append_Info_Character): New subprogram, checking for overflows and
24452 outputing to stderr if buffer to fill is of length 0.
24453 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
24454 (Append_Info_Address, Append_Info_Exception_Name,
24455 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
24456 Append_Info_Basic_Exception_Traceback,
24457 Append_Info_Exception_Information): New subprograms.
24458 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
24459 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
24460 Exception_Info_Maxlength, Exception_Name_Length,
24461 Exception_Message_Length): New subprograms.
24462 (Exception_Information): Use Append_Info_Exception_Information.
24463 (Tailored_Exception_Information): Use
24464 Append_Info_Basic_Exception_Information.
24465 Export services for the default Last_Chance_Handler.
24467 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
24468 other separate units.
24470 2004-07-20 Vincent Celier <celier@gnat.com>
24472 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
24474 2004-07-20 Ed Schonberg <schonberg@gnat.com>
24476 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
24477 emit itype references for the designated types of component types that
24478 are declared outside of the full record declaration, and that may
24479 denote a partial view of that record type.
24481 2004-07-20 Ed Schonberg <schonberg@gnat.com>
24484 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
24485 which is the designated type in an access component declaration, to the
24486 list of incomplete dependents of the parent type, to avoid elaboration
24487 issues with out-of-scope subtypes.
24488 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
24489 full view of the parent.
24491 2004-07-20 Ed Schonberg <schonberg@gnat.com>
24494 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
24495 entities that are hidden, such as references to generic actuals
24496 outside an instance.
24498 2004-07-20 Javier Miranda <miranda@gnat.com>
24500 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
24501 support to the new notation.
24502 (Analyze_Selected_Component): Add call to Try_Object_Operation.
24504 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
24506 * s-taprob.adb: Adding the elaboration code required for initializing
24507 the tasking soft links that are common to the full and the restricted
24510 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
24511 restricted run time has been moved to the package
24512 System.Soft_Links.Tasking.
24514 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
24515 restricted run time has been moved to the package
24516 System.Soft_Links.Tasking.
24518 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
24520 * s-solita.ads, s-solita.adb: New files.
24522 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24524 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
24525 Case_Statement_to_gnu): Split off from gnat_to_gnu.
24526 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
24527 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
24528 Exception_Handler_to_gnu_zcx): Likewise.
24530 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
24532 * gigi.h (builtin_function): Declare.
24534 2004-07-15 Robert Dewar <dewar@gnat.com>
24536 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
24539 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
24540 access values as an example of a warning.
24542 * gnat_rm.texi: Document new attribute Has_Access_Values
24544 * gnat-style.texi: Document that box comments belong on nested
24547 * sem_util.ads (Has_Access_Values): Improved documentation
24549 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
24551 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
24552 (Process_Interface_Name): Call to this new procedure
24553 (Set_Extended_Import_Export_External_Name): Call to this new procedure
24555 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
24557 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
24559 * einfo.ads: Minor comment typo fixed
24561 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
24563 * snames.adb: Add _atcb.
24565 * snames.ads: Add Name_uATCB.
24567 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
24568 (in the expanded code) when using the restricted run time.
24570 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
24571 a in parameter in order to allow ATCBs to be preallocated (in the
24574 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
24575 order to allow ATCBs to be preallocated. In case of error, the ATCB is
24576 deallocated in System.Tasking.Stages.
24578 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
24579 order to allow ATCBs to be preallocated.
24581 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
24582 here. It was previously done in Initialize_ATCB.
24584 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
24586 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
24587 Restricted run time.
24589 * exp_ch3.adb: When using the Restricted run time, pass the
24590 preallocated Ada_Task_Control_Block when creating a task.
24592 2004-07-15 Ed Schonberg <schonberg@gnat.com>
24594 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
24595 function call that is itself an actual in an enclosing call, diagnose
24596 problem here rather than assuming that resolution will catch it.
24598 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
24599 the local copy of a generic unit for a formal package, and the generic
24600 is a child unit, install private part of ancestors before compiling
24601 private part of spec.
24603 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
24604 use scope entities rather than tree structures, to handle properly
24605 parent units that are instances rewritten as bodies for inlining
24608 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
24609 Remove_Parents): Handle properly a parent unit that is an
24610 instantiation, when the unit has been rewritten as a body for inlining
24613 * par.adb (Goto_List): Global variable to collect goto statements in a
24614 given unit, for use in detecting natural loops.
24616 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
24617 use in detecting natural loops.
24619 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
24620 backwards goto's, and rewrite as a infinite loop, to improve locality
24623 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
24624 subcomponent that includes an indexed reference, to prevent the
24625 generation of copies that would miscompile the desired assignment
24627 (Build_Task_Image_Decls): Add a numeric suffix to
24628 generated name for string variable, to avoid spurious conflicts with
24629 the name of the type of a single protected object.
24631 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
24632 loop with an explicit exit statement, to avoid generating an
24633 out-of-range value with 'Succ leading to spurious constraint_errors
24634 when compiling with -gnatVo.
24636 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
24638 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
24639 might not be analyzed yet, even if its Etype is already set (case of an
24640 unchecked conversion built using Unchecked_Convert_To, for example).
24641 If the prefix has already been analyzed, this will be a nop anyway.
24643 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
24644 controller type, or an assignment of a record type with controlled
24645 components, copy only user data, and leave the finalization chain
24646 pointers untouched.
24648 2004-07-15 Vincent Celier <celier@gnat.com>
24650 * make.adb (Collect_Arguments): Improve error message when attempting
24651 to compile a source not part of any project, when -x is not used.
24653 * prj.ads: (Defined_Variable_Kind): New subtype
24655 * prj-attr.adb (Register_New_Package): Two new procedures to register
24656 a package with or without its attributes.
24657 (Register_New_Attribute): Mew procedure to register a new attribute in a
24659 New attribute oriented subprograms: Attribute_Node_Id_Of,
24660 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
24661 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
24663 New package oriented subprograms: Package_Node_Id_Of,
24664 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
24666 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
24668 (Package_Node_Id): Now a private, self initialized type
24669 (Register_New_Package): New procedure to register a package with its
24671 New attribute oriented subprograms: Attribute_Node_Id_Of,
24672 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
24673 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
24675 New package oriented subprograms: Package_Node_Id_Of,
24676 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
24678 * prj-dect.adb (Parse_Attribute_Declaration,
24679 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
24681 * prj-makr.adb (Make): Parse existing project file before creating
24682 other files. Fail if there was an error during parsing.
24684 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
24685 new spec of Prj.Attr.
24687 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
24688 to new spec of Prj.Attr.
24690 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24692 * utils2.c: Fix typo in comment.
24694 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24696 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
24697 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
24699 2004-07-14 Andreas Schwab <schwab@suse.de>
24701 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
24703 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24705 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
24707 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
24710 * misc.c (gnat_types_compatible_p): New function.
24711 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
24712 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
24714 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
24715 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
24716 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
24717 (mark_visited): Don't mark dummy type.
24718 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
24719 parameter, we must remove any LJM building from GNU_NAME.
24720 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
24721 (pos_to_constructor): Use int_const_binop.
24722 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
24725 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
24726 (gnat_pushlevel): Set TREE_USE on BLOCK node.
24727 (gnat_install_builtins): Add __builtin_memset.
24729 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
24731 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
24732 for a renaming, stabilize the initialization expression if we are at a
24733 local level. At the local level, uses of the renaming may be performed
24734 by a direct dereference of the initializing expression, and we don't
24735 want possible variables there to be evaluated for every use.
24737 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
24738 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
24739 them on the way. Account for the fact that we may introduce side
24740 effects in the process.
24742 2004-07-13 Richard Henderson <rth@redhat.com>
24744 * misc.c (default_pass_by_ref): Use pass_by_reference.
24746 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
24748 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
24749 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
24751 2004-07-08 Richard Henderson <rth@redhat.com>
24753 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
24756 2004-07-06 Vincent Celier <celier@gnat.com>
24758 * vms_conv.ads: Minor reformatting.
24759 Alphabetical order for enumerated values of type Command_Type, to have
24760 the command in alphabetical order for the usage.
24762 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
24763 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
24765 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
24767 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
24768 (Add_Archive_Path): Only add the global archive if there is one.
24769 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
24770 or not any object file to put in the global archive, and don't build
24771 a global archive if there is none.
24772 (X_Switches): New table
24773 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
24774 in the X_Switches table, if any.
24775 (Initialize): Make sure the X_Switches table is empty
24776 (Scan_Arg): Record -X switches in table X_Switches
24778 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
24780 * make.adb: Minor comment fix
24782 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
24783 invoked with directory information, add the directory in front of the
24786 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
24787 invoked with directory information, add the directory in front of the
24790 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
24791 when Keep_Temporary_Files is False.
24792 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
24793 directory information, add the directory in front of the path.
24794 When not on VMS, handle new switch -dn before the command to set
24795 Keep_Temporary_Files to True.
24796 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
24799 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
24800 invoked with directory information, add the directory in front of the
24803 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
24805 * snames.ads, snames.adb (Name_Stub): New name for the distributed
24808 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
24809 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
24811 * g-socket.adb (To_Timeval): Fix incorrect conversion of
24812 Selector_Duration to Timeval for the case of 0.0.
24814 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
24815 documentation from Evolve_And_Then.
24817 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
24819 * s-taprop-tru64.adb, s-taprop-os2.adb,
24820 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
24822 2004-07-06 Robert Dewar <dewar@gnat.com>
24824 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
24825 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
24826 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
24827 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
24828 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
24829 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
24830 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
24831 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
24832 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
24833 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
24834 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
24835 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
24836 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
24837 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
24838 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
24839 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
24840 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
24841 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
24842 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
24843 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
24844 vms_data.ads: Minor reformatting,
24845 Fix bad box comment format.
24847 * gnat_rm.texi: Fix minor grammatical error
24849 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
24851 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
24852 more cases of discriminated records to be recognized as not needing a
24854 (Has_Access_Values): New function.
24856 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
24858 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
24859 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
24860 with LRM terminology).
24861 Change terminology in comments primitive type => elementary type.
24863 2004-07-06 Ed Schonberg <schonberg@gnat.com>
24866 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
24867 parameters do not impose any requirements on the presence of a body.
24869 2004-07-06 Ed Schonberg <schonberg@gnat.com>
24872 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
24873 compilation unit and is in an open scope at the point of instantiation,
24874 assume that a body may be present later.
24876 2004-07-06 Ed Schonberg <schonberg@gnat.com>
24878 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
24879 Improve error message when specified size is not supported.
24881 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
24882 is never a primitive operation.
24884 2004-07-05 Andreas Schwab <schwab@suse.de>
24886 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
24887 RECORD_OR_UNION_CHECK.
24888 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
24890 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
24892 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
24893 dependency on xgnatugn, instead build it via a submake.
24894 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
24896 2004-07-04 Richard Henderson <rth@redhat.com>
24898 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
24900 2004-07-01 Richard Henderson <rth@redhat.com>
24902 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
24903 * utils.c (max_size): Likewise.
24905 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24907 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
24908 and rest_of_type_compilation; add arg to create_*_decl.
24909 (annotate_decl_with_node): Deleted.
24910 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
24911 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
24912 (get_current_block_context, gnat_pushdecl): New declarations.
24913 (gnat_init_stmt_group): Likewise.
24914 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
24915 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
24916 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
24917 (gnat_init): Call gnat_init_stmt_group.
24918 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
24919 (gnu_pending_elaboration_list): Deleted.
24920 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
24921 (gigi): Rearrange initialization calls and move some to last above.
24922 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
24923 Delete calls to add_decl_expr; add arg to create_*_decl.
24924 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
24925 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
24926 begin_subprog_body and call it.
24927 Don't push and pop ggc context.
24928 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
24929 (add_stmt): Remove handling of DECL_EXPR from here.
24930 If not in function, mark visited.
24931 (add_decl_expr): Put global at top level.
24932 Check for cases of DECL_INITIAL we have to handle here.
24933 (process_type): Add extra arg to create_type_decl.
24934 (build_unit_elab): Rework to just gimplify.
24935 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
24936 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
24937 (get_pending_elaborations, pending_elaborations_p): Likewise.
24938 (push_pending_elaborations, pop_pending_elaborations): Likewise.
24939 (get_elaboration_location, insert_elaboration_list): Likewise.
24940 (gnat_binding_level): Renamed from ada_binding_level.
24941 (init_gnat_to_gnu): Don't clear pending_elaborations.
24942 (global_bindings_p): Treat as global if no current_binding_level.
24943 (set_current_block_context): New function.
24944 (gnat_pushdecl): Renamed from pushdecl; major rework.
24945 All callers changed.
24946 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
24947 (finish_record_type): Call call pushdecl for stub decl.
24948 (function_nesting_depth): Deleted.
24949 (begin_subprog_body): Delete obsolete code.
24950 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
24952 2004-06-28 Robert Dewar <dewar@gnat.com>
24954 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24955 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
24956 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
24957 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
24958 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
24960 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
24961 deal with problem of inefficient slices on machines with strict
24962 alignment, when the slice is a component of a composite.
24964 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
24965 machines, we need the check there as well.
24967 2004-06-28 Ed Schonberg <schonberg@gnat.com>
24969 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
24970 determine safe copying direction for overlapping slice assignments
24971 when component is controlled.
24973 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
24974 formal derived type in the actual for a formal package are visible in
24975 the enclosing instance.
24977 2004-06-28 Ed Schonberg <schonberg@gnat.com>
24980 * sem_util.adb (Trace_Components): Diagnose properly an illegal
24981 circularity involving a private type whose completion includes a
24982 self-referential component.
24983 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
24984 renaming or an instantiation from an implicit derived operation.
24986 2004-06-28 Pascal Obry <obry@gnat.com>
24988 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
24990 (Library_File_Name_For): Idem.
24992 2004-06-28 Matthew Gingell <gingell@gnat.com>
24994 * g-traceb.ads: Add explanatory note on the format of addresses
24995 expected by addr2line.
24997 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
24999 * Makefile.in: Force debugging information on s-tasdeb.adb,
25000 a-except.adb and s-assert.adb needed by the debugger.
25002 2004-06-28 Vincent Celier <celier@gnat.com>
25004 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
25008 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
25010 * prj.adb: Minor reformatting
25011 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
25013 * prj.ads: Comment updates
25015 (Project_Data): Change Flag1 to Need_To_Build_Lib.
25016 Remove Flag2: not used.
25018 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
25021 * gnat_ugn.texi: Put a "null;" declaration in one project file example
25023 * gnat_rm.texi: Document Empty declarations "null;".
25025 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
25026 front of the linker options.
25027 (Link_Foreign): Put the global archives and the libraries in front of
25028 the linker options.
25030 2004-06-28 Javier Miranda <miranda@gnat.com>
25032 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
25033 (RTU_Loaded): Code cleanup
25034 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
25035 withed predefined units.
25037 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
25038 explicitly withed predefined units.
25039 Fix typo in comment
25041 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
25042 explicitly withed predefined units.
25044 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25046 * ada-tree.def (DECL_STMT): Deleted.
25047 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
25048 (DECL_STMT_VAR): Deleted.
25049 * decl.c: add_decl_stmt now add_decl_expr.
25050 * gigi.h: Likewise.
25051 * trans.c: Likewise.
25052 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
25053 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
25054 (add_stmt): Only handle padded type here.
25055 (add_stmt_with_node): Allow gnat_node to not be present.
25056 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
25057 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
25058 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
25059 make a SAVE_EXPR for the entire fat pointer.
25060 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
25061 (create_index_type): Make a DECL_EXPR.
25062 (end_subprog_body): Don't call allocate_struct_function here but
25065 2004-06-25 Pascal Obry <obry@gnat.com>
25067 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
25068 Relocatable from Build_Dynamic_Library call.
25070 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
25071 Relocatable are now synonym.
25073 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
25075 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
25076 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
25079 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
25080 Lib_Address and Relocatable.
25081 (Default_DLL_Address): Removed.
25083 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
25084 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
25085 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
25086 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
25087 (Default_DLL_Address): Removed.
25089 * mlib-tgt-mingw.adb: Ditto.
25090 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
25092 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
25093 the initial thread stack size.
25095 * a-strmap.ads: Move package L to private part as it is not used in
25096 the spec. Found while reading code.
25098 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
25100 * tracebak.c: Introduce support for a GCC infrastructure based
25101 implementation of __gnat_backtrace.
25103 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
25104 any more. Use accessors instead. This eases maintenance and relaxes
25105 some alignment constraints.
25106 (_GNAT_Exception structure): Remove the Ada specific fields
25107 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
25109 (is_handled_by, __gnat_eh_personality): Replace component references to
25110 exception structure by use of the new accessors.
25112 * init.c (__gnat_initialize): Adjust comments to match the just
25113 reverted meaning of the -static link-time option.
25115 * adaint.c (convert_addresses): Arrange not to define a stub for
25116 mips-irix any more, as we now want to rely on a real version from a
25117 recent libaddr2line.
25119 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
25120 the personality routine can use them and not have to rely on a C
25121 counterpart of the record anymore. This simplifies maintenance and
25122 relaxes the constraint of having Standard'Maximum_Alignment match
25124 Update comments, and add a section on the common header alignment issue.
25126 2004-06-25 Geert Bosch <bosch@gnat.com>
25128 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
25129 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
25131 2004-06-25 Robert Dewar <dewar@gnat.com>
25133 * gnat_rm.texi: Fix section on component clauses to indicate that the
25134 restriction on byte boundary placement still applies for bit packed
25136 Add comment on stack usage from Initialize_Scalars
25138 * gnat_ugn.texi: Add documentation for -gnatyLnnn
25140 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
25141 limiting nesting level.
25143 * usage.adb: Add line for -gnatyLnnn switch
25145 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
25146 sem_ch13.adb, exp_aggr.adb: Minor reformatting
25148 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
25149 type as well as on the subtype. This corrects a problem in freeze in
25150 setting alignments of atomic types.
25152 * sem_eval.ads: Minor comment typo fixed
25154 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
25155 level. Minor reformatting.
25157 * fname.adb (Is_Predefined_File_Name): Require a letter after the
25158 minus sign. This means that file names like a--b.adb will not be
25159 considered predefined.
25161 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
25162 record Test new flag and give diagnostic for bad component clause.
25163 (Freeze_Entity): Set alignment of array from component alignment in
25164 cases where this is safe to do.
25166 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
25169 * cstand.adb: (Create_Standard): Set alignment of String to 1
25171 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
25173 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
25174 code in the common constrained array cases.
25176 * a-storio.adb: Change implementation to avoid possible alignment
25177 problems on machines requiring strict alignment (data should be moved
25178 as type Buffer, not type Elmt).
25180 * checks.adb (Apply_Array_Size_Check): Improve these checks by
25181 killing the overflow checks which we really do not need (64-bits is
25184 2004-06-25 Vincent Celier <celier@gnat.com>
25186 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
25187 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
25188 inconditionally for the main project.
25189 (Recursive_Add_Archives.Add_Archive_Path): New procedure
25190 (Link_Executables.Check_Time_Stamps): New procedure
25191 (Link_Executables.Link_Foreign): New procedure
25192 Changes made to reduce nesting level of this package
25193 (Check): New procedure
25194 (Add_Switches): When not in quiet output, check that a switch is not
25195 the concatenation of several valid switches. If it is, issue a warning.
25196 (Build_Global_Archive): If the global archive is rebuilt, linking need
25198 (Compile_Sources): Rebuilding a library archive does not imply
25199 rebuilding the global archive.
25200 (Build_Global_Archive): New procedure
25201 (Build_Library): New name for Build_Archive, now only for library
25203 (Check_Archive_Builder): New procedure
25204 (Create_Global_Archive_Dependency_File): New procedure
25205 (Gprmake): Call Build_Global_Archive before linking
25206 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
25208 (Scan_Arg): Display the Copyright notice when -v is used
25210 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
25213 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
25215 Add new GNAT LIST qualifier /FILES=
25216 Added qualifier /DIRECTORY= to GNAT METRIC
25217 Added qualifier /FILES= to GNAT METRIC
25218 Added qualifier /FILES to GNAT PRETTY
25220 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
25221 to take into account both versions of the switch.
25223 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
25224 always be the last switch to the gcc driver. Disable switch storing so
25225 that switches automatically added by the gcc driver are not put in the
25228 * prj.adb (Project_Empty): Take into account changes in components of
25231 * prj.ads (Languages_Processed): New enumaration value All_Languages.
25233 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
25234 used. Split Boolean component Ada_Sources_Present in two Boolean
25235 components Ada_Sources_Present and Other_Sources_Present.
25238 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
25239 instead of Sources_Present.
25240 (Set_Ada_Paths.Add.Recursive_Add): Ditto
25242 * prj-nmsc.adb: Minor reformatting
25243 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
25244 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
25245 Check_Ada_Naming_Scheme.
25246 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
25249 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
25251 Make sure that all cycles where there is at least one "limited with"
25253 (Parse_Single_Project): New Boolean parameter In_Limited
25255 * prj-proc.adb (Recursive_Check): When Process_Languages is
25256 All_Languages, call first Prj.Nmsc.Ada_Check, then
25257 Prj.Nmsc.Other_Languages_Check.
25259 * prj-proc.adb (Process): Use Ada_Sources_Present or
25260 Other_Sources_Present (instead of Sources_Present) depending on
25263 * lang-specs.h: Keep -g and -m switches in the same order, and as the
25266 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
25267 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
25269 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
25272 * lib.ads (Disable_Switch_Storing): New procedure.
25274 * make.adb: Modifications to reduce nesting level of this package.
25275 (Check_Standard_Library): New procedure
25276 (Gnatmake.Check_Mains): New procedure
25277 (Gnatmake.Create_Binder_Mapping_File): New procedure
25278 (Compile_Sources.Compile): Add switch -gnatez as the last option
25279 (Display): Never display -gnatez
25281 * Makefile.generic:
25282 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
25284 * gnatcmd.adb (Check_Project): New function
25285 (Process_Link): New procedure to reduce nesting depth
25286 (Check_Files): New procedure to reduce the nesting depth.
25287 For GNAT METRIC, include the inherited sources in extending projects.
25288 (GNATCmd): When GNAT LS is invoked with a project file and no files,
25289 add the list of files from the sources of the project file. If this list
25290 is too long, put it in a temp text files and use switch -files=
25291 (Delete_Temp_Config_Files): Delete the temp text file that contains
25292 a list of source for gnatpp or gnatmetric, if one has been created.
25293 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
25294 in the project file is too large, create a temporary text file that
25295 list them and pass it to the tool with "-files=<temp text file>".
25296 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
25298 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
25299 generated file is in not in Ada.
25301 * gnatls.adb: Remove all parameters And_Save that are no longer used.
25302 (Scan_Ls_Arg): Add processing for -files=
25303 (Usage): Add line for -files=
25305 * g-os_lib.adb (On_Windows): New global constant Boolean flag
25306 (Normalize_Pathname): When on Windows and the path starts with a
25307 directory separator, make sure that the resulting path will start with
25310 * clean.adb (Clean_Archive): New procedure
25311 (Clean_Project): When there is non-Ada code, delete the global archive,
25312 the archive dependency files, the object files and their dependency
25313 files, if they exist.
25314 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
25316 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
25318 * sinfo.ads: Fix typo in comment.
25320 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
25321 the TSS for remote access-to-subprogram types, since these TSS are
25322 always present once the type has been analyzed.
25323 (RAS_E_Dereference): Same.
25325 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
25326 reference raises Bad_Attribute, mark the reference as analyzed so the
25327 node (and any children resulting from rewrites that could have occurred
25328 during the analysis that ultimately failed) is not analyzed again.
25330 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
25332 * exp_dist.adb: Minor comment fix.
25334 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
25335 type is an anonymous access type, no unchecked deallocation of the
25336 allocated object can occur. If the object is controlled, attach it with
25337 a count of 1. This allows attachment to the Global_Final_List, if
25338 no other relevant list is available.
25339 (Get_Allocator_Final_List): For an anonymous access type that is
25340 the type of a discriminant or record component, the corresponding
25341 finalisation list is the one of the scope of the type.
25343 2004-06-25 Ed Schonberg <schonberg@gnat.com>
25345 * sem_ch3.adb (Replace_Type): When computing the signature of an
25346 inherited subprogram, use the first subtype if the derived type
25347 declaration has no constraint.
25349 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
25350 before applying previous optimization. Minor code cleanup.
25352 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
25353 placed at the beginning of an unpacked record without explicit
25354 alignment, a slice of it will be aligned and does not need a copy when
25357 2004-06-25 Ed Schonberg <schonberg@gnat.com>
25361 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
25362 reference is written with expressions mimicking parameters.
25364 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
25367 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
25368 STEP 2a. The constraints of a full type declaration of a derived record
25369 type are checked for conformance with those declared in the
25370 corresponding private extension declaration. The message
25371 "not conformant with previous declaration" is emitted if an error is
25374 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
25376 * g-traceb.ads: Document the need for -E binder switch in the spec.
25378 * g-trasym.ads: Document the need for -E binder switch in the spec.
25380 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
25382 * sem_prag.adb: Add handling of pragma Detect_Blocking.
25384 * snames.h, snames.ads, snames.adb: Add entry for pragma
25387 * s-rident.ads: Change reference to pragma Detect_Blocking.
25389 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
25392 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
25393 to indicate whether pragma Detect_Blocking is active.
25395 * par-prag.adb: Add entry for pragma Detect_Blocking.
25397 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
25398 of not handling WITH.
25399 Note that this replaces the previous update which was incorrect.
25401 2004-06-25 Javier Miranda <miranda@gnat.com>
25403 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
25404 use-clauses to have a clean environment.
25406 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
25407 the installation of the use-clauses to stablish a clean environment in
25408 case of compilation of a separate unit; otherwise the call to
25409 use_one_package is protected by the barrier Applicable_Use.
25411 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
25412 the installation of the use-clauses to stablish a clean environment in
25413 case of compilation of a separate unit.
25414 (End_Use_Clauses): Minor comment cleanup.
25416 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
25418 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
25420 2004-06-23 Richard Henderson <rth@redhat.com>
25422 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
25424 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25426 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
25427 now bool instead of int.
25428 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
25429 * trans.c (gnu_switch_label_stack): New function.
25430 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
25431 elaboration of renamed entity returns.
25432 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
25433 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
25434 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
25435 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
25436 DECL_SIZE_UNIT and simplify variable-sized case.
25437 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
25438 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
25439 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
25440 (build_unit_elab): Disable for now.
25441 * utils.c (mark_visited): New function.
25442 (pushdecl): Walk tree to call it for global decl.
25443 (update_pointer_to): Update all variants of pointer and ref types.
25444 Add arg to COMPONENT_REF.
25445 (convert): Likewise.
25446 Move check for converting between variants lower down.
25447 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
25448 (build_allocator): Don't force type of MODIFY_EXPR.
25449 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
25450 put_var_into_stack.
25452 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25454 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
25455 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
25456 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
25458 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
25459 all callers changed.
25460 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
25461 the way that EXIT_STMT finds the loop label.
25462 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
25463 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
25464 (add_stmt): Use annotate_with_locus insted of setting directly.
25465 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
25466 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
25467 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
25468 (build_vms_descriptor): Add extra args to ARRAY_REF.
25469 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
25470 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
25472 (build_binary_op): Don't make explicit CONVERT_EXPR.
25473 Add extra rgs to ARRAY_REF.
25475 2004-06-14 Pascal Obry <obry@gnat.com>
25477 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
25478 Windows. Fix minor typo.
25480 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
25481 which is now supported on Windows. With this implementation using the
25482 Library Project feature is no different on Windows than on UNIX.
25484 2004-06-14 Vincent Celier <celier@gnat.com>
25486 * makegpr.adb (Compile_Sources): Nothing to do when there are no
25489 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
25491 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
25492 found, show the project name and the path of the previously parsed
25495 2004-06-14 Ed Schonberg <schonberg@gnat.com>
25497 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
25498 array, avoid copying the actual before the call.
25500 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
25502 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
25503 Instead, allocate memory on worst-case alignment assumptions, and then
25504 return an aligned address within the allocated zone.
25506 2004-06-14 Robert Dewar <dewar@gnat.com>
25508 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
25509 elab entities in predefined units in No_Run_Time_Mode.
25510 (Gen_Adainit_C): Same fix
25511 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
25512 units in No_Run_Time_Mode
25513 (Gen_Elab_Calls_C): Same fix
25515 * symbols-vms-alpha.adb: Minor reformatting
25517 * g-debpoo.ads: Minor reformatting
25519 * lib.adb (In_Same_Extended_Unit): Version working on node id's
25521 * lib.ads (In_Same_Extended_Unit): Version working on node id's
25523 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
25526 * make.adb: Minor reformatting
25528 * par-ch12.adb: Minor reformatting
25530 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
25532 * prj-strt.adb: Minor reformatting
25534 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
25537 * sem_attr.adb: Minor reformatting
25539 * sem_ch7.adb: Minor reformatting
25541 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
25542 for type in the same unit as the object declaration.
25544 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
25545 static string expressions and not just string literals.
25547 (Set_Warning): Reset restriction warning flag for restriction pragma
25548 Implement pragma Profile_Warnings
25549 Implement pragma Profile (Restricted)
25550 Give obolescent messages for old restrictions and pragmas
25552 * snames.h, snames.ads, snames.adb: Add new entry for pragma
25555 * s-rident.ads: Add declarations for restrictions required by profile
25556 Restricted and profile Ravenscar.
25558 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
25560 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
25561 configuration pragmas.
25563 2004-06-11 Vincent Celier <celier@gnat.com>
25565 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
25566 gnatsym, when symbol policy is Restricted.
25568 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
25569 gnatsym, when symbol policy is Restricted.
25571 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
25572 read the symbol file.
25573 (Finalize): Fail in symbol policy Restricted if a symbol in the original
25574 symbol file is not in the object files. Do not create a new symbol file
25575 when symbol policy is Restricted.
25577 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
25580 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
25582 (Usage): Line for new switch -R
25584 * make.adb (Initialize): When the platform is not VMS, add the
25585 directory where gnatmake is invoked in the front of the path, if
25586 gnatmake is invoked with directory information. Change the Scan_Args
25587 while loop to a for loop.
25588 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
25589 if Depth is equal or greater than the proposed depth, there is nothing
25591 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
25594 * prj.ads: Add new symbol policy Restricted.
25596 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
25597 with the new parameters Check_All_Labels and Case_Location.
25599 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
25600 (Library_Symbol_File needs to be defined).
25602 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
25603 and Case_Location If Check_All_Labels is True, check that all values of
25604 the string type are used, and output warning(s) if they are not.
25606 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
25609 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
25611 * gnat_ugn.texi: Update documentation about the library directory in
25614 * makegpr.adb (Display_Command): In verbose mode, also display the
25615 value of the CPATH env var, when the compiler is gcc.
25616 (Initialize): Change the Scan_Args while loop to a for loop
25617 (Compile_Individual_Sources): Change directory to object directory
25618 before compilations.
25620 * symbols.ads: New symbol policy Restricted.
25622 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
25624 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
25625 is now taken care of internally in the Exception_Propagation package
25626 and does not require clients assistance any more.
25628 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
25629 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
25630 functions. Helpers to maintain a predicate required in the handling of
25631 occurrence transfer between tasks.
25632 This is now handled internally and does not require clients assistance
25633 for the setup/propagate separation anymore.
25634 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
25635 allocation strategy, handle the Setup_And_Not_Propagated predicate and
25638 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
25639 raise_after_setup, now that everything is handled internally within the
25640 setup/propagation engine.
25642 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
25644 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
25645 Add additional conditions for the case of an actual being a simple
25646 name or literal. Improve inlining by preventing the generation
25647 of temporaries with a short lifetime (one use).
25649 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
25652 * einfo.ads: Minor comment updates for Has_Completion and
25653 E_Constant list of flags.
25655 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
25656 and constant redeclarations now set the Has_Completion flag of their
25657 defining identifiers.
25659 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
25660 Inspect_Deferred_Constant_Completion.
25661 Used to detect private deferred constants that have not been completed
25662 either by a constant redeclaration or pragma Import. Emits error message
25663 "constant declaration requires initialization expression".
25665 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
25666 completes a deferred constant.
25668 2004-06-11 Geert Bosch <bosch@gnat.com>
25670 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
25672 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
25673 calculating exponent for scaling denormal numbers.
25674 (Leading_Part): Properly raise Constraint_Error for zero or negative
25676 (Remainder): Properly raise Constraint_Error for zero divisor.
25678 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
25680 * sem_util.adb: Minor reformatting.
25682 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
25683 dereference when accessing the entry parameter record.
25684 (Check_Array_Type): Always check for possible implicit dereference.
25685 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
25686 Abort if a pointer is still present (denoting that an implicit
25687 dereference was left in the tree by the front-end).
25689 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
25690 dereference when accessing the entry parameter record.
25691 (Check_Array_Type): Always check for possible implicit dereference.
25692 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
25693 Abort if a pointer is still present (denoting that an implicit
25694 dereference was left in the tree by the front-end).
25696 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
25698 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
25699 message, like the compiler itself does. Easier to parse the output.
25701 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
25703 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
25704 be base names, and not includes directories.
25706 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
25708 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
25709 so that dependencies are properly taken into account by make.
25711 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
25714 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
25715 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
25717 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
25719 * Makefile.in (install-gnatlib): install target-specific run-time files.
25721 * Make-lang.in: Remove obsolete targets.
25723 2004-06-11 Ed Schonberg <schonberg@gnat.com>
25725 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
25726 specification, to catch misuses of program unit names.
25728 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
25729 superfluous conversions in an instance.
25731 2004-06-11 Ed Schonberg <schonberg@gnat.com>
25734 * sem_ch12.adb (Save_References): If operator node has been folded to
25735 enumeration literal, associated_node must be discarded.
25737 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
25739 * s-stchop-vxworks.adb: Add required pragma Convention to
25740 Task_Descriptor because it is updated by a C function.
25742 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
25745 * Makefile.in: Remove target specific SO_OPT on IRIX
25747 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25749 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
25750 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
25751 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
25752 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
25753 (STMT_STMT, USE_STMT): New statement codes.
25754 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
25755 * ada-tree.h: Reflect above changes.
25756 (struct tree_loop_id): Deleted.
25757 (union lang_tree_node, struct lang_decl, struct lang_type):
25758 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
25759 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
25760 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
25761 (IS_ADA_STMT): New macro.
25762 * decl.c (annotate_decl_with_node): New function.
25763 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
25764 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
25765 Call add_stmt_with_node to do needed assignments.
25766 Add call to update setjmp buffer directly, not via EXPR_STMT.
25767 (maybe_variable): Argment GNAT_NODE deleted.
25768 * gigi.h (maybe_variable): Likewise.
25769 (make_transform, add_stmt_with_node, set_block_for_group): New.
25770 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
25771 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
25772 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
25773 (set_lineno, set_lineno_from_sloc): Likewise.
25774 (record_code_position, insert_code_for): Likewise.
25775 (gnat_poplevel): Now returns void.
25776 (end_subprog_body): Now takes argument.
25777 * misc.c (cgraph.h, tree-inline.h): New includes.
25778 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
25779 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
25780 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
25781 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
25782 (gnat_parse_file): Don't set immediate_size_expand.
25783 Call cgraph functions.
25784 (gnat_expand_expr): Remove most cases.
25785 (record_code_position, insert_code_for): Remove from here.
25786 * trans.c (toplev.h, tree-gimple.h): Now included.
25787 (discard_file_names): Deleted.
25788 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
25789 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
25790 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
25791 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
25792 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
25793 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
25794 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
25795 (set_block_for_group, add_stmt_list): Likewise.
25796 (start_stmt_group): Renamed from start_block_stmt.
25797 (end_stmt_group): Likewise, from end_block_stmt.
25798 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
25799 (gigi): Don't set discard_file_names or call set_lineno.
25800 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
25801 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
25802 Numerous changes throughout to reflect new names and complete
25803 function-at-a-time implementation.
25804 (gnat_expand_stmt): Delete or comment out all cases.
25805 (process_inlined_subprograms): Use add_stmt.
25806 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
25807 call set_lineno; also remove unneeded block handling.
25808 (process_type): Remove unneeded block handling.
25809 (build_unit_elab): Remove calls to deleted functions.
25810 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
25811 (tree-dump.h): Likewise.
25812 (struct ada_binding_level): Add field jmpbuf_decl.
25813 (gnat_define_builtin, gnat_install_builtins): New.
25814 (gnat_gimplify_function, gnat_finalize): Likewise.
25815 (gnat_poplevel): No longer return BLOCK, set it instead.
25816 Remove code dealing with nested functions.
25817 (gnat_init_decl_processing): Also set size_type_node.
25818 Call gnat_install_builtins.
25819 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
25820 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
25821 Remove special-case for "main".
25822 (end_subprog_body): Add arg and rework for tree-ssa.
25823 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
25824 Add case for BOOLEAN_TYPE.
25825 * utils2.c (rtl.h): Now include.
25826 (build_call_raise): Test Debug_Flag_NN directly.
25827 (build_call_alloc_dealloc): Don't use local stack allocation for now.
25828 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
25829 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
25831 2004-06-07 Robert Dewar <dewar@gnat.com>
25833 * a-direct.ads, einfo.ads: Minor comment updates
25835 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
25836 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
25837 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
25838 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
25839 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
25841 * s-interr-sigaction.adb: Remove unreferenced variable
25842 (Attached_Interrupts). Minor reformatting.
25843 Avoid use of variable I (replace by J).
25845 * par-ch10.adb: Fix text of one error message
25847 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
25848 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
25849 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
25850 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
25851 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
25852 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
25853 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
25854 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
25855 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
25856 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
25857 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
25860 2004-06-07 Doug Rupp <rupp@gnat.com>
25862 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
25864 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
25866 * mlib-tgt-vms-ia64.adb: New file.
25868 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
25869 Add mlib-tgt-vms-ia64.adb
25870 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
25871 Move to alpha specific ifeq section.
25872 Add VMS specific versions of symbols.adb
25873 Renaming of 5q vms files.
25875 * 5qsystem.ads renamed to system-vms_64.ads.
25877 2004-06-07 Vincent Celier <celier@gnat.com>
25879 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
25880 explain that when a time of day corresponding to the non existing hour
25881 on the day switching to DST is specified, Split may return a different
25884 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
25887 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
25888 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
25890 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
25892 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
25893 the linking options.
25894 (Build_Library.Check_Libs): On VMS, if there is a dependency on
25895 g-trasym.ads, set Gtrasymobj_Needed to True.
25897 * prj-attr.adb: Add new package Metrics for gnatmetric
25899 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
25900 canonical case to take into account files with upper case characters on
25902 (Ada_Check): Load the reference symbol file name in the name buffer to
25903 check it, not the symbol file name.
25905 * snames.ads, snames.adb: Add standard name Metrics (name of project
25906 file package for gnatmetric).
25908 * vms_conv.ads: Add Metric to Comment_Type
25910 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
25912 * vms_data.ads: Add qualifiers for GNAT METRIC
25914 * makegpr.adb (Link_Executables): Take into account the switches
25915 specified in package Linker of the main project.
25917 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
25919 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
25920 the index of the last element is Units.Last, not Units.Table'Last
25921 (which is usually not a valid index within the actually allocated
25922 storage for the table).
25924 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
25925 determines whether to generate a call to a checked storage pool
25926 Dereference action.
25927 Generate such a call only for a dereference that either comes from
25928 source, or is the result of rewriting a dereference that comes from
25931 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
25933 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
25935 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
25937 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
25938 file level, elaborate the stride for inner dimensions in alignment
25941 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
25944 2004-06-07 Javier Miranda <miranda@gnat.com>
25946 * exp_ch6.adb: Correct wrong modification in previous patch
25948 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
25950 * g-trasym.ads: Corrected comment to properly reflect level of support
25953 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
25955 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
25956 includes case of a variable referenced on the left hand side of an
25957 assignment, therefore remove redundant code. Variables and prefixes of
25958 indexed or selected components are now marked as referenced on left
25959 hand side. Warnings are now properly emitted when variables or prefixes
25960 are assigned but not read.
25962 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
25963 left hand side referenced variables. Private access types do not
25964 produce the warning "variable ... is assigned but never read".
25965 Add also additional checks to left hand side referenced variables.
25966 Aliased, renamed objects and access types do not produce the warning
25967 "variable ... is assigned but never read" since other entities may read
25968 the memory location.
25970 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
25972 * Makefile.in: In the powerpc/vxworks-specific section, restore
25973 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
25976 2004-06-07 Ed Schonberg <schonberg@gnat.com>
25978 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
25979 predefined operators.
25980 Removes spurious type errors from g-trasym-vms.adb.
25982 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
25983 distinct from the operator appearing in the source, call appropriate
25984 routine to insert conversions when needed, and complete resolution of
25986 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
25987 interpretations for rewritten right operand.
25988 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
25989 the other operand is overloaded and the context is a type conversion.
25991 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25993 * ada-tree.def (BLOCK_STMT): Now has two operands.
25996 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
25998 * gigi.h: (gnat_poplevel): Now returns a tree.
26000 * trans.c (end_block_stmt): Add arg; all callers changed.
26001 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
26002 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
26003 (add_stmt): Set TREE_TYPE.
26004 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
26005 (gnat_expand_stmt, case BREAK_STMT): New case.
26007 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
26009 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
26011 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
26012 procedure Set_Stack_Size that is not needed.
26014 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
26016 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
26017 used for gnatpp input file and for the files upon which it depends
26019 2004-06-07 Ben Brosgol <brosgol@gnat.com>
26021 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
26023 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
26025 * gnatvsn.ads: Bump version numbers appropriately.
26026 Add new build type.
26028 2004-06-07 Pascal Obry <obry@gnat.com>
26030 * gnat_ugn.texi: Improve comments about imported names and link names
26031 on Windows. Add a note about the requirement to use -k gnatdll's option
26032 when working with a DLL which has stripped stdcall symbols (no @nn
26035 2004-05-27 Vincent Celier <celier@gnat.com>
26037 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
26038 COMMENTS_LAYOUT=UNTOUCHED
26040 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
26041 symbols-vms-alpha.adb
26043 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
26045 * sem.ads: Clarify documentation on checks suppression.
26047 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
26049 2004-05-27 Ed Schonberg <schonberg@gnat.com>
26051 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
26052 the case of multiple derivations.
26053 (Is_Object_Reference): For a selected component, verify that the prefix
26054 is itself an object and not a value.
26056 * sem_ch12.adb (Same_Instantiated_Constant): New name for
26057 Same_Instantiated_Entity.
26058 (Same_Instantiated_Variable): Subsidiary to
26059 Check_Formal_Package_Instance, to recognize actuals for in-out generic
26060 formals that are obtained from a previous formal package.
26061 (Instantiate_Subprogram_Body): Emit proper error when
26062 generating code and the proper body of a stub is missing.
26064 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
26065 has a universal interpretation, do the disambiguation here.
26067 * exp_ch4.adb (Expand_N_Type_Conversion,
26068 Expand_N_Unchecked_Type_Conversion): Special handling when target type
26069 is Address, to avoid typing anomalies when Address is a visible integer
26072 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
26073 to determine whether a subprogram should not be marked Pure, even when
26074 declared in a pure package.
26076 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
26078 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
26080 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
26081 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
26082 Update the documentation about the Ravenscar profile, following the
26083 definition found in AI-249.
26085 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
26086 setting the Profile (Ravenscar). This must be done in addition to
26087 setting the required restrictions.
26089 * rtsfind.ads: Add the set of operations defined in package
26092 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
26095 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
26097 lang-specs.h: Always require -c or -S and always redirect to /dev/null
26098 if -gnatc or -gnats is passed.
26100 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
26102 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
26103 a significant reference. Warnings are now properly emitted when a
26104 discriminated type is not referenced.
26106 * lib-xref.adb (Generate_Reference): A deferred constant completion,
26107 record representation clause or record type discriminant does not
26108 produce a reference to its corresponding entity. Warnings are now
26109 properly emitted when deferred constants and record types are not
26112 2004-05-27 Geert Bosch <bosch@gnat.com>
26114 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
26115 Fixes ACATS Annex G tests.
26117 2004-05-27 Robert Dewar <dewar@gnat.com>
26119 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
26122 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
26124 * s-interr.adb (Server_Task): Take into account case of early return
26125 from sigwait under e.g. linux.
26127 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
26129 * gnat_ugn.texi: Add description for the new gnatpp options:
26130 -rnb - replace the original source without creating its backup copy
26131 -c0 - do not format comments
26133 2004-05-24 Geert Bosch <bosch@gnat.com>
26135 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
26136 with 192 bits of precision, sufficient to reduce a double-extended
26137 arguments X with a maximum relative error of T'Machine_Epsilon, for X
26138 in -2.0**32 .. 2.0**32.
26139 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
26140 reduction by the processor, which only uses a 68-bit approximation of
26142 (Tan): Always reduce arguments and compute function either using
26143 the processor's fptan instruction, or by dividing sin and cos as needed.
26145 2004-05-24 Doug Rupp <rupp@gnat.com>
26147 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
26148 gcc error on 32/64 bit VMS.
26150 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
26152 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
26153 since this is what we get for stack overflows although not documented
26155 Document the issues which may require adjustments to our signal
26158 2004-05-24 Ed Schonberg <schonberg@gnat.com>
26160 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
26161 enclosing dynamic scope if the instantiation is within a generic unit.
26163 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
26165 * exp_dbug.ads: Fix typo.
26167 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
26168 Rename it to its proper name: system-linux-ia64.ads
26169 (stamp-gnatlib1): Remove extra target specific run time files when
26170 setting up the rts directory.
26172 2004-05-24 Javier Miranda <miranda@gnat.com>
26174 * einfo.ads, einfo.adb (Limited_Views): Removed.
26175 (Limited_View): New attribute that replaces the previous one. It is
26176 now a bona fide package with the limited-view list through the
26177 first_entity and first_private attributes.
26179 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
26180 limited-private-with clause.
26181 (Install_Limited_Withed_Unit): Install the private declarations of a
26182 limited-private-withed package. Update the installation of the shadow
26183 entities according to the new structure (see Build_Limited_Views)
26184 (Build_Limited_Views): Replace the previous implementation of the
26185 limited view by a package entity that references the first shadow
26186 entity plus the first shadow private entity (required for limited-
26187 private-with clause)
26188 (New_Internal_Shadow_Entity): Code cleanup.
26189 (Remove_Limited_With_Clause): Update the implementation to undo the
26190 new work carried out by Build_Limited_Views.
26191 (Build_Chain): Complete documentation.
26192 Replace Ada0Y by Ada 0Y in comments
26195 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
26196 types the level of accessibility depends on the enclosing type
26199 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
26200 entities. Complete documentation of previous change.
26202 2004-05-24 Robert Dewar <dewar@gnat.com>
26204 * namet.adb: Minor reformatting
26205 Avoid use of name I (replace by J)
26206 Minor code restructuring
26208 * sem_ch6.adb: Minor reformatting
26210 * lib-writ.adb: Do not set restriction as active if this is a
26211 Restriction_Warning case.
26213 * sem_prag.adb: Reset restriction warning flag if real pragma
26214 restriction encountered.
26216 * s-htable.adb: Minor reformatting
26217 Change rotate count to 3 in Hash (improves hash for small strings)
26219 * 5qsystem.ads: Add comments for type Address (no literals allowed).
26221 * gnat_ugn.texi: Add new section of documentation "Code Generation
26222 Control", which describes the use of -m switches.
26224 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
26226 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
26227 through the DECL_INITIAL for renamed variables.
26229 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
26231 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
26233 2004-05-19 Joel Brobecker <brobecker@gnat.com>
26235 * exp_dbug.ads: Correct comments concerning handling of overloading,
26236 since we no longer use $ anymore.
26238 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
26240 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
26241 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
26242 with illegal subunits.
26244 2004-05-19 Ed Schonberg <schonberg@gnat.com>
26246 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
26247 body with front-end inlining enabled, check whether an inline pragma
26248 appears immediately after the body and applies to it.
26250 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
26251 enabled and the pragma appears after the body of the subprogram.
26253 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26255 Part of function-at-a-time conversion
26257 * misc.c (adjust_decl_rtl): Deleted.
26258 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
26261 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
26262 (add_decl_stmt, add_stmt, block_has_vars): New functions.
26263 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
26265 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
26266 when making a decl.
26267 (gnat_to_gnu_entity): Likewise.
26268 Use add_stmt to update setjmp buffer.
26269 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
26271 No longer call adjust_decl_rtl.
26272 (DECL_INIT_BY_ASSIGN_P): New macro.
26273 (DECL_STMT_VAR): Likewise.
26275 * trans.c (gigi): Call start_block_stmt to make the outermost
26277 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
26278 Call start_block_stmt and end_block_stmt temporarily.
26279 Use gnat_expand_stmt instead of expand_expr_stmt.
26280 (add_decl_stmt): New function.
26281 (tree_transform): Call it.
26282 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
26283 (end_block_stmt): Set type and NULL_STMT.
26284 (gnat_expand_stmt): Make recursize call instead of calling
26286 (gnat_expand_stmt, case DECL_STMT): New case.
26287 (set_lineno_from_sloc): Do nothing if global.
26288 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
26289 (start_block_stmt, add_stmt, end_block_stmt): New functions.
26290 (build_block_stmt): Call them.
26291 (gnat_to_code): Don't expand NULL_STMT.
26292 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
26294 (tree_transform): Likewise.
26295 (tree_transform, case N_Null_Statement): Return NULL_STMT.
26296 (gnat_expand_stmt, case NULL_STMT): New case.
26297 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
26300 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
26303 * utils.c (create_var_decl): Do not call expand_decl or
26305 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
26306 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
26308 (struct e_stack): Add chain_next to GTY.
26309 (struct binding_level): Deleted.
26310 (struct ada_binding_level): New struct.
26311 (free_block_chain): New.
26312 (global_binding_level, clear_binding_level): Deleted.
26313 (global_bindings_p): Rework to see if no chain.
26314 (kept_level_p, set_block): Deleted.
26315 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
26316 new data structure and work directly on BLOCK node.
26317 (gnat_poplevel): Similarly.
26318 (get_decls): Look at BLOCK_VARS.
26319 (insert_block): Work directly on BLOCK node.
26320 (block_has_var): New function.
26321 (pushdecl): Rework for new binding structures.
26322 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
26324 (build_subprog_body): Likewise.
26325 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
26327 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
26329 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
26330 (DECL_STMT_VAR): Likewise.
26332 2004-05-17 Robert Dewar <dewar@gnat.com>
26334 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
26337 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
26338 of restriction synonyums by using
26339 Restrict.Process_Restriction_Synonyms.
26341 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
26343 * s-restri.ads (Tasking_Allowed): Correct missing comment
26345 * s-rident.ads: Add entries for restriction synonyms
26347 * ali.adb: Fix some problems with badly formatted ALI files that can
26348 result in infinite loops.
26350 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
26351 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
26352 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
26353 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
26354 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
26355 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
26356 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
26357 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
26358 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
26359 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
26360 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
26361 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
26362 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
26363 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
26364 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
26365 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
26366 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
26367 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
26368 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
26369 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
26370 to Task_Id (minor cleanup).
26372 2004-05-17 Vincent Celier <celier@gnat.com>
26374 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
26375 directory separator.
26377 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
26378 project being extended, if Languages is not declared in extending
26381 2004-05-17 Javier Miranda <miranda@gnat.com>
26383 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
26384 limited view of a visible sibling.
26386 2004-05-14 Robert Dewar <dewar@gnat.com>
26388 * gnat_ugn.texi: Minor change to -gnatS documentation
26390 * sprint.adb: Remove some instances of Assert (False) and for this
26391 purpose replace them by output of a ??? string.
26393 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
26396 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
26397 flag processing. This was suppressing required dependencies in
26398 No_Run_Time mode and is not needed since the binder does not generate
26399 references for things in libgnat anyway.
26401 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
26404 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
26406 * gnat_ugn.texi: Document AIX-specific issue with initialization of
26409 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
26410 action for the case of an actual parameter in an init proc call.
26412 2004-05-14 Ed Schonberg <schonberg@gnat.com>
26414 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
26415 subtype, check visible entities in base type.
26417 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
26418 actions if the object is a renaming.
26420 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
26421 Check_Formal_Package_Instance, to determine more precisely when the
26422 formal and the actual denote the same entity.
26424 2004-05-14 Javier Miranda <miranda@gnat.com>
26426 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
26428 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
26429 corresponding to a private_with must be removed from visibility; it
26430 will be made visible later, just before we analyze the private part of
26432 (Check_Private_Child_Unit): Allow private_with clauses in public
26434 (Install_Siblings): Make visible the private entities of private-withed
26436 (Install_Withed_Unit): Do not install the private withed unit if we
26437 are compiling a package declaration and the Private_With_OK flag was
26438 not set by the caller. These declarations will be installed later,
26439 just before we analyze the private part of the package.
26441 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
26442 during the evaluation of the expression that initializes the object,
26443 decorate it with the expected type to avoid cascade errors.
26446 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
26447 subprogram we have to install the private_with clauses after its
26448 specification has been analyzed (as documented in AI-262.TXT).
26450 * sem_ch8.adb (Has_Private_With): New function. Determines if the
26451 current compilation unit has a private with on a given entity.
26452 (Find_Direct_Name): Detect the Beaujolais problem described in
26455 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
26456 provides the functionality of the function Is_Ancestor that was
26457 previously available in sem_ch10. It has been renamed to avoid
26460 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
26462 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26464 * utils.c (build_vms_descriptor): Use SImode pointers.
26466 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
26468 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
26470 2004-05-14 GNAT Script <nobody@gnat.com>
26472 * Make-lang.in: Makefile automatically updated
26474 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
26476 Renaming of target specific files for clarity
26478 * Makefile.in: Rename GNAT target specific files.
26480 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
26481 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
26482 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
26483 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
26484 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
26485 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
26486 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
26487 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
26488 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
26489 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
26490 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
26491 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
26492 51osinte.adb, 51osinte.ads, 51system.ads,
26493 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
26494 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
26495 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
26496 56tpopsp.adb, 57system.ads, 58system.ads,
26497 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
26498 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
26499 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
26500 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
26501 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
26502 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
26503 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
26504 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
26505 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
26506 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
26507 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
26508 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
26509 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
26510 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
26511 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
26512 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
26513 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
26514 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
26515 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
26516 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
26517 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
26518 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
26519 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
26520 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
26521 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
26522 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
26523 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
26524 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
26525 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
26526 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
26527 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
26528 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
26529 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
26530 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
26531 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
26532 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
26533 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
26534 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
26535 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
26536 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
26538 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
26539 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
26540 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
26541 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
26542 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
26543 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
26544 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
26545 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
26546 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
26547 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
26548 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
26549 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
26550 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
26551 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
26552 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
26553 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
26554 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
26555 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
26556 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
26557 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
26558 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
26559 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
26560 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
26561 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
26562 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
26563 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
26564 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
26565 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
26566 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
26567 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
26568 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
26569 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
26570 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
26571 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
26572 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
26573 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
26574 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
26575 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
26576 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
26577 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
26578 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
26579 s-osinte-vms.ads, s-osinte-vxworks.adb,
26580 s-osinte-vxworks.ads, s-osprim-mingw.adb,
26581 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
26582 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
26583 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
26584 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
26585 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
26586 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
26587 s-stchop-vxworks.adb, s-taprop-dummy.adb,
26588 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
26589 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
26590 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
26591 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
26592 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
26593 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
26594 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
26595 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
26596 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
26597 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
26598 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
26599 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
26600 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
26601 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
26602 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
26603 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
26604 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
26605 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
26606 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
26607 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
26608 system-irix-o32.ads, system-linux-x86_64.ads,
26609 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
26610 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
26611 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
26612 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
26613 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
26614 system-vxworks-mips.ads, system-vxworks-ppc.ads,
26615 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
26618 2004-05-13 Zack Weinberg <zack@codesourcery.com>
26620 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
26622 2004-05-13 Diego Novillo <dnovillo@redhat.com>
26624 Merge from tree-ssa-20020619-branch.
26626 * config-lang.in (boot_language, build_by_default): Set
26628 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
26629 (max_size): Add static chain op for call_expr.
26631 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
26634 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
26636 2004-05-11 Roger Sayle <roger@eyesopen.com>
26638 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
26641 2004-05-10 Doug Rupp <rupp@gnat.com>
26643 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
26646 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
26648 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
26650 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
26651 Fixes undefined symbols in IA64 gnatlib.
26653 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
26655 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
26656 Short_Address). This will be moved to system.auxdec.
26658 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
26660 * sem_util.adb: Replace test for presence of a node that is always
26661 present with a call to Discard_Node.
26663 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
26664 Analyze on the library unit node after generation of distribution stub
26665 constructs. The call was a no-op because Unit_Node has already been
26666 Analyzed, and the tree fragments for the distribution stubs are
26667 analyzed as they are inserted in Exp_Dist.
26668 Update comment regarding to distribution stubs to reflect that we
26669 do not generate stub in separate files anymore.
26671 * einfo.ads: Clarify the fact that a tagged private type has the
26672 E_Record_Type_With_Private Ekind.
26674 * erroutc.adb: Minor reformatting
26676 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
26677 values if line length is increased using -gnatyM (noticed during code
26680 * eval_fat.adb: Minor reformatting
26681 Put spaces around exponentiation operator
26683 2004-05-10 Ed Schonberg <schonberg@gnat.com>
26686 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
26687 has been rewritten as an explicit dereference, retrieve type of
26688 original node to check for possibly unconstrained record type.
26690 2004-05-10 Ed Schonberg <schonberg@gnat.com>
26692 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
26693 overriding, use the operation of the parent unconditionally.
26695 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
26696 operation when either operand is a literal, to avoid further
26699 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
26700 overridden by a previous explicit declaration, mark the previous entity
26703 * sem_disp.adb (Check_Dispatching_Operation): New predicate
26704 Is_Visibly_Controlled, to determine whether a declaration of a
26705 primitive control operation for a derived type overrides an inherited
26706 one. Add warning if the explicit declaration does not override.
26708 2004-05-10 Vincent Celier <celier@gnat.com>
26710 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
26711 some cases when the sources are no longer present.
26713 * make.adb (Collect_Arguments): Fail if an external source, not part
26714 of any project need to be compiled, when switch -x has not been
26717 * makeusg.adb: Document new switch -x
26719 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
26720 defaulted to False.
26722 * switch-m.adb (Scan_Make_Switches): New switch -x
26724 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
26725 gnatmake switch -x.
26727 * gnat_ugn.texi: Document new gnatmake switch -x
26729 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
26731 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
26733 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
26734 (process_attributes): Likewise.
26736 2004-05-10 Joel Brobecker <brobecker@gnat.com>
26738 * s-inmaop.ads: Fix spelling mistake in one of the comments.
26740 2004-05-10 Robert Dewar <dewar@gnat.com>
26742 * gnat_ugn.texi: Document that for config pragma files, the maximum
26743 line length is always 32767.
26745 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
26746 literals is now allowed.
26748 * gnat-style.texi: Remove statement about splitting long lines before
26749 an operator rather than after, since we do not follow this rule at all.
26750 Clarify rule (really lack of rule) for spaces around exponentiation
26752 * sem_elim.adb: Allow concatenation of string literals as well as a
26753 single string literal for pragma arguments.
26755 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
26757 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
26758 written for append case.
26760 * frontend.adb: Changes to avoid checking max line length in config
26763 * g-os_lib.ads: Minor reformatting
26765 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
26766 wrong in any case. Instead use standard value. Noticed during code
26769 * opt.ads (Max_Line_Length): New field, used to implement removal of
26770 limitation on length of lines when scanning config pragma files.
26772 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
26773 makeutl.ads, makeutl.adb: Minor reformatting
26775 * scn.adb: Do not check line length while scanning config pragma files
26776 Do not check line length while scanning out license information
26778 * scng.adb: Changes to avoid line length checks while parsing config
26781 2004-05-10 GNAT Script <nobody@gnat.com>
26783 * Make-lang.in: Makefile automatically updated
26785 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
26787 * osint.adb (Find_Program_Name): Fix handling of VMS version
26790 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
26792 * g-os_lib.ads (Invalid_Time): New constant
26794 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
26795 return OS_Time instead of time_t to match what is imported by Ada.
26796 Now return -1 if the file doesn't exist, instead of a random value
26798 2004-05-05 Robert Dewar <dewar@gnat.com>
26800 * usage.adb: Add line for -gnatR?s switch
26802 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
26804 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
26805 and for Match (Data_First, Data_last)
26807 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
26808 written when we are dealing with multi-unit files.
26810 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
26812 * Makefile.in: Remove unused targets and variables.
26814 2004-05-05 Vincent Celier <celier@gnat.com>
26816 * switch-m.adb: New gnatmake switch -eI
26818 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
26819 of new gnatmake switch -eInnn.
26821 * makegpr.adb: Take into account new parameters Index and Src_Index in
26824 * clean.adb: Implement support for multi-unit sources, including new
26827 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
26830 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
26831 (Extract_From_Q): New out parameter Index
26832 (Mark, Is_Marked): Subprograms moved to Makeutl
26833 (Switches_Of): New parameter Source_Index
26834 (Add_Switch): New parameter Index
26835 (Check): New parameter Source_Index
26836 (Collect_Arguments): New parameter Source_Index
26837 (Collect_Arguments_And_Compile): New parameter Source_Index
26838 (Compile): New parameter Source_Index
26839 Put subprograms in alphabetical order
26840 Add support for multi-source sources, including in project files.
26842 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
26843 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
26846 * makeusg.adb: New gnatmake switch -eInnn
26848 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
26851 * opt.ads (Main_Index): New variable, defaulted to 0.
26853 * osint.ads, osinte.adb (Add_File): New parameter Index
26854 (Current_Source_Index): New function
26856 * prj.adb: Take into account new components Index and Src_Index
26858 * prj.ads (String_Element): New component Index
26859 (Variable_Value): New component Index
26860 (Array_Element): New component Src_Index
26862 * prj-attr.adb: Indicate that optional index may be specified for
26863 attributes Main, Executable, Spec, Body and some of Switches.
26865 * prj-attr.ads (Attribute_Kind): New values for optional indexes
26866 (Attribute_Record): New component Optional_Index
26868 * prj-com.ads (File_Name_Data): New component Index
26870 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
26872 * prj-env.adb (Put): Output optional index
26874 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
26875 attributes Spec and Body.
26877 * prj-nmsc.adb: Process optional indexes
26879 * prj-pp.adb: Ouput "at" for optional indexes
26881 * prj-proc.adb: Take into account optional indexes
26883 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
26884 Optional_Index. For string literal,
26885 process optional index when Optional_Index is True.
26886 (Parse_Expresion): New Boolean parameter Optional_Index
26888 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
26889 (Set_Source_Index_Of): New procedure
26891 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
26894 * prj-util.ads (Executable_Of): New parameter Index
26895 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
26896 New parameter Src_Index, defaulted to 0.
26898 2004-05-05 Ed Schonberg <schonberg@gnat.com>
26901 * sem_ch3.adb (Access_Definition): If this is an access parameter
26902 whose designated type is imported through a limited_with clause, do
26903 not add the enclosing subprogram to the list of private dependents of
26906 2004-05-05 Ed Schonberg <schonberg@gnat.com>
26909 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
26910 a limited_with clause, and the other is its non-limited view.
26912 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
26914 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
26916 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
26917 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
26918 Stand.Boolean_Literals to produce references to entities
26919 Standard_False and Standard_True from compile-time computed boolean
26922 * stand.ads (Boolean_Literals): New variable, provides the entity
26923 values for False and True, for use by the expander.
26925 2004-05-05 Doug Rupp <rupp@gnat.com>
26927 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
26928 5vinmaop.adb: Unchecked convert Short_Address vice Address
26930 * adaint.c, raise.c: Caste CRTL function return value
26931 to avoid gcc error on 32/64 bit IVMS.
26933 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
26936 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
26938 * 5qsystem.ads (Address): Declare as Long_Integer
26939 (Short_Address): Declare as 32 bit subtype of Address
26940 Declare abstract address operations to avoid gratuitous ambiguities.
26942 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
26944 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
26945 instead of the old Boolean_Entry_Barriers.
26946 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
26948 2004-05-05 GNAT Script <nobody@gnat.com>
26950 * Make-lang.in: Makefile automatically updated
26952 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
26954 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
26956 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
26959 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
26960 alone. Replacing object references by literals is inappropriate in a
26961 so low level context.
26963 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
26965 * a-exexpr.adb: Add comments
26967 2004-05-03 Joel Brobecker <brobecker@gnat.com>
26969 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
26970 declare the Ancestor_Tags array in Type_Specific_Data with a small size
26971 without risking a bounds check error when accessing one of its
26973 (Type_Specific_Data): Define Ancestor_Tags as a small array.
26974 This prevents us from hitting a limitation during the debug info
26975 generation when using stabs.
26977 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
26979 This prevents us from hitting a limitation during the debug info
26980 generation when using stabs.
26982 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
26984 lang-specs.h: Remove -gnatz* from specs.
26986 2004-05-03 Vincent Celier <celier@gnat.com>
26988 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
26990 * Make-lang.in, Makefile.in: Add gprmake
26992 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
26994 * sem_aggr.adb: Fix typo in comment.
26996 2004-05-03 Robert Dewar <dewar@gnat.com>
26998 * make.adb: Minor reformatting
27000 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
27002 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
27003 so that it works when address is not a private type.
27005 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
27006 properly with rewritten unchecked conversions. This prevents
27007 order-of-elaboration issues that can otherwise arise.
27008 (Minimum_Size): Don't check size of access types under VMS
27010 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
27011 interpretations of integer literals as type System.Address.
27013 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
27014 (Is_Descendent_Of): New function
27016 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
27018 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
27019 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
27020 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
27022 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
27023 of the old Max_Entry_Queue_Depth.
27025 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
27026 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
27027 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
27029 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
27030 New entry for proper handling of Max_Entry_Queue_Depth.
27031 New entry for proper handling of No_Dynamic_Interrupts.
27033 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
27034 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
27035 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
27036 the GNAT specific restriction Max_Entry_Queue_Depth.
27037 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
27038 the GNAT specific restriction No_Dynamic_Interrupts.
27040 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
27041 instead of the old Boolean_Entry_Barriers.
27042 Use the new restriction No_Dynamic_Attachment instead of the old
27043 No_Dynamic_Interrupts.
27045 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
27046 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
27048 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
27049 of the old Max_Entry_Queue_Depth.
27051 2004-05-03 GNAT Script <nobody@gnat.com>
27053 * Make-lang.in: Makefile automatically updated
27055 2004-04-29 Ed Schonberg <schonberg@gnat.com>
27057 * checks.adb (Enable_Range_Check): If the prefix of an index component
27058 is an access to an unconstrained array, perform check unconditionally.
27060 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27062 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
27065 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
27067 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
27068 alternate stack setting. There was no support for the tasking cases
27069 and the changes eventually caused a number of side-effect failures in
27070 the non-tasking case too.
27072 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
27074 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
27077 2004-04-29 Vincent Celier <celier@gnat.com>
27079 * make.adb (Gnatmake): Increase max size of argument array for
27080 gnatbind for the potential addition of -F.
27081 If there are Stand-Alone Library projects, invoke gnatbind with -F to
27082 be sure that elaboration flags will be checked.
27084 * switch-c.adb: Correct call to Scan_Pos for -gnateI
27086 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
27088 * sem_warn.adb (Check_References): Move '<access-variable> may be
27089 null' warning out of under Warn_On_No_Value_Assigned.
27091 2004-04-29 Ed Falis <falis@gnat.com>
27093 * gnat_ugn.texi: Fixed texi error
27095 2004-04-29 Robert Dewar <dewar@gnat.com>
27097 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
27098 abstract operations if they come from predefined files.
27100 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
27103 * s-addope.adb: Correct obvious error in mod function
27105 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
27107 * Makefile.in: Add target pairs for powerpc darwin*
27110 * a-intnam-darwin.ads, s-osinte-darwin.adb,
27111 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
27113 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
27115 * Makefile.in: Add target macro definitions for s390*-linux*.
27116 * system-linux-s390.ads: New file.
27117 * system-linux-s390x.ads: New file.
27119 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
27121 * gnat_ugn.texi: Correct argument to @setfilename.
27123 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
27125 * a-exexpr.adb (Unwind_Word): New data type.
27126 (Unwind_Exception): Use it as type of Private1 and Private2.
27128 * raise.c (db_action_for): Fix debug printf.
27130 2004-04-27 Ed Schonberg <schonberg@gnat.com>
27132 * a-wtmoio.ads: Formal type must be a modular type, not a signed
27135 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27137 * decl.c (gnat_to_gnu_entity, case object): Call
27138 __builtin_update_setjmp_buf.
27140 * gigi.h (update_setjmp_buf): Deleted.
27141 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
27143 * misc.c: (update_setjmp_buf): Deleted.
27145 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
27146 around block of RTL.
27148 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
27150 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
27152 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
27153 subprogram for which no pragma All_Calls_Remote applies, store the
27154 address of the real subprogram in the underlying record type, so local
27155 dereferences do not go through the PCS.
27157 2004-04-26 Robert Dewar <dewar@gnat.com>
27159 * i-c.ads: Add some type qualifications to avoid ambiguities when
27160 compiling with s-auxdec.ads and a non-private address type.
27162 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
27164 * Makefile.rtl: Fix error in previous check-in:
27165 Add s-addope.o to non tasking object list (rather than tasking object
27168 2004-04-26 Javier Miranda <miranda@gnat.com>
27170 * sem_aggr.adb: Fix typo in comments
27171 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
27172 Required to check the null-exclusion attribute.
27174 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
27175 case of anonymous access types in record and array components. For a
27176 component definition the level is the same of the enclosing composite
27179 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
27180 that are anonymous access types the level of accessibility depends on
27181 the enclosing type declaration. In order to have this information, set
27182 the scope of the anonymous access type to the enclosing record type
27184 (Array_Type_Declaration): In case of components that are anonymous
27185 access types the level of accessibility depends on the enclosing type
27186 declaration. In order to have this information, set the scope of the
27187 anonymous access type to the enclosing array type declaration.
27189 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
27192 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
27193 renaming of anonymous access-to-constant types allowed if and only if
27194 the renamed object is access-to-constant.
27196 * sem_util.adb (Type_Access_Level): In case of anonymous access types
27197 that are component_definition or discriminants of a nonlimited type,
27198 the level is the same as that of the enclosing component type.
27200 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
27202 * sem_elim.adb: Some minor code reorganization from code reading. Fix
27203 misprint in the function name (File_Name_Match).
27205 2004-04-23 Laurent GUERBY <laurent@guerby.net>
27207 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
27210 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
27212 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
27214 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
27216 * adaint.c (__gnat_try_lock): No longer requires that the parent
27217 directory be writable, the directory itself is enough.
27218 (gnat_is_absolute_path): Change profile, so that the call from
27219 GNAT.OS_Lib can be made more efficient.
27221 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
27222 from GNAT.OS_Lib can be made more efficient.
27224 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
27225 one copy of the file name. Found by code reading.
27227 2004-04-23 Vincent Celier <celier@gnat.com>
27229 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
27230 Correct documentation on gnatmake switches transmitted to the compiler
27232 * ali.ads: Minor comment fix
27234 2004-04-23 Javier Miranda <miranda@gnat.com>
27236 * sem_ch6.adb: (Confirming Types): Code cleanup
27238 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
27239 subprogram types: E_Anonymous_Access_Subprogram_Type and
27240 E_Anonymous_Access_Protected_Subprogram_Type.
27242 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
27244 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
27245 whether a pragma All_Calls_Remote applies to the subprogram on which
27247 No functional change is introduced by this revision; the new parameter
27248 will be used to allow calls to local RCI subprograms to be optimized
27249 to not use the PCS in the case where no pragma All_Calls_Remote applies,
27250 as is already done in the PolyORB implementation of the DSA.
27252 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
27253 whether a pragma All_Calls_Remote applies to the subprogram on which
27255 No functional change is introduced by this revision; the new parameter
27256 will be used to allow calls to local RCI subprograms to be optimized
27257 to not use the PCS in the case where no pragma All_Calls_Remote applies,
27258 as is already done in the PolyORB implementation of the DSA.
27260 2004-04-23 Robert Dewar <dewar@gnat.com>
27262 * Makefile.rtl: Add entry for s-addope.o in run time library list
27263 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
27264 * s-addope.ads, s-addope.adb: New files.
27266 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
27267 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
27268 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
27269 System.Address to be non-private and signed.
27271 * sem_elim.adb: Minor reformatting (fairly extensive)
27272 Some minor code reorganization from code reading
27273 Add a couple of ??? comments
27275 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27277 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
27278 (tree_transform, case N_If_Statement): Remove non-determinism.
27280 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
27282 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
27284 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
27285 Eliminate' section.
27287 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
27288 no longer used as a parameter name for Eliminate pragma).
27290 2004-04-22 Laurent GUERBY <laurent@guerby.net>
27292 PR optimization/14984
27293 PR optimization/14985
27294 * trans.c (gigi): Fix non determinism leading to bootstrap
27295 comparison failures.
27297 2004-04-21 Pascal Obry <obry@gnat.com>
27299 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
27300 passed to spawnvp() to properly handle program pathname with spaces on
27303 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
27305 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
27306 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
27307 unlocked in case of exceptions.
27309 2004-04-21 Joel Brobecker <brobecker@gnat.com>
27311 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
27312 This function does not exist anymore.
27314 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
27316 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
27318 * link.c: Move variables to the __gnat name space.
27320 * Makefile.in: list link.o explicitly when needed.
27322 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
27324 2004-04-21 Javier Miranda <miranda@gnat.com>
27326 * einfo.adb (Original_Access_Type): New subprogram
27327 (Set_Original_Access_Type): New subprogram
27328 (Write_Field21_Name): Write the name of the new field
27330 * einfo.ads (Original_Access_Type): New field present in access to
27332 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
27333 E_Anonymous_Access_Protected_Subprogram_Type.
27335 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
27338 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
27339 to anonymous access to subprogram types.
27341 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
27342 to subprogram types.
27344 * sem_ch3.adb (Access_Definition): Complete decoration of entities
27345 corresponding to anonymous access to subprogram types.
27346 (Analyze_Component_Declaration): Add new actual to the call to
27347 subprogram replace_anonymous_access_to_protected_subprogram.
27348 (Array_Type_Declaration): Add new actual to the call to subprogram
27349 replace_anonymous_access_to_protected_subprogram.
27350 (Process_Discriminants): Add new actual to the call to subprogram
27351 replace_anonymous_access_to_protected_subprogram.
27352 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
27354 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
27357 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
27358 access to subprogram types.
27360 * sem_util.adb (Has_Declarations): Addition of package_specification
27363 2004-04-21 Ed Schonberg <schonberg@gnat.com>
27365 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
27366 inlined flags to renamed entity only if in current unit.
27368 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
27370 * s-parint.ads: Add DSA implementation marker.
27372 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
27373 value of System.Partition_Interface.DSA_Implementation to determine
27374 what version of the distributed systems annex is available (no
27375 implementation, GLADE, or PolyORB).
27377 2004-04-21 Joel Brobecker <brobecker@gnat.com>
27379 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
27381 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27383 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
27384 with new type if alias sets differ.
27385 Fixes ACATS c41103b.
27387 2004-04-21 Vincent Celier <celier@gnat.com>
27389 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
27390 Add array Lang_Args for the language specific compiling argument
27393 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
27395 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
27397 * gnat_rm.texi: Update the descripton of the Eliminate pragma
27398 according to the recent changes in the format of the parameters of the
27399 pragma (replacing Homonym_Number with Source_Location).
27401 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
27403 * 5isystem.ads: Removed, unused.
27405 * gnat_rm.texi: Redo 1.13 change.
27407 2004-04-19 Robert Dewar <dewar@gnat.com>
27409 * s-stoele.ads: Clean up definition of Storage_Offset (the new
27410 definition is cleaner, avoids the kludge of explicit Standard operator
27411 references, and also is consistent with a visible System.Address with
27412 no visible operations.
27414 * s-geveop.adb: Add declarations to avoid assumption of visible
27415 operations on type System.Address (since these might not be available
27416 if Address is a non-private type for which the operations
27417 are made abstract).
27419 * sem_eval.adb: Minor reformatting
27421 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
27422 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
27423 reformatting (new function spec format).
27425 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
27426 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
27427 s-caun64.adb: Add declarations to avoid assumption of visible
27428 operations on type System.Address (since these might not be available
27429 if Address is a non-private type for which the operations are made
27432 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
27434 * exp_intr.adb: Minor comment update
27436 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
27438 * 5omastop.adb: Add declarations to avoid assumption of visible
27439 operations on type System.Address (since these might not be available
27440 if Address is a non-private type for which the operations
27441 are made abstract).
27443 2004-04-19 Vincent Celier <celier@gnat.com>
27445 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
27447 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
27450 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
27452 Call Check with Process_Languages.
27453 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
27454 with Process_Languages.
27455 (Recursive_Check): New Boolean parameter Process_Languages. Call
27456 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
27459 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
27461 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
27462 parameter Ada_Main, defaulted to True.
27463 Check for Ada specific characteristics only when Ada_Main is True.
27465 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
27467 * prj.adb: (Project_Empty): Add new Project_Data components.
27469 * prj.ads: New types and tables for non Ada languages.
27470 (Project_Data): New components Languages, Impl_Suffixes,
27471 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
27472 Include_Path, Include_Data_Set.
27474 * prj-env.ads, prj-env.adb: Minor reformatting
27476 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
27477 Put subprograms in alphabetical order
27479 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
27480 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
27483 * mlib-prj.adb: Back out modification in last version, as they are
27485 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
27487 * make.adb: (Mains): Moved to package Makeutl
27488 (Linker_Opts): Moved to package Makeutl
27489 (Is_External_Assignment): Moved to package Makeutl
27490 (Test_If_Relative_Path): Moved to package Makeutl
27491 (Gnatmake): Move sorting of linker options to function
27492 Makeutl.Linker_Options_Switches.
27494 * makeutl.ads, makeutl.adb: New files.
27496 * Makefile.in: Add makeutl.o to the object files for gnatmake
27498 * makeusg.adb: Add line for new switch -eL.
27500 * gnatls.adb (Image): New function.
27501 (Output_Unit): If in verbose mode, output the list of restrictions
27502 specified by pragmas Restrictions.
27504 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
27507 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
27508 needed, to put it in the range 1970 (included) - 2026 (excluded).
27509 (Time_Of): Do not shift Unix_Min_Year (1970).
27510 Shift the date by multiple of 56 years, if needed, to put it in the
27511 range 1970 (included) - 2026 (excluded).
27513 * adaint.h, adaint.c (__gnat_set_executable): New function.
27515 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27517 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
27518 and pop GC context.
27519 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
27520 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
27521 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
27522 (tree_transform, case N_Code_Statement): Likewise.
27523 (gnat_expand_stmt, case LABEL_STMT): Don't look at
27524 LABEL_STMT_FIRST_IN_EH.
27525 (gnat_expand_stmt, case ASM_STMT): New case.
27527 * utils2.c (build_unary_op): Properly set TREE_READONLY of
27528 UNCONSTRAINED_ARRAY_REF.
27530 * utils.c (poplevel): Temporarily push/pop GC context around inline
27531 function expansion.
27533 * decl.c (maybe_variable): Properly set TREE_READONLY of
27534 UNCONSTRAINED_ARRAY_REF.
27535 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
27537 * ada-tree.def: (ASM_STMT): New.
27539 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
27540 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
27541 ASM_STMT_INPUT): New.
27542 (ASM_STMT_CLOBBER): Likewise.
27544 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
27546 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
27547 general rcheck mechanism to raise Program_Error for E.4(18), instead
27548 of a custom raiser in System.Partition_Interface.
27549 Part of general cleanup work before PolyORB integration.
27551 * snames.ads, snames.adb: Add new runtime library entities and names
27554 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
27556 (Build_Subprogram_Id): New subprogram provided by exp_dist
27557 Code reorganisation in preparation for PolyORB integration.
27559 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
27561 (Build_Subprogram_Id): New subprogram provided by exp_dist
27563 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
27564 actual parameter types for call to dereference of an
27565 access-to-subprogram type.
27567 * rtsfind.ads: Add new runtime library entities and names for PolyORB
27570 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
27571 instead, which has the same behaviour here since we never pass it a
27574 * link.c (run_path_option, Solaris case): Use -Wl, as for other
27577 * Makefile.in: adjust object file lists for gnatlink and gnatmake
27578 to account for new dependency upon Interfaces.C.Strings + link.o
27579 For x86 FreeBSD, use 86numaux.
27581 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
27582 from Mlib.Tgt to Mlib.
27584 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
27585 target-independent.
27587 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
27588 target-specific versions of this subprogram, now implemented as a
27589 target-independent function in Mlib.
27591 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
27592 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
27593 (Linker_Library_Path_Option): Remove target-specific versions of this
27594 subprogram, now implemented as a target-independent function in Mlib.
27596 * atree.adb: (Allocate_Initialize_Node): New subprogram.
27597 Factors out node table slots allocation.
27598 (Fix_Parents): New subprogram.
27599 Encapsulate the pattern of fixing up parent pointers for syntactic
27600 children of a rewritten node.
27601 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
27602 (Rewrite): Use New_Copy when creating saved copy of original node.
27603 (Replace): Use Copy_Node to copy nodes.
27605 2004-04-19 Javier Miranda <miranda@gnat.com>
27607 * sprint.adb (Sprint_Node_Actual): Give support to the new
27608 Access_To_Subprogram node available in Access_Definition nodes. In
27609 addition, give support to the AI-231 node fields: null-exclusion,
27610 all-present, constant-present.
27612 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
27614 * sinfo.ads, sinfo.adb:
27615 New field Access_To_Subprogram_Definition in Access_Definition nodes
27617 * sem_ch6.adb (Process_Formals): Move here the code that creates and
27618 decorates internal subtype declaration corresponding to the
27619 null-excluding formal. This code was previously in Set_Actual_Subtypes.
27620 In addition, carry out some code cleanup on this code. In case of
27621 access to protected subprogram call
27622 Replace_Anonymous_Access_To_Protected_Subprogram.
27623 (Set_Actual_Subtypes): Code cleanup.
27625 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
27626 Find_Type in case of anonymous access renamings. Add warning in case of
27627 null-excluding attribute used in anonymous access renaming.
27629 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
27632 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
27634 (Access_Definition): In case of anonymous access to subprograms call
27635 the corresponding semantic routine to decorate the node.
27636 (Access_Subprogram_Declaration): Addition of some comments indicating
27637 some code that probably should be added here. Detected by comparison
27638 with the access_definition subprogram.
27639 (Analyze_Component_Declaration): In case of access to protected
27640 subprogram call Replace_Anonymous_Access_To_Protected.
27641 (Array_Type_Declaration): In case of access to protected subprogram call
27642 Replace_Anonymous_Access_To_Protected_Subprogram.
27643 (Process_Discriminants): In case of access to protected subprogram call
27644 Replace_Anonymous_Access_To_Protected_Subprogram.
27646 * par.adb (P_Access_Definition): New formal that indicates if the
27647 null-exclusion part was present.
27648 (P_Access_Type_Definition): New formal that indicates if the caller has
27649 already parsed the null-excluding part.
27651 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
27652 (P_Identifier_Declarations): Code cleanup and give support to renamings
27653 of anonymous access to subprogram types.
27654 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
27655 (P_Array_Type_Definition): Give support to AI-254.
27656 (P_Component_Items): Give support to AI-254.
27657 (P_Access_Definition): New formal that indicates if the header was
27658 already parsed by the caller.
27659 (P_Access_Type_Definition): New formal that indicates if the caller has
27660 already parsed the null-excluding part.
27662 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
27663 call to P_Access_Definition.
27665 2004-04-19 Geert Bosch <bosch@gnat.com>
27667 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
27668 the delicate semantics of floating-point to integer conversion.
27669 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
27671 * eval_fat.adb (Machine_Mantissa): Moved to spec.
27672 (Machine_Radix): New function.
27674 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
27676 (Machine_Radix): New function also for use in conversion checks.
27678 2004-04-19 Ed Schonberg <schonberg@gnat.com>
27680 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
27682 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
27683 to decorate the access-to-protected subprogram and the equivalent type.
27685 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
27686 to anonymous access to subprogram types.
27688 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
27689 constant-folding, for legality checks in contexts that require an RM
27692 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
27693 temporary but stack checking is not enabled, increment serial number
27694 to so that symbol generation is consistent with and without stack
27697 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
27698 independent on whether stack checking is enabled, caller must check
27699 the corresponding flag.
27701 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
27703 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
27704 parent if it has discriminants.
27705 (Build_Derived_Private_Type): Constructed full view does
27706 not come from source.
27707 (Process_Discriminants): Default discriminants on a tagged type are
27708 legal if this is the internal completion of a private untagged
27711 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
27712 no constraint checks, because it corresponds to an existing object.
27714 * sem_prag.adb (Process_Convention): Pragma applies
27715 only to subprograms in the same declarative part, i.e. the same unit,
27716 not the same scope.
27718 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
27719 ignore type mismatch on a numeric conversion if expression comes from
27722 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
27724 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
27725 Homonym_Number parameter, add processing for Source_Location parameter
27727 (Check_Eliminated): Remove the check for homonym numbers, add the check
27728 for source location traces.
27730 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
27731 with Arg_Source_Location corresponding to the changes in the format of
27734 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
27735 Eliminate pragma corresponding to the changes in the format of the
27736 pragma: Homonym_Number is replaced with Source_Location, two ways of
27737 distinguishing homonyms are mutially-exclusive.
27739 2004-04-19 Joel Brobecker <brobecker@gnat.com>
27741 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
27743 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
27744 No_Dollar_In_Label, no longer necessary, as it is always True.
27745 (Strip_Suffixes): Likewise.
27747 2004-04-19 Gary Dismukes <dismukes@gnat.com>
27749 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
27750 modulus for compatibility with size clause on targets with 16-bit
27753 * layout.adb (Discrimify): In the case of private types, set Vtyp to
27754 full type to fix type mismatches on calls to size functions for
27755 discriminant-dependent array components.
27757 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
27759 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
27762 2004-04-19 Pascal Obry <obry@gnat.com>
27764 * mdll-utl.adb (Locate): New version is idempotent.
27766 2004-04-17 Laurent Guerby <laurent@guerby.net>
27768 PR ada/14988 (partial)
27769 * impunit.adb: Fix typo.
27771 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
27773 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
27774 and install-rts-cert targets. Remove all gnatlib and gnattools
27775 targets and all other rts-* targets (moved to libada). Remove (now)
27776 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
27777 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
27779 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27781 * trans.c (tree_transform): Shortcut returning error_mark_node for
27782 statements in annotate_only_mode.
27783 (tree_transform, case N_Label, case N_Return_Statement,
27784 N_Goto_Statement): Make statement tree instead of generating code.
27785 (tree_transform, case N_Assignment_Statement): No longer check
27786 type_annotate_only.
27787 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
27789 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
27791 (gnat_to_gnu): Collect any RTL generated and deal with it.
27792 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
27793 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
27794 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
27796 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
27798 * ada-tree.def (EXPR_STMT): Fix typo in name.
27799 (BLOCK_STMT, IF_STMT): New nodes.
27801 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
27802 LABEL_STMT_FIRST_IN_EH): New macros.
27803 (RETURN_STMT_EXPR): Likewise.
27805 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
27806 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
27808 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
27810 * atree.ads: Correct documentation on extended nodes.
27812 * link.c: Set run_path_option for FreeBSD.
27814 2004-04-08 Vincent Celier <celier@gnat.com>
27816 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
27817 one of the ALI file, do not link with DEC lib.
27819 * par.adb Remove the last two characters ("%s" or "%b") when checking
27820 if a language defined unit may be recompiled.
27822 2004-04-08 Ed Schonberg <schonberg@gnat.com>
27824 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
27825 removal of abstract operation leaves no possible interpretation for
27828 * sem_eval.adb (Eval_Qualified_Expression): Use
27829 Set_Raises_Constraint_Error on node when needed, so that it does not
27830 get optimized away by subsequent optimizations.
27832 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
27833 operands even when they are not wrapped in a type conversion.
27835 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
27837 * sem_prag.adb (Set_Exported): Warn about making static as result of
27838 export only when the export is coming from source. This may be not
27839 be true e.g. on VMS where we expand export pragmas for exception codes
27840 together with imported or exported exceptions, and we don't want the
27841 user to be warned about something he didn't write.
27843 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
27845 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
27846 duplication between normal entities and those declared as renamings.
27847 No functional change.
27849 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
27850 inline functions returning an unconstrained result.
27852 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
27854 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
27855 conform to what other front-ends do.
27857 2004-04-08 Doug Rupp <rupp@gnat.com>
27859 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
27862 2004-04-06 Pascal Obry <obry@gnat.com>
27864 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
27866 * osint.adb (Program_Name): Do not look past a directory separator.
27868 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
27870 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
27872 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
27873 requirement for preserving a copy of the original assignment node.
27875 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
27877 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
27879 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
27882 2004-04-06 Ed Schonberg <schonberg@gnat.com>
27884 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
27885 operator calls in functional notation, and apply
27886 Universal_Interpretation to operands, not to their type.
27888 2004-04-06 Robert Dewar <dewar@gnat.com>
27890 * 5wdirval.adb: Minor reformatting
27892 2004-04-06 Ed Falis <falis@gnat.com>
27894 * gnat_rm.texi: Improve a reference to the GCC manual
27896 2004-04-05 Vincent Celier <celier@gnat.com>
27898 * adaint.h, adaint.c: Add function __gnat_named_file_length
27900 * impunit.adb: Add Ada.Directories to the list
27902 * Makefile.in: Add VMS and Windows versions of
27903 Ada.Directories.Validity package body.
27905 * Makefile.rtl: Add a-direct and a-dirval
27907 * mlib-tgt.ads: Minor comment update.
27909 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
27910 a-direct.ads, a-direct.adb: New files.
27912 2004-04-05 Vincent Celier <celier@gnat.com>
27915 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
27916 just to the compiler.
27918 2004-04-05 Robert Dewar <dewar@gnat.com>
27920 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
27921 returned string is 1.
27923 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
27925 * eval_fat.ads: Minor reformatting
27927 * g-curexc.ads: Document that lower bound of returned string values
27930 * gnatlink.adb: Add ??? comment for previous change
27931 (need to document why this is VMS specific)
27933 * s-stoele.ads: Minor reformatting
27935 * tbuild.ads: Minor reformatting throughout (new function specs)
27937 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
27940 * scng.adb: Minor reformatting
27942 2004-04-05 Geert Bosch <bosch@gnat.com>
27944 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
27945 (Leading_Part): Still perform truncation to machine number if the
27946 specified radix_digits is greater or equal to machine_mantissa.
27948 2004-04-05 Javier Miranda <miranda@gnat.com>
27950 * par-ch3.adb: Complete documentation of previous change
27951 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
27952 (aliased must appear before constant).
27954 * par-ch4.adb: Complete documentation of previous change.
27956 * par-ch6.adb: Complete documentation of previous change.
27958 * sinfo.ads: Fix typo in commment.
27960 2004-04-05 Ed Schonberg <schonberg@gnat.com>
27962 * sem_ch3.adb (Inherit_Components): If derived type is private and has
27963 stored discriminants, use its discriminants to constrain parent type,
27964 as is done for non-private derived record types.
27966 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
27967 Ada 2005 AI-310: an abstract non-dispatching operation is not a
27968 candidate interpretation in an overloaded call.
27970 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
27971 expression is Null and target type is not an access type (e.g. a
27972 non-private address type).
27974 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
27976 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
27977 statement whose right-hand side is an inlined call, save a copy of the
27978 original assignment subtree to preserve enough consistency for
27979 Analyze_Assignment to proceed.
27981 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
27982 complete assignment subtree which is now unnecessary, as the expansion
27983 of inlined call has been improved to preserve a consistent assignment
27984 tree. Note_Possible_Modification must be called only
27985 after checks have been applied, or else unnecessary checks will
27988 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
27989 of explicit dereferences that do not Come_From_Source:
27990 - be selective on cases where we must go back to the dereferenced
27991 pointer (an assignment to an implicit dereference must not be
27992 recorded as modifying the pointer);
27993 - do not rely on Original_Node being present (Analyze_Assignment
27994 calls Note_Possible_Modification on a copied tree).
27996 * sem_warn.adb (Check_References): When an unset reference to a pointer
27997 that is never assigned is encountered, prefer '<pointer> may be null'
27998 warning over '<pointer> is never assigned a value'.
28000 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
28002 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
28005 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
28007 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
28008 libexc. We currently don't reference anything in this library and
28009 linking it in triggers linker warnings we don't want to see.
28011 * init.c: Update comments.
28013 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28015 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
28016 * utils.c (create_field_decl): Likewise.
28017 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
28019 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
28021 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
28022 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
28023 Add info directory entry and category.
28025 2004-04-02 Jan Hubicka <jh@suse.cz>
28027 * utils.c: Include function.h
28028 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
28030 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
28033 * Make-lang.in: Clean up generation of documentation
28035 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
28037 * xgnatug.adb: Removed, replaced by xgnatugn.adb
28039 * xgnatugn.adb: Replaces xgnatug.adb
28041 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
28043 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
28045 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
28046 gnat_ug_wnt.texi: Removed.
28048 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
28050 * utils2.c: Update copyright notice.
28052 2004-04-01 Robert Dewar <dewar@gnat.com>
28054 * checks.adb: Minor reformatting throughout
28055 Note that prev checkin added RM reference to alignment warning
28057 2004-04-01 Ed Schonberg <schonberg@gnat.com>
28059 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
28060 non-static when building aggregate for bit-packed array.
28062 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
28063 function call that is itself the actual in a procedure call, build
28066 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
28067 a string literal, create a temporary for it, constant folding only
28068 handles scalars here.
28070 2004-04-01 Vincent Celier <celier@gnat.com>
28072 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
28073 Error_Msg_SP): New empty procedures to instantiate the Scanner.
28074 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
28076 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
28077 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
28078 and get the checksum.
28080 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
28082 Increase the Marking_Label at the end of the Multiple_Main_Loop,
28083 instead of at the beginning.
28085 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
28087 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
28090 * osint.ads (Multi_Unit_Index_Character): New Character global variable
28092 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
28095 * par.adb: Remove test on file name to detect language defined units.
28096 Add test on unit name, after parsing, to detect language defined units
28097 that are not compiled with -gnatg (except System.RPC and its children)
28099 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
28100 following units without style checking.
28102 * switch-c.adb: Change -gnatC to -gnateI
28104 * usage.adb: Document new switch -gnateInnn
28106 * scng.adb (Accumulate_Token_Checksum): New procedure
28107 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
28108 word or literal number.
28109 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
28112 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
28115 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
28116 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
28117 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
28118 5vtpopde.adb: Add missing 'constant' keywords.
28120 2004-04-01 Javier Miranda <miranda@gnat.com>
28122 * par-ch4.adb: (P_Allocator): Code cleanup
28124 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
28127 * sinfo.ads: Complete documentation of previous change
28129 2004-04-01 Pascal Obry <obry@gnat.com>
28131 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
28132 only on VMS. This special handling was done because an old GNU/ld bug
28133 on Windows which has been fixed.
28135 2004-04-01 GNAT Script <nobody@gnat.com>
28137 * Make-lang.in: Makefile automatically updated
28139 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28141 * decl.c (gnat_to_gnu_entity, make_type_from_size):
28142 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
28143 * trans.c (tree_transform, convert_with_check): Likewise.
28144 * utils.c (gnat_signed_or_unsigned_type): Likewise.
28145 (build_vms_descriptor, unchecked_convert): Likewise.
28146 * utils2.c (nonbinary_modular_operation): Likewise.
28148 2004-03-29 Javier Miranda <miranda@gnat.com>
28150 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
28151 (Install_Null_Excluding_Check): Local subprogram that determines whether
28152 an access node requires a runtime access check and if so inserts the
28153 appropriate run-time check.
28154 (Apply_Access_Check): Call Install_Null_Excluding check if required
28155 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
28157 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
28159 * einfo.ads: Fix typo in comment
28161 * exp_ch3.adb (Build_Assignment): Generate conversion to the
28162 null-excluding type to force the corresponding run-time check.
28163 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
28164 type to force the corresponding run-time check.
28166 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
28167 the null-excluding type to force the corresponding run-time check.
28169 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
28170 case of access types unless they have the null-excluding attribute.
28172 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
28175 * exp_util.ads: Fix typo in comment
28177 * par.adb (P_Null_Exclusion): New subprogram
28178 (P_Subtype_Indication): New formal that indicates if the null-excluding
28179 part has been scanned-out and it was present
28181 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
28183 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
28184 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
28185 type to force the corresponding run-time check
28186 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
28188 (Resolve_Array_Aggregate): Carry out some static checks
28189 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
28191 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
28192 attribute must be set only if specified by means of the null-excluding
28193 part. In addition, we must also propagate the access-constant attribute
28195 (Access_Subprogram_Declaration, Access_Type_Declaration,
28196 Analyze_Component_Declaration, Analyze_Object_Declaration,
28197 Array_Type_Declaration, Process_Discriminants,
28198 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
28199 and carry out some static checks.
28200 (Build_Derived_Access_Type): Set the null-excluding attribute
28201 (Derived_Type_Declaration, Process_Subtype): Carry out some static
28204 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
28206 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
28208 * sem_ch6.adb (Process_Formals): Carry out some static checks.
28209 (Set_Actual_Subtypes): Generate null-excluding subtype if the
28210 null-excluding part was present; it is not required to be done here in
28211 case of anonymous access types.
28212 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
28215 * sem_res.adb (Resolve_Actuals): Carry out some static check
28216 (Resolve_Null): Allow null in anonymous access
28218 * sinfo.adb: New subprogram Null_Exclusion_Present
28219 All_Present and Constant_Present available on access_definition nodes
28221 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
28222 object_declaration, derived_type_definition, component_definition,
28223 discriminant_specification, access_to_object_definition,
28224 access_function_definition, allocator, access_procedure_definition,
28225 access_definition, parameter_specification, All_Present and
28226 Constant_Present flags available on access_definition nodes.
28228 2004-03-29 Robert Dewar <dewar@gnat.com>
28230 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
28231 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
28232 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
28233 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
28234 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
28235 sem_prag.adb: Updates to handle multiple units/file
28237 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
28239 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
28240 sem_util.adb: Minor reformatting
28242 * sem_ch12.adb: Add comment for previous change
28244 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
28246 * osint.adb (Executable_Prefix): Set Exec_Name to the current
28247 executable name when not initialized. Otherwise, use its current value.
28249 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
28250 initialize it to another executable name than the current one. This
28251 allows to configure paths for an executable name (gnatmake) different
28252 from the current one (gnatdist).
28254 2004-03-29 Ed Schonberg <schonberg@gnat.com>
28256 * exp_ch6.adb (Expand_Call): A call to a function declared in the
28257 current unit cannot be inlined if it appears in the body of a withed
28258 unit, to avoid order of elaboration problems in gigi.
28260 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
28261 information for protected (wrapper) operation as well, to simplify gdb
28264 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
28265 protected body, indicate that the entity for the generated spec comes
28266 from source, to ensure that references are properly generated for it.
28267 (Build_Body_To_Inline): Do not inline a function that returns a
28270 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
28271 apply convention to homonyms that are declared explicitly.
28273 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
28274 that renames an equality operator and the operands are overloaded,
28275 resolve them with the declared formal types, before rewriting as an
28278 2004-03-29 GNAT Script <nobody@gnat.com>
28280 * Make-lang.in: Makefile automatically updated
28282 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
28284 * memtrack.adb: Log realloc calls, which are treated as free followed
28287 2004-03-25 Vincent Celier <celier@gnat.com>
28289 * prj-makr.adb (Process_Directories): Detect when a file contains
28290 several units. Do not include such files in the config pragmas or
28291 in the naming scheme.
28293 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
28294 Resolve links only when not in Trusted_Mode.
28295 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
28296 Do not resolve links for the display names.
28298 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
28299 resolve links when computing the display names.
28301 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
28303 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
28304 attribute reference does not denote a subtype, it can be any
28305 expression that has a classwide type, potentially after an implicit
28306 dereference. In particular, the prefix can be a view conversion for
28307 a classwide type (for which Is_Object_Reference holds), but it can
28308 also be a value conversion for an access-to-classwide type. In the
28309 latter case, there is an implicit dereference, and the original node
28310 for the prefix does not verify Is_Object_Reference.
28312 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
28313 conversion of a discriminant-dependent component of a mutable object
28316 2004-03-25 Ed Schonberg <schonberg@gnat.com>
28318 * freeze.adb (Freeze_Entity): When an inherited subprogram is
28319 inherited, has convention C, and has unconstrained array parameters,
28320 place the corresponding warning on the derived type declaration rather
28321 than the original subprogram.
28323 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
28324 indication on renaming declaration, if formal has a box and actual
28327 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
28328 determine whether to generate an implicit or explicit reference to
28329 the renamed entity.
28331 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
28332 subprogram renaming comes from a defaulted formal subprogram in an
28335 2004-03-25 Gary Dismukes <dismukes@gnat.com>
28337 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
28338 value expressions to ensure that calls within a component definition
28339 will be checked (since those are evaluated during the record type's
28342 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
28344 * s-tpobop.adb: Code clean up:
28345 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
28347 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
28349 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
28351 * Makefile.in: Clean up in the ravenscar run time.
28353 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28355 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
28356 of No_Strict_Aliasing to build_pointer_type_for_mode.
28357 * utils.c (update_pointer_to): Walk pointer and ref chains.
28359 2004-03-22 Cyrille Comar <comar@act-europe.fr>
28361 * ali.ads: Fix Comment about Dynamic_Elab.
28363 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
28364 Has_RACW, Is_Generic, etc.)
28365 (Output_Object, Gnatls): Take into account ALI files not attached to
28368 2004-03-22 Vincent Celier <celier@gnat.com>
28370 * gprep.adb: Change all String_Access to Name_Id
28371 (Is_ASCII_Letter): new function
28372 (Double_File_Name_Buffer): New procedure
28373 (Preprocess_Infile_Name): New procedure
28374 (Process_Files): New procedure
28375 (Gnatprep): Check if output and input are existing directories.
28376 Call Process_Files to do the real job.
28378 2004-03-22 Robert Dewar <dewar@gnat.com>
28380 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
28381 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
28383 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
28385 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
28386 case when the source contains only comments.
28388 2004-03-22 Ed Schonberg <schonberg@gnat.com>
28390 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
28391 declaration for a child subprogram body that acts as a spec, indicate
28392 that the entity in the declaration needs debugging information.
28394 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
28395 full view if the subtype is created for a constrained record component;
28396 gigi has enough information to construct the record, and there is no
28397 place in the tree for the declaration.
28399 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
28400 serial number for the dummy body that is built for analysis, to avoid
28401 inconsistencies in the generation of internal names when compiling
28404 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
28406 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
28409 2004-03-22 GNAT Script <nobody@gnat.com>
28411 * Make-lang.in: Makefile automatically updated
28413 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28415 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
28416 * trans.c (tree_transform, emit_index_check): Likewise.
28417 * utils.c (build_template): Likewise.
28418 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
28419 (maybe_unconstrained_array, unchecked_convert): Likewise.
28420 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
28421 (build_unary_op): Likewise.
28422 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
28423 (fill_vms_descriptor): Likewise.
28424 (build_call_alloc_dealloc): Likewise.
28426 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
28428 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
28431 * gnat_ug.texi: Add info directory category and entry.
28432 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
28433 gnat_ug_wnt.texi: Regenerate.
28435 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
28437 * ada-tree.h: Update copyright notice.
28438 Minor reformatting.
28440 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
28442 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
28443 as regular exception objects and not as mere integers representing the
28444 condition code. The latter approach required some dynamics to mask off
28445 severity bits, which did not fit well into the GCC table based model.
28446 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
28447 exception data objects. We don't it and it would conflict with the other
28448 external symbol we have to generate for such exceptions.
28450 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
28451 the special code for VMS exceptions, since these are now represented
28452 as regular exceptions objects.
28454 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28456 * decl.c (debug_no_type_hash): Remove.
28457 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
28458 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
28460 2004-03-19 Laurent Guerby <laurent@guerby.net>
28462 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
28463 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
28465 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28467 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
28468 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
28469 (TYPE_RM_SIZE_INT): Directly use type.values.
28470 (TREE_LOOP_ID): Clean up check.
28471 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
28472 TYPE_VALUES, not TYPE_FIELDS.
28473 * trans.c (convert_with_check): Delay access of bounds of basetype
28474 until sure is numeric.
28476 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
28478 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
28481 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
28482 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
28483 Specific.Set instead of direct call to e.g pthread_setspecific.
28485 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
28487 * adaint.c: Update comments.
28489 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
28490 GNATLIB_SHARED for FreeBSD.
28492 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
28494 * init.c [VxWorks]: Do not fix the stack size for the environment task.
28495 When needed (stack checking) the stack size is retrieved
28496 from the VxWorks kernel.
28498 * Makefile.in: Flag -nostdinc is required when building the run time
28499 for avoiding looking for files in the base compiler.
28500 Add the VxWorks specific version of the package body for
28501 System.Stack_checking.Operations (5zstchop.adb).
28503 * Make-lang.in: Add the object file for
28504 System.Stack_Checking.Operations.
28506 * Makefile.rtl: Add object file for the package
28507 System.Stack_Checking.Operations.
28509 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
28511 * s-stache.ads, s-stache.adb: Move the operations related to stack
28512 checking from this package to package System.Stack_Checking.Operations.
28513 This way, stack checking operations are only linked in the final
28514 executable when using the -fstack-check flag.
28516 2004-03-18 Doug Rupp <rupp@gnat.com>
28518 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
28521 * 5qsystem.ads, 5xcrtl.ads: New files.
28523 2004-03-18 Vincent Celier <celier@gnat.com>
28525 * prj.adb (Reset): Reset hash table Files_Htable
28527 * prj-env.adb (Source_Paths, Object_Paths): New tables.
28528 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
28529 the procedures Add_To_Path_File.
28530 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
28531 making sure that each directory is present only once and, for object
28532 dirs, when a directory already present is added, the duplicate is
28533 removed and the directory is always put as the last in the table.
28534 Write the path files at the end of these accumulations.
28536 * prj-nmsc.adb (Record_Source): Add source file name in hash table
28537 Files_Htable for all sources.
28539 * prj-proc.adb (Process): Remove restrictions between not directly
28540 related extending projects.
28542 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
28544 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
28545 (Find_Sources): Minor speed optimization.
28547 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
28548 parameter Trusted_Mode.
28550 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
28552 * scn.adb (Determine_License): Take into account a degenerated case
28553 when the source contains only comments.
28555 2004-03-18 Ed Schonberg <schonberg@gnat.com>
28557 * sem_warn.adb (Check_References): For a warning on a selected
28558 component that does not come from source, locate an uninitialized
28559 component of the record type to produce a more precise error message.
28561 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
28563 * 3zsoccon.ads: Fix multicast options.
28565 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
28568 2004-03-15 Robert Dewar <dewar@gnat.com>
28570 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
28571 pragma used for a private type.
28573 * lib-xref.adb (Generate_Reference): Do not generate warning if
28574 reference is in a different unit from the pragma Unreferenced.
28576 * 5vtpopde.adb: Minor reformatting
28577 Fix casing of To_Task_ID
28579 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
28580 flag if we have an unchecked conversion to an access type in the same
28583 2004-03-15 Geert Bosch <bosch@gnat.com>
28585 * a-ngcoty.adb (Modulus): In alternate formula for large real or
28586 imaginary parts, use Double precision throughout.
28588 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
28589 we want to be able to compile run-time with -gnata for testing, but
28590 this may also be instantiated in user code that is compiled with -gnata.
28592 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
28594 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
28595 codes. Having a separate type for this is useful to enforce consistency
28596 throughout the various run-time units.
28597 (Exception_Data): Use Exception_Code for Import_Code.
28599 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
28600 Natural and Integer in various places.
28601 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
28602 with the severity bits masked off.
28603 (Register_VMS_Exception): Handle the additional exception data pointer
28606 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
28607 component, now reflected by an exported accessor.
28608 (is_handled_by): New routine to compute whether the propagated
28609 occurrence matches some handler choice specification. Extracted out of
28610 get_action_description_for, and expanded to take care of the VMS
28612 (get_action_description_for): Use is_handled_by instead of an explicit
28613 complex condition to decide if the current choice at hand catches the
28614 propagated occurrence.
28616 * raise.h (Exception_Code): New type for C.
28618 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
28619 System.Standard_Library.Exception_Code, to allow references from the
28620 pragma import/export expander.
28622 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
28623 New accessors to allow easy access to GNAT exception data
28625 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
28626 redundant Handled_By_Others component, helper for the personality
28627 routine which will now be able to call the appropriate exception data
28630 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
28631 component of Standard_Exception_Type to be the closest possible to
28632 Exception_Code in System.Standard_Library, that we cannot get at this
28633 point. Expand a ??? comment to notify that this type node should
28634 probably be rewritten later on.
28636 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
28637 registration call to include a pointer to the exception object in the
28640 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
28641 instead of int and explicit bitmasks.
28643 2004-03-15 Vincent Celier <celier@gnat.com>
28645 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
28646 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
28648 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
28649 longer needed now that it is in the spec of
28650 System.Tasking.Task_Attributes.
28652 * adaint.h, adaint.c: (__gnat_create_output_file): New function
28654 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
28656 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
28658 * make.adb (Gnatmake): Do not check the executable suffix; it is being
28659 taken care of in Scan_Make_Arg.
28660 (Scan_Make_Arg): Add the executable suffix only if the argument
28661 following -o, in canonical case, does not end with the executable
28662 suffix. When in verbose mode and executable file name does not end
28663 with executable suffix, output the executable name, in canonical case.
28665 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
28666 to avoid warnings when instantiating Ada.Task_Attributes.
28669 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
28670 in the correct order.
28672 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
28673 redirect standard output and error to a file for the invocation of the
28674 compiler, then read the file.
28676 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
28677 directory, instead of the Value.
28678 (Find_Source_Dirs): Remove useless code & comments.
28680 2004-03-15 Ed Schonberg <schonberg@gnat.com>
28682 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
28683 tagged type is inherited, and the parent operation is not frozen yet,
28684 force generation of a freeze node for the inherited operation, so the
28685 corresponding dispatch entry is properly initialized.
28686 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
28687 when looking for user-defined equality operation.
28689 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
28690 boolean when locating primitive equality of tagged component.
28692 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
28693 bit-aligned field and the right-hand side a string literal, introduce
28694 a temporary before expanding assignment into a loop.
28696 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
28697 priority in full, to ensure that any expanded subepxressions of it are
28698 elaborated in the scope of the init_proc.
28700 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
28701 after object declaration, skipping over code that may have been
28702 generated for validity checks.
28704 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
28705 discriminants, ignore the known discriminants of its full view, if
28706 any, to check legality.
28708 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
28709 component if type has unknown discriminants.
28710 (Analyze_Private_Extension_Declaration): Discriminant constraint is
28711 null if type has unknown discriminants.
28713 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
28714 for end label when present.
28716 * s-fileio.adb (Open): When called with a C_Stream, use given name for
28717 temporary file, rather than an empty string.
28719 2004-03-15 Ed Falis <falis@gnat.com>
28721 * s-thread.adb: Removed, no longer used.
28723 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28725 * decl.c (target.h): Now include.
28726 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
28727 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
28728 (validate_size): For POINTER_TYPE, get smallest size permitted on
28731 * fe.h: Sort Einfo decls and add Set_Mechanism.
28733 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
28734 (ada/decl.o): Depends on target.h.
28736 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
28737 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
28739 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
28741 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
28743 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
28744 Insert_Dereference_Action when rewriting an implicit dereference into
28745 an explicit one, this will be taken care of during expansion of the
28746 explicit dereference.
28747 (Expand_N_Slice): Same. Always do the rewriting, even for the case
28748 of non-packed slices, since the dereference action generated by
28749 expansion of the explicit dereference is needed in any case.
28750 (Expand_N_Selected_Component): When rewriting an implicit dereference,
28751 analyze and resolve the rewritten explicit dereference so it is seen
28753 (Insert_Dereference_Action): This procedure is now called only for the
28754 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
28755 dereferences that do not come from source (including explicit
28756 dereferences resulting from rewriting implicit ones), but do not
28757 recursively insert a check for the dereference nodes contained within
28759 (Insert_Dereference_Action): Clarify and correct comment.
28761 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
28764 Move language detection to the top level.
28765 * config-lang.in: Build by default.
28767 2004-03-05 Robert Dewar <dewar@gnat.com>
28769 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
28771 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
28772 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
28773 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
28774 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
28775 unchecked conversion to spec to avoid warnings.
28777 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
28780 * 7stpopsp.adb: Correct casing in To_Task_ID call
28782 * a-strsea.ads, a-strsea.adb: Minor reformatting
28784 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
28786 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
28787 Adjust Max_Msg_Length to be clearly large enough.
28789 * fe.h: Define In_Same_Source_Unit
28791 * osint.adb: Add pragma Warnings Off to suppress warnings
28792 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
28795 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
28797 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
28799 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
28801 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
28803 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
28805 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
28806 node. We now do generate them for gcc back end.
28808 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
28811 * sinput-c.adb: Fix bad name in header.
28812 Add pragma Warnings Off to suppress aliasing warning.
28814 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
28816 * snames.h, snames.ads, snames.adb: Add entry for pragma
28817 No_Strict_Aliasing.
28819 2004-03-05 Vincent Celier <celier@gnat.com>
28821 * prj-com.ads: Add hash table Files_Htable to check when a file name
28822 is already a source of another project.
28824 * prj-nmsc.adb (Record_Source): Before recording a new source, check
28825 if its file name is not already a source of another project. Report an
28828 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
28829 source file name, call gnatpp with all the sources of the main project.
28831 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
28834 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
28835 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
28836 /RUNTIME_SYSTEM=, converted to --RTS=
28837 /NOTABS, converted to -notabs
28839 2004-03-05 Pascal Obry <obry@gnat.com>
28841 * make.adb: Minor reformatting.
28843 2004-03-05 Ed Schonberg <schonberg@gnat.com>
28845 Part of implemention of AI-262.
28846 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
28848 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
28851 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
28852 when component type is a partially constrained class-wide subtype.
28853 (Constrain_Discriminated_Type): If parent type has unknown
28854 discriminants, a constraint is illegal, even if full view has
28856 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
28857 with unknown discriminants whose full view is a discriminated record.
28859 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
28860 flag, to handle properly derivations of tagged types with unknown
28862 (Analyze_Package_Spec, Analyze_Package_Body): Install
28863 Private_With_Clauses before analyzing private part or body.
28865 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
28866 Has_Discriminants can be true for a given type (documentation).
28868 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
28870 * s-restri.ads: Fix license (GPL->GMGPL).
28872 * s-tassta.adb: Minor reformatting.
28874 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
28875 by calls to Exit_One_ATC_Level, since additional clean up is performed
28878 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
28879 by calls to Exit_One_ATC_Level, since additional clean up is performed
28882 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28884 * trans.c: Reflect GCC changes to fix bootstrap problem.
28885 Add warning for suspicious aliasing unchecked conversion.
28887 2004-03-05 GNAT Script <nobody@gnat.com>
28889 * Make-lang.in: Makefile automatically updated
28891 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
28893 * ali.adb (Read_Instantiation_Instance): Do not modify the
28894 current_file_num when reading information about instantiations, since
28895 this corrupts files in later references.
28897 2004-03-02 Vincent Celier <celier@gnat.com>
28899 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
28900 before checking if it is read-only.
28902 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
28903 of SRC_DIRS and eliminate duplicates.
28905 * gprcmd.adb: Replace command "path" with command "path_sep" to return
28906 the path separator.
28907 (Usage): Document path_sep
28909 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
28910 C++ compiler. No need for a script.
28911 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
28912 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
28915 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
28916 where there are Ada sources.
28917 (Set_Ada_Paths): Only add to the include path the source dirs of project
28919 (Add_To_Path): Add the Display_Values of the directories, not their
28922 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
28925 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
28927 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
28928 Value is canonicalized.
28929 (Language_Independent_Check): Do not copy Value to Display_Value when
28930 canonicalizing Value.
28932 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
28933 path to find limited with cycles.
28934 (Parse_Single_Project): Use canonical cased path to find the end of a
28937 2004-03-02 Ed Schonberg <schonberg@gnat.com>
28939 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
28940 and not a child unit.
28942 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
28943 appear in a with_clause.
28945 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
28946 only happen in type_annotate mode, do not try to elaborate it.
28948 * exp_util.adb (Force_Evaluation): If expression is a selected
28949 component on the left of an assignment, use a renaming rather than a
28950 temporary to remove side effects.
28952 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
28953 inlined instance body, which is analyzed before the end of the
28956 2004-03-02 Robert Dewar <dewar@gnat.com>
28958 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
28959 sem_ch4.adb: Use new feature for substitution of keywords in VMS
28961 * errout.ads, errout.adb: Implement new circuit for substitution of
28964 * sem_case.adb (Analyze_Choices): Place message properly when case is
28965 a subtype reference rather than an explicit range.
28967 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
28969 2004-03-02 Doug Rupp <rupp@gnat.com>
28971 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
28973 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
28975 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
28977 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28979 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
28982 2004-02-25 Robert Dewar <dewar@gnat.com>
28984 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
28985 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
28986 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
28987 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
28988 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
28989 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
28990 the defining instance of the type to avoid aliasing problems.
28991 Fix copyright header. Fix bad comments in package header.
28993 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
28995 2004-02-25 Ed Schonberg <schonberg@gnat.com>
28997 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
28998 rewritten as references when aliased through an address clause.
29000 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
29001 whether call can be interpreted as an indirect call to the result of a
29002 parameterless function call returning an access subprogram.
29004 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
29007 * exp_ch7.adb (Make_Clean): Remove generation of calls to
29008 Unlock[_Entries], since this is now done by Service_Entries directly.
29010 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
29012 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
29013 Requeue_Call for better code readability. Change spec and update calls:
29014 PO_Service_Entries now unlock the PO on exit.
29015 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
29016 PO_Service_Entries.
29018 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
29020 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
29022 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
29024 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
29025 protected subprogram call and analyzing the result of such expanding
29026 in case when the called protected subprogram is eliminated.
29028 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
29031 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
29033 * Makefile.in: Clean ups.
29035 2004-02-23 Ed Schonberg <schonberg@gnat.com>
29037 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
29038 protected operations if original subprogram is flagged as eliminated.
29039 (Expand_N_Subprogram_Body): For a protected operation, create
29040 discriminals for next operation before checking whether the operation
29043 * exp_ch9.adb (Expand_N_Protected_Body,
29044 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
29045 for internal protected operations if the original subprogram is
29048 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
29049 declared in a single protected object.
29051 2004-02-23 Vincent Celier <celier@gnat.com>
29053 * prj-attr.adb: Make attribute Builder'Executable an associative array,
29054 case insensitive if file names are case insensitive, instead of a
29055 standard associative array.
29057 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
29058 them as case insensitive on platforms where the file names are case
29061 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
29062 project file has already been parsed that canonical path are compared.
29064 2004-02-23 Robert Dewar <dewar@gnat.com>
29066 * sinput-c.ads: Correct bad unit title in header
29068 * freeze.adb: Minor reformatting
29070 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29072 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
29073 nonaddressable COMPONENT_REF that is removing padding that we are
29074 taking the address of, take the address of the padded record instead
29075 if item is variable size.
29077 2004-02-20 Robert Dewar <dewar@gnat.com>
29079 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
29081 2004-02-20 Ed Schonberg <schonberg@gnat.com>
29083 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
29084 itype references for the constrained designated type of a component
29085 whose base type is already frozen.
29087 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
29089 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
29090 avoid GCC warnings.
29092 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
29094 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
29095 identifier for a phantom package that rewrites the formal package
29096 declaration with a box. The Add semantic decorations for the defining
29097 identifier from the original node (that represents the formal package).
29099 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
29101 * Make-lang.in (ada/stamp-sdefault): Use the top level
29104 2004-02-19 Richard Henderson <rth@redhat.com>
29106 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
29108 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
29110 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
29111 Scan_ALI can be used for multiple ALI files without reinitializing
29114 2004-02-18 Robert Dewar <dewar@gnat.com>
29116 * debug.adb: Minor reformatting.
29118 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29120 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
29121 to zero if there is an address clause.
29123 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
29125 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
29127 2004-02-18 Gary Dismukes <dismukes@gnat.com>
29129 * layout.adb (Layout_Component_List): Revise generation of call to
29130 discriminant-checking function to pass selections of all of the type's
29131 discriminants rather than just the variant-controlling discriminant.
29133 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
29135 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
29136 fail in the current setup and triggers spurious system error messages.
29137 Pretend it occurred and failed instead.
29139 2004-02-18 Vincent Celier <celier@gnat.com>
29141 * bld.adb: Mark FLDFLAGS as saved
29142 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
29143 it is not the root project. Put each directory to be
29144 extended between double quotes to prevent it to be expanded on Windows.
29145 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
29146 the project file. Set them back to their initial values if they have not
29147 been set in the project file.
29149 * gprcmd.adb: (Gprdebug, Debug): New global variables
29150 (Display_Command): New procedure
29151 (Usage): Document new command "linkopts"
29152 Call Display_Command when env var GPRDEBUG has the value "TRUE"
29153 Implement new command "linkopts"
29154 Remove quotes that may be around arguments for "extend"
29155 Always call Normalize_Pathname with arguments formatted for the platform
29157 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
29158 Change @echo to @$(display) in target clean to be able to clean silently
29160 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
29162 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
29165 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
29166 = Extending_All when current project is an extending all project.
29168 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
29169 set to True only for LINK command, after Unix switch -o.
29170 (Process_Arguments): Set Output_File_Expected to True for LINK command
29171 after Unix switch -o. When Output_File_Expected is True, never add an
29172 extension to a file name.
29174 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
29175 option file name, only to the --for-linker= switch.
29176 (Option_File_Name): If option file name do not end with ".opt", append
29179 2004-02-18 GNAT Script <nobody@gnat.com>
29181 * Make-lang.in: Makefile automatically updated
29183 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
29185 * Make-lang.in (stamp-sdefault): Do not depend on
29188 2004-02-12 Zack Weinberg <zack@codesourcery.com>
29190 * config-lang.in: Disable Ada by default until probe logic for
29191 a bootstrap Ada compiler can be moved to the top level configure
29194 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
29196 * decl.c (components_to_record): Don't claim that the internal fields
29197 we make to hold the variant parts are semantically addressable, because
29200 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
29201 adjust the comment describing the modular type form when we can use it.
29202 (Install_PAT): Account for the Esiz renaming.
29204 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
29205 sc_onstack context indication before raising the exception to which
29206 the signal is mapped. Allows better handling of later signals possibly
29207 triggered by the resumed user code if the exception is handled.
29209 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
29211 * 5zinit.adb: Removed, no longer used.
29213 2004-02-12 Robert Dewar <dewar@gnat.com>
29215 * ali.adb: Remove separating space between parameters on R line. Makes
29216 format consistent with format used by the binder for Set_Globals call.
29218 * atree.ads, atree.adb: Minor reformatting (new function header format)
29220 * bindgen.adb: Add Run-Time Globals documentation section containing
29221 detailed documentation of the globals passed from the binder file to
29224 * gnatls.adb: Minor reformatting
29226 * init.c (__gnat_set_globals): Add note pointing to documentation in
29229 * lib-writ.ads, lib-writ.adb: Remove separating space between
29230 parameters on R line.
29231 Makes format consistent with format used by the binder for Set_Globals
29234 * osint.ads: Add 2004 to copyright notice
29237 * snames.ads: Correct capitalization of FIFO_Within_Priorities
29238 Noticed during code reading, documentation issue only
29240 * usage.adb: Remove junk line for obsolete C switch
29241 Noticed during code reading
29243 2004-02-12 Vincent Celier <celier@gnat.com>
29245 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
29246 extend for each directory, so that multiple /** directories are
29247 extended individually.
29248 (Recursive_Process): Set the default for LANGUAGES to ada
29250 * gprcmd.adb: Define new command "ignore", to do nothing.
29251 Implement new comment "path".
29253 * Makefile.generic: Suppress output when SILENT is set
29254 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
29255 used, so that the correct compiler is invoked.
29256 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
29257 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
29259 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
29261 * Makefile.in: Clean ups and remove obsolete targets.
29263 2004-02-12 Ed Schonberg <schonberg@gnat.com>
29265 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
29266 predicate declared in exp_util.
29268 * exp_util.adb: Add comments.
29270 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
29271 visibility before compiling context of the subunit.
29273 * sem_res.adb (Check_Parameterless_Call): If the context expects a
29274 value but the name is a procedure, do not attempt to analyze as a call,
29275 in order to obtain more telling diagnostics.
29277 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
29278 'Access on parameterless function calls.
29279 (Normalize_Actuals): For a parameterless function call with missing
29280 actuals, defer diagnostic until resolution of enclosing call.
29282 * sem_util.adb (Wrong_Type): If the context type is an access to
29283 subprogram and the expression is a procedure name, suggest a missing
29286 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
29287 Nathanael Nerode <neroden@gcc.gnu.org>
29291 Merge with libada-branch:
29292 * config-lang.in: Build libada only when ada is built.
29294 2004-02-09 Ed Schonberg <schonberg@gnat.com>
29296 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
29297 for a tagged type, verify that both formals have the same type.
29299 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
29300 temporary when the formal is an in-parameter and the actual a possibly
29303 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
29304 when expansion is disabled, to ensure proper name capture with
29305 overloaded literals. Condition can be of any boolean type, resolve
29308 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
29309 renaming is for a formal subprogram with a default operator name, and
29310 there is a usable operator that is visible at the point of
29313 2004-02-09 Robert Dewar <dewar@gnat.com>
29315 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
29316 rewrite to ignore errors in ali files, intended to allow tools downward
29317 compatibility with new versions of ali files.
29319 * ali.ads: Add new parameter Ignore_Errors
29321 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
29322 duplicating the error message giving the file with restrictions.
29324 * debug.adb: Add debug flag I for gnatbind
29326 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
29327 operators for the case where the operator is a defining operator.
29329 * exp_ch3.adb: Minor reformatting (new function spec format).
29331 * exp_ch4.adb: Add comment for previous change, and make minor
29332 adjustment to loop to always check for improper loop termination.
29333 Minor reformatting throughout (new function spec format).
29335 * gnatbind.adb: Implement -di debug flag for gnatbind
29337 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
29339 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
29341 * lib-load.adb: Fix bad assertion.
29342 Found by testing and code reading.
29343 Minor reformatting.
29345 * lib-load.ads: Minor reformatting.
29347 * lib-writ.adb: There is only one R line now.
29349 * lib-writ.ads: Add documentation on making downward compatible changes
29350 to ali files so old tools work with new ali files.
29351 There is only one R line now.
29352 Add documentation on format incompatibilities (with special GPS note)
29354 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
29356 * par-load.adb: Minor reformatting
29358 * sem_ch8.adb: Fix to error message from last update
29359 Minor reformatting and restructuring of code from last update
29361 * par-prag.adb, snames.adb, snames.ads, snames.h,
29362 sem_prag.adb: Implement pragma Profile.
29364 * stylesw.adb: Implement -gnatyN switch to turn off all style check
29367 * usage.adb: Add line for -gnatyN switch
29369 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
29371 2004-02-09 Albert Lee <lee@gnat.com>
29373 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
29375 2004-02-09 Ed Schonberg <schonberg@gnat.com>
29377 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
29380 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
29381 is nested in an instance that is not frozen yet, to avoid
29382 order-of-elaboration problems in gigi.
29384 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
29385 body the attribute is legal.
29387 2004-02-09 Robert Dewar <dewar@gnat.com>
29389 * s-rident.ads: Minor comment correction
29391 * targparm.adb: Remove dependence on uintp completely. There was
29392 always a bug in Make in that it called Targparm before initializing
29393 the Uint package. The old code appeared to get away with this, but
29394 the new code did not! This caused an assertion error in gnatmake.
29396 * targparm.ads: Fix bad comment, restriction pragmas with parameters
29397 are indeed fully supported.
29399 2004-02-06 Alan Modra <amodra@bigpond.net.au>
29401 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
29403 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
29405 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
29406 with targetm.calls.promote_prototypes.
29408 2004-02-04 Robert Dewar <dewar@gnat.com>
29410 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
29411 ali.ads, gprcmd.adb: Minor reformatting
29413 * bindgen.adb: Output restrictions string for new style restrictions
29416 * impunit.adb: Add s-rident.ads (System.Rident) and
29417 s-restri (System.Restrictions)
29419 * lib-writ.adb: Fix bug in writing restrictions string (last few
29422 * s-restri.ads, s-restri.adb: Change name Restrictions to
29423 Run_Time_Restrictions to avoid conflict with package name.
29424 Add circuit to read and acquire run time restrictions.
29426 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
29428 * restrict.ads, restrict.adb: Use the new restriction
29429 No_Task_Attributes_Package instead of the old No_Task_Attributes.
29431 * sem_prag.adb: No_Task_Attributes is a synonym of
29432 No_Task_Attributes_Package.
29434 * snames.ads, snames.adb: New entry for proper handling of
29435 No_Task_Attributes.
29437 * s-rident.ads: Adding restriction No_Task_Attributes_Package
29438 (AI-00249) that supersedes the GNAT specific restriction
29439 No_Task_Attributes.
29441 2004-02-04 Ed Schonberg <schonberg@gnat.com>
29444 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
29445 body, an identifier may be wrapped in an unchecked conversion.
29447 2004-02-04 Vincent Celier <celier@gnat.com>
29449 * lib-writ.ads: Comment update for the W lines
29451 * bld.adb: (Expression): An empty string list is static
29453 * fname-uf.adb: Minor comment update
29455 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
29457 * gnatbind.adb: Initialize Cumulative_Restrictions with the
29458 restrictions on the target.
29460 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
29462 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
29465 2004-02-02 Arnaud Charlet <charlet@gnat.com>
29467 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
29469 2004-02-02 Vincent Celier <celier@gnat.com>
29471 * gprcmd.adb (Check_Args): If condition is false, print the invoked
29472 comment before the usage.
29473 Gprcmd: Fail when command is not recognized.
29474 (Usage): Document command "prefix"
29476 * g-md5.adb (Digest): Process last block.
29477 (Update): Do not process last block. Store remaining characters and
29480 * g-md5.ads (Update): Document that several call to update are
29481 equivalent to one call with the concatenated string.
29482 (Context): Add fields to allow new Update behaviour.
29484 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
29485 defaulted to False.
29486 When May_Fail is True and no existing file can be found, return No_File.
29488 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
29491 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
29492 spec file name instead on the W line.
29494 2004-02-02 Robert Dewar <dewar@gnat.com>
29496 * ali.adb: Read and acquire info from new format restrictions lines
29498 * bcheck.adb: Add circuits for checking restrictions with parameters
29500 * bindgen.adb: Output dummy restrictions data
29501 To be changed later
29503 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
29504 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
29505 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
29506 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
29507 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
29509 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
29510 the warning message on access to possibly uninitialized variable S)
29511 Minor changes for new restrictions handling.
29513 * gnatbind.adb: Minor reformatting
29514 Minor changes for new restrictions handling
29515 Move circuit for -r processing here from bcheck (cleaner)
29517 * gnatcmd.adb, gnatlink.adb: Minor reformatting
29519 * lib-writ.adb: Output new format restrictions lines
29521 * lib-writ.ads: Document new R format lines for new restrictions
29524 * s-restri.ads/adb: New files
29526 * Makefile.rtl: Add entry for s-restri.ads/adb
29528 * par-ch3.adb: Fix bad error messages starting with upper case letter
29531 * restrict.adb: Major rewrite throughout for new restrictions handling
29532 Major point is to handle restrictions with parameters
29534 * restrict.ads: Major changes in interface to handle restrictions with
29535 parameters. Also generally simplifies setting of restrictions.
29537 * snames.ads/adb: New entry for proper handling of No_Requeue
29539 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
29540 restriction counting.
29541 Other minor changes for new restrictions handling
29543 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
29544 Restriction_Warnings now allows full parameter notation
29545 Major rewrite of Restrictions for new restrictions handling
29547 2004-02-02 Javier Miranda <miranda@gnat.com>
29549 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
29550 syntax rule for object renaming declarations.
29551 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
29552 component definitions.
29554 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
29556 (Array_Type_Declaration): Give support to access components. In addition
29557 it was also modified to reflect the name of the object in anonymous
29558 array types. The old code did not take into account that it is possible
29559 to have an unconstrained anonymous array with an initial value.
29560 (Check_Or_Process_Discriminants): Allow access discriminant in
29562 (Process_Discriminants): Allow access discriminant in non-limited types
29563 Initialize the new Access_Definition field in N_Object_Renaming_Decl
29564 node. Change Ada0Y to Ada 0Y in comments
29566 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
29567 equality operators.
29568 Change Ada0Y to Ada 0Y in comments
29570 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
29571 renamings Change Ada0Y to Ada 0Y in comments
29573 * sem_type.adb (Find_Unique_Type): Give support to the equality
29574 operators for universal access types
29575 Change Ada0Y to Ada 0Y in comments
29577 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
29579 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
29581 (N_Object_Renaming_Declaration): Addition of Access_Definition field
29582 Change Ada0Y to Ada 0Y in comments
29584 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
29585 component definition and object renaming nodes
29586 Change Ada0Y to Ada 0Y in comments
29588 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
29590 * restrict.adb: Use the new restriction identifier
29591 No_Requeue_Statements instead of the old No_Requeue for defining the
29592 restricted profile.
29594 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
29595 No_Requeue_Statements.
29597 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
29598 that supersedes the GNAT specific restriction No_Requeue. The later is
29599 kept for backward compatibility.
29601 2004-02-02 Ed Schonberg <schonberg@gnat.com>
29603 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
29604 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
29605 pragma and fix incorrect ones.
29607 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
29608 warning if the pragma is redundant.
29610 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
29612 * 5staprop.adb: Add missing 'constant' keywords.
29614 * Makefile.in: use consistent value for SYMLIB on
29615 platforms where libaddr2line is supported.
29617 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29619 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
29622 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
29624 * init.c (__gnat_install_handler): Setup an alternate stack for signal
29625 handlers in the environment thread. This allows proper propagation of
29626 an exception on stack overflows in this thread even when the builtin
29627 ABI stack-checking scheme is used without support for a stack reserve
29630 * utils.c (create_field_decl): Augment the head comment about bitfield
29631 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
29632 here, because the former is not accurate enough at this point.
29633 Let finish_record_type decide instead.
29634 Don't make a bitfield if the field is to be addressable.
29635 Always set a size for the field if the record is packed, to ensure the
29636 checks for bitfield creation are triggered.
29637 (finish_record_type): During last pass over the fields, clear
29638 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
29639 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
29640 from DECL_BIT_FIELD.
29642 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
29644 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
29645 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
29646 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
29648 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29650 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
29652 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
29653 (ZCX_By_Default): Likewise.
29654 (Front_End_ZCX_Support): Likewise.
29656 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
29657 (Initialize_Lock): Mark Level unreferenced.
29658 (Sleep): Mark Reason unreferenced.
29659 (Timed_Sleep): Likewise.
29660 (Wakeup): Likewise.
29661 (Exit_Task): Use Result.
29662 (Check_No_Locks): Mark Self_ID unreferenced.
29664 * 5gtasinf.adb (New_Sproc): Make Attr constant.
29665 (Bound_Thread_Attributes): Make Sproc constant.
29666 (New_Bound_Thread_Attributes): Likewise.
29668 2004-01-26 Ed Schonberg <schonberg@gnat.com>
29670 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
29671 one-dimensional array an slice assignments, when component type is
29674 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
29675 component type is controlled, and control_actions are in effect, use
29676 TSS procedure rather than generating inline code.
29678 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
29679 arrays with controlled components.
29681 2004-01-26 Vincent Celier <celier@gnat.com>
29683 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
29684 command line for the non VMS case.
29686 * gnatlink.adb (Process_Binder_File): When building object file, if
29687 GNU linker is used, put all object paths between quotes, to prevent ld
29688 error when there are unusual characters (such as '!') in the paths.
29690 * Makefile.generic: When there are sources in Ada and the main is in
29691 C/C++, invoke gnatmake with -B, instead of -z.
29693 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
29694 from VMS_Conversion.
29695 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
29696 specification of argument file on the command line.
29698 2004-01-26 Bernard Banner <banner@gnat.com>
29700 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
29702 2004-01-26 Ed Schonberg <schonberg@gnat.com>
29704 * snames.adb: Update copyright notice.
29705 Add info on slice assignment for controlled arrays.
29707 2004-01-23 Robert Dewar <dewar@gnat.com>
29709 * exp_aggr.adb: Minor reformatting
29711 * exp_ch9.adb: Minor code clean up
29713 Fix bad character in comment
29716 * targparm.adb (Get_Target_Parameters): Give clean abort error on
29717 unexpected end of file, along with more detailed message.
29719 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29721 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
29724 * decl.c (copy_alias_set): New function.
29725 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
29727 2004-01-23 Doug Rupp <rupp@gnat.com>
29729 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
29730 lib$${file} in case subsequent character is not a separator.
29732 2004-01-23 Vincent Celier <celier@gnat.com>
29734 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
29735 when the GCC version is at least 3.
29737 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
29738 Remove all "Opt.", to prepare for opt split
29740 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
29741 Extends_All. Set to True when the project parsed is an extending all
29742 project. Fails for importing an extending all project only when the
29743 imported project is an extending all project.
29744 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
29745 depending on the value of Extends_All returned.
29747 * prj-proc.adb (Process): Check that no project shares its object
29748 directory with a project that extends it, directly or indirectly,
29749 including a virtual project.
29750 Check that no project extended by another project shares its object
29751 directory with another also extended project.
29753 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
29754 Kind = N_With_Clause
29756 * prj-tree.ads: Minor reformatting
29757 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
29759 2004-01-23 Ed Schonberg <schonberg@gnat.com>
29761 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
29762 applies to a type with an incomplete view, use full view in Name of
29763 clause, for consistency with uses of Get_Attribute_Definition_Clause.
29765 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
29767 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
29768 SCHED_RR, since other values are not supported by this policy.
29769 (Initialize): Move initialization of mutex attribute to package
29770 elaboration, to prevent early access to this variable.
29772 * Makefile.in: Remove mention of Makefile.adalib, unused.
29774 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
29775 1ssecsta.ads: Removed, unused.
29777 2004-01-21 Javier Miranda <miranda@gnat.com>
29779 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
29780 entity if already built in the current scope.
29782 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
29783 reminder in internal scopes. Required for nested limited aggregates.
29785 2004-01-21 Doug Rupp <rupp@gnat.com>
29787 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
29788 VMS. Replace all occurences of libgnat- and libgnarl- with
29789 libgnat$(hyphen) and libgnarl$(hyphen).
29790 Fixed shared library build problem on VMS.
29792 2004-01-21 Robert Dewar <dewar@gnat.com>
29794 * mlib-prj.adb: Minor reformatting
29796 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
29798 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
29799 'constant' keywords for declaration of pointers that are not modified.
29801 * exp_pakd.adb: Fix English in comment.
29803 2004-01-21 Ed Schonberg <schonberg@gnat.com>
29806 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
29807 copy all attributes of the parent, including the foreign language
29810 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
29813 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
29814 for 'delay until' statement.
29816 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
29818 * Make-lang.in: Replace $(docdir) with doc.
29819 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
29820 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
29821 to use consistent MAKEINFO rule.
29822 (ada.man, ada.srcman): Dummy entry.
29823 (ADA_INFOFILES): Define.
29824 (ada.info, ada.srcinfo): New rules.
29826 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
29828 * utils.c: Update copyright notice, missed in previous change.
29830 2004-01-19 Vincent Celier <celier@gnat.com>
29832 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
29833 args if Bind is True. Set First_ALI, if not already done.
29834 (Build_Library): For Stand Alone Libraries, extract from one ALI file
29835 an eventual --RTS switch, for gnatbind, and all backend switches +
29836 --RTS, for linking.
29838 2004-01-19 Robert Dewar <dewar@gnat.com>
29840 * sem_attr.adb, memtrack.adb: Minor reformatting
29842 2004-01-19 Ed Schonberg <schonberg@gnat.com>
29844 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
29845 that rename enumeration literals. This is properly done in sem_eval.
29847 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
29848 to functions that rename enumeration literals.
29850 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
29851 functions that rename enumeration literals.
29853 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
29855 * Make-lang.in (utils.o): Depend on target.h.
29856 * utils.c: Include target.h.
29857 (process_attributes): Use targetm.have_named_sections instead
29858 of ASM_OUTPUT_SECTION_NAME.
29860 2004-01-16 Andreas Jaeger <aj@suse.de>
29862 * Makefile.in: Add $(DESTDIR).
29864 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
29866 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
29867 also when not defining if a Size clause applies. That information is
29870 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
29872 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
29873 symbolic links for the shared gnat run time when needed.
29875 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
29877 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
29878 for writing, and terminate with an error message if not.
29880 2004-01-15 Ed Schonberg <schonberg@gnat.com>
29882 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
29883 warning on an access to subprogram in an instance, when the target
29884 type is declared in the same generic unit.
29885 (Eval_Attribute): If 'access is known to fail accessibility check,
29886 rewrite as a raise statement.
29888 2004-01-15 GNAT Script <nobody@gnat.com>
29890 * Make-lang.in: Makefile automatically updated
29892 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
29894 * Make-lang.in (ada.srcextra): Dummy entry.
29896 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
29898 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
29900 2004-01-13 Ed Schonberg <schonberg@gnat.com>
29902 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
29903 components that are initialized with aggregates.
29905 2004-01-13 Vincent Celier <celier@gnat.com>
29907 * gnatlink.adb (Process_Binder_File): To find directory of shared
29908 libgcc, if "gcc-lib" is not a subdirectory, look for the last
29909 subdirectory "lib" in the path of the shared libgnat or libgnarl.
29911 * make.adb (Gnatmake): If GCC version is at least 3, link with
29912 -shared-libgcc, when there is at least one shared library project.
29914 * opt.ads (GCC_Version): New integer constant.
29916 * adaint.c (get_gcc_version): New function.
29918 2004-01-13 Robert Dewar <dewar@gnat.com>
29920 * sem_dist.adb, sem_res.adb, sem_util.adb,
29921 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
29922 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
29924 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
29926 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
29927 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
29930 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
29932 * misc.c: Remove trailing spaces.
29933 Update copyright notice missed in previous change.
29936 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
29939 * Makefile.generic: Update copyright.
29940 Add license notice.
29942 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
29943 of prefix/share/make.
29945 * Makefile.prolog: Update copyright.
29946 Add license notice.
29948 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
29950 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
29951 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
29952 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
29955 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
29958 2004-01-12 Javier Miranda <miranda@gnat.com>
29960 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
29961 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
29962 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
29963 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
29964 Component_Definition node.
29966 2004-01-12 Ed Falis <falis@gnat.com>
29968 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
29970 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
29972 * link.c: Change default libgnat kind to STATIC for FreeBSD.
29974 2004-01-12 Bernard Banner <banner@gnat.com>
29976 * Makefile.in: map 86numaux to a-numaux for x86_64
29978 2004-01-12 Ed Schonberg <schonberg@gnat.com>
29980 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
29981 generated to rename a generic actual, go to the actual itself, the
29982 subtype is not a user-visible entity.
29984 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
29985 part is a private subtype, reset the visibility of its full view, if
29986 any, to be consistent.
29989 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
29990 to use a generic package G as a formal package for another generic
29993 2004-01-12 Robert Dewar <dewar@gnat.com>
29995 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
29997 * usage.adb: Remove mention of obsolete -gnatwb switch
29998 Noticed during code reading
30000 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
30002 * 1ssecsta.adb: Minor changes for -gnatwa warnings
30004 2004-01-12 GNAT Script <nobody@gnat.com>
30006 * Make-lang.in: Makefile automatically updated
30008 2004-01-09 Mark Mitchell <mark@codesourcery.com>
30010 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
30012 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30014 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
30016 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
30018 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
30019 Update comment and copyright date.
30020 * stamp-xgnatug: Delete.
30022 2004-01-05 Robert Dewar <dewar@gnat.com>
30024 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
30025 be modified by the binder generated main program if the -D switch is
30028 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
30029 imported functions (since now we expect this to be done for imported
30032 * 5vtaprop.adb: Add several ??? for sections requiring more comments
30033 Minor reformatting throughout
30035 * 5zinit.adb: Minor reformatting
30036 Add 2004 to copyright date
30037 Minor changes to avoid -gnatwa warnings
30038 Correct some instances of using OR instead of OR ELSE (noted while
30039 doing reformatting)
30041 * sprint.adb: Minor updates to avoid -gnatwa warnings
30043 * s-secsta.ads, s-secsta.adb:
30044 (SS_Get_Max): New function to obtain high water mark for ss stack
30045 Default_Secondary_Stack is not a constant since it may be modified by
30046 the binder generated main program if the -D switch is used.
30048 * switch-b.adb: New -Dnnn switch for binder
30051 Make -gnatg imply all warnings currently in -gnatwa
30053 * vms_conv.adb: Minor reformatting
30054 Add 2004 to copyright notice
30055 Add 2004 to printed copyright notice
30057 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
30058 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
30059 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
30060 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
30061 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
30062 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
30063 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
30064 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
30065 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
30066 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
30067 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
30068 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
30069 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
30070 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
30071 checks.adb, clean.adb, cstand.adb, einfo.ads,
30072 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
30073 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
30074 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
30075 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
30076 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
30077 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
30078 Minor reformatting and code clean ups.
30079 Minor changes to prevent -gnatwa warnings
30081 * ali.adb: Minor reformatting and cleanup of code
30082 Acquire new SS indication of secondary stack use from ali files
30084 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
30085 (since now we expect this to be done for imported functions)
30087 * bindgen.adb: Generate call to modify default secondary stack size if
30090 * bindusg.adb: Add line for new -D switch
30092 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
30093 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
30094 Add circuitry for both records and arrays to avoid gigi
30095 processing if the type involved has non-bit-aligned components
30097 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
30098 N_String_Literal node always references an E_String_Literal_Subtype
30099 entity. This may not be true in the future.
30100 (Possible_Bit_Aligned_Component): Move processing of
30101 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
30103 * exp_ch6.adb (Expand_Thread_Body): Pick up
30104 Default_Secondary_Stack_Size as variable so that we get value modified
30105 by possible -Dnnn binder parameter.
30107 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
30108 (Type_May_Have_Bit_Aligned_Components): New function.
30110 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
30111 (Type_May_Have_Bit_Aligned_Components): New function.
30113 * fe.h: (Set_Identifier_Casing): Fix prototype.
30114 Add declaration for Sem_Elim.Eliminate_Error_Msg.
30115 Minor reformatting.
30117 * freeze.adb (Freeze_Entity): Add RM reference to error message about
30118 importing constant atomic/volatile objects.
30119 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
30120 unless explicit Pure_Function pragma given, to avoid insidious bug of
30121 call to non-pure imported function getting eliminated.
30123 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
30124 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
30125 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
30126 Add 2004 to printed copyright notice
30128 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
30131 * Makefile.rtl: Add entry for g-sestin.o
30132 g-sestin.ads: New file.
30134 * mdll.adb: Minor changes to avoid -gnatwa warnings
30136 * mlib-tgt.adb: Minor reformatting
30138 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
30139 New switch Sec_Stack_Used (GNAT, GNATBIND)
30140 Make Default_Secondary_Stack_Size a variable instead of a constant,
30141 so that it can be modified by the new -Dnnn bind switch.
30143 * rtsfind.adb (Load_Fail): Give full error message in configurable
30144 run-time mode if all_errors mode is set. This was not done in the case
30145 of a file not found, which was an oversight.
30146 Note if secondary stack unit is used by compiler.
30148 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
30149 ineffective elaborate all pragmas on non-visible packages (this
30150 happened when a renamed subprogram was called). Now the elaborate all
30151 always goes on the package containing the renaming rather than the one
30152 containing the renamed subprogram.
30154 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
30155 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
30157 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
30158 has an Etype that references an E_String_Literal.
30159 (Eval_String_Literal): Avoid assumption that N_String_Literal node
30160 always references an E_String_Literal_Subtype entity. This may not
30161 be true in the future.
30163 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
30166 * sem_res.adb (Resolve): Specialize msg for function name used in proc
30169 2004-01-05 Ed Falis <falis@gnat.com>
30171 * g-debuti.adb: Replaced direct boolean operator with short-circuit
30174 2004-01-05 Vincent Celier <celier@gnat.com>
30176 * bld.adb: Minor comment updates
30177 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
30180 * make.adb (Gnatmake): Special process for files to compile/check when
30181 -B is specified. Fail when there are only foreign mains in attribute
30182 Main of the project file and -B is not specified. Do not skip bind/link
30183 steps when -B is specified.
30185 * makeusg.adb: Document new switch -B
30187 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
30189 * switch-m.adb: (Scan_Make_Switches): Process -B switch
30191 * vms_data.ads: Add new GNAT PRETTY qualifier
30192 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
30194 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30196 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
30199 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
30200 Set_Identifier_Casing.
30202 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
30203 has size that overflows.
30205 2004-01-05 Gary Dismukes <dismukes@gnat.com>
30207 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
30208 -gnatwa warning on static condition.
30210 2004-01-05 Doug Rupp <rupp@gnat.com>
30212 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
30214 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
30216 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
30217 all attributes, including read-only attribute.
30219 2004-01-05 Pascal Obry <obry@gnat.com>
30221 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
30222 library naming scheme.
30224 * mlib-prj.adb (Build_Library): Generate different names for the static
30225 or dynamic version of the GNAT runtime. This is needed to support the
30226 new shared library naming scheme.
30227 (Process_Binder_File): Add detection of shared library in binder file
30228 based on the new naming scheme.
30230 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
30231 scheme for the shared runtime libraries.
30234 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
30236 (install-gnatlib): Do not create symlinks for shared libraries.
30237 (gnatlib-shared-default): Idem.
30238 (gnatlib-shared-dual-win32): New target. Not used for now as the
30239 auto-import feature does not support arrays/records.
30240 (gnatlib-shared-win32): Do not create copy for the shared libraries.
30241 (gnatlib-shared-vms): Fix shared runtime libraries names.
30243 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
30244 dependent runtime shared library name.
30246 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
30248 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
30251 2004-01-05 Ed Schonberg <schonberg@gnat.com>
30253 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
30254 protected objects when allocator has a subtype indication, not a
30255 qualified expression. Note that qualified expressions may have to be
30256 checked when limited aggregates are implemented.
30258 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
30259 pure, emit warning.
30260 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
30261 subprogram is imported, remove warning.
30263 2004-01-05 Geert Bosch <bosch@gnat.com>
30265 * s-poosiz.adb: Update copyright notice.
30266 (Allocate): Use Task_Lock to protect against concurrent access.
30267 (Deallocate): Likewise.
30269 2004-01-05 Joel Brobecker <brobecker@gnat.com>
30271 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
30274 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
30276 * gnat_ug.texi: Force a CVS commit by updating copyright.
30277 * gnat_ug_vxw.texi: Regenerate.
30278 * gnat_ug_wnt.texi: Regenerate.
30279 * gnat_ug_vms.texi: Regenerate.
30280 * gnat_ug_unx.texi: Regenerate.
30282 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
30284 * trans.c: Remove uses of "register" specifier in
30285 declarations of local variables.
30287 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
30289 * stamp-xgnatug: New stamp file.
30290 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
30291 (ada/doctools/xgnatug): Add $(build_exeext).
30292 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
30293 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
30295 2003-12-17 Ed Falis <falis@gnat.com>
30297 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
30300 * a-exextr.adb: Add context clause for
30301 Ada.Exceptions.Last_Chance_Handler.
30303 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
30305 * cstand.adb (Create_Standard): Change the way how the declaration of
30306 the Duration type is created (making it the same way as it is for all
30307 the other standard types).
30309 2003-12-17 Robert Dewar <dewar@gnat.com>
30311 * s-crtl.ads: Fix header format
30312 Change Pure to Preelaborate
30314 2003-12-17 Ed Schonberg <schonberg@gnat.com>
30316 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
30317 the expression type only if it is declared in the current unit.
30319 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
30320 are universal and already analyzed, as can occur in constrained
30321 subcomponents that depend on discriminants, when one constraint is a
30324 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
30325 type Any_Fixed is legal as the argument of a conversion, if only one
30326 fixed-point type is in context.
30328 2003-12-17 GNAT Script <nobody@gnat.com>
30330 * Make-lang.in: Makefile automatically updated
30332 2003-12-15 Robert Dewar <dewar@gnat.com>
30334 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
30337 2003-12-15 Vincent Celier <celier@gnat.com>
30339 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
30340 (Gnatchop): Do not set failure status when reporting the number of
30343 2003-12-15 Doug Rupp <rupp@gnat.com>
30345 * s-ctrl.ads: New file.
30347 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
30349 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
30350 (GNATBIND_OBJS): Add ada/s-crtl.o.
30352 * Makefile.in [VMS]: Clean up ifeq rules.
30354 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
30355 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
30356 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
30357 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
30358 s-tasdeb.adb: Update copyright.
30359 Import System.CRTL.
30360 Make minor modifications to use System.CRTL declared functions instead
30361 of importing locally.
30363 2003-12-15 GNAT Script <nobody@gnat.com>
30365 * Make-lang.in: Makefile automatically updated
30367 2003-12-11 Ed Falis <falis@gnat.com>
30369 * 5zinit.adb: Clean up.
30371 * 5zintman.adb (Notify_Exception): replaced case statement with a call
30372 to __gnat_map_signal, imported from init.c to support
30373 signal -> exception mappings that depend on the vxWorks version.
30376 Created and exported __gnat_map_signal to support signal -> exception
30377 mapping that is dependent on the VxWorks version.
30378 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
30380 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
30382 * 5wosinte.ads: Link with -mthreads switch.
30384 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
30386 * init.c (__gnat_install_handler [NetBSD]): Set
30387 __gnat_handler_installed, as done on all other platforms.
30388 Remove duplicated code.
30390 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
30392 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
30394 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
30396 * sinfo.ads: Fix inconsistent example code in comment.
30398 2003-12-11 Robert Dewar <dewar@gnat.com>
30400 * a-tiinau.adb: Add a couple of comments
30402 * sem_ch3.adb: Minor reformatting
30405 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
30406 Minor reformatting throughout
30408 2003-12-11 Ed Schonberg <schonberg@gnat.com>
30410 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
30411 bounds of a loop, create a separate block in order to generate proper
30412 cleanup actions to prevent memory leaks.
30414 * sem_res.adb (Resolve_Call): After a call to
30415 Establish_Transient_Scope, the call may be rewritten and relocated, in
30416 which case no further processing is needed.
30418 * sem_util.adb: (Wrong_Type): Refine previous fix.
30419 Fixes ACATS regressions.
30422 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
30425 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
30427 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
30428 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
30431 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
30434 2003-12-08 Robert Dewar <dewar@gnat.com>
30436 * 7sintman.adb: Minor reformatting
30438 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
30439 standard linker options to get standard libraries linked. We now plan
30440 to provide dummy versions of these libraries to match the appropriate
30441 configurable run-time (e.g. if a library is not needed at all, provide
30442 a dummy empty library).
30444 * targparm.ads: Configurable_Run_Time mode no longer affects linker
30445 options (-L parameters and standard libraries). What we plan to do is
30446 to provide dummy libraries where the libraries are not required.
30448 * gnatbind.adb: Minor comment improvement
30450 2003-12-08 Javier Miranda <miranda@gnat.com>
30452 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
30453 aggregate in the parent. Otherwise constants with limited aggregates
30454 are not supported. Add new formal to pass the component type (Ctype).
30455 It is required to call the corresponding IP subprogram in case of
30456 default initialized components.
30457 (Gen_Assign): In case of default-initialized component, generate a
30458 call to the IP subprogram associated with the component.
30459 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
30460 of aggregate with default initialized components.
30461 (Has_Default_Init_Comps): Improve implementation to recursively check
30462 all the present expressions.
30464 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
30465 to indicate that the initialization call corresponds to a
30466 default-initialized component of an aggregate.
30467 In case of default initialized aggregate with tasks this parameter is
30468 used to generate a null string (this is just a workaround that must be
30469 improved later). In case of discriminants, this parameter is used to
30470 generate a selected component node that gives access to the discriminant
30473 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
30474 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
30475 allocated aggregates with default-initialized components.
30477 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
30478 the box notation is used in positional aggregates.
30480 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
30482 * lib.ads: Fix typo in comment
30484 2003-12-08 Vincent Celier <celier@gnat.com>
30486 * prj.adb (Project_Empty): New component Unkept_Comments
30487 (Scan): Remove procedure; moved to Prj.Err.
30489 * prj.ads (Project_Data): New Boolean component Unkept_Comments
30490 (Scan): Remove procedure; moved to Prj.Err.
30492 * prj-dect.adb: Manage comments for the different declarations.
30494 * prj-part.adb (With_Record): New component Node
30495 (Parse): New Boolean parameter Store_Comments, defaulted to False.
30496 Set the scanner to return ends of line and comments as tokens, if
30497 Store_Comments is True.
30498 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
30499 comments are associated with these nodes. Store the node IDs in the
30501 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
30503 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
30504 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
30505 current project. Call Tree.Restore afterwards. Set the various nodes
30506 for comment storage (Next_End, End_Of_Line, Previous_Line,
30509 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
30510 defaulted to False.
30512 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
30513 to False. When Truncated is True, truncate the string, never go to the
30515 (Write_End_Of_Line_Comment): New procedure
30516 (Print): Process comments for nodes N_With_Clause,
30517 N_Package_Declaration, N_String_Type_Declaration,
30518 N_Attribute_Declaration, N_Typed_Variable_Declaration,
30519 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
30520 Process nodes N_Comment.
30522 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
30523 without comments and there are some comments, set the flag
30524 Unkept_Comments to True.
30525 (Scan): If there are comments, set the flag Unkept_Comments to True and
30526 clear the comments.
30527 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
30528 (Next_End_Nodes: New table
30529 (Comment_Zones_Of): New function
30530 (Scan): New procedure; moved from Prj. Accumulate comments in the
30531 Comments table and set end of line comments, comments after, after end
30533 (Add_Comments): New procedure
30534 (Save, Restore, Seset_State): New procedures
30535 (There_Are_Unkept_Comments): New function
30536 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
30537 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
30539 (First_Comment_After, First_Comment_After_End): New functions
30540 (First_Comment_Before, First_Comment_Before_End): New functions
30541 (Next_Comment): New function
30542 (End_Of_Line_Comment, Follows_Empty_Line,
30543 Is_Followed_By_Empty_Line): New functions
30544 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
30545 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
30546 (Set_Next_Comment): New procedure
30547 (Default_Project_Node): Associate comment before if the node can store
30550 * scans.ads (Token_Type): New enumeration value Tok_Comment
30551 (Comment_Id): New global variable
30553 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
30554 defaulted to False.
30555 (Scan): Store position of start of comment. If comments are tokens, set
30556 Comment_Id and set Token to Tok_Comment when scanning a comment.
30557 (Set_Comment_As_Token): New procedure
30559 * sinput-p.adb: Update Copyright notice
30560 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
30561 that no longer exists.
30563 2003-12-08 Javier Miranda <miranda@gnat.com>
30565 * sem_aggr.adb: Add dependence on Exp_Tss package
30566 Correct typo in comment
30567 (Resolve_Aggregate): In case of array aggregates set the estimated
30568 type of the aggregate before calling resolve. This is needed to know
30569 the name of the corresponding IP in case of limited array aggregates.
30570 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
30571 in case of default initialized array components.
30573 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
30574 types. Required to give support to limited aggregates in generic
30577 2003-12-08 Ed Schonberg <schonberg@gnat.com>
30579 * sem_ch3.adb (Check_Initialization): For legality purposes, an
30580 inlined body functions like an instantiation.
30581 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
30582 until bounds are analyzed, to diagnose premature use of type.
30584 * sem_util.adb (Wrong_Type): Improve error message when the type of
30585 the expression is used prematurely.
30587 2003-12-08 GNAT Script <nobody@gnat.com>
30589 * Make-lang.in: Makefile automatically updated
30591 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
30593 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
30594 they are automatically generated by Make-lang.in and cause nothing but
30595 maintenance troubles.
30597 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
30599 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
30600 version of this unit).
30602 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
30604 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
30605 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
30606 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
30607 the body of System.Interrupt_Management common to several targets.
30608 Update copyright notice when appropriate.
30610 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
30613 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
30614 to ensure that the kernel fills in the interrupted context structure
30615 before calling a signal handler, which is necessary to be able to
30616 unwind past it. Update the copyright notice.
30618 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
30620 * a-elchha.ads: New file.
30622 * a-elchha.adb: New default last chance handler. Contents taken from
30623 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
30625 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
30626 is moved to a-elchha.adb to provide a target-independent default last
30629 * Makefile.rtl: Add a-elchha.o
30631 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
30633 2003-12-05 Ed Schonberg <schonberg@gnat.com>
30635 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
30636 declared in an instance, do not inline the call if the instance is not
30637 frozen yet, to prevent order of elaboration problems.
30639 * sem_prag.adb: Add comments for previous fix.
30641 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
30643 * g-table.adb: Use the right variable in Set_Item.
30644 Update copyright notice.
30646 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
30648 * Makefile.in: Remove unused rules.
30650 2003-12-05 Vincent Celier <celier@gnat.com>
30652 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
30653 -nostdlib. Not needed here after all.
30655 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
30658 * adaint.h, adaint.c, g-os_lib.ads:
30659 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
30660 on some platforms (including FreeBSD), it is a 64 bit value.
30661 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
30663 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
30665 * gnatvsn.ads (Library_Version): Now contain only the relevant
30667 (Verbose_Library_Version): New constant.
30669 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
30670 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
30671 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
30673 * gnatlbr.adb: Clean up: replace Library_Version by
30674 Verbose_Library_Version.
30676 * make.adb, lib-writ.adb, exp_attr.adb:
30677 Clean up: replace Library_Version by Verbose_Library_Version.
30679 * 5lintman.adb: Removed.
30682 Update and simplify computation of LIBRARY_VERSION.
30683 Fix computation of GSMATCH_VERSION.
30684 5lintman.adb is no longer used: replaced by 7sintman.adb.
30686 2003-12-03 Robert Dewar <dewar@gnat.com>
30689 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
30690 name. Modified to consider small non-bit-packed arrays as troublesome
30691 and in need of component-by-component assigment expansion.
30693 2003-12-03 Vincent Celier <celier@gnat.com>
30695 * lang-specs.h: Process nostdlib as nostdinc
30697 * back_end.adb: Update Copyright notice
30698 (Scan_Compiler_Arguments): Process -nostdlib directly.
30700 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
30703 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
30704 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
30705 included in HIE_NONE_TARGET_PAIRS.
30707 2003-12-03 Ed Schonberg <schonberg@gnat.com>
30710 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
30711 is legal in an instance, because legality is cheched in the template.
30714 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
30715 appplied to an unchecked conversion of a formal parameter.
30718 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
30721 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
30723 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
30724 routines. The second one is new functionality to deal with backtracing
30725 through signal handlers.
30726 (unwind): Split into the two separate subroutines above.
30727 Update the documentation, and deal properly with sizeof (REG) different
30728 from sizeof (void*).
30730 2003-12-01 Nicolas Setton <setton@act-europe.fr>
30732 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
30733 so that the debugger can reliably access the value of the parameter,
30734 and therefore is able to display the exception name when an exception
30735 breakpoint is reached.
30737 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
30739 * fmap.adb: Fix typo in warning message.
30741 * g-socket.ads, g-socket.adb: Make Free a visible instance of
30742 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
30744 2003-12-01 Vincent Celier <celier@gnat.com>
30746 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
30748 (Build_Library): Get the switches only if Default_Switches is declared
30751 2003-12-01 Ed Schonberg <schonberg@gnat.com>
30753 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
30754 actuals that are indexed components, reanalyze actual to ensure that
30755 packed array references are properly expanded.
30757 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
30758 attempted assignment to a discriminant.
30760 2003-12-01 Robert Dewar <dewar@gnat.com>
30762 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
30765 * switch-c.adb: Minor reformatting of comments
30767 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
30769 * Makefile.in: Clean ups.
30771 2003-12-01 GNAT Script <nobody@gnat.com>
30773 * Make-lang.in: Makefile automatically updated
30775 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
30777 * 5wsystem.ads: Disable zero cost exception, not ready yet.
30779 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
30781 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
30782 to force serialization.
30784 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
30786 * g-socket.ads, g-socket.adb:
30787 Clarify documentation of function Stream. Introduce a Free procedure
30788 to release the returned Stream once it becomes unused.
30790 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
30792 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
30794 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
30795 since NT 4 cannot handle timeout values that are too large,
30796 e.g. DWORD'Last - 1.
30798 2003-11-26 Ed Schonberg <schonberg@gnat.com>
30801 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
30802 in procedure calls and whose expansion must be deferred.
30804 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
30808 (Build_Derived_Array_Type): Create operator for unconstrained type
30809 if ancestor is unconstrained.
30811 2003-11-26 Vincent Celier <celier@gnat.com>
30813 * make.adb (Project_Object_Directory): New global variable
30814 (Change_To_Object_Directory): New procedure
30815 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
30816 of Change_Dir directly. Do not change working directory to object
30817 directory of main project after each compilation.
30818 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
30820 Change to object directory of main project before binding step.
30821 (Initialize): Initialize Project_Object_Directory to No_Project
30824 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
30825 binding a Stand-Alone Library.
30827 * output.adb: Update Copyright notice
30828 (Write_Char): Output buffer when full
30830 2003-11-26 Robert Dewar <dewar@gnat.com>
30832 * sem_ch13.adb: (Check_Size): Reset size if size is too small
30835 (Check_Size): Fix documentation to include bit-packed array case
30837 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
30839 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
30841 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
30843 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
30846 * utils.c (init_gigi_decls): Change name of built-in setjmp to
30847 __builtin_setjmp, since this is apparently needed by recent
30850 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30852 * adadecode.c: Only include ctype.h if not IN_GCC.
30853 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
30855 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
30858 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
30859 signals and interrupts.
30861 * 5zintman.ads: New File.
30863 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
30864 add exception signals to the set of unmasked signals.
30867 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
30868 between signals and interrupts.
30869 Add to Unblocked_Signal_Mask the set of signals that are in
30873 Adding a check to see whether the Interrupt_ID we want to unmask is in
30874 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
30875 reason is that the index type of the Keep_Unmasked array is not always
30876 Interrupt_ID; it may be a subtype of Interrupt_ID.
30878 2003-11-24 Gary Dismukes <dismukes@gnat.com>
30881 (Remove_Side_Effects): Condition constantness of object created for a
30882 an unchecked type conversion on the constantness of the expression
30883 to ensure the correct value for 'Constrained when passing components
30884 of view-converted class-wide objects.
30886 2003-11-24 Robert Dewar <dewar@gnat.com>
30888 * par-load.adb (Load): Improve handling of misspelled and missing units
30889 Removes several cases of compilation abandoned messages
30891 * lib.adb: (Remove_Unit): New procedure
30893 * lib.ads: (Remove_Unit): New procedure
30895 * lib-load.adb: Minor reformatting
30897 2003-11-24 Vincent Celier <celier@gnat.com>
30900 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
30901 (Marking_Label): Label to mark processed source files. Incremented for
30903 (Gnatmake): Increase Marking_Labet for each executable
30904 (Is_Marked): Compare against marking label
30905 (Mark): Mark with marking label
30907 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
30910 Move the declaration of the TSD for System.Threads to System.Soft_Links.
30913 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
30914 (rts-cert): build a single relocatable object for the run-time lib.
30917 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
30920 Use gnatls rather than gcc to obtain the location of GNAT RTL for
30923 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
30925 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
30926 can not use it as before (that is, as a variable) when dumping it into
30927 the tree file. Add a local variable to store the result of this
30928 function and to be used as the string to be written into the tree.
30930 * scn.adb (Initialize_Scanner): Add comments explaining the recent
30933 * sinput.adb (Source_First, Source_Last): In case of
30934 Internal_Source_File, replace returning attributes of
30935 Internal_Source_Ptr (which is wrong) with returning attributes of
30938 2003-11-24 Ed Schonberg <schonberg@gnat.com>
30941 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
30942 used for implicit concatenation operators.
30946 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
30947 task bodies that are in the scope of a Suppress pragma.
30948 (Check_A Call): Use the flag to prevent spurious elaboration checks.
30950 * sinfo.ads, sinfo.adb:
30951 New flag No_Elaboration_Check on function/procedure calls, to properly
30952 suppress checks on calls in task bodies that are within a local suppress
30956 (Expand_Concatenate_Other): Use the proper integer type for the
30957 expression for the upper bound, to avoid universal_integer computations
30960 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
30962 * .cvsignore: Delete.
30964 2003-11-21 Andreas Schwab <schwab@suse.de>
30966 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
30968 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
30970 * 5wsystem.ads: Enable zero cost exception.
30972 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
30974 * 5ztiitho.adb: Remove an unreferenced variable.
30976 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
30978 * adaint.c: For FreeBSD, use mkstemp.
30980 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
30982 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
30984 2003-11-21 Robert Dewar <dewar@gnat.com>
30986 * bld.adb: Remove useless USE of gnatvsn
30988 * gnatchop.adb: Minor reformatting
30989 Clean up version handling to be more consistent
30991 * gnatxref.adb: Minor reformatting
30993 * gprcmd.adb: Minor reformatting
30994 Fix output of copyright to be more consistent with other tools
30996 2003-11-21 Vincent Celier <celier@gnat.com>
30998 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
31000 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
31002 * atree.adb (Initialize): Add initializations for global variables
31003 used in New_Copy_Tree.
31005 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
31006 Internal_Source_File as the actual).
31007 Put the set of statements creating Any_Character before the set of
31008 statements creating Any_Array to have Any_Character fully initialized
31009 when it is used in creating Any_Array.
31011 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
31012 not call Scan in case if the actual is Internal_Source_File
31013 Add 2003 to copyright note.
31015 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
31016 processing Internal_Source_File.
31018 * types.ads: Add the constant Internal_Source_File representing the
31019 source buffer for artificial source-code-like strings created within
31020 the compiler (the definition of Source_File_Index is changed).
31022 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
31024 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
31025 56system.ads: New file, FreeBSD version.
31027 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
31029 * Make-lang.in (ada.extraclean): Delete.
31031 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
31033 * gnatmem.adb: Clean up verbose output.
31035 * gprcmd.adb: Change copyright to FSF.
31037 2003-11-19 Vincent Celier <celier@gnat.com>
31039 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
31040 and Version (ignored).
31042 * symbols.ads: (Policy): New type
31043 (Initialize): New parameter Reference, Symbol_Policy and
31045 Remove parameter Force.
31046 Minor reformatting.
31048 * snames.ads, snames.adbadb: New standard names
31049 Library_Reference_Symbol_File and Library_Symbol_Policy
31052 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
31056 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
31058 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
31060 * prj.adb: (Project_Empty): New component Symbol_Data
31062 * prj.ads: (Policy, Symbol_Record): New types
31063 (Project_Data): New component Symbol_Data
31066 New attributes Library_Symbol_File, Library_Symbol_Policy and
31067 Library_Reference_Symbol_File.
31070 (Ada_Check): When project is a Stand-Alone library project, process
31071 attribute Library_Symbol_File, Library_Symbol_Policy and
31072 Library_Reference_Symbol_File.
31074 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
31075 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
31076 5sml-tgt.adb (Build_Dynamic_Library): New parameter
31077 Symbol_Data (ignored).
31079 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
31080 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
31081 functions Option_File_Name and Version_String. Set new options of
31082 gnatsym related to symbol file, symbol policy and reference symbol
31086 Extensive modifications to take into account the reference symbol file,
31087 the symbol policy, the library version and to put in the symbol file the
31088 minor and major IDs.
31090 * bld.adb (Process_Declarative_Items): Put second argument of
31091 gprcmd to_absolute between single quotes, to avoid problems with
31094 * bld-io.adb: Update Copyright notice.
31095 (Flush): Remove last character of a line, if it is a back slash, to
31096 avoid make problems.
31099 Implement new scheme with reference symbol file and symbol policy.
31101 * g-os_lib.ads: (Is_Directory): Clarify comment
31103 2003-11-19 Robert Dewar <dewar@gnat.com>
31105 * atree.adb: Move New_Copy_Tree global variables to head of package
31107 * errout.adb: Minor reformatting
31109 2003-11-19 Javier Miranda <miranda@gnat.com>
31111 * sem_ch4.adb: (Diagnose_Call): Improve error message.
31112 Add reference to Ada0Y (AI-50217)
31114 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
31115 sem_util.adb: Add reference to AI-50217
31117 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
31119 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
31121 * sem_aggr.adb: Complete documentation of AI-287 changes
31123 * par-ch4.adb: Document previous changes.
31125 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
31126 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
31129 * exp_aggr.adb: Add references to AI-287 in previous changes
31131 2003-11-19 Ed Schonberg <schonberg@gnat.com>
31134 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
31135 in the rewriting is the result of an inlined call.
31137 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
31138 parameter is a type conversion, use original node to construct the
31139 post-call assignment, because expression may have been rewritten, e.g.
31140 if it is a packed array.
31143 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
31144 body, just as it is in an instance.
31145 Categorization routines
31147 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
31148 Instantiate_Object): Set proper sloc reference for message on missing
31151 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
31153 * Makefile.in: Add FreeBSD libgnat pairs.
31155 * usage.adb: Fix typo in usage message.
31157 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
31159 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
31160 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
31161 pragma Thread_Body.
31162 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
31164 * s-thread.adb: This file is now a dummy implementation of
31167 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
31169 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
31171 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
31173 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
31174 instanciation references in the parent type description.
31176 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31178 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
31180 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
31181 TYPE_PRECISION directly from esize.
31183 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
31186 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
31188 * init.c: Initialization routines for FreeBSD
31190 * link.c: Link info for FreeBSD
31192 * sysdep.c: Add the case of FreeBSD
31194 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
31196 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
31197 already called in System.Threads.
31199 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
31200 environment task, as it has been moved to System.Threads.Initialization.
31202 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
31204 * adaint.c (__gnatlib_install_locks): Only reference
31205 __gnat_install_locks on VMS, since other platforms can avoid using
31206 --enable-threads=gnat
31208 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31210 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
31212 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
31213 TYPE_PACKED_ARRAY_TYPE_P.
31214 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
31216 Part of PR ada/12806
31217 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
31218 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
31220 2003-11-17 Vincent Celier <celier@gnat.com>
31222 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
31224 Do not set exit status to Failure when Warning is True.
31225 (Gnatchop): Make errors "no compilation units found" and
31226 "no source files written" warnings only.
31228 * make.adb (Gnatmake): When using a project file, set
31229 Look_In_Primary_Dir to False.
31230 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
31231 and Local_Configuration_Pragmas in the project where they are declared
31232 not an extending project which might have inherited them.
31234 * osint.adb (Locate_File): If Name is already an absolute path, do not
31235 look for a directory.
31237 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
31238 -gnats (Check_Syntax) is used, issue only a warning, not an error.
31240 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
31241 in objects of type Variable_Value.
31243 * prj.ads: (Variable_Value): New component Project
31245 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
31246 is in a project extended by Project.
31248 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
31249 Project of Variable_Values to this new parameter value.
31250 (Expression): Set component Project of Variable_Values.
31251 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
31252 Set the component Project in array elements.
31254 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
31256 * errout.adb: (Initialize): Add initialization for error nodes.
31258 * sem_ch12.adb (Initialize): Add missing initializations for
31259 Exchanged_Views and Hidden_Entities.
31261 2003-11-17 Ed Schonberg <schonberg@gnat.com>
31263 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
31264 already instantiated tree for use in subsequent inlining.
31265 (Analyze_Associations, Instantiate_Formal_Subprogram,
31266 Instantiate_Object): improve error message for mismatch in
31269 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
31270 instantiations of subprograms declared in instances.
31272 2003-11-17 Javier Miranda <miranda@gnat.com>
31274 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
31275 executed only under the Extensions_Allowed flag.
31277 2003-11-17 Robert Dewar <dewar@gnat.com>
31279 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
31281 (Address_Image): Fix bug of returning 0x instead of 0x0
31282 Minor reformatting (function specs).
31284 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
31285 (missed case of 33-63)
31287 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
31289 * s-thread.adb: Add comments for pragma Restriction
31291 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
31292 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
31294 2003-11-17 Ed Falis <falis@gnat.com>
31296 * s-thread.adb: Added No_Tasking restriction for this implementation.
31298 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
31300 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
31301 instanciation references in the parent type description.
31303 2003-11-17 GNAT Script <nobody@gnat.com>
31305 * Make-lang.in: Makefile automatically updated
31307 2003-11-16 Jason Merrill <jason@redhat.com>
31309 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
31310 and TAGS files that include them for each front end.
31312 2003-11-14 Andreas Jaeger <aj@suse.de>
31314 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
31315 is the canonical version.
31316 * misc.c (gnat_handle_option): Likewise.
31318 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
31320 * 5nsystem.ads: New file for x86_64-linux-gnu.
31322 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
31324 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
31326 * comperr.adb: Fix logic in previous change.
31328 2003-11-13 Vincent Celier <celier@gnat.com>
31330 * 5bml-tgt.adb (Build_Dynamic_Library): Use
31331 Osint.Include_Dir_Default_Prefix instead of
31332 Sdefault.Include_Dir_Default_Name.
31334 * gnatlbr.adb: Update Copyright notice
31335 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
31336 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
31337 instead of Sdefault.Object_Dir_Default_Name
31340 (Process_Binder_File): Never suppress the option following -Xlinker
31343 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
31344 Sdefault.Object_Dir_Default_Name.
31346 * osint.ads, osint.adb:
31347 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
31348 Minor reformatting.
31350 * vms_conv.ads: Minor reformating
31351 Remove GNAT STANDARD and GNAT PSTA
31354 Allow GNAT MAKE to have several files on the command line.
31355 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
31356 Sdefault.Object_Dir_Default_Name.
31358 Remove data for GNAT STANDARD
31361 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
31362 Remove data for GNAT STANDARD
31363 Remove options and documentation for -gnatwb/-gnatwB: these warning
31364 options no longer exist.
31366 2003-11-13 Ed Falis <falis@gnat.com>
31368 * 5zthrini.adb: (Init_RTS): Made visible
31371 (Register): Removed unnecessary call to taskVarGet that checked whether
31372 an ATSD was already set as a task var for the argument thread.
31375 Updated comment to reflect that this is a VxWorks version
31376 Added context clause for System.Threads.Initialization
31377 Added call to System.Threads.Initialization.Init_RTS
31379 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
31382 (Init_RTS): New procedure, for the initialization of the run-time lib.
31385 Remove dependancy on System.Init, so that this file can be used in the
31386 AE653 sequential run-time lib.
31388 2003-11-13 Robert Dewar <dewar@gnat.com>
31390 * bindgen.adb: Minor reformatting
31392 2003-11-13 Ed Schonberg <schonberg@gnat.com>
31395 (Apply_Discriminant_Check): Do no apply check if target type is derived
31396 from source type with no applicable constraint.
31399 (Ensure_System_Dependency): Do not apply the style checks that may have
31400 been specified for the main unit.
31403 (Find_Selected_Component): Further improvement in error message, with
31407 (Resolve): Handle properly the case of an illegal overloaded protected
31410 2003-11-13 Javier Miranda <miranda@gnat.com>
31413 (Has_Default_Init_Comps): New function to check the presence of
31414 default initialization in an aggregate.
31415 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
31416 extension aggregate of a limited record. In addition, a new formal
31417 was added to do not initialize the record controller (if any) during
31418 this recursive expansion of ancestors.
31419 (Init_Controller): Add support for limited record components.
31420 (Expand_Record_Aggregate): In case of default initialized components
31421 convert the aggregate into a set of assignments.
31423 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
31424 describing the new syntax.
31425 Nothing else needed to be done because this subprogram delegates part of
31426 its work to P_Precord_Or_Array_Component_Association.
31427 (P_Record_Or_Array_Component_Association): Give support to the new
31428 syntax for default initialization of components.
31431 (Resolve_Aggregate): Relax the strictness of the frontend in case of
31432 limited aggregates.
31433 (Resolve_Record_Aggregate): Give support to default initialized
31435 (Get_Value): In case of default initialized components, duplicate
31436 the corresponding default expression (from the record type
31437 declaration). In case of default initialization in the *others*
31438 choice, do not check that all components have the same type.
31439 (Resolve_Extension_Aggregate): Give support to limited extension
31443 (Check_Initialization): Relax the strictness of the front-end in case
31444 of aggregate and extension aggregates. This test is now done in
31445 Get_Value in a per-component manner.
31447 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
31448 expression corresponds to a limited aggregate. This test is now done
31451 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
31454 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
31455 present in an N_Component_Association node
31457 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
31459 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
31460 type-conformant entry only if they are homographs.
31462 2003-11-13 GNAT Script <nobody@gnat.com>
31464 * Make-lang.in: Makefile automatically updated
31466 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31468 * adadecode.c: Use <> form of include for ctype.h.
31469 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
31471 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31473 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
31474 Works around PR middle-end/6552.
31476 2003-11-10 Ed Falis <falis@gnat.com>
31478 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
31480 * 5zinit.adb: (Install_Handler): Moved back to spec
31481 (Install_Signal_Handlers): Deleted
31483 * 5zthrini.adb: Added context clause for System.Storage_Elements
31484 (Register): Only handles creation of taskVar; initialization moved to
31486 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
31487 Added declaration of environment task secondary stack and
31490 * s-thread.adb: Implement bodies for thread body processing
31493 Added comment identifying supported targets for pragma Thread_Body.
31495 2003-11-10 Pascal Obry <obry@gnat.com>
31497 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
31501 (Open): Properly check for string length before copying into the buffer.
31502 Raises Name_Error if buffer is too small. Note that this was a potential
31505 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
31507 * bindgen.adb, comperr.adb: Code clean ups.
31508 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
31510 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
31512 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
31514 2003-11-10 Vincent Celier <celier@gnat.com>
31517 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
31520 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
31522 * prj.adb: (Project_Empty): Add new boolean component Virtual
31524 * prj.ads: (Virtual_Prefix): New constant string
31525 (Project_Data): New boolean component Virtual
31527 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
31528 a library project is extended by a virtual extending project.
31531 Modifications throughout to implement extending-all project, including:
31532 (Virtual_Hash, Processed_Hash): New hash tables
31533 (Create_Virtual_Extending_Project): New procedure
31534 (Look_For_Virtual_Projects_For): New procedure
31537 (Process): After checking the projects, if main project is an
31538 extending-all project, set the object directory of all virtual extending
31539 project to the object directory of the main project.
31540 Adjust error message when a virtual extending project has the same
31541 object directory as an project being extended.
31542 (Recursive_Process): If name starts with the virtual prefix, set Virtual
31543 to True in the project data.
31546 (Default_Project_Node): Add new boolean component Extending_All
31547 (Is_Extending_All): New function
31548 (Set_Is_Extending_All): New procedure
31550 * prj-tree.ads: (Is_Extending_All): New function
31551 (Set_Is_Extending_All): New procedure
31552 (Project_Node_Record): New boolean component Extending_All
31554 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
31557 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
31559 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
31560 "gprcmd prefix" to define it.
31562 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
31564 * einfo.ads: Fix a typo and remove an extraneous word in comments.
31567 (Create_Dummy_Package_Unit): Set the scope of the entity for the
31568 created dummy package to Standard_Standard, not to itself, to
31569 defend other parts of the front-end against encoutering a cycle in
31573 (Analyze_With_Clause): When setting the entities for the successive
31574 N_Expanded_Names that constitute the name of a child unit, do not
31575 attempt to go further than Standard_Standard in the chain of scopes.
31576 This case arises from the placeholder units created by
31577 Create_Dummy_Package_Unit in the case of a with_clause for a
31578 nonexistent child unit.
31580 2003-11-10 Ed Schonberg <schonberg@gnat.com>
31583 (Expand_Thread_Body): Place subprogram on scope stack, so that new
31584 declarations are given the proper scope.
31587 (Check_Expr_Constants): Reject an expression that contains a constant
31588 created during expansion, and that appears after the object to which
31589 the address clause applies.
31591 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
31592 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
31593 that uses 'Range of a function call with controlled components, so
31594 that the function result can be finalized before starting the loop.
31597 (Find_Selected_Component): Improve error message when prefix is
31598 an implicit dereference of an incomplete type.
31600 2003-11-10 Robert Dewar <dewar@gnat.com>
31602 * opt.ads: New Print_Standard flag for -gnatS switch
31604 * sem_ch13.adb: Remove some additional checks for unaligned arrays
31606 * cstand.adb (Create_Standard): Print out package standard if -gnatS
31609 * debug.adb: Update doc for -gnatds to discuss relationship with new
31612 * sinfo.adb: Add new field Entity_Or_Associated_Node
31614 * sinfo.ads: Add new field Entity_Or_Associated_Node
31615 Update documentation for Associated_Node and Entity fields to clarify
31616 relationship and usage.
31619 (Write_Id): Properly process Associated_Node field in generic template
31622 Recognize new -gnatS switch for printing package Standard
31623 This replaces gnatpsta
31626 Add line for new -gnatS switch for printing package Standard
31627 This replaces gnatpsta
31629 2003-11-10 Andreas Jaeger <aj@suse.de>
31631 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
31634 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
31636 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
31639 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
31641 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
31644 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
31646 * sysdep.c: Add handling of cygwin.
31648 2003-11-10 GNAT Script <nobody@gnat.com>
31650 * Make-lang.in: Makefile automatically updated
31652 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
31655 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
31656 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
31657 Replace GNAT_ROOT by GCC_ROOT.
31659 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
31661 2003-11-06 Zack Weinberg <zack@codesourcery.com>
31663 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
31664 and update for changed meaning of GET_MODE_BITSIZE.
31666 2003-11-04 Doug Rupp <rupp@gnat.com>
31668 * sysdep.c: Problem discovered during IA64 VMS port.
31669 [VMS] #include <unixio.h> to get proper prototypes.
31672 Issues discovered/problems fixed during IA64 VMS port.
31673 [VMS] #define _POSIX_EXIT for proper semantics.
31674 [VMS] #include <unixio.h> for proper prototypes.
31675 [VMS] (fork): #define IA64 version.
31676 (__gnat_os_exit): Remove unnecessary VMS specific code.
31678 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31680 Part of PR ada/12806
31681 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
31685 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
31688 * targtyps.c, decl.c, misc.c,
31689 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
31690 routines to work around change in FP sizing semantics in GCC.
31693 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
31695 * gigi.h: (enumerate_modes): New function.
31697 * Make-lang.in: (ada/misc.o): Add real.h.
31699 * misc.c: (enumerate_modes): New function.
31701 2003-11-04 Robert Dewar <dewar@gnat.com>
31703 * 3vtrasym.adb: Minor reformatting
31704 Use terminology encoded/decoded name, rather than C++ specific notion
31705 of mangling (this is the terminology used throughout GNAT).
31707 * einfo.h: Regenerated
31709 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
31712 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
31714 * par-prag.adb: Add dummy entry for Thread_Body pragma
31717 Add entries for System.Threads entities for thread body processing
31720 (Analyze_Pragma, Access attributes): Check these are not applied to a
31721 thread body, since this is not permitted
31723 * sem_prag.adb: Add processing for Thread_Body pragma.
31727 (Resolve_Call): Check for incorrect attempt to call a thread body
31728 procedure with a direct call.
31730 * snames.ads, snames.adb: Add entry for Thread_Body pragma
31731 Add names associated with thread body expansion
31733 * snames.h: Add entry for Thread_Body pragma
31735 * s-thread.adb: Add entries for thread body processing
31736 These are dummy bodies so far
31738 * s-thread.ads: Add documentation on thread body handling.
31739 Add entries for thread body processing.
31741 2003-11-04 Javier Miranda <miranda@gnat.com>
31744 (Build_Limited_Views): Return after posting an error in case of limited
31745 with_clause on subprograms, generics, instances or generic renamings
31746 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
31747 on subprograms, generics, instances or generic renamings
31749 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
31751 * raise.c (setup_to_install): Correct mistake in last revision; two
31752 arguments out of order.
31754 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
31755 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
31756 notice, missed in previous change.
31757 Remove trailing blanks and other style errors introduced in previous
31760 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
31762 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
31763 rid of the wrapper for a LJM type, ensuring we don't do that if the
31764 field is addressable. This avoids potential low level type view
31765 mismatches later on, for instance in a by-reference argument passing
31768 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31770 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
31771 aligned at byte boundary.
31773 2003-11-04 Joel Brobecker <brobecker@gnat.com>
31775 * decl.c (components_to_record): Do not delete the empty variants from
31776 the end of the union type.
31778 2003-11-04 Ed Schonberg <schonberg@gnat.com>
31780 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
31781 operation for a derived type, an explicit declaration may use a local
31782 subtype of Boolean.
31784 2003-11-04 Vincent Celier <celier@gnat.com>
31786 * make.adb (Gnatmake): Allow main sources on the command line with a
31787 library project when it is only for compilation (no binding or
31790 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31792 * Makefile.in: Remove many duplicate variables.
31794 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
31796 * Make-lang.in (dvi): Move targets to $(docobjdir).
31797 (gnat_ug_vms.dvi): Simplify rule and adjust target.
31798 (gnat_ug_wnt.dvi): Likewise.
31799 (gnat_ug_unx.dvi): Likewise.
31800 (gnat_ug_vxw.dvi): Likewise.
31801 (gnat_rm.dvi): Likewise.
31802 (gnat-style.dvi): Likewise.
31804 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
31806 * gigi.h: Missed commit from update for C90.
31808 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
31810 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
31812 2003-10-31 Andreas Schwab <schwab@suse.de>
31814 * raise.c (get_action_description_for): Fix typo in last change.
31816 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
31819 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
31820 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
31822 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
31824 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
31825 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
31826 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
31827 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
31828 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
31830 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
31833 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
31834 numbers when symbol name is too long.
31836 2003-10-30 Ed Falis <falis@gnat.com>
31838 * g-signal.ads, g-signal.adb: New files
31840 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
31842 * Makefile.rtl: Introduce GNAT.Signals
31844 2003-10-30 Robert Dewar <dewar@gnat.com>
31846 * freeze.adb: Minor reformatting
31848 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
31850 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
31851 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
31852 New handling of Id_Check parameter to improve recognition of keywords
31853 used as identifiers.
31854 Update copyright notice to include 2003
31856 2003-10-29 Robert Dewar <dewar@gnat.com>
31858 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
31859 sem_ch10.adb: Minor reformatting
31861 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
31862 (Expand_Assign_Record): Test right hand side for bit unaligned as well
31864 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
31866 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
31867 Support for TBK$SYMBOLIZE-based symbolic traceback.
31869 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
31872 Revert previous change, that did not work well when pragma No_Run_Time
31873 was used in conjunction with a run-time other than ZFP.
31875 2003-10-29 Vincent Celier <celier@gnat.com>
31878 (Gnatmake): When there are no Ada mains in attribute Main, disable the
31879 bind and link steps only is switch -z is not used.
31881 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
31883 * Makefile.generic: Remove duplicated setting of CC.
31885 * Makefile.prolog: Set CC to gcc by default, to override make's
31888 * einfo.h: Regenerated.
31890 2003-10-29 Ed Schonberg <schonberg@gnat.com>
31892 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
31893 current body, after compiling subunit.
31895 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
31896 when in deleted code, because gigi needs properly ordered freeze
31897 actions to annotate types.
31899 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
31900 prevent the premature freezing of record type that contains
31901 subcomponents with a private type that does not yet have a completion.
31903 2003-10-29 Javier Miranda <miranda@gnat.com>
31906 (Analyze_Package_Instantiation): Check that instances can not be used in
31907 limited with_clauses.
31910 (Analyze_Package_Renaming): Check that limited withed packages cannot
31911 be renamed. Improve text on error messages related to limited
31914 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
31916 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
31917 Update copyright notice.
31919 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
31920 (Install_Limited_Context_Clauses): New subprogram that isolates all the
31921 checks required for limited context_clauses and installs the limited
31923 (Install_Limited_Withed_Unit): Complete its documentation.
31924 (Analyze_Context): Check that limited with_clauses are only allowed in
31926 (Install_Context): Call Install_Limited_Context_Clauses after the
31927 parents have been installed.
31928 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
31929 package as 'From_With_Type'; this mark indicates that the limited view
31930 is installed. Used to check bad usages of limited with_clauses.
31931 (Build_Limited_Views): Do not add shadow entities to the scope's list
31932 of entities. Do not add real entities to the Non_Limited_Views chain.
31933 Improve error notification.
31934 (Remove_Context_Clauses): Remove context clauses in two phases:
31935 limited views first and regular views later (to maintain the
31937 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
31938 its visible entities.
31940 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
31942 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
31943 with any type that Is_Fixed_Point_Type.
31945 * sinfo.ads: Fix documentation for Associated_Node attribute.
31947 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
31949 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
31950 both '-gnatc' and '-gnatt' are specified.
31952 * atree.adb (Initialize): Add initialization for Node_Count (set to
31955 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31957 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
31958 do not consider as Pure.
31960 Part of implementation of function-at-a-time:
31962 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
31963 (tree_transform): Add new argument to build_component_ref.
31964 (tree_transform, case N_Assignment_Statement): Make and return an
31966 (tree_transform): If result IS_STMT, set flags and return it.
31967 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
31969 * utils2.c (build_simple_component_ref, build_component_ref): Add new
31971 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
31972 (build_allocator): Likewise.
31974 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
31975 Add new arg to build_component_ref.
31976 (maybe_unconstrained_array, unchecked_convert): Likewise.
31978 * ada-tree.def (EXPR_STMT): New code.
31980 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
31982 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
31983 build_component_ref calls.
31985 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
31987 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
31988 (build_component_ref): Add new argument, NO_FOLD_P.
31990 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
31992 * Makefile.generic: Add missing substitution on object_deps handling.
31995 * Make-lang.in (check-ada): Enable ACATS test suite.
31997 2003-10-27 Robert Dewar <dewar@gnat.com>
32000 (Freeze_Array_Type): We do not need an initialization routine for types
32001 derived from String or Wide_String. They should be treated the same
32002 as String and Wide_String themselves. This caused problems with the
32003 use of Initialize_Scalars.
32006 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
32007 composites. This allows use of component clauses that are not byte
32011 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
32012 is an attempt to pack an array of atomic objects.
32014 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
32016 2003-10-27 Pascal Obry <obry@gnat.com>
32019 (Basename): Check for drive letters in a pathname only on DOS based OS.
32021 2003-10-27 Vincent Celier <celier@gnat.com>
32024 (Gnatmake): When unable to change dir to the object dir, display the
32025 content of the parent dir of the obj dir, to try to understand why this
32028 2003-10-27 GNAT Script <nobody@gnat.com>
32030 * Make-lang.in: Makefile automatically updated
32032 2003-10-27 Ed Schonberg <schonberg@gnat.com>
32035 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
32036 should not be done in Save/Restore_Scope_Stack, because it is performed
32040 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
32041 whether use clauses should be removed/restored.
32044 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
32045 whether use clauses should be removed/restored.
32047 2003-10-26 Andreas Jaeger <aj@suse.de>
32049 * Makefile.in: Remove duplicated lines.
32051 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
32053 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
32054 minimize the differences with ACT tree.
32056 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
32057 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
32058 Gnatvsn.Gnat_Static_Version_String to reduce differences between
32061 2003-10-24 Pascal Obry <obry@gnat.com>
32064 * adadecode.c (ostrcpy): New function.
32065 (__gnat_decode): Use ostrcpy of strcpy.
32066 (has_prefix): Set first parameter a const.
32067 (has_suffix): Set first parameter a const.
32068 Update copyright notice. Fix source name in header.
32069 Removes a trailing space.
32071 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
32074 Remove the test against being in No_Run_Time_Mode before generating a
32075 call to Register_Tag. It is redundant with the test against the
32076 availability of the function Register_Tag.
32078 2003-10-24 Vincent Celier <celier@gnat.com>
32080 * g-catiio.adb: (Month_Name): Correct spelling of February
32082 * make.adb: (Mains): New package
32083 (Initialize): Call Mains.Delete
32084 (Gnatmake): Check that each main on the command line is a source of a
32085 project file and, if there are several mains, each of them is a source
32086 of the same project file.
32087 (Gnatmake): When a foreign language is specified in attribute Languages,
32088 no main is specified on the command line and attribute Mains is not
32089 empty, only build the Ada main. If there is no Ada main, just compile
32090 the Ada sources and their closure.
32091 (Gnatmake): If a main is specified on the command line with directory
32092 information, check that the source exists and, if it does, that the path
32093 is the actual path of a source of a project.
32096 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
32097 Full_Path is True, return the full path instead of the simple file name.
32098 (Project_Of): New function
32101 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
32102 defaulted to False.
32103 (Project_Of): New function
32105 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
32107 * Makefile.generic:
32108 Ensure objects of main project are always checked and rebuilt if needed.
32109 Set CC to gcc by default.
32110 Prepare new handling of link by creating a global archive (not activated
32113 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
32114 stringt.h: Update copyright notice. Remove trailing blanks.
32115 Fix source name in header.
32117 2003-10-24 Robert Dewar <dewar@gnat.com>
32119 * sem_ch12.adb: Minor reformatting
32122 Minor reformatting (including new function return style throughout)
32125 Minor reformatting (including new function return style throughout)
32127 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
32129 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
32130 stringt.h: Update copyright notice. Remove trailing blanks.
32131 Fix source name in header.
32133 2003-10-24 GNAT Script <nobody@gnat.com>
32135 * Make-lang.in: Makefile automatically updated
32137 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
32139 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
32140 stringt.h: Convert to ISO C90 declarations and definitions.
32142 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
32145 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
32146 External_Tag attribute definition clauses.
32148 2003-10-23 Ed Schonberg <schonberg@gnat.com>
32151 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
32152 child unit, generate a fully qualified name to avoid spurious errors
32153 when the context contains renamings of different child units with
32154 the same simple name.
32156 * exp_dbug.ads: Add documentation on name qualification for renamings
32159 2003-10-23 Robert Dewar <dewar@gnat.com>
32161 * g-regpat.ads, g-regpat.adb: Minor reformatting
32163 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
32165 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
32167 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32169 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
32172 * urealp.h: (Machine): Update to proper definition.
32174 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
32176 * init.c, adaint.c: Minor reformatting.
32178 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
32180 * adaint.c (w32_epoch_offset): Define static const at file level.
32181 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
32182 rather than t_create, t_access in call to GetFileTime. Use union
32183 to convert between FILETIME and unsigned long long.
32184 (__gnat_file_time_name): Test for invalid file handle.
32185 (__gnat_set_filetime_name): Support win32 targets using
32186 w32api SetFileTime.
32188 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
32190 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
32192 * ctrl_c.c (__gnat_int_handler): Remove declaration.
32194 * decl.c (creat_concat_name): Const-ify prefix.
32196 * adaint.c: Include ctype.h if __MINGW32__.
32197 (__gnat_readlink): Mark arguments as possibly unused.
32198 (__gnat_symlink): Likewise.
32199 (__gnat_is_symbolic_link): Likewise.
32200 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
32202 (__gnat_file_time_name): Don't declare struct stat statbuf when
32204 (__gnat_is_absolute_path): Add parenthesis around condition of
32205 'if' statement to avoid warning.
32206 (__gnat_plist_init): Specify void as parameter.
32207 (plist_enter): Likewise.
32208 (plist_leave): Likewise.
32209 (remove_handle): Make static. Initialize prev.
32211 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
32214 * Makefile.in: Disable build of gnatpsta.
32215 * cstreams.c (__gnat_full_name): Minor improvements and clean up
32216 of previous change.
32218 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
32220 * tracebak.c (MAX): Avoid redefinition warning.
32222 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
32223 Change msg to const char *.
32224 (__gnat_install_handler): Remove ss, unused.
32225 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
32227 * cstreams.c (__gnat_full_name): Declare p only when used.
32228 (__gnat_full_name) [sgi] Return buffer.
32230 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
32232 * mingw32.h: New file.
32233 * gnat_wrapper.adb: New file.
32235 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
32237 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
32238 string match a pre compiled regular expression (the corresponding
32239 version of the function working on a raw regular expression)
32240 Fix typos in various comments
32241 Update copyright notice in spec
32243 2003-10-21 Gary Dismukes <dismukes@gnat.com>
32246 (Component_Needs_Simple_Initialization): Return False when the type is a
32247 packed bit array. Revise spec comments to document this case.
32250 (Expand_Pragma_Import): Set any expression on the imported object to
32251 empty to avoid initializing imported objects (in particular this
32252 covers the case of zero-initialization of bit arrays).
32253 Update copyright notice.
32255 2003-10-21 Ed Schonberg <schonberg@gnat.com>
32258 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
32259 a subunit is missing.
32260 (Instantiate_Subprogram_Body): If body of function is missing, set type
32261 of return expression explicitly in dummy body, to prevent cascaded
32262 errors when a subunit is missing.
32266 (Access_Subprogram_Declaration): Verify that return type is valid.
32270 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
32275 (Corresponding_Discriminant): If the scope of the discriminant is a
32276 private type without discriminant, use its full view.
32279 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
32281 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
32282 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
32283 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
32284 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
32285 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
32286 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
32287 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
32288 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
32289 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
32290 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
32291 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
32292 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
32293 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
32294 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
32295 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
32296 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
32297 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
32298 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
32299 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
32300 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
32301 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
32302 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
32303 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
32304 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
32305 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
32306 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
32307 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
32308 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
32309 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
32310 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
32311 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
32312 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
32313 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
32314 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
32315 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
32316 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
32317 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
32318 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
32319 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
32320 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
32321 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
32322 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
32323 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
32324 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
32325 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
32326 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
32327 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
32328 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
32329 vms_conv.ads, vms_conv.adb, vms_data.ads,
32330 vxaddr2line.adb: Files added. Merge with ACT tree.
32332 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
32333 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
32334 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
32335 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
32336 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
32337 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
32338 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
32339 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
32340 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
32341 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
32343 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
32344 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
32345 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
32346 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
32347 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
32348 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
32349 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
32350 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
32351 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
32352 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
32353 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
32354 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
32355 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
32356 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
32357 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
32358 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
32359 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
32360 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
32361 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
32362 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
32363 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
32364 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
32365 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
32366 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
32367 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
32368 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
32369 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
32370 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
32371 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
32372 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
32373 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
32374 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
32375 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
32376 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
32377 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
32378 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
32379 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
32380 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
32381 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
32382 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
32383 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
32384 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
32385 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
32386 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
32387 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
32388 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
32389 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
32390 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
32391 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
32392 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
32393 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
32394 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
32395 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
32396 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
32397 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
32398 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
32399 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
32400 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
32401 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
32402 checks.adb, checks.ads, cio.c, comperr.adb,
32403 comperr.ads, csets.adb, cstand.adb, cstreams.c,
32404 debug_a.adb, debug_a.ads, debug.adb, decl.c,
32405 einfo.adb, einfo.ads, errout.adb, errout.ads,
32406 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
32407 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
32408 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
32409 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
32410 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
32411 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
32412 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
32413 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
32414 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
32415 fe.h, fmap.adb, fmap.ads, fname.adb,
32416 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
32417 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
32418 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
32419 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
32420 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
32421 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
32422 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
32423 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
32424 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
32425 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
32426 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
32427 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
32428 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
32429 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
32430 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
32431 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
32432 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
32433 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
32434 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
32435 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
32436 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
32437 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
32438 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
32439 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
32440 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
32441 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
32442 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
32443 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
32444 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
32445 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
32446 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
32447 layout.adb, lib.adb, lib.ads, lib-list.adb,
32448 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
32449 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
32450 link.c, live.adb, make.adb, make.ads,
32451 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
32452 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
32453 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
32454 misc.c, mkdir.c, mlib.adb, mlib.ads,
32455 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
32456 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
32457 namet.adb, namet.ads, namet.h, nlists.ads,
32458 nlists.h, nmake.adt, opt.adb, opt.ads,
32459 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
32460 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
32461 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
32462 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
32463 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
32464 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
32465 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
32466 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
32467 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
32468 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
32469 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
32470 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
32471 prj-util.adb, prj-util.ads, raise.c, raise.h,
32472 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
32473 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
32474 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
32475 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
32476 scans.ads, scn.adb, scn.ads, s-crc32.adb,
32477 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
32478 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
32479 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
32480 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
32481 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
32482 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
32483 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
32484 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
32485 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
32486 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
32487 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
32488 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
32489 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
32490 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
32491 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
32492 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
32493 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
32494 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
32495 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
32496 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
32497 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
32498 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
32499 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
32500 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
32501 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
32502 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
32503 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
32504 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
32505 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
32506 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
32507 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
32508 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
32509 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
32510 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
32511 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
32512 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
32513 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
32514 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
32515 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
32516 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
32517 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
32518 stringt.adb, stringt.ads, stringt.h, style.ads,
32519 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
32520 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
32521 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
32522 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
32523 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
32524 table.adb, table.ads, targparm.adb, targparm.ads,
32525 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
32526 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
32527 ttypes.ads, types.ads, types.h, uintp.adb,
32528 uintp.ads, uintp.h, uname.adb, urealp.adb,
32529 urealp.ads, urealp.h, usage.adb, utils2.c,
32530 utils.c, validsw.adb, validsw.ads, widechar.adb,
32531 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
32532 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
32533 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
32534 gnatvsn.ads: Merge with ACT tree.
32536 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
32538 2003-10-20 Mark Mitchell <mark@codesourcery.com>
32540 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
32541 (gnat_ug_vmx.info): Likewise.
32542 (gnat_ug_vxw.info): Likewise.
32543 (gnat_ug_wnt.info): Likewise.
32544 (gnat_rm.info): Likewise.
32545 (gnat-style.info): Likewise.
32547 * Make-lang.in (ada.install-info): Remove target.
32548 (info): New target.
32549 (install-info): Likewise.
32550 (gnat_ug_unx.info): Simplify rule.
32551 (gnat_ug_vmx.info): Likewise.
32552 (gnat_ug_vxw.info): Likewise.
32553 (gnat_ug_wnt.info): Likewise.
32554 (gnat_rm.info): Likewise.
32555 (gnat-style.info): Likewise.
32557 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
32559 * Make-lang.in: Replace uses of $(target_alias) with
32560 $(target_noncanonical).
32561 * ada/Makefile.in: Remove unused mention of $(target_alias).
32563 2003-10-06 Mark Mitchell <mark@codesourcery.com>
32565 * Make-lang.in (ada.info): Replace with ...
32567 (ada.dvi): Replace with ...
32570 2003-09-29 Zack Weinberg <zack@codesourcery.com>
32572 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
32573 initialize dconstp5 and dconstmp5.
32575 2003-09-28 Richard Henderson <rth@redhat.com>
32577 * trans.c (tree_transform): Update call to expand_asm_operands.
32579 2003-09-21 Richard Henderson <rth@redhat.com>
32581 * trans.c, utils.c: Revert.
32583 2003-09-21 Richard Henderson <rth@redhat.com>
32585 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
32588 2003-09-04 Michael Matz <matz@suse.de>
32590 * misc.c: Include "target.h".
32591 * Make-lang.in (misc.o): Add dependency on target.h.
32593 2003-09-03 DJ Delorie <dj@redhat.com>
32595 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
32598 2003-08-30 Zack Weinberg <zack@codesourcery.com>
32600 * Makefile.in: Update substitutions to match changes to
32601 configure. Use include directives instead of @-insertions
32602 to read in host and target fragments. Add a rule to
32603 regenerate ada/Makefile.
32605 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
32607 * lang-options.h: Remove.
32608 * lang.opt: Add help text.
32610 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
32612 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
32615 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
32617 * misc.c (gnat_handle_option): Don't handle filenames.
32619 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
32621 * Make-lang.in: Replace PWD with PWD_COMMAND.
32622 * Makefile.adalib: Likewise.
32623 * Makefile.in: Likewise.
32625 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
32627 * misc.c (gnat_argv): Revert last change.
32628 (gnat_handle_option, gnat_init_options): Copy arguments.
32630 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
32632 * misc.c (gnat_argv): Make const.
32634 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
32636 * misc.c (save_argc, save_argv): Keep non-static!
32638 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
32640 * misc.c (save_argc, save_argv): Make static.
32641 (gnat_init_options): New prototype.
32642 (gnat_init_options): Update.
32644 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
32646 * gnat_ug.texi: Remove unlikely characters from @vars.
32647 * gnat_ug_vms.texi: Regenerate.
32649 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
32651 * misc.c (record_code_position): Adjust emit_note call.
32653 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
32655 * misc.c (gnat_handle_option): Don't check for missing arguments.
32657 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
32659 * utils.c (end_subprog_body): Adjust expand_function_end call.
32661 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
32663 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
32666 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
32668 * lang.opt: Declare Ada.
32669 * misc.c (gnat_init_options): Update.
32671 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
32673 * utils.c (begin_subprog_body): Adjust init_function_start call.
32675 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
32677 * Make-lang.in: Update to use options.c and options.h.
32678 * misc.c: Include options.h not aoptions.h.
32679 (gnat_handle_option): Abort on unrecognized switch.
32680 (gnat_init_options): Request Ada switches.
32682 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
32684 * lang.opt: Add -Wall.
32685 * misc.c (gnat_handle_option): Handle it.
32687 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
32689 * misc.c (gnat_handle_option): Fix warnings.
32691 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
32693 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
32695 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
32697 * Make-lang.in: Update to handle command-line options.
32698 * lang.opt: New file.
32699 * misc.c: Include aoptions.h.
32700 (cl_options_count, cl_options): Remove.
32701 (gnat_handle_option): New.
32702 (gnat_decode_option): Remove.
32703 (LANG_HOOKS_DECODE_OPTION): Remove.
32704 (LANG_HOOKS_HANDLE_OPTION): Override.
32706 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
32708 * init.c, misc.c, trans.c, utils.c: Remove dead code.
32710 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
32712 * Makefile.in: Replace "host_canonical" with "host" for autoconf
32715 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
32717 * Make-lang.in: Update.
32718 * misc.c: Include opts.h. Define cl_options_count and cl_options.
32720 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
32722 * misc.c (gnat_init_options): Update.
32724 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
32726 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
32727 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
32728 __attribute__ ((__unused__)).
32730 2003-06-05 Jan Hubicka <jh@suse.cz>
32732 * Make-lang.in: Add support for stageprofile and stagefeedback
32734 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
32736 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
32737 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
32739 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
32741 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
32742 Remove non-VMS directive.
32743 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
32745 (Examples of gnatls Usage): Remove VMS alternative.
32747 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
32750 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
32751 and turn ZCX_By_Default back to False since the underlying support
32752 is not quite there yet.
32754 2003-06-01 Andreas Jaeger <aj@suse.de>
32756 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
32757 and ROUND_TYPE_SIZE_UNIT.
32759 2003-05-22 Geert Bosch <bosch@gnat.com>
32761 * gnat_rm.texi : Remove reference to Ada Core Technologies.
32763 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
32765 * trans.c (tree_transform): Use location_t and input_location
32767 (build_unit_elab): Likewise.
32768 * utils.c (create_label_decl): Likewise.
32770 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
32772 * trans.c (tree_transform, build_unit_elab,
32773 set_lineno): Rename lineno to input_line.
32774 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
32775 end_subprog_body): Likewise.
32776 * utils2.c (build_call_raise): Likewise.
32778 2003-05-01 Laurent Guerby <guerby@acm.org>
32781 * 5iosinte.ads: Increase pthread_cond_t size to match recent
32782 LinuxThread and NPTL version, merge from ACT.
32784 2003-04-28 Zack Weinberg <zack@codesourcery.com>
32786 * utils.c (convert): No need to clear TREE_CST_RTL.
32788 2003-04-23 Geert Bosch <bosch@gnat.com>
32790 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
32791 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
32792 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
32793 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
32794 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
32795 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
32796 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
32797 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
32798 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
32799 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
32800 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
32801 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
32802 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
32803 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
32804 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
32805 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
32806 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
32807 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
32808 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
32809 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
32810 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
32811 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
32812 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
32813 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
32814 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
32815 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
32816 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
32817 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
32818 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
32819 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
32820 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
32821 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
32822 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
32823 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
32824 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
32825 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
32826 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
32827 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
32828 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
32829 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
32830 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
32831 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
32832 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
32833 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
32834 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
32835 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
32836 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
32837 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
32838 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
32839 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
32840 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
32841 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
32842 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
32843 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
32844 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
32845 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
32846 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
32847 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
32848 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
32849 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
32850 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
32851 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
32852 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
32853 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
32854 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
32855 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
32856 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
32857 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
32858 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
32859 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
32860 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
32861 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
32862 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
32863 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
32864 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
32865 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
32866 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
32867 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
32868 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
32869 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
32870 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
32871 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
32872 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
32873 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
32874 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
32875 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
32876 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
32877 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
32878 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
32879 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
32880 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
32881 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
32882 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
32883 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
32884 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
32885 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
32886 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
32887 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
32888 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
32889 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
32890 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
32891 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
32892 ali.adb, ali.ads, alloc.ads, argv.c,
32893 atree.adb, atree.ads, atree.h, aux-io.c,
32894 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
32895 binde.adb, binde.ads, binderr.adb, binderr.ads,
32896 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
32897 butil.adb, butil.ads, cal.c, calendar.ads,
32898 casing.adb, casing.ads, ceinfo.adb, checks.adb,
32899 checks.ads, cio.c, comperr.adb, comperr.ads,
32900 config-lang.in, csets.adb, csets.ads, csinfo.adb,
32901 cstand.adb, cstand.ads, cuintp.c, debug.adb,
32902 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
32903 dec-io.ads, dec.ads, deftarg.c, directio.ads,
32904 einfo.adb, einfo.ads, elists.adb, elists.ads,
32905 elists.h, errno.c, errout.adb, errout.ads,
32906 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
32907 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
32908 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
32909 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
32910 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
32911 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
32912 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
32913 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
32914 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
32915 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
32916 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
32917 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
32918 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
32919 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
32920 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
32921 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
32922 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
32923 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
32924 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
32925 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
32926 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
32927 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
32928 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
32929 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
32930 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
32931 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
32932 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
32933 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
32934 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
32935 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
32936 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
32937 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
32938 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
32939 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
32940 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
32941 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
32942 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
32943 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
32944 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
32945 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
32946 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
32947 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
32948 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
32949 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
32950 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
32951 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
32952 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
32953 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
32954 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
32955 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
32956 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
32957 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
32958 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
32959 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
32960 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
32961 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
32962 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
32963 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
32964 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
32965 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
32966 lib.adb, lib.ads, live.adb, live.ads,
32967 machcode.ads, make.adb, make.ads, makeusg.adb,
32968 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
32969 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
32970 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
32971 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
32972 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
32973 mlib.ads, namet.adb, namet.ads, nlists.adb,
32974 nlists.ads, opt.adb, opt.ads, osint-b.adb,
32975 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
32976 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
32977 osint.ads, output.adb, output.ads, par-ch10.adb,
32978 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
32979 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
32980 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
32981 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
32982 par-tchk.adb, par-util.adb, par.adb, par.ads,
32983 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
32984 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
32985 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
32986 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
32987 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
32988 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
32989 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
32990 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
32991 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
32992 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
32993 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
32994 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
32995 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
32996 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
32997 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
32998 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
32999 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
33000 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
33001 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
33002 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
33003 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
33004 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
33005 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
33006 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
33007 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
33008 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
33009 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
33010 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
33011 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
33012 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
33013 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
33014 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
33015 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
33016 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
33017 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
33018 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
33019 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
33020 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
33021 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
33022 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
33023 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
33024 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
33025 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
33026 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
33027 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
33028 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
33029 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
33030 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
33031 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
33032 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
33033 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
33034 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
33035 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
33036 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
33037 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
33038 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
33039 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
33040 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
33041 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
33042 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
33043 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
33044 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
33045 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
33046 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
33047 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
33048 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
33049 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
33050 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
33051 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
33052 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
33053 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
33054 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
33055 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
33056 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
33057 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
33058 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
33059 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
33060 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
33061 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
33062 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
33063 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
33064 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
33065 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
33066 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
33067 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
33068 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
33069 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
33070 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
33071 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
33072 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
33073 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
33074 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
33075 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
33076 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
33077 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
33078 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
33079 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
33080 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
33081 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
33082 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
33083 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
33084 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
33085 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
33086 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
33087 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
33088 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
33089 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
33090 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
33091 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
33092 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
33093 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
33094 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
33095 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
33096 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
33097 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
33098 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
33099 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
33100 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
33101 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
33102 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
33103 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
33104 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
33105 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
33106 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
33107 snames.ads, sprint.adb, sprint.ads, stand.adb,
33108 stand.ads, stringt.adb, stringt.ads, style.adb,
33109 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
33110 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
33111 switch-m.ads, switch.adb, switch.ads, system.ads,
33112 table.adb, table.ads, targparm.adb, targparm.ads,
33113 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
33114 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
33115 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
33116 ttypef.ads, ttypes.ads, types.adb, types.ads,
33117 uintp.adb, uintp.ads, uname.adb, uname.ads,
33118 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
33119 usage.adb, usage.ads, validsw.adb, validsw.ads,
33120 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
33121 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
33122 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
33123 formatting and other trivial changes from ACT.
33125 2003-04-12 Zack Weinberg <zack@codesourcery.com>
33127 * gigi.h, utils2.c (build_constructor):
33128 Rename gnat_build_constructor. Use build_constructor.
33129 * decl.c (gnat_to_gnu_entity)
33130 * trans.c (tree_transform, pos_to_constructor, extract_values)
33131 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
33132 (unchecked_convert)
33133 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
33134 (fill_vms_descriptor):
33137 2003-04-06 Zack Weinberg <zack@codesourcery.com>
33139 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
33140 * misc.c (gnat_tree_size): New function.
33141 (LANG_HOOKS_TREE_SIZE): Override.
33143 2003-04-03 Jason Merrill <jason@redhat.com>
33145 * misc.c (gnat_adjust_rli): #if 0.
33147 2003-03-31 Geert Bosch <bosch@gnat.com>
33150 * link.c : Fix misspelled "const" keyword
33152 2003-03-23 Mark Mitchell <mark@codesourcery.com>
33155 * utils2.c: Adjust calls to put_var_into_stack.
33157 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
33159 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
33161 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
33163 * misc.c (gnat_init): Update for new prototype.
33165 2003-03-05 Olivier Hainque <hainque@gnat.com>
33168 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
33169 warning, and fix return type for the IN_RTS && !SJLJ case.
33171 2003-03-04 Tom Tromey <tromey@redhat.com>
33173 * Make-lang.in (ada.tags): New target.
33175 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
33178 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
33179 wrapper, which name remains constant whatever underlying GCC
33182 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
33183 the stable interface needed for a-except.
33185 2003-03-02 Andreas Jaeger <aj@suse.de>
33187 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33188 gnat_ug_wnt.texi: Regenerate.
33190 2003-03-02 Laurent Guerby <guerby@acm.org>
33192 * Makefile.in (install-gnatlib): Match previous change there
33195 2003-02-28 Andreas Schwab <schwab@suse.de>
33197 * Make-lang.in (install-gnatlib): Change to ada directory before
33198 running make instead of using ada/Makefile directly.
33200 2003-02-18 Ben Elliston <bje@redhat.com>
33202 Part of PR ada/9406
33203 * gnat_ug.texi (Binder output file): Grammar fix.
33205 2003-02-18 Ben Elliston <bje@redhat.com>
33208 * 5qtaprop.adb (Sleep): Fix typo in comment.
33210 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
33212 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
33213 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33214 gnat_ug_wnt.texi: Regenerate.
33216 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
33218 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
33219 be created if necessary.
33220 (ada.install-common): Let $(DESTDIR)$(bindir) be created
33221 if necessary. Remove erroneous and redundant gnatchop
33222 installation commands. Test for gnatdll before attempting
33224 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
33225 and gnatdll from all plausible locations.
33227 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
33229 * utils2.c (build_unary_op): Don't check flag_volatile.
33230 * gnat_ug.texi: Remove -fvolatile from example.
33231 * gnat_ug_vxw.texi: Likewise.
33233 2003-01-29 Laurent Guerby <guerby@acm.org>
33236 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
33237 * Makefile.in: match previous change.
33238 * Make-lang.in: match previous change.
33240 2003-01-29 Joel Sherrill <joel@OARcorp.com>
33242 * 5rosinte.ads: Add SIGXCPU.
33243 * 5rtpopsp.adb: New file.
33244 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
33245 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
33246 specific file 5rtpopsp.adb.
33247 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
33248 is likely needed for all newlib targets.
33249 * init.c: Add RTEMS specific version of __gnat_initialize().
33251 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33253 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
33255 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33257 * init.c (__gnat_error_handler): Make msg const.
33259 * gmem.c (convert_addresses): Move declaration ...
33260 * adaint.h: ... here.
33261 * adaint.c (convert_addresses): Adapt addrs type to match
33264 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
33266 2003-01-24 Andreas Schwab <schwab@suse.de>
33268 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
33269 size_t to avoid warning.
33271 2003-01-21 Zack Weinberg <zack@codesourcery.com>
33273 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
33275 2003-01-09 Geoffrey Keating <geoffk@apple.com>
33277 * gnat_rm.texi: Remove RCS version number.
33279 * ada-tree.h (union lang_tree_node): Add chain_next option.
33281 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
33283 * Make-lang.in (ada.install-info, ada.install-common,
33284 ada.uninstall): Prepend $(DESTDIR) to the destination
33285 directory in all (un)installation commands.
33286 * Makefile.in (install-gnatlib, install-rts): Ditto.
33288 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
33290 * gnat_rm.texi, gnat_ug.texi: Use @copying.
33291 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33292 gnat_ug_wnt.texi: Regenerate.
33294 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
33296 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
33298 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
33299 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
33300 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
33301 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
33302 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
33303 $(srcdir)/doc/include/gcc-common.texi.
33305 2002-12-15 Geert Bosch <bosch@gnat.com>
33307 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
33309 2002-12-14 Geert Bosch <bosch@gnat.com>
33312 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
33313 case of a body created for a Renaming_As_Body, on which
33314 conformance checks are not performed.
33316 2002-11-30 Zack Weinberg <zack@codesourcery.com>
33318 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
33319 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
33320 not already included.
33321 * Make-lang.in: Update dependencies.
33323 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
33324 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
33325 solution to buffer overflow bug on GNU/Linux.
33327 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
33331 * bindgen.adb: Remove all references to Public_Version.
33332 * comperr.adb: Remove all references to Public_Version and
33333 GNATPRO_Version; correct bug reporting instructions.
33334 * comperr.ads: Change to match bug box.
33335 * gnatvsn.ads: Remove all references to Public version and
33338 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
33341 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
33345 * config-lang.in: Remove diff_excludes.
33347 2002-11-05 Graham Stott <graham.stott@btinternet.com>
33350 * trans.c (gnu_pending_elaboration_lists): New GC root.
33351 (build_unit_elab): Use..
33353 2002-10-30 Geert Bosch <bosch@gnat.com>
33356 * misc.c : Include optabs.h
33358 * Make-lang.in (misc.o): Add dependency on optabs.h
33360 2002-10-29 Geert Bosch <bosch@gnat.com>
33363 * Make-lang.in (gnatbind): Depend on CONFIG_H
33365 2002-10-29 Geert bosch <bosch@gnat.com>
33368 * misc.c: Unrevert misc.c (1.13)
33370 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
33372 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
33373 maintainership comments.
33375 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
33378 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
33379 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
33380 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
33381 7staprop.adb: Correct statements in comments about
33382 maintainership of GNAT.
33385 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
33386 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
33387 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
33388 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
33389 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
33390 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
33391 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
33392 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
33393 comments about maintainership of GNAT.
33395 PR ada/6919 (forward port of patch for PR ada/5904)
33396 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
33397 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
33398 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
33399 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
33400 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
33401 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
33402 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
33403 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
33404 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
33405 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
33406 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
33407 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
33408 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
33409 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
33410 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
33411 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
33412 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
33413 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
33414 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
33415 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
33416 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
33417 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
33418 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
33419 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
33420 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
33421 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
33422 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
33423 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
33424 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
33425 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
33426 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
33427 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
33428 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
33429 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
33430 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
33431 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
33432 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
33433 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
33434 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
33435 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
33436 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
33437 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
33438 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
33439 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
33440 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
33441 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
33442 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
33443 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
33444 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
33445 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
33446 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
33447 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
33448 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
33449 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
33450 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
33451 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
33452 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
33453 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
33454 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
33455 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
33456 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
33457 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
33458 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
33459 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
33460 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
33461 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
33462 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
33463 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
33464 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
33465 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
33466 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
33467 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
33468 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
33469 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
33470 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
33471 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
33472 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
33473 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
33474 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
33475 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
33476 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
33477 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
33478 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
33479 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
33480 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
33481 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
33482 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
33483 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
33484 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
33485 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
33486 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
33487 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
33488 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
33489 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
33490 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
33491 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
33492 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
33493 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
33494 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
33495 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
33496 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
33497 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
33498 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
33499 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
33500 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
33501 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
33502 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
33503 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
33504 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
33505 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
33506 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
33507 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
33508 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
33509 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
33510 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
33511 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
33512 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
33513 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
33514 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
33515 par-endh.adb par-labl.adb par-load.adb par-prag.adb
33516 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
33517 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
33518 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
33519 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
33520 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
33521 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
33522 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
33523 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
33524 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
33525 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
33526 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
33527 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
33528 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
33529 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
33530 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
33531 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
33532 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
33533 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
33534 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
33535 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
33536 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
33537 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
33538 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
33539 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
33540 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
33541 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
33542 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
33543 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
33544 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
33545 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
33546 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
33547 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
33548 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
33549 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
33550 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
33551 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
33552 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
33553 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
33554 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
33555 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
33556 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
33557 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
33558 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
33559 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
33560 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
33561 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
33562 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
33563 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
33564 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
33565 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
33566 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
33567 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
33568 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
33569 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
33570 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
33571 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
33572 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
33573 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
33574 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
33575 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
33576 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
33577 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
33578 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
33579 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
33580 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
33581 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
33582 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
33583 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
33584 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
33585 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
33586 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
33587 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
33588 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
33589 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
33590 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
33591 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
33592 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
33593 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
33594 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
33595 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
33596 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
33597 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
33598 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
33599 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
33600 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
33601 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
33602 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
33603 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
33604 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
33605 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
33606 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
33607 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
33608 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
33609 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
33610 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
33611 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
33612 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
33613 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
33614 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
33615 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
33616 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
33617 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
33618 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
33619 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
33620 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
33621 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
33622 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
33623 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
33624 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
33625 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
33626 stringt.ads stringt.h style.adb style.ads stylesw.adb
33627 stylesw.ads switch.adb switch.ads sysdep.c system.ads
33628 table.adb table.ads targparm.adb targparm.ads targtyps.c
33629 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
33630 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
33631 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
33632 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
33633 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
33634 usage.ads utils.c utils2.c validsw.adb validsw.ads
33635 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
33636 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
33637 xtreeprs.adb: Correct statements in comments about maintainership
33640 2002-09-23 Zack Weinberg <zack@codesourcery.com>
33642 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
33643 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
33644 * gnatvsn.ads: Gnat_Version_String is now a function.
33645 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
33646 copy the C version_string into a String and return it.
33647 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
33648 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
33649 Remove pragma Ident (Gnat_Version_String). If this was the
33650 sole use of package Gnatvsn, remove the with statement too.
33651 * gnat1drv.adb: Tweak -gnatv output.
33653 2002-09-17 Richard Henderson <rth@redhat.com>
33655 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
33656 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
33657 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
33658 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
33659 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
33660 and real_2expN instead of a loop.
33661 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
33662 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
33664 2002-08-25 Andre Leis <a.leis@gmx.net>
33665 David Billinghurst (David.Billinghurst@riotinto.com>
33667 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
33669 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33671 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
33672 Remove $(CONFIG_H) dependency.
33674 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
33676 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
33678 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
33680 * adadecode.c (ada_demangle): Use xstrdup in lieu of
33682 * misc.c (gnat_decode_option): Likewise.
33684 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
33686 * make.adb (Add_Switch): Make Generic_Position a procedure. The
33687 function approach did not work well because of a side effect (the
33688 function call could reallocate the table which was being indexed
33689 using its result). Fixes ada/4851. [RESURRECTED]
33691 2002-07-01 Roger Sayle <roger@eyesopen.com>
33693 * ada/utils.c (builtin_function): Accept an additional parameter.
33695 2002-06-28 Andreas Jaeger <aj@suse.de>
33698 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
33701 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
33703 * Makefile.in (SHELL): Set to @SHELL@.
33705 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
33707 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
33708 array size calculation.
33710 2002-06-04 Andreas Jaeger <aj@suse.de>
33712 * Make-lang.in (gnatbind): Readd rule that has been lost in last
33715 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
33717 Merge from pch-branch:
33719 * config-lang.in (gtfiles): Add ada-tree.h.
33720 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
33721 (SET_TYPE_MODULUS): New.
33722 (SET_TYPE_INDEX): New.
33723 (SET_TYPE_DIGITS_VALUE): New.
33724 (SET_TYPE_RM_SIZE): New.
33725 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
33726 (SET_TYPE_ADA_SIZE): New.
33727 (SET_TYPE_ACTUAL_BOUNDS): New.
33728 (SET_DECL_CONST_CORRESPONDING_VAR): New.
33729 (SET_DECL_ORIGINAL_FIELD): New.
33730 (TREE_LOOP_ID): Correct typo.
33731 * decl.c: Use new macros.
33732 * utils.c: Include debug.h, use new macros.
33733 * utils2.c: Use new macros.
33735 * ada-tree.h: Update all macros for new tree description.
33736 (struct tree_loop_id): New.
33737 (union lang_tree_node): New.
33738 (struct lang_decl): New.
33739 (struct lang_type): New.
33740 * misc.c (gnat_mark_tree): Delete.
33741 (LANG_HOOKS_MARK_TREE): Delete.
33742 * trans.c (tree_transform): No longer any need to cast
33745 * utils.c (struct language_function): New dummy structure.
33747 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
33748 (misc.o): Likewise.
33749 (utils.o): Likewise; also gtype-ada.h.
33750 * Make-lang.in (gnat1): Add dependency on s-gtype.
33751 (gnatbind): Add dependency on $(CONFIG_H).
33752 * utils.c: Correct last #include.
33753 (stuct e_stack): Remove unnecessary 'static'.
33754 (mark_e_stack): Remove unused prototype.
33756 * scn-nlit.adb: Remove whitespace after version number to
33757 keep lines under 80 chars.
33758 * snames.adb: Likewise.
33759 * treepr.ads: Likewise.
33761 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
33762 (misc.o): Likewise.
33763 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
33764 * config-lang.in (gtfiles): New.
33765 * decl.c: Use gengtype for roots.
33766 * gigi.h: Use gengtype for roots.
33767 * trans.c: Use gengtype for roots.
33768 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
33770 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
33772 * misc.c (gnat_init): Adjust setting of internal_error_function.
33774 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
33776 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
33777 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33778 gnat_ug_wnt.texi: Regenerate.
33780 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
33782 * 5ntaprop.adb (with System.OS_Primitives): Remove.
33784 * cstreams.c (max_path_len): Move from here ...
33785 * adaint.c (__gnat_max_path_len): ... to here.
33786 * adaint.c (__gnat_max_path_len): Declare.
33787 * g-dirope.adb (Max_Path): Adjust.
33788 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
33789 * i-cstrea.ads (max_path_len): Adjust.
33790 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
33791 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
33793 * Makefile.in, Make-lang.in: Documentation is now built in
33794 Make-lang.in. Store Info and generated Texinfo files in the
33796 * gnat_ug.texi: Remove CVS keywords, correct version number.
33797 Set file name correctly.
33799 * gnat_ug_*.texi: Add.
33800 * .cvsignore: Ignore generated Texinfo files.
33802 2002-05-30 Zack Weinberg <zack@codesourcery.com>
33804 * ada.h: Add MI guard macro.
33805 (SUBTYPE): Define constants with an anonymous enum, not static
33807 (IN): Cast constants to appropriate type before use.
33809 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
33811 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
33814 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33816 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
33817 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
33818 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
33819 (ALL_ADA_CFLAGS): Likewise.
33820 (ADA_INCLUDES): Likewise.
33821 Adapt for new working dir.
33822 (GNATBIND): Use Makefile.in version.
33823 (.SUFFIXES): Copy from Makefile.in.
33824 (ada-warn): Define.
33825 (.adb.o, .ads.o): Copy from Makefile.in.
33826 Added $(OUTPUT_OPTION).
33827 (GNAT1_C_OBJS): Moved from Makefile.in.
33828 Prefix with ada subdir.
33829 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
33830 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
33831 Adapt for new working dir.
33832 (EXTRA_GNATBIND_OBJS): Likewise.
33833 (ADA_BACKEND): Moved from Makefile.in.
33834 Renamed to avoid conflict with global BACKEND.
33836 (TARGET_ADA_SRCS): Moved from Makefile.in.
33837 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
33839 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
33840 (ada_extra_files): Moved from Makefile.in.
33841 Prefix with ada subdir.
33842 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
33843 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
33844 (ada/nmake.ads): Likewise.
33845 (update-sources): Moved from Makefile.in.
33846 Prefix with ada subdir.
33847 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
33848 (ADA_TREE_H): Likewise.
33849 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
33850 (ada/memtrack.o): Likewise.
33851 (ada/adadecode.o): Likewise.
33852 Update dependencies.
33853 (ada/adaint.o): New.
33854 (ada/argv.o): Moved from Makefile.in.
33855 Prefix with ada subdir.
33856 Update dependencies.
33857 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
33858 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
33859 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
33860 Prefix with ada subdir.
33861 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
33862 (GNAT DEPENDENCIES): Regenerate.
33863 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
33864 toplevel Makefile.in.
33865 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
33866 (TARGET_ADA_SRCS): Removed.
33867 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
33868 (GNATBIND_OBJS): Likewise.
33869 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
33870 (BACKEND): Removed.
33871 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
33872 (TREE_H): Likewise.
33873 (ada_extra_files): Likewise.
33874 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
33875 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
33876 (update-sources): Likewise.
33877 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
33878 (ADA_TREE_H): Likewise.
33879 (adadecoce.o): Likewise.
33880 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
33881 (GNAT DEPENDENCIES): Likewise.
33883 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33885 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
33886 * Makefile.in: Likewise.
33888 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33890 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
33891 Restore $(CONFIG_H) and prefix.o dependencies.
33892 (ada.stage[1-4]): Depend on stage?-start.
33894 * Makefile.in (b_gnatb.c): Depend on interfac.o.
33896 2002-05-02 Jim Wilson <wilson@redhat.com>
33898 * utils.c (finish_record_type): Change record_size to record_type.
33900 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
33902 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
33903 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
33904 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
33906 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
33908 * misc.c (gnat_parse_file): Update.
33910 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
33912 * misc.c (gnat_init): Don't set lang_attribute_common.
33914 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
33916 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
33918 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
33920 * gnat_ug.texi: New file.
33922 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
33923 instead of gfdl.texi
33925 * xgnatug.adb, ug_words: New files.
33927 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
33928 gnat_rm and gnat-style manuals.
33930 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
33932 * gigi.h (incomplete_type_error): Remove.
33933 * utils.c (incomplete_type_error): Remove.
33935 2002-04-16 Mark Mitchell <mark@codesourcery.com>
33937 * trans.c (tree_transform): Add has_scope argument to
33938 expand_start_stmt_expr.
33940 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
33942 * gigi.h (truthvalue_conversion): Rename.
33943 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
33944 * trans.c (tree_transform): Update.
33945 * utils2.c (truthvalue_conversion): Rename, update.
33946 (build_binary_op, build_unary_op): Update.
33948 2002-04-04 Laurent Guerby <guerby@acm.org>
33950 * make.adb: Implement -margs, remove restriction about file name placement.
33951 * makeusg.adb: Documentation update.
33952 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
33953 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
33955 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
33957 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
33958 (builtin_function): Similarly.
33960 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
33962 * decl.c (gnat_to_gnu_entity): Update.
33963 * gigi.h (mark_addressable): Rename.
33964 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
33965 * trans.c (tree_transform): Update.
33966 * utils.c (create_var_decl): Update.
33967 * util2.c (build_binary_op, build_unary_op,
33968 fill_vms_descriptor): Update.
33969 (mark_addressable): Rename, update.
33971 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
33973 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
33975 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
33976 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
33977 * trans.c (tree_transform, convert_with_check): Update.
33978 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
33981 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
33983 * gigi.h (finish_incomplete_decl): Rename.
33984 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
33985 * utils.c (gnat_init_decl_processing): Don't set hook.
33986 (finish_incomplete_decl): Rename.
33988 2002-03-29 Andreas Schwab <schwab@suse.de>
33990 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
33993 2001-03-28 Robert Dewar <dewar@gnat.com>
33996 (Remove_Checks): New procedure
33999 (Remove_Checks): New procedure
34002 Use new Duplicate_Subexpr functions
34003 (Duplicate_Subexpr_No_Checks): New procedure
34004 (Duplicate_Subexpr_No_Checks_Orig): New procedure
34005 (Duplicate_Subexpr): Restore original form (checks duplicated)
34006 (Duplicate_Subexpr): Call Remove_Checks
34009 (Duplicate_Subexpr_No_Checks): New procedure
34010 (Duplicate_Subexpr_No_Checks_Orig): New procedure
34011 Add 2002 to copyright notice
34013 * sem_util.adb: Use new Duplicate_Subexpr functions
34016 (Eval_Indexed_Component): This is the place to call
34017 Constant_Array_Ref and to replace the value. We simply merge
34018 the code of this function in here, since it is now no longer
34019 used elsewhere. This fixes the problem of the back end not
34020 realizing we were clever enough to see that this was
34022 (Expr_Val): Remove call to Constant_Array_Ref
34023 (Expr_Rep_Val): Remove call to Constant_Array_Ref
34025 (Constant_Array_Ref): Deal with string literals (patch
34026 suggested by Zack Weinberg on the gcc list)
34028 2001-03-28 Ed Schonberg <schonber@gnat.com>
34030 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
34031 Duplicate_Subexpr_Move_Checks.
34033 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
34034 Duplicate_Subexpr_Move_Checks.
34036 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
34037 value of array exists before retrieving it (it may a private
34038 protected component in a function).
34040 2002-03-28 Geert Bosch <bosch@gnat.com>
34042 * prj-pp.adb : New file.
34044 * prj-pp.ads : New file.
34046 2002-03-28 Andreas Jaeger <aj@suse.de>
34048 * Makefile.in (stamp-sdefault): Fix path for Makefile.
34050 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
34052 * misc.c (gnat_expand_expr): Move prototype.
34054 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
34056 * misc.c (insert_default_attributes): Remove.
34058 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
34060 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
34061 (gnat_init): Don't set hook.
34062 (gnat_expand_expr): Fix prototype.
34064 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
34066 * misc.c (ggc_p): Remove.
34068 2002-03-27 Geert Bosch <bosch@gnat.com>
34070 * prj-makr.ads, prj-makr.adb : New files.
34072 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
34074 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
34075 (lang_mark_tree): Make static, rename.
34077 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
34079 * misc.c (maybe_build_cleanup): Remove.
34081 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
34083 * gigi.h (yyparse): Remove.
34085 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
34087 * gnat_rm.texi: Sync with ACT version.
34088 (From Ben Brosgol <brosgol@gnat.com>)
34090 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
34092 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
34093 (gnat_init): Remove old hook.
34095 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
34097 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
34098 (yyparse): Rename gnat_parse_file.
34100 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
34102 Delete all lines containing "$Revision:".
34103 * xeinfo.adb: Don't look for revision numbers.
34104 * xnmake.adb: Likewise.
34105 * xsinfo.adb: Likewise.
34106 * xsnames.adb: Likewise.
34107 * xtreeprs.adb: Likewise.
34109 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
34111 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
34112 gnat_tree_code_name): Delete.
34113 (tree_code_type, tree_code_length, tree_code_name): Define.
34114 (gnat_init): Don't try to copy into the various tree_code
34117 2002-03-11 Richard Henderson <rth@redhat.com>
34119 * Makefile.in (.NOTPARALLEL): Add fake tag.
34121 2002-03-07 Geert Bosch <bosch@gnat.com>
34123 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
34124 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
34125 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
34126 switch-m.adb, switch-m.ads : New files.
34128 2002-03-07 Geert Bosch <bosch@gnat.com>
34130 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
34131 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
34132 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
34133 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
34134 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
34135 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
34136 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
34137 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
34138 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
34139 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
34140 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
34141 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
34142 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
34143 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
34144 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
34145 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
34146 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
34147 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
34148 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
34149 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
34150 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
34151 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
34152 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
34153 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
34154 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
34155 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
34156 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
34157 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
34158 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
34159 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
34160 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
34161 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
34162 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
34163 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
34164 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
34165 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
34166 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
34167 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
34168 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
34169 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
34170 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
34171 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
34172 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
34173 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
34174 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
34175 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
34176 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
34177 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
34178 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
34179 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
34180 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
34181 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
34182 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
34183 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
34184 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
34185 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
34186 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
34187 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
34188 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
34189 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
34190 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
34191 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
34192 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
34193 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
34194 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
34195 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
34196 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
34197 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
34198 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
34199 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
34200 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
34201 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
34202 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
34203 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
34204 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
34205 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
34206 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
34207 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
34208 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
34209 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
34210 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
34211 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
34212 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
34213 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
34214 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
34215 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
34216 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
34217 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
34218 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
34219 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
34220 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
34221 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
34222 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
34223 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
34224 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
34225 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
34226 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
34228 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
34229 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
34230 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
34231 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
34233 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
34234 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
34236 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
34237 to mdll-fil.ad[bs] and mdll-util.ad[bs]
34239 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
34240 from mdllfile.ad[bs] and mdlltool.ad[bs]
34242 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
34244 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
34245 lieu of explicit sizeof/sizeof.
34247 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
34249 * misc.c (copy_lang_decl): Remove.
34251 2002-02-27 Zack Weinberg <zack@codesourcery.com>
34253 * misc.c: Delete traditional-mode-related code copied from the
34254 C front end but not used, or used only to permit the compiler
34257 2002-02-07 Richard Henderson <rth@redhat.com>
34259 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
34260 * adaint.h (__gnat_to_gm_time): Update prototype.
34262 2002-01-30 Richard Henderson <rth@redhat.com>
34264 * trans.c (tree_transform) [N_Loop_Statement]: Use
34265 expand_exit_loop_top_cond.
34267 2001-12-23 Richard Henderson <rth@redhat.com>
34269 * utils.c (end_subprog_body): Push GC context around
34270 rest_of_compilation for nested functions.
34272 2001-12-23 Richard Henderson <rth@redhat.com>
34274 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
34276 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
34278 * gnat-style.texi (Declarations and Types): Remove ancient style
34279 rule which was mandated by code generation issues.
34281 * gnat-style.texi (header): Add @dircategory, @direntry.
34282 (title page): Remove date.
34283 (general) Add @./@: where approriate, and two spaces after the
34284 full stop at the end of a sentence. Use @samp markup when
34285 referring concrete lexical entities (keywords, attribute names
34286 etc.), and @syntax for ARM grammar elements. Use @r for English
34287 text in comments. Use @emph for emphasis. Change "if-statements"
34288 etc. to "if statements" (without @samp). Break long lines. Make
34289 casing of section names consistent.
34290 (Identifiers): Use @samp markup for variable names.
34291 (Comments): Use @samp markup for comment characters. Line-end
34292 comments may follow any Ada code, not just statements. Fix
34293 misspelling of "Integer" as "integer".
34294 (Loop statements): Do not use variable name "I", use "J".
34295 (Subprogram Declarations): Document alignment.
34296 (Subprogram Bodies, Block statements): Document empty line before
34299 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
34301 * make.adb (Add_Switch): Make Generic_Position a procedure. The
34302 function approach did not work well because of a side effect (the
34303 function call could reallocate the table which was being indexed
34304 using its result). Fixes ada/4851.
34306 2001-12-19 Robert Dewar <dewar@gnat.com>
34308 * bindgen.adb: Minor reformatting
34310 * cstand.adb: Minor reformatting
34312 * fmap.adb: Minor reformatting
34313 Change name from Add for Add_To_File_Map (Add is much too generic)
34314 Change Path_Name_Of to Mapped_Path_Name
34315 Change File_Name_Of to Mapped_File_Name
34316 Fix copyright dates in header
34319 Change name from Add for Add_To_File_Map (Add is much too generic)
34320 Change Path_Name_Of to Mapped_Path_Name
34321 Change File_Name_Of to Mapped_File_Name
34322 Fix copyright dates in header
34324 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
34325 Add use clause for Fmap.
34327 * make.adb: Minor reformatting
34329 * osint.adb: Minor reformatting. Change of names in Fmap.
34330 Add use clause for Fmap.
34332 * prj-env.adb: Minor reformatting
34334 * prj-env.ads: Minor reformatting
34336 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
34337 error found (there were odd exceptions to this general rule in
34338 -gnatec/-gnatem processing)
34340 2001-12-19 Olivier Hainque <hainque@gnat.com>
34342 * raise.c (__gnat_eh_personality): Exception handling personality
34343 routine for Ada. Still in rough state, inspired from the C++ version
34344 and still containing a bunch of debugging artifacts.
34345 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
34346 inspired from the C++ library.
34348 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
34349 exception handling integration.
34351 2001-12-19 Arnaud Charlet <charlet@gnat.com>
34353 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
34354 (HIE_SOURCES): Add s-secsta.ad{s,b}.
34355 (HIE_OBJS): Add s-fat*.o
34356 (RAVEN_SOURCES): Remove files that are no longer required. Add
34357 interrupt handling files.
34358 (RAVEN_MOD): Removed, no longer needed.
34360 2001-12-19 Robert Dewar <dewar@gnat.com>
34362 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
34363 Add 2001 to copyright date
34365 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
34366 need to force universal inlining for these cases.
34368 2001-12-19 Arnaud Charlet <charlet@gnat.com>
34370 * s-taprob.adb: Minor clean ups so that this unit can be used in
34373 * exp_ch7.adb: Allow use of secondary stack in HI mode.
34374 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
34376 2001-12-19 Vincent Celier <celier@gnat.com>
34378 * prj-tree.ads (Project_Node_Record): Add comments for components
34379 Pkg_Id and Case_Insensitive.
34381 2001-12-19 Pascal Obry <obry@gnat.com>
34383 * g-socket.adb: Minor reformatting. Found while reading code.
34385 2001-12-19 Robert Dewar <dewar@gnat.com>
34387 * prj-tree.ads: Minor reformatting
34389 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
34391 * config-lang.in (diff_excludes): Remove.
34393 2001-12-17 Ed Schonberg <schonber@gnat.com>
34395 * sem_res.adb (Resolve_Selected_Component): do not generate a
34396 discriminant check if the selected component is a component of
34397 the argument of an initialization procedure.
34399 * trans.c (tree_transform, case of arithmetic operators): If result
34400 type is private, the gnu_type is the base type of the full view,
34401 given that the full view itself may be a subtype.
34403 2001-12-17 Robert Dewar <dewar@gnat.com>
34405 * sem_res.adb: Minor reformatting
34407 * trans.c (tree_transform, case N_Real_Literal): Add missing third
34408 parameter in call to Machine (unknown horrible effects from this
34411 * urealp.h: Add definition of Round_Even for call to Machine
34412 Add third parameter for Machine
34414 2001-12-17 Ed Schonberg <schonber@gnat.com>
34416 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
34417 predefined units in No_Run_Time mode.
34419 2001-12-17 Richard Kenner <kenner@gnat.com>
34421 * misc.c (insn-codes.h): Now include.
34423 2001-12-17 Olivier Hainque <hainque@gnat.com>
34425 * a-except.adb: Preparation work for future integration of the GCC 3
34426 exception handling mechanism
34427 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
34428 to factorize previous code sequences and make them externally callable,
34429 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
34430 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
34431 Use the new notification routines.
34433 2001-12-17 Emmanuel Briot <briot@gnat.com>
34435 * prj-tree.ads (First_Choice_Of): Document the when others case
34437 2001-12-17 Arnaud Charlet <charlet@gnat.com>
34439 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
34440 HI-E mode, in order to support Ravenscar profile properly.
34442 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
34443 mode on 32 bits targets.
34445 2001-12-17 Vincent Celier <celier@gnat.com>
34447 * fmap.adb: Initial version.
34449 * fmap.ads: Initial version.
34451 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
34452 If search is successfully done, add to mapping.
34454 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
34457 (Gnatmake): Add new local variable Mapping_File_Name.
34458 Create mapping file when using project file(s).
34459 Delete mapping file before exiting.
34461 * opt.ads (Mapping_File_Name): New variable
34463 * osint.adb (Find_File): Use path name found in mapping, if any.
34465 * prj-env.adb (Create_Mapping_File): New procedure
34467 * prj-env.ads (Create_Mapping_File): New procedure.
34469 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
34472 * usage.adb: Add entry for new switch -gnatem.
34474 * Makefile.in: Add dependencies for fmap.o.
34476 2001-12-17 Ed Schonberg <schonber@gnat.com>
34478 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
34479 is a package instantiation rewritten as a package body.
34480 (Install_Withed_Unit): Undo previous change, now redundant.
34482 2001-12-17 Gary Dismukes <dismukes@gnat.com>
34485 (Compute_Length): Move conversion to Unsigned to callers.
34486 (Get_Max_Size): Convert Len expression to Unsigned after calls to
34487 Compute_Length and Determine_Range.
34488 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
34489 Compute_Length and Determine_Range.
34490 Above changes fix problem with length computation for supernull arrays
34491 where Max (Len, 0) wasn't getting applied due to the Unsigned
34492 conversion used by Compute_Length.
34494 2001-12-17 Arnaud Charlet <charlet@gnat.com>
34497 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
34498 System.Secondary_Stack.
34499 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
34501 Remove unused entity RE_Exception_Data.
34503 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
34505 * rident.ads (No_Secondary_Stack): New restriction.
34507 2001-12-17 Joel Brobecker <brobecke@gnat.com>
34509 * gnat_rm.texi: Fix minor typos. Found while reading the section
34510 regarding "Bit_Order Clauses" that was sent to a customer.
34511 Very interesting documentation!
34513 2001-12-17 Robert Dewar <dewar@gnat.com>
34515 * sem_case.adb (Choice_Image): Avoid creating improper character
34516 literal names by using the routine Set_Character_Literal_Name. This
34517 fixes bombs in certain error message cases.
34519 2001-12-17 Arnaud Charlet <charlet@gnat.com>
34521 * a-reatim.adb: Minor reformatting.
34523 2001-12-17 Ed Schonberg <schonber@gnat.com>
34525 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
34526 case where the formal is an extension of another formal in the current
34527 unit or in a parent generic unit.
34529 2001-12-17 Arnaud Charlet <charlet@gnat.com>
34531 * s-tposen.adb: Update comments. Minor reformatting.
34532 Minor code clean up.
34534 * s-tarest.adb: Update comments. Minor code reorganization.
34536 2001-12-17 Gary Dismukes <dismukes@gnat.com>
34538 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
34541 2001-12-17 Robert Dewar <dewar@gnat.com>
34543 * exp_attr.adb: Minor reformatting
34545 2001-12-17 Ed Schonberg <schonber@gnat.com>
34547 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
34548 derivations nested within a child unit: verify that the parent
34549 type is declared in an outer scope.
34551 2001-12-17 Robert Dewar <dewar@gnat.com>
34553 * sem_ch12.adb: Minor reformatting
34555 2001-12-17 Ed Schonberg <schonber@gnat.com>
34557 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
34558 warning if current unit is a predefined one, from which bodies may
34561 2001-12-17 Robert Dewar <dewar@gnat.com>
34563 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
34564 Fix header format. Add 2001 to copyright date.
34566 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
34567 which caused CE during compilation if checks were enabled.
34569 2001-12-17 Vincent Celier <celier@gnat.com>
34572 (Switches_Of): New function
34573 (Test_If_Relative_Path): New procedure
34574 (Add_Switches): Use new function Switches_Of
34575 (Collect_Arguments_And_Compile): Use new function Switches_Of.
34576 When using a project file, test if there are any relative
34577 search path. Fail if there are any.
34578 (Gnatmake): Only add switches for the primary directory when not using
34579 a project file. When using a project file, change directory to the
34580 object directory of the main project file. When using a project file,
34581 test if there are any relative search path. Fail if there are any.
34582 When using a project file, fail if specified executable is relative
34583 path with directory information, and prepend executable, if not
34584 specified as an absolute path, with the exec directory. Make sure
34585 that only one -o switch is transmitted to the linker.
34587 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
34590 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
34591 when using a non standard naming scheme.
34592 (Check_Ada_Naming_Scheme): Make sure that error messages
34593 do not raise exceptions.
34594 (Is_Illegal_Append): Return True if there is no dot in the suffix.
34595 (Language_Independent_Check): Check the exec directory.
34597 * prj.adb (Project_Empty): Add new component Exec_Directory
34600 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
34601 (Project_Data): Add component Exec_Directory
34603 * snames.adb: Updated to match snames.ads revision 1.215
34605 * snames.ads: Added Exec_Dir
34607 2001-12-17 Robert Dewar <dewar@gnat.com>
34609 * make.adb: Minor reformatting
34611 * prj-nmsc.adb: Minor reformatting
34613 * snames.adb: Updated to match snames.ads
34615 * snames.ads: Alphebetize entries for project file
34617 2001-12-17 Ed Schonberg <schonber@gnat.com>
34619 * trans.c (process_freeze_entity): Do nothing if the entity is a
34620 subprogram that was already elaborated.
34622 2001-12-17 Richard Kenner <kenner@gnat.com>
34624 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
34625 and Esize if object is referenced via pointer.
34627 2001-12-17 Ed Schonberg <schonber@gnat.com>
34629 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
34630 is discrete before analyzing choices.
34632 2001-12-17 Joel Brobecker <brobecke@gnat.com>
34634 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
34635 containing the name of the Ada Main Program. This string is mainly
34636 intended for the debugger.
34637 (Gen_Output_File_C): Do the equivalent change when generating a C file.
34639 2001-12-17 Robert Dewar <dewar@gnat.com>
34641 * ali.adb: Set new Dummy_Entry field in dependency entry
34643 * ali.ads: Add Dummy_Entry field to source dependency table
34645 * bcheck.adb (Check_Consistency): Ignore dummy D lines
34647 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
34649 * lib-writ.ads: Document dummy D lines for missing files.
34651 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
34653 2001-12-17 Robert Dewar <dewar@gnat.com>
34655 * ali.adb: Type reference does not reset current file.
34657 * ali.adb: Recognize and scan renaming reference
34659 * ali.ads: Add spec for storing renaming references.
34661 * lib-xref.ads: Add documentation for handling of renaming references
34663 * lib-xref.adb: Implement output of renaming reference.
34666 (Determine_Range): Document local variables
34667 (Determine_Range): Make sure Hbound is initialized. It looks as though
34668 there could be a real problem here with an uninitialized reference
34669 to Hbound, but no actual example of failure has been found.
34671 2001-12-17 Laurent Pautet <pautet@gnat.com>
34674 Fix comment of Shutdown_Socket and Close_Socket. These functions
34675 should not fail silently because if they are called twice, this
34676 probably means that there is a race condition in the user program.
34677 Anyway, this behaviour is consistent with the rest of this unit.
34678 When an error occurs, an exception is raised with the error message
34679 as exception message.
34681 2001-12-17 Robert Dewar <dewar@gnat.com>
34683 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
34684 that it happens before modification of Sloc values for -gnatD.
34686 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
34687 so that it happens before modification of Sloc values for -gnatD.
34689 * switch.adb: Minor reformatting
34691 2001-12-15 Richard Henderson <rth@redhat.com>
34693 * sem_ch7.adb: Wrap comment.
34695 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
34697 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
34698 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
34699 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
34700 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
34701 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
34702 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
34703 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
34704 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
34705 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
34706 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
34707 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
34708 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
34709 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
34710 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
34711 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
34712 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
34713 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
34714 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
34715 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
34716 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
34717 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
34718 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
34719 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
34720 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
34723 2001-12-14 Vincent Celier <celier@gnat.com>
34725 * osint.adb(Create_Debug_File): When an object file is specified,
34726 put the .dg file in the same directory as the object file.
34728 2001-12-14 Robert Dewar <dewar@gnat.com>
34730 * osint.adb: Minor reformatting
34732 * lib-xref.adb (Output_Instantiation): New procedure to generate
34733 instantiation references.
34735 * lib-xref.ads: Add documentation of handling of generic references.
34737 * ali.adb (Read_Instantiation_Ref): New procedure to read
34738 instantiation references
34740 * ali.ads: Add spec for storing instantiation references
34742 * bindusg.adb: Minor reformatting
34744 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
34746 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
34748 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
34750 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
34754 Add 2001 to copyright date
34755 Add entry for Latin-5 (Cyrillic ISO-8859-5)
34757 2001-12-14 Matt Gingell <gingell@gnat.com>
34759 * adaint.c: mktemp is a macro on Lynx and can not be used as an
34762 2001-12-14 Richard Kenner <kenner@gnat.com>
34764 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
34765 if operand is CONSTRUCTOR.
34767 2001-12-14 Ed Schonberg <schonber@gnat.com>
34769 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
34770 before emiting check on right-hand side, so that exception information
34773 2001-12-14 Richard Kenner <kenner@gnat.com>
34775 * utils.c (create_var_decl): Throw away initializing expression
34776 if just annotating types and non-constant.
34778 2001-12-14 Vincent Celier <celier@gnat.com>
34780 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
34783 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
34785 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
34787 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
34789 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
34791 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
34793 * ChangeLog: Remove piece of diff output.
34795 2001-12-14 Geert Bosch <bosch@gnat.com>
34797 * config-lang.in: Update copyright notice
34799 * layout.adb: Remove commented out code.
34801 * mdllfile.ads: Update copyright notice. Fix header format.
34803 * sem_case.ads: Likewise.
34805 * sem_ch3.adb: Minor reformatting.
34807 2001-12-12 Geert Bosch <bosch@gnat.com>
34809 * freeze.ads: Update copyright date.
34811 * g-comlin.ads: Minor reformatting.
34813 * gnat-style.texi: Fix typo.
34815 2001-12-12 Geert Bosch <bosch@gnat.com>
34817 * einfo.h: Regenerate.
34819 2001-12-12 Ed Schonberg <schonber@gnat.com>
34821 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
34822 on known node types, rather than untyped fields. Further cleanups.
34824 2001-12-12 Robert Dewar <dewar@gnat.com>
34827 (Save_Entity_Descendant): Minor comment update.
34828 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
34829 of an N_Attribute_Reference node. As per note below, this does not
34830 eliminate need for Associated_Node in attribute ref nodes.
34831 (Associated_Node): Documentation explicitly mentions attribute
34832 reference nodes, since this field is used in such nodes.
34834 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
34836 2001-12-12 Robert Dewar <dewar@gnat.com>
34838 * s-stalib.adb: Add more comments on with statements being needed
34840 * par-ch12.adb: Minor reformatting
34842 * prj-dect.ads: Fix copyright header
34844 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
34845 inputs fit in 32 bits, but the result still overflows.
34847 * s-fatgen.ads: Minor comment improvement
34849 2001-12-12 Ed Schonberg <schonber@gnat.com>
34851 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
34852 formal derived type, look for an inherited component from the full
34853 view of the parent, if any.
34855 2001-12-12 Robert Dewar <dewar@gnat.com>
34857 * checks.ads (Apply_Alignment_Check): New procedure.
34859 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
34860 ensure that the alignment of objects with address clauses is
34861 appropriate, and raise PE if not.
34863 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
34864 Exp_Pakd.Known_Aligned_Enough
34866 * mdllfile.ads: Minor reformatting
34868 * mlib-fil.ads: Minor reformatting
34870 2001-12-12 Ed Schonberg <schonber@gnat.com>
34872 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
34873 fix to any component reference if enclosing record has non-standard
34876 2001-12-12 Vincent Celier <celier@gnat.com>
34878 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
34881 2001-12-12 Ed Schonberg <schonber@gnat.com>
34883 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
34886 2001-12-12 Robert Dewar <dewar@gnat.com>
34888 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
34890 2001-12-12 Emmanuel Briot <briot@gnat.com>
34892 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
34893 and it adds dependencies to system.io.
34895 2001-12-12 Pascal Obry <obry@gnat.com>
34897 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
34900 2001-12-11 Ed Schonberg <schonber@gnat.com>
34902 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
34903 that is the parent of other generics, the instance body replaces the
34904 instance node. Retrieve the instance of the spec, which is the one
34905 that is visible in clients and within the body.
34907 2001-12-11 Vincent Celier <celier@gnat.com>
34909 * gnatmain.adb: Initial version.
34911 * gnatmain.ads: Initial version.
34913 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
34915 * snames.adb: Updated to match snames.ads.
34917 * snames.ads: Added Gnatstub.
34919 2001-12-11 Vincent Celier <celier@gnat.com>
34921 * prj-attr.adb (Initialization_Data): Change name from
34922 Initialisation_Data.
34924 2001-12-11 Emmanuel Briot <briot@gnat.com>
34926 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
34927 + and * applied to backslashed expressions like \r.
34929 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
34931 * g-os_lib.ads: String_List type added, Argument_List type is now
34932 subtype of String_List.
34934 2001-12-11 Robert Dewar <dewar@gnat.com>
34936 * g-os_lib.ads: Change copyright to FSF
34937 Add comments for String_List type
34939 2001-12-11 Vincent Celier <celier@gnat.com>
34941 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
34942 string to the buffer).
34944 2001-12-11 Ed Schonberg <schonber@gnat.com>
34946 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
34949 * sem_attr.adb: Simplify previous fix for Address.
34950 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
34951 to avoid anomalies where the bound of the type appears to raise
34954 2001-12-11 Robert Dewar <dewar@gnat.com>
34956 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
34959 2001-12-11 Ed Schonberg <schonber@gnat.com>
34961 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
34962 renamed unit before checking for recursive instantiations.
34964 2001-12-11 Emmanuel Briot <briot@gnat.com>
34966 * prj.ads: Add comments for some of the fields.
34968 2001-12-11 Robert Dewar <dewar@gnat.com>
34970 * lib-xref.adb (Output_Refs): Don't output type references outside
34971 the main unit if they are not otherwise referenced.
34973 2001-12-11 Ed Schonberg <schonber@gnat.com>
34975 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
34976 code and diagnose additional illegal uses
34978 * sem_util.adb (Is_Object_Reference): An indexed component is an
34979 object only if the prefix is.
34981 2001-12-11 Vincent Celier <celier@gnat.com>
34983 * g-diopit.adb: Initial version.
34985 * g-diopit.ads: Initial version.
34988 (Expand_Path): Avoid use of Unbounded_String
34989 (Find, Wildcard_Iterator): Moved to child package Iteration
34991 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
34993 2001-12-11 Robert Dewar <dewar@gnat.com>
34995 * sem_attr.adb: Minor reformatting
34997 2001-12-11 Ed Schonberg <schonber@gnat.com>
34999 * sem_ch3.adb: Clarify some ???.
35001 2001-12-11 Robert Dewar <dewar@gnat.com>
35003 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
35004 Exp_Pakd.Known_Aligned_Enough
35006 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
35007 version is moved to Exp_Ch13.
35009 2001-12-11 Robert Dewar <dewar@gnat.com>
35011 * einfo.ads: Minor reformatting
35013 * exp_ch5.adb: Add comment for previous.change
35015 * ali.adb: New interface for extended typeref stuff.
35017 * ali.ads: New interface for typeref stuff.
35019 * checks.adb (Apply_Alignment_Check): New procedure.
35021 * debug.adb: Add -gnatdM for modified ALI output
35023 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
35025 * lib-xref.adb: Extend generation of <..> notation to cover
35026 subtype/object types. Note that this is a complete rewrite,
35027 getting rid of the very nasty quadratic algorithm previously
35028 used for derived type output.
35030 * lib-xref.ads: Extend description of <..> notation to cover
35031 subtype/object types. Uses {..} for these other cases.
35032 Also use (..) for pointer types.
35034 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
35036 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
35037 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
35039 2001-12-11 Vincent Celier <celier@gnat.com>
35042 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
35043 Changed /BIND_ONLY to /ACTIONS=BIND
35044 Changed /LINK_ONLY to /ACTIONS=LINK
35046 2001-12-11 Ed Schonberg <schonber@gnat.com>
35048 * sem_ch8.adb (Find_Selected_Component): improved search for a
35049 candidate package in case of error.
35051 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
35052 chain back on scope stack before reinstalling use clauses.
35054 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
35055 is enabled, do not kill the code for the condition, to preserve
35058 2001-12-11 Robert Dewar <dewar@gnat.com>
35060 * checks.adb (Insert_Valid_Check): Apply validity check to expression
35061 of conversion, not to result of conversion.
35063 2001-12-11 Ed Schonberg <schonber@gnat.com>
35065 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
35066 before freezing parent. If the declarations are mutually recursive,
35067 an access to the current record type may be frozen before the
35068 derivation is complete.
35070 2001-12-05 Vincent Celier <celier@gnat.com>
35072 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
35073 -c /COMPILE_ONLY, -l /LINK_ONLY
35076 (Bind_Only): New Flag
35077 (Link_Only): New flag
35079 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
35082 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
35085 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
35086 (Gnatmake): Set the step flags. Only perform a step if the
35087 corresponding step flag is True.
35088 (Scan_Make_Arg): Reset the bind and link step flags when -u
35089 or -gnatc has been specified.
35091 2001-12-05 Ed Schonberg <schonber@gnat.com>
35093 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
35094 get bounds from right operand.
35096 * sem_eval.adb: Minor reformatting
35098 * exp_util.adb (Make_Literal_Range): use bound of literal rather
35099 than Index'First, its lower bound may be different from 1.
35101 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
35104 2001-12-05 Vincent Celier <celier@gnat.com>
35106 * prj-nmsc.adb Minor reformatting
35108 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
35109 set and libraries are not supported.
35111 2001-12-05 Ed Schonberg <schonber@gnat.com>
35113 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
35114 private view explicitly, so the back-end can treat as a global
35117 2001-12-05 Ed Schonberg <schonber@gnat.com>
35119 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
35120 unit, always replace instance node with new body, for ASIS use.
35122 2001-12-05 Vincent Celier <celier@gnat.com>
35124 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
35125 libraries are not supported and both attributes Library_Name and
35126 Library_Dir are specified.
35128 * prj-proc.adb (Expression): Set location of Result to location of
35131 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
35132 (prj-nmsc is now importing MLib.Tgt)
35134 * prj-proc.adb: Put the change indicated above that was forgotten.
35136 2001-12-05 Robert Dewar <dewar@gnat.com>
35138 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
35140 2001-12-05 Ed Schonberg <schonber@gnat.com>
35142 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
35143 constraint, introduce explicit subtype declaration and derive from it.
35145 * sem_ch3.adb: Minor reformatting
35147 2001-12-05 Robert Dewar <dewar@gnat.com>
35149 * checks.adb (Determine_Range): Increase cache size for checks.
35152 * exp_ch6.adb: Minor reformatting
35153 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
35154 a parameter whose root type is System.Address, since treating such
35155 subprograms as pure in the code generator is almost surely a mistake
35156 that will lead to unexpected results.
35158 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
35159 change handling of conversions.
35161 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
35163 2001-12-05 Ed Schonberg <schonber@gnat.com>
35165 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
35166 aggregate with static wrong size, attach generated Raise node to
35169 2001-12-05 Robert Dewar <dewar@gnat.com>
35171 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
35172 Fixes compilation abandoned bomb in B24009B.
35174 2001-12-05 Ed Schonberg <schonber@gnat.com>
35177 Document use of Associated_Node on Selected_Components.
35178 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
35179 to clarify use of untyped descendant fields.
35181 2001-12-05 Robert Dewar <dewar@gnat.com>
35183 * prj-dect.ads: Add ??? comment
35184 Add 2001 to copyright notice (was not done in after all)
35186 * prj-part.adb: Minor reformatting. Reword one awkward error message.
35188 * prj.ads: Minor reformatting throughout, and add some ??? comments
35190 * snames.ads: Minor reformatting
35192 2001-12-05 Geert Bosch <bosch@gnat.com>
35194 * snames.adb: Autoupdate
35196 2001-12-05 Vincent Celier <celier@gnat.com>
35198 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
35200 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
35202 * prj-env.adb: Minor comment changes (modifying -> extends).
35204 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
35206 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
35209 * prj.adb (Initialize): Change Modifying to Extends.
35211 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
35213 * prj.ads: Minor comment change (Modifying -> extending).
35215 * snames.ads: Change modifying to extends.
35217 2001-12-05 Robert Dewar <dewar@gnat.com>
35219 * sem_warn.adb: Remove stuff for conditionals, we are not going to
35222 * sem_warn.ads: Remove stuff for conditionals, we are not going to
35223 do this after all. Add 2001 to copyright notice
35225 2001-12-04 Geert Bosch <bosch@gnat.com>
35227 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
35229 2001-12-04 Robert Dewar <dewar@gnat.com>
35231 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
35232 location if we already have errors. Stops some cases of cascaded
35235 * errout.adb: Improve comment.
35237 2001-12-04 Robert Dewar <dewar@gnat.com>
35240 (Analyze_Formal_Type_Definition): Defend against Error.
35241 (Analyze_Formal_Subprogram): Defend against Error.
35243 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
35244 remove following semicolon if present. Removes cascaded error.
35246 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
35249 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
35250 exceptions equals 0.
35251 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
35252 Fixes PIWG E tests (which have to be run with -gnatL).
35254 2001-12-04 Robert Dewar <dewar@gnat.com>
35256 * einfo.ads: Minor reformatting
35258 2001-12-04 Ed Schonberg <schonber@gnat.com>
35260 * einfo.ads: Block_Node points to the identifier of the block, not to
35261 the block node itself, to preserve the link when the block is
35262 rewritten, e.g. within an if-statement with a static condition.
35264 * inline.adb (Cleanup_Scopes): recover block statement from block
35265 entity using new meaning of Block_Node.
35267 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
35268 identifier of block node, rather than to node itself.
35270 2001-12-04 Gary Dismukes <dismukes@gnat.com>
35273 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
35274 (Discrimify): Go back to setting the Etypes of the selected component
35275 because the Vname component does not exist at this point and will
35276 fail name resolution. Also set Analyzed.
35277 Remove with and use of Sem_Res.
35279 2001-12-04 Arnaud Charlet <charlet@gnat.com>
35281 * Makefile.in: (HIE_SOURCES): add s-fat*.
35283 2001-12-04 Robert Dewar <dewar@gnat.com>
35286 (Compile_Time_Known_Attribute): New procedure.
35287 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
35288 proper range check.
35290 2001-12-04 Ed Schonberg <schonber@gnat.com>
35292 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
35293 processing discriminants to diagnose illegal default values.
35295 2001-12-04 Ed Schonberg <schonber@gnat.com>
35297 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
35298 access discriminant within a type extension that constrains its
35299 parent discriminants.
35301 2001-12-04 Ed Schonberg <schonber@gnat.com>
35303 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
35304 is malformed, use instance of Any_Id to allow analysis to proceed.
35306 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
35307 type definition is illegal.
35308 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
35311 2001-12-04 Ed Schonberg <schonber@gnat.com>
35313 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
35316 2001-12-04 Robert Dewar <dewar@gnat.com>
35318 * errout.adb: Minor reformatting
35320 2001-12-04 Robert Dewar <dewar@gnat.com>
35322 * exp_util.adb: Minor reformatting from last change
35324 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
35325 which is a rewriting of an expression, traverse the original
35326 expression to remove warnings that may have been posted on it.
35328 2001-12-04 Ed Schonberg <schonber@gnat.com>
35330 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
35331 record that has other packed components.
35333 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
35335 * adaint.c: Minor cleanups.
35337 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
35339 * adaint.c: Do not use utime.h on vxworks.
35341 2001-12-04 Arnaud Charlet <charlet@gnat.com>
35343 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
35344 more confusion than it solves.
35346 2001-12-04 Geert bosch <bosch@gnat.com>
35348 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
35350 2001-12-04 Geert Bosch <bosch@gnat.com>
35352 * Makefile.in (update-sources): New target.
35353 For use by gcc_release script.
35355 2001-12-04 Ed Schonberg <schonber@gnat.com>
35357 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
35358 a configuration pragma, it is now legal wherever a pragma can appear.
35360 2001-12-04 Zack Weinberg <zack@codesourcery.com>
35362 * Makefile.in: Don't set ALL. Delete @cross_defines@,
35363 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
35364 is now @CROSS@ -DIN_GCC; update comment.
35366 2001-12-04 Robert Dewar <dewar@gnat.com>
35368 * einfo.adb (Has_Pragma_Pure_Function): New flag.
35369 Fix problem that stopped ceinfo from working
35371 * einfo.ads (Has_Pragma_Pure_Function): New flag.
35373 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
35375 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
35378 (File_Time_Stamp): New procedure.
35379 (Preserve_Mode): New boolean.
35380 (Write_Unit): Pass time stamp.
35381 Implement -p switch (preserve time stamps).
35383 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
35385 * gnatchop.adb: Do usage info for -p switch
35387 * adaint.h (__gnat_set_file_time_name): New function
35389 * adaint.c (__gnat_set_file_time_name): Implement
35391 * adaint.h: Fix typo
35393 2001-12-03 Robert Dewar <dewar@gnat.com>
35395 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
35396 have Associated_Node.
35398 2001-12-03 Robert Dewar <dewar@gnat.com>
35400 * prj-proc.adb: Minor reformatting
35402 * make.adb: Minor reformatting
35404 2001-12-03 Geert Bosch <bosch@gnat.com>
35406 * make.adb: Minor reformatting.
35408 2001-12-03 Robert Dewar <dewar@gnat.com>
35410 * sem_ch12.adb: Minor reformatting
35412 2001-12-03 Ed Schonberg <schonber@gnat.com>
35414 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
35415 push Standard on the stack before analyzing the instance body,
35416 in order to have a clean visibility environment.
35418 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
35420 2001-12-03 Ed Schonberg <schonber@gnat.com>
35422 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
35423 instantiation of a body that contains an inlined body.
35425 2001-12-03 Ed Schonberg <schonber@gnat.com>
35428 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
35429 to prevent freezing within formal packages.
35430 (Freeze_Subprogram_Body): If body comes from another instance that
35431 appeared before its own body, place freeze node at end of current
35432 declarative part, to prevent a back-end crash.
35433 (Inline_Instance_Body): Handle properly a package instance within
35434 a subprogram instance that is a child unit.
35436 2001-12-01 Graham Stott <grahams@redhat.com>
35438 * Makefile.in (misc.o): Add missing $(srcdir) prefix
35439 and add optabs.h dependency.
35441 * misc.c: Include optabs.h
35442 (gnat_tree_code_type): Make static and const.
35443 (gnat_tree_code_length): Likewise.
35444 (gnat_tree_code_name): Likewise.
35445 (update_setjmp_buf): Obtain operands mode from insn_data.
35447 2001-11-29 Richard Henderson <rth@redhat.com>
35449 * init.c: Remove obsolete dwarf2 frame.h section.
35451 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
35453 * Make-lang.in (ada.generated-manpages): New dummy target.
35455 2001-11-29 Ed Schonberg <schonber@gnat.com>
35457 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
35458 into Command, an array conversion is illegal here. Uncovered by
35461 2001-11-28 Geert Bosch <bosch@gnat.com>
35463 * init.c: Minor whitespace changes.
35465 2001-11-28 Doug Rupp <rupp@gnat.com>
35467 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
35470 2001-11-28 Zack Weinberg <zack@codesourcery.com>
35472 * misc.c (gnat_expand_constant): Move declaration above
35473 definition of lang_hooks.
35474 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
35475 (gnat_init): lang_expand_constant no longer exists.
35477 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
35478 always have vprintf.
35479 (gnat_init): Always call set_internal_error_function.
35481 2001-11-27 Andreas Jaeger <aj@suse.de>
35483 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
35485 2001-11-27 Laurent Guerby <guerby@acm.org>
35487 * Makefile.in: Regenerate Ada dependencies.
35489 2001-11-26 Richard Henderson <rth@redhat.com>
35491 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
35492 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
35493 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
35495 2001-11-25 Laurent Guerby <guerby@acm.org>
35497 * sysdep.c (rts_get_*): Fix style.
35499 2001-11-19 Laurent Guerby <guerby@acm.org>
35501 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
35502 since it is of no apparent use and cause warnings.
35504 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
35506 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
35508 (gnat_init): Don't return NULL.
35509 (finish_parse): Remove.
35511 2001-11-17 Laurent Guerby <guerby@acm.org>
35513 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
35514 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
35515 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
35516 * lang-spec.h: Add missing struct field to silence warnings.
35517 * sysdep.c (rts_get_*): Provide K&R prototype.
35518 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
35519 * traceback.c (Unlock_Task, Lock_Task): Likewise.
35520 * tracebak.c (__gnat_backtrace): Remove unused variable.
35521 * utils.c (end_subprog_body): Move to K&R style.
35523 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35525 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
35527 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
35529 * misc.c (gnat_init): Change prototype. Include the
35530 functionality of the old init_parse and init_decl_processing.
35531 (gnat_init_decl_processing): New prototype.
35532 (init_parse): Remove.
35533 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
35535 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
35537 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
35538 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
35539 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
35540 set_yydebug): Remove.
35542 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
35544 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
35545 (struct lang_hooks): Constify.
35546 (language_string, lang_identify): Remove.
35547 * utils.c (init_decl_processing): Update.
35549 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
35551 * misc.c: Include langhooks-def.h.
35552 * Makefile.in: Update.
35554 2001-10-30 Robert Dewar <dewar@gnat.com>
35557 (Check_Identifier): Rewrite circuit to be compatible with use of letters
35558 in the upper half of ASCII.
35559 (Check_Identifier): Minor reformatting
35561 2001-10-30 Geert Bosch <bosch@gnat.com>
35563 * (Associated_Node, Set_Associated_Node): Do not check for
35566 2001-10-30 Robert Dewar <dewar@gnat.com>
35568 * a-reatim.ads: Minor reformatting
35570 2001-10-30 Robert Dewar <dewar@gnat.com>
35572 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
35573 undocumented declarations.
35575 2001-10-30 Pascal Obry <obry@gnat.com>
35577 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
35578 to the binder and linker.
35581 * mdll.ads: Fix layout. Update copyright notice.
35583 * mdll.adb: Fix layout. Update copyright notice.
35585 2001-10-30 Robert Dewar <dewar@gnat.com>
35587 * usage.adb: Minor fix to output for -gnaty.
35589 2001-10-30 Ed Schonberg <schonber@gnat.com>
35591 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
35592 to accommodate all its possible values.
35594 * a-reatim.adb (Split): Special-case handling of Time_Span_First
35595 and of small absolute values of T.
35597 2001-10-30 Richard Kenner <kenner@gnat.com>
35599 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
35600 set_mem_attributes since not needed and wrong if RESULT if a REG;
35601 fixes ACATS failures.
35603 2001-10-30 Geert Bosch <bosch@gnat.com>
35605 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
35606 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
35608 2001-10-30 Robert Dewar <dewar@gnat.com>
35610 * bindusg.adb: Undocument -f switch.
35612 * gnatcmd.adb: Remove /FULL_ELABORATION.
35614 * opt.ads (Force_RM_Elaboration_Order): Document that this is
35617 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
35619 * gnatbind.adb: Minor update of warning msg.
35621 2001-10-30 Vincent Celier <celier@gnat.com>
35623 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
35624 for project file switches (-P (/PROJECT_FILE=),
35625 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
35628 2001-10-30 Geert Bosch <bosch@gnat.com>
35630 * decl.c: Minor whitespace fixes.
35632 2001-10-30 Richard Kenner <kenner@gnat.com>
35634 * utils2.c (build_allocator): Test for SIZE overflow in array case too
35636 2001-10-30 Geert Bosch <bosch@gnat.com>
35638 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
35639 Found due to GCC 3.0 warning of using uninitialized value.
35642 (Get_Max_Size): Use variant record for tracking value/expression.
35643 Makes logic clearer and prevents warnings for uninitialized variables.
35644 (Layout_Array_Type): Use variant record for tracking value/expression.
35645 Makes logic clearer and prevents warnings for uninitialized variables.
35647 2001-10-30 Robert Dewar <dewar@gnat.com>
35649 * lib.adb: Minor reformatting
35651 * s-taprop.ads: Minor reformatting
35653 2001-10-29 Laurent Guerby <guerby@acm.org>
35656 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
35658 (_gnat_error_handler): Make MSG const.
35660 2001-10-29 Richard Kenner <kenner@gnat.com>
35662 * sysdep.c: Fix localtime_r problem on LynxOS.
35663 Also remove #elif to avoid warnings.
35665 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
35668 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
35670 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
35672 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
35673 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
35674 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
35675 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
35676 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
35677 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
35678 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
35679 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
35680 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
35681 types.ads, urealp.adb: Fix spelling errors.
35683 2001-10-27 Laurent Guerby <guerby@acm.org>
35685 * trans.c (gigi): Fix non determinism leading to bootstrap
35686 comparison failures for debugging information.
35688 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
35690 * gnat_rm.texi: Use @./@: where appropriate.
35692 2001-10-26 Robert Dewar <dewar@gnat.com>
35694 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
35696 2001-10-26 Richard Kenner <kenner@gnat.com>
35698 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
35700 2001-10-26 Richard Kenner <kenner@gnat.com>
35702 * decl.c (validate_size): Modify message for bad size to avoid
35703 implication that compiler is modifying the size.
35705 2001-10-26 Robert Dewar <dewar@gnat.com>
35707 * prj-util.adb: Minor reformatting. Fix bad header format.
35709 2001-10-26 Robert Dewar <dewar@gnat.com>
35711 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
35713 * sinfo.ads: Clarify use of Associated_Node (documentation only).
35715 * sem_ch12.adb: Change Node4 to Associated_Node. Change
35716 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
35717 much more narrowly in places where needed. These are cleanups.
35719 2001-10-26 Joel Brobecker <brobecke@gnat.com>
35721 * 5zosinte.ads (null_pthread): new constant.
35724 (Initialize_TCB): Initialize thread ID to null, to be able to verify
35725 later that this field has been set.
35726 (Finalize_TCB): ditto.
35727 (Suspend_Task): Verify that the thread ID is not null before using it.
35728 (Resume_Task): ditto.
35731 (Resume_All_Tasks): Lock the tasks list before using it.
35732 (Suspend_All_Tasks): ditto.
35734 2001-10-26 Richard Kenner <kenner@gnat.com>
35736 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
35737 Make constant variant of designated type for Is_Access_Constant.
35738 Call update_pointer_to with main variant.
35740 * trans.c (process_freeze_entity, process_type):
35741 Call update_pointer_to on main variant.
35743 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
35744 If main variant, update all other variants.
35746 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
35749 2001-10-26 Robert Dewar <dewar@gnat.com>
35751 * prj-util.adb: Minor reformatting
35753 2001-10-26 Robert Dewar <dewar@gnat.com>
35755 * prj-util.adb: Minor reformatting
35757 2001-10-26 Robert Dewar <dewar@gnat.com>
35759 * prj-attr.adb: Minor reformatting throughout
35761 2001-10-26 Robert Dewar <dewar@gnat.com>
35763 * prj-attr.ads: Minor reformatting
35764 Add ??? comment (this whole spec has almost no comments)
35766 2001-10-26 Vincent Celier <celier@gnat.com>
35768 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
35769 ("//") that precede the drive letter on Interix.
35771 2001-10-26 Geert Bosch <bosch@gnat.com>
35773 * gnat_rm.texi: Add GNAT Reference Manual.
35775 2001-10-25 Robert Dewar <dewar@gnat.com>
35777 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
35778 is Error. Similar change for other renaming cases.
35780 2001-10-25 Robert Dewar <dewar@gnat.com>
35782 * s-atacco.ads: Add pragma Inline_Always for functions.
35783 Fix header format. Add copyright 2001
35785 2001-10-25 Ed Schonberg <schonber@gnat.com>
35787 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
35788 return Error rather than Empty so that analysis can proceed.
35790 2001-10-25 Ed Schonberg <schonber@gnat.com>
35792 * sem_util.adb (Enter_Name): better handling of cascaded error
35793 messages when a unit appears in its own context.
35795 2001-10-25 Ed Schonberg <schonber@gnat.com>
35797 * sem_util.adb (Defining_Entity): in case of error, attach created
35798 entity to specification, so that semantic analysis can proceed.
35800 2001-10-25 Robert Dewar <dewar@gnat.com>
35803 (Defining_Entity): Deal with Error.
35804 (Process_End_Label): Deal with bad end label for.
35806 2001-10-25 Ed Schonberg <schonber@gnat.com>
35808 * sem_elab.adb (Check_A_Call): refine message when call is in an
35809 instance but callee is not declared in the generic unit.
35811 2001-10-25 Ed Schonberg <schonber@gnat.com>
35813 * sem_elab.adb (Check_A_Call): check for renaming before finding the
35814 enclosing unit, which may already be different from the calling unit.
35816 2001-10-25 Geert Bosch <bosch@gnat.com>
35818 * 4gintnam.ads: fix header format.
35820 2001-10-25 Ed Schonberg <schonber@gnat.com>
35822 * sem_res.adb (Resolve_Call): if the call is actually an indexing
35823 operation on the result of a parameterless call, perform elaboration
35824 check after the node has been properly rewritten.
35826 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
35827 inlined within the generic tree, the defining identifier is not a
35830 2001-10-25 Ed Schonberg <schonber@gnat.com>
35832 * sem_res.adb (Resolve): special-case resolution of Null in an
35833 instance or an inlined body to avoid view conflicts.
35835 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
35836 compatibility by retrieving the access type of the generic copy.
35838 2001-10-25 Robert Dewar <dewar@gnat.com>
35841 (Analyze_Number_Declaration): Handle error expression.
35842 (Signed_Integer_Type_Declaration): Handle error bound.
35843 (Analyze_Subtype_Indication): Handle error range.
35845 * sem_util.adb (Get_Index_Bounds): Check for Error.
35847 2001-10-25 Robert Dewar <dewar@gnat.com>
35849 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
35850 in no run time mode.
35852 2001-10-25 Pascal Obry <obry@gnat.com>
35854 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
35855 mode case for ALLOC case.
35857 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
35858 all platforms. Improvement of last change.
35860 2001-10-25 Robert Dewar <dewar@gnat.com>
35862 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
35864 2001-10-25 Geert Bosch <bosch@gnat.com>
35866 * osint.adb (Is_Relative): Remove duplicate.
35868 2001-10-25 Pascal Obry <obry@gnat.com>
35870 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
35871 pathnames in UNIX and DOS style with drive letter.
35872 (Is_Relative): new routine.
35874 * osint.adb: Minor reformatting
35876 * osint.adb (Is_Relative): implementation using
35877 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
35879 2001-10-25 Pascal Obry <obry@gnat.com>
35881 * g-dirope.adb (Basename): correctly compute offset between the
35882 original Path and the translated one.
35884 * g-dirope.adb: (Base_Name): add some comments.
35886 2001-10-25 Robert Dewar <dewar@gnat.com>
35888 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
35889 in HIE mode, avoids compilation abandoned message
35891 * exp_imgv.adb: Correct typo in previous change
35893 * exp_imgv.adb: Correct typo in previous change (not my day!)
35895 2001-10-25 Robert Dewar <dewar@gnat.com>
35897 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
35899 2001-10-25 Pascal Obry <obry@gnat.com>
35901 * g-awk.ads: Move all pragma inlines next to the routine
35902 declarations. This is more uniform with other GNAT spec.
35904 2001-10-22 Geert Bosch <bosch@gnat.com>
35906 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
35908 2001-10-19 Geert Bosch <bosch@gnat.com>
35910 * Makefile.in (tools, gnattools): Remove gnatmem.
35912 2001-10-17 Richard Henderson <rth@redhat.com>
35914 * Makefile.in (misc.o): Depend on langhooks.h.
35915 * misc.c: Include it.
35916 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
35917 (LANG_HOOKS_DECODE_OPTION): New.
35918 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
35920 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
35922 * trans.c (tree_transform): Adjust to recent change in
35923 expand_asm_operands to implement named asm operands.
35925 2001-10-11 Ed Schonberg <schonber@gnat.com>
35927 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
35928 renaming of discriminant for mutable record type.
35930 2001-10-11 Robert Dewar <dewar@gnat.com>
35932 * validsw.adb: Properly save -gnatVn status.
35934 2001-10-11 Robert Dewar <dewar@gnat.com>
35936 * usage.adb: Add lines for V switch.
35938 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
35939 (/VALIDITY_CHECKING).
35941 2001-10-11 Ed Schonberg <schonber@gnat.com>
35943 * sem_type.adb (Add_One_Interp): an operator for a type declared in
35944 an extension of System is known to be visible.
35946 2001-10-11 Ed Schonberg <schonber@gnat.com>
35948 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
35949 properly. Fixes regression on ACATS C34005G.
35951 2001-10-11 Robert Dewar <dewar@gnat.com>
35953 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
35954 loop in generic instance, since this is likely not very useful.
35956 2001-10-11 Robert Dewar <dewar@gnat.com>
35958 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
35959 the error message for high integrity mode.
35961 * rtsfind.adb (RTE): Give message if we try to find an entity that
35962 is not available in high integrity mode.
35965 (OK_To_Use_In_HIE_Mode): New array.
35966 (RTE): May return Empty in high integrity mode.
35968 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
35969 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
35971 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
35972 unit if not inlined always and in no runtime mode. Fixes problem
35973 caused by new Rtsfind changes.
35975 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
35978 * rtsfind.adb (RTE): Make sure we do not try to load unit after
35979 giving message for entity not available in high integrity mode.
35981 2001-10-11 Pascal Obry <obry@gnat.com>
35983 * impunit.adb: Add GNAT.CRC32.
35985 2001-10-11 Ed Schonberg <schonber@gnat.com>
35987 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
35988 properly the case where one universal operand in a non-static
35989 exponentiation of a real literal.
35991 2001-10-11 Ed Schonberg <schonber@gnat.com>
35993 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
35994 clause, return the gobal finalization list, for lack of anthing else.
35996 2001-10-11 Ed Schonberg <schonber@gnat.com>
35998 * exp_ch7.adb (Make_Transient_Block): if statement is within
35999 exception handler, always use new transient scope to place Clean
36002 2001-10-11 Pascal Obry <obry@gnat.com>
36005 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
36006 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
36007 (GNATLS_RTL_OBJS): add g-crc32.o
36008 (GNATMAKE_RTL_OBJS): add g-crc32.o
36011 (CRC_Match): new function.
36012 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
36013 instead of the previous simple checksum algorithm.
36014 (Time_Stamp_Mismatch): use CRC_Match for comparison.
36015 (Set_Source_Table): idem.
36018 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
36019 instead of simple checksum.
36020 (CRC_Match): new function.
36021 (CRC_Error): new constant.
36023 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
36024 a CRC now and not a simple checksum. A CRC uses lower-case hex
36025 letters, fixes ambiguity in parsing.
36027 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
36028 is what this variable will store.
36030 * bcheck.adb: Change reference to chechsum in comments by CRC.
36031 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
36032 rename All_Checksum_Match to All_CRC_Match. Change due to API
36033 renaming since now GNAT does not use a simple checksum but a
36034 CRC using GNAT.CRC32.
36036 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
36037 now and not anymore a simple checksum.
36039 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
36042 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
36045 (Restore_Scan_State): rename Checksum to CRC.
36046 (Save_Scan_State): idem.
36050 (Checksum): rename to CRC.
36051 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
36053 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
36054 GNAT.CRC32). Update copyright notice.
36056 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
36057 GNAT.CRC32). Update copyright notice.
36060 (Accumulate_Checksum): removed.
36061 (Update): new procedure. Add a wide-character into the CRC.
36064 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
36065 (Load_File): fix initialization of S (change Source_Checksum to
36068 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
36069 Source_CRC in S initialization.
36071 * sinput.adb (Source_Checksum): renamed to Source_CRC.
36073 * sinput.ads (Source_Checksum): renamed to Source_CRC.
36074 Update comments for the CRC.
36076 * types.adb (Hex): Use lowercase for the letter part.
36078 * types.ads (Get_Hex_String): Returns the hexadecimal representation
36079 for a word. This is currently used only for CRC. In previous version,
36080 the checksum was using a representation with all letter being
36081 upper-case. With the new implementation (using CRC) we do not remove
36082 the 32th bit of the CRC, so we can have an upper-case starting letter
36083 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
36084 It is ambigous since the CRC was optional and could be followed by
36085 options like EB, EE. So now this routines uses lower-case letter for
36086 the hexadecimal representation. Strange enough only lower case letters
36087 where checked in Scan_ALI (even if this was not a possible case).
36089 * gnatvsn.ads (Library_Version): changed to 3.15a.
36091 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
36094 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
36097 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
36098 Add 2001 to copyright notice
36099 (Accumulate_Checksum): Modify to use System.CRC32.
36101 * ali-util.ads: Redo changes of previous revision to continue to use
36102 the word Checksum. Add 2001 to copyright notice.
36104 * ali.adb: Undo some of previous changes, not needed.
36105 Keep the change for lower case letters in the checksum.
36107 * ali.ads: Undo previous change not needed.
36109 * bcheck.adb: Undo most of previous change, not needed.
36110 But do use Checksums_Match for checksum comparison.
36112 * gnatls.adb: Undo most of previous change, not needed.
36113 But do use Checksums_Match for comparing checksums.
36115 * lib-load.adb: Undo previous change, not needed.
36117 * lib-writ.adb: Undo previous change, not needed.
36119 * lib-writ.ads: Document that checksums use lower case,
36120 not upper case letters.
36122 * scans.adb: Undo previous change, not needed
36124 * scans.ads: Undo previous change, not needed.
36126 * scn-nlit.adb: Undo previous changes, not needed.
36128 * scn-slit.adb: Undo previous change, not needed. Fix header format.
36131 (Accumulate_Checksum): Use System.CRC32.
36132 (Initialize_Checksum): New procedure.
36133 Remove other changes of previous revision.
36135 * sinput-p.adb: Undo previous change, not needed.
36137 * sinput.adb: Undo previous change, not needed.
36139 * sinput-l.adb: Undo previous change, not needed.
36141 * sinput.ads: Undo previous change, not needed. Keep only comment
36142 on new checksum algorithm
36144 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
36145 Also remove a-tags and a-stream from GNAT sources.
36147 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
36149 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
36151 2001-10-11 Geert Bosch <bosch@gnat.com>
36153 * einfo.h: Regenerate.
36155 * nmake.ads: Regenerate.
36157 * nmake.adb: Regenerate.
36159 * sinfo.h: Regenerate.
36161 * treeprs.adb: Regenerate.
36163 2001-10-10 Geert Bosch <bosch@gnat.com>
36165 * gnat-style.texi: New file describing coding guidelines for Ada.
36167 2001-10-10 Ed Schonberg <schonber@gnat.com>
36169 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
36172 2001-10-10 Geert Bosch <bosch@gnat.com>
36174 * snames.ads: Add new names for project facility.
36176 * snames.adb: Update to reflect snames.ads changes.
36178 * snames.h: Update to reflect snames.ads changes.
36180 2001-10-10 Vincent Celier <celier@gnat.com>
36183 (Add_Switches): reflect the changes for the switches attributes
36184 Default_Switches indexed by the programming language,
36185 Switches indexed by the file name.
36186 (Collect_Arguments_And_Compile): Idem.
36187 Reflect the attribute name changes.
36190 (Initialisation_Data): Change the names of some packages and
36192 (Initialize): process case insensitive associative arrays.
36195 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
36198 (Parse_Attribute_Declaration): For case insensitive associative
36199 arrays, set the index string to lower case.
36202 Reflect the changes of the project attributes.
36205 Replace Check_Naming_Scheme by Ada_Check and
36206 Language_Independent_Check.
36209 Replaced Check_Naming_Scheme by 2 procedures:
36210 Ada_Check and Language_Independent_Check.
36213 (Process_Declarative_Items): For case-insensitive associative
36214 arrays, set the index string to lower case.
36215 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
36216 Prj.Nmsc.Check_Naming_Scheme.
36219 (Case_Insensitive): New function
36220 (Set_Case_Insensitive): New procedure
36223 (Case_Insensitive): New function
36224 (Set_Case_Insensitive): New procedure
36225 (Project_Node_Record): New flag Case_Insensitive.
36228 (Value_Of): new function to get the string value of a single
36229 string variable or attribute.
36232 (Value_Of): new function to get the string value of a single
36233 string variable or attribute.
36236 (Ada_Default_Spec_Suffix): New function
36237 (Ada_Default_Impl_Suffix): New function
36238 Change definitions of several constants to reflect
36239 new components of record types.
36242 (Naming_Data): Change several components to reflect new
36243 elements of naming schemes.
36244 (Project_Data): New flags Sources_Present and
36245 Language_Independent_Checked.
36246 (Ada_Default_Spec_Suffix): New function.
36247 (Ada_Default_Impl_Suffix): New function.
36250 Modification of predefined names for project manager: added
36251 Implementation, Specification_Exceptions, Implementation_Exceptions,
36252 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
36253 Default_Switches, _Languages, Builder, Cross_Reference,
36254 Finder. Removed Body_Part, Specification_Append, Body_Append,
36255 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
36258 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
36261 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
36262 not that it is Nil_Variable_Value.
36264 * prj.ads: Add ??? for uncommented declarations
36266 2001-10-10 Ed Schonberg <schonber@gnat.com>
36268 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
36269 constant, do not indicate possible modification, so that gigi can
36270 treat it as a bona fide constant.
36272 2001-10-10 Robert Dewar <dewar@gnat.com>
36274 * sem_prag.adb: Add processing for pragma External.
36276 * snames.ads: Add entry for pragma External.
36278 * par-prag.adb: Add pragma External.
36280 * snames.adb: Updated to match snames.ads.
36282 2001-10-10 Ed Schonberg <schonber@gnat.com>
36284 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
36285 a dynamic task if the allocator appears in an indexed assignment
36286 or selected component assignment.
36288 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
36289 For a dynamic task in an assignment statement, use target of
36290 assignment to generate meaningful name.
36292 2001-10-10 Ed Schonberg <schonber@gnat.com>
36294 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
36297 * einfo.ads: Body_Entity is also defined for generic package.
36298 Documentation change only
36300 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
36301 others_choice for a discriminated component initialization,
36302 convert discriminant references into the corresponding discriminals.
36304 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
36305 only if original type is private and expression has to be wrapped
36309 (Apply_Constraint_Check): Do not perform length check
36310 if expression is an aggregate with only an others_choice.
36311 (Length_N_Cond): two references to the same in_parameter
36312 (typically the discriminal in an init_proc) denote the same value.
36313 Two useful optimization uncovered by bugfixes above.
36315 2001-10-10 Robert Dewar <dewar@gnat.com>
36317 * xeinfo.adb: Change int to char in translation of enumeration types.
36318 This fixes a problem in the C representation of component alignment.
36319 Add 2001 to copyright notice
36321 2001-10-10 Richard Kenner <kenner@gnat.com>
36323 * decl.c: (validate_size): Do check size of object of integral type
36324 if it is a packed array type.
36326 2001-10-10 Richard Kenner <kenner@gnat.com>
36328 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
36329 VAR_DECL for constant if not Is_Public but -O0.
36331 2001-10-10 Richard Kenner <kenner@gnat.com>
36333 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
36335 2001-10-10 Geert Bosch <bosch@gnat.com>
36337 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
36338 use '/' as switch character, allowing for absolute file names.
36340 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
36342 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
36345 2001-10-08 Geert Bosch <bosch@gnat.com>
36347 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
36348 Automatically build utilities when files need to be regenerated.
36350 2001-10-08 Geert Bosch <bosch@gnat.com>
36352 * xsnames.adb: New utility for updating snames.ads and snames.adb
36354 2001-10-08 Zack Weinberg <zack@codesourcery.com>
36356 * Make-lang.in (ADAFLAGS): Add -W -Wall.
36357 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
36358 (gnat1): Also depend on attribs.o.
36359 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
36360 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
36361 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
36362 (ADAFLAGS): Add -W -Wall.
36363 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
36366 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
36367 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
36368 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
36369 Use $(ADAC), not $(CC), as compilation command.
36371 (gnattools): Depend directly on tools to build, don't use
36373 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
36375 * einfo.h, sinfo.h: New files (autogenerated).
36377 2001-10-08 Richard Henderson <rth@redhat.com>
36379 * comperr.adb (Abort_In_Progress): New.
36380 (Compiler_Abort): Use it to prevent recursion.
36382 2001-10-08 Robert Dewar <dewar@gnat.com>
36384 * atree.adb: Set Error_Posted in Error node, helps error recovery.
36386 * par-endh.adb (Output_End_Expected): We should also not test
36387 Error_Posted on the Error node, since now it is always set.
36389 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
36390 to help error recovery. Part of general work on 9407-004.
36392 * par.adb: Add ??? for misuse of error
36395 (Resolve): Defend against Error, fixes 9407-003.
36396 (Resolve_Discrete_Subtype_Indication): Defend against Error.
36398 * sinfo.ads (N_Error): Now has Etype field (which will be set
36399 to Any_Type to help error recovery).
36401 2001-10-08 Richard Kenner (kenner@gnat.com)
36403 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
36404 Consistently set MEM attributes from expression; fixes
36405 bootstrap failure on x86.
36407 2001-10-08 Geert Bosch (bosch@gnat.com)
36409 * 5oosinte.adb: Add 2001 to copyright notice.
36411 2001-10-08 Geert Bosch (bosch@gnat.com)
36413 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
36415 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
36417 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
36419 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
36421 2001-10-05 Geert Bosch (bosch@gnat.com)
36423 * adaint.h: Small formatting fix.
36425 2001-10-04 Geert Bosch <bosch@gnat.com>
36427 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
36428 Arg is int, not FILE *, in dummy version of functions.
36430 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
36431 Arg is int, not FILE *.
36433 2001-10-04 Geert Bosch <bosch@gnat.com>
36435 * 3lsoccon.ads: Added file, missed with initial check ins.
36437 * 4lintnam.ads: Fix header format.
36438 Change Linux to GNU/Linux.
36440 * 5iosinte.adb: Change Linux to GNU/Linux.
36442 * 5iosinte.ads: Change Linux to GNU/Linux.
36444 * 5itaprop.adb: Change Linux to GNU/Linux.
36446 * 5itaspri.ads: Change Linux to GNU/Linux.
36447 Update copyright notice.
36449 * 5lintman.adb: Change Linux to GNU/Linux.
36451 * 5lml-tgt.adb: Change Linux to GNU/Linux.
36453 * 5losinte.ads: Change Linux to GNU/Linux.
36455 * 5lsystem.ads: Change Linux to GNU/Linux.
36457 * 5qosinte.adb: Change Linux to GNU/Linux.
36459 * 5qosinte.ads: Change Linux to GNU/Linux.
36461 * 5qparame.ads: Change Linux to GNU/Linux.
36463 * 5qtaprop.adb: Change Linux to GNU/Linux.
36465 * 5qtaspri.ads: Change Linux to GNU/Linux.
36466 Add 2001 to copyright notice.
36468 * 5vintman.ads: Change Linux to GNU/Linux.
36469 Fix header format. Add 2001 to copyright notice.
36471 * g-soccon.ads: Change Linux to GNU/Linux.
36473 * g-trasym.ads: Change Linux to GNU/Linux.
36474 Add 2001 to copyright notice.
36476 * memtrack.adb: Change Linux to GNU/Linux.
36478 * s-intman.ads: Change Linux to GNU/Linux.
36479 Add 2001 to copyright notice. Fix header format.
36481 * s-stache.adb: Change Linux to GNU/Linux.
36483 * adaint.c: Change Linux to GNU/Linux.
36485 * cio.c: Change Linux to GNU/Linux.
36487 * cstreams.c: Change Linux to GNU/Linux.
36489 * init.c: Change Linux to GNU/Linux.
36491 * gmem.c: Change Linux to GNU/Linux.
36493 * tracebak.c: Change Linux to GNU/Linux.
36496 2001-10-02 Geert Bosch <bosch@gnat.com>
36498 * misc.c (insert_default_attributes): Add dummy version.